d4rken-org / sdmaid

SD Maid is an Android app that helps you manage files and apps.
https://play.google.com/store/apps/details?id=eu.thedarken.sdm
1.52k stars 749 forks source link

Wechat cache clean #1907

Closed Zhou-R closed 5 years ago

Zhou-R commented 6 years ago

Hi,

The Wechat cache files also need to be cleaned up. For example, the Moments, audio and video cache files in Wechat. I know the Moments file location, it takes about 2 G space on my phone. The Moments file is located at device/storage/emulated/0/tecent/"a long number and letter"/sns

If others have the similar issue, please also help to provide some feedback.

Thanks,

d4rken commented 6 years ago

Can you provide some screenshots from SD Maids explorer?

There is also an option in SD Maids Explorer (see settings) called "Save directory structure" it will produce a text file that contains all the pathes.

Try to use that on the tencent folder.

ya8sa commented 6 years ago

Hi, Folder structure list is attached. I uses user filter of system cleaner for XLOG and CheckResUpdate folder. Old files are remained, so age setting of rule is applied in the filter. No affects are found in app operation. Regards,

pathdump#_storage_emulated_0_tencent#1532987182448.txt

d4rken commented 5 years ago

What's the difference between the sns folder and the image2 folder?

d4rken commented 5 years ago
d4rken commented 5 years ago

I have a test version, if anyone can help me test this, please send a mail to support@darken.eu and mention this ticket :+1:

d4rken commented 5 years ago

WeChat is a dirty app :grin: and cleaning has been split up between 3 filters:

Hidden caches filter

            "^(?>tencent\\/MicroMsg\\/CheckResUpdate\\/)([\\W\\w]+?)$",
            "^(?>tencent\\/MicroMsg\\/WebviewCache\\/)([\\W\\w]+?)$",
            "^(?>tencent\\/MicroMsg\\/Cache\\/)([\\W\\w]+?)$",
            "^(?>tencent\\/MicroMsg\\/CDNTemp\\/)([\\W\\w]+?)$",
            "^(?>tencent\\/MicroMsg\\/FailMsgFileCache\\/)([\\W\\w]+?)$",
            "^(?>tencent\\/MicroMsg\\/diskcache\\/)([\\W\\w]+?)$",
            "^(?>tencent\\/MicroMsg\\/)([0-9a-z-]{32}temp[\\d]{13})$",
            "^(?>tencent\\/MicroMsg\\/[0-9a-z-]{32}\/brandicon\/)(?>.+)",
            "^(?>tencent\\/assistant\\/cache\\/)([\\W\\w]+?)$",
            "^(?>tencent\\/assistant\\/tmp\\/)([\\W\\w]+?)$",
            "^(?>tencent\\/assistant\\/thumbnailcache\\/)([\\W\\w]+?)$",
            "^(?>VideoCache\\/com.tencent.mm\\/)([\\W\\w]+?)$"

Bugreporting filter

            "^(?>tencent\\/MicroMsg\\/crash\\/)([\\W\\w]+?)$",
            "^(?>tencent\\/MicroMsg\\/xlog\\/)([\\W\\w]+?)$",
            "^(?>tencent\\/MicroMsg\\/locallog\\/)([\\W\\w]+?)$",
            "^(?>tencent\\/MicroMsg\\/watchdog\\/)([\\W\\w]+?)$",
            "^(?>tencent\\/MicroMsg\\/failmsgfilecache\\/)([\\W\\w]+?)$",
            "^(?>tencent\\/MicroMsg\\/)(FTS5IndexMicroMsgInfo.txt)$",
            "^(?>tencent\/MicroMsg\/[0-9a-z-]{32}\/logcat\/)(?>.+)"

and a new WeChat filter just for sent/received files in chats and moments

                        "^(?>tencent\\/MicroMsg\\/[0-9a-z-]{32}\\/sns\\/)(?>.+)$",
                        "^(?>tencent\\/MicroMsg\\/[0-9a-z-]{32}\\/video\\/)(?>.+)$",
                        "^(?>tencent\\/MicroMsg\\/[0-9a-z-]{32}\\/image2\\/)(?>.+)$",
                        "^(?>tencent\\/MicroMsg\\/[0-9a-z-]{32}\\/voice2\\/)(?>.+)$"