[APP][1.6+] SD Maid - System cleaning tool

Search This thread

Hitti2

Senior Member
whats this mean, why a lot of apps have this?
 

Attachments

  • Screenshot_20220809-125756_SD Maid.jpg
    Screenshot_20220809-125756_SD Maid.jpg
    8.7 KB · Views: 98

Dark3n

Recognized Developer
Sep 14, 2007
2,588
5,279
twitter.com
whats this mean, why a lot of apps have this?
The question mark signifies that SD Maid doesn't have the complete picture about something.
While your screenshot is cut off, it looks like AppCleaner?

Here it would usually mean that SD Maid can check the total cache size via the USAGE_STATS permission, but doesn't know anything about the amount of files that make up the cache. SD Maid can't delete the files directly either and will use the freeStorageAndNotify trick on early Android versions or the accessibility service on the more recent Android versions.

This can also be visible in combination, i.e. "128+? items" if SD Maid can determine some files directly (as they are in publicly accessible location). If you disable the filter for "default caches" the "?" should be gone. If you are rooted, you should never see the "?", in that case send a bug report ;).

The line of too much vs too little information, casual vs power user, which is a bit blurry in SD Maid :giggle:.
 

Dark3n

Recognized Developer
Sep 14, 2007
2,588
5,279
twitter.com
Android 13 on a Pixel 6, keeps forgetting the Accessibility setting for SD Maid, so I have to flip it back on frequently. Does not seem to happen with other apps...

This is usually common on cheaper Chinese phones where this is caused by aggressive "battery optimizations". I have not heard of this happening on Pixel 6. Mine is on Android 13 I'll monitor it a bit.
The only thing I can fix from my end though is if the service crashes due to a coding error.

I've checked the automatic crash logs and there only 4 users with crashes from a Pixel 6, but all seemed to be related to random system events, not something that would happen every time.
 

WibblyW

Senior Member
May 24, 2011
728
133
Google Nexus 4
Moto X Play
This is usually common on cheaper Chinese phones where this is caused by aggressive "battery optimizations". I have not heard of this happening on Pixel 6. Mine is on Android 13 I'll monitor it a bit.
The only thing I can fix from my end though is if the service crashes due to a coding error.

I've checked the automatic crash logs and there only 4 users with crashes from a Pixel 6, but all seemed to be related to random system events, not something that would happen every time.
Doesn't lose any other setting or configuration. I did have it set for 'restricted' battery use as I do routinely for any apps I only want active when in foreground. It works fine that way except for this one issue. Could that be the cause?

Have set it to 'optimised' now to see if that helps....
 
Last edited:

LostEchoes

Senior Member
Dec 15, 2006
231
59
Hey all !
I have bought SD Maid Pro (in app purchase) on my phone and I was trying to install it also on my Chromecast with Google TV. I found and downloaded the apk on APKMirror, I installed it on my CCwGTV but now I cannot find a way to make CCwGTV see that I have the pro version. It shows up as the non pro version on my Chromecast.
Any ideas on this ?
 

rodken

Senior Member
Jan 11, 2010
1,304
531
Hey all !
I have bought SD Maid Pro (in app purchase) on my phone and I was trying to install it also on my Chromecast with Google TV. I found and downloaded the apk on APKMirror, I installed it on my CCwGTV but now I cannot find a way to make CCwGTV see that I have the pro version. It shows up as the non pro version on my Chromecast.
Any ideas on this ?
You would need to install the SD Maid Pro Unlocker from your phone in order to hit pay-dirt.
 
  • Like
Reactions: blackhawk

rodken

Senior Member
Jan 11, 2010
1,304
531
I feel like an idiot as I have no idea how to do this
There are many ways of accomplishing this:

Find the apk on your phone that you want using your favorite file manager and put it in your Google Drive in a place you can find it. A folder of some sort will make this simpler.

Hold the Assistant button on the Chromecast remote, say “install File Commander from the Play Store"

Go into developer mode, you simply need to go to your Chromecast settings > about > Android TV OS build and click the center button on your remote while you have the build number highlighted. After a handful of clicks, you’ll see a countdown and then a message that says “You are now a developer!

Head to the Apps > Security & Restrictions > Unknown sources and flip the switch that will allow File Commander to install apps from unknown sources.

Allow the file manager to stage and install an app you will choose from Google Drive.

Under your applications and open up File Commander. Head to your Google Drive account and navigate to the folder you placed your APK file into. Navigate to that APK file, click the center button to select it, and you will see the application begin staging and then ask if you want to install the app.
 

LostEchoes

Senior Member
Dec 15, 2006
231
59
There are many ways of accomplishing this:

Find the apk on your phone that you want using your favorite file manager and put it in your Google Drive in a place you can find it. A folder of some sort will make this simpler.

Hold the Assistant button on the Chromecast remote, say “install File Commander from the Play Store"

Go into developer mode, you simply need to go to your Chromecast settings > about > Android TV OS build and click the center button on your remote while you have the build number highlighted. After a handful of clicks, you’ll see a countdown and then a message that says “You are now a developer!

Head to the Apps > Security & Restrictions > Unknown sources and flip the switch that will allow File Commander to install apps from unknown sources.

Allow the file manager to stage and install an app you will choose from Google Drive.

Under your applications and open up File Commander. Head to your Google Drive account and navigate to the folder you placed your APK file into. Navigate to that APK file, click the center button to select it, and you will see the application begin staging and then ask if you want to install the app.
OH thanks.
I have everything set up, MiXplorer with google drive, etc. Now I have to find the way to search for the SD maid apk I have installed on my phone.
 

rodken

Senior Member
Jan 11, 2010
1,304
531
OH thanks.
I have everything set up, MiXplorer with google drive, etc. Now I have to find the way to search for the SD maid apk I have installed on my phone.
I don't know if you are rooted

To do this from a command line, use adb shell pm list packages to get the list of installed packages and find the desired package.

With the package name, we can get the actual file name and location of the APK using adb shell pm path your-package-name.

And knowing the full directory, you can finally pull the adb using adb pull full/directory/of/the.apk. The APK file gets stored to the directory from which you run your console.

or you can choose to use an easier method.
 

LostEchoes

Senior Member
Dec 15, 2006
231
59
I don't know if you are rooted

To do this from a command line, use adb shell pm list packages to get the list of installed packages and find the desired package.

With the package name, we can get the actual file name and location of the APK using adb shell pm path your-package-name.

And knowing the full directory, you can finally pull the adb using adb pull full/directory/of/the.apk. The APK file gets stored to the directory from which you run your console.

or you can choose to use an easier method.
Thank you all. I'm not rooted but I did it with APK Share ! Now let's hope the dev will fix the permission issues that SD Maid has with Android 12 on the CCwGTV.
 
  • Like
Reactions: KOLIOSIS

KOLIOSIS

Senior Member
Thank you all. I'm not rooted but I did it with APK Share ! Now let's hope the dev will fix the permission issues that SD Maid has with Android 12 on the CCwGTV.
Just curious....

What brand of TV do you have & which OS does it use?

Reason I'm asking is I tried something similar to what you have with my Samsung TV & I can't get the Pro features to work.
 

LostEchoes

Senior Member
Dec 15, 2006
231
59
Just curious....

What brand of TV do you have & which OS does it use?

Reason I'm asking is I tried something similar to what you have with my Samsung TV & I can't get the Pro features to work.

It's not a TV. It's Chromecast with Google TV (HD).

And I think this is the reason why SD Maid Pro is not really working right now on Android 12:


I hope they find a way to fix this soon.
 
  • Like
Reactions: KOLIOSIS

KOLIOSIS

Senior Member
It's not a TV. It's Chromecast with Google TV (HD).

And I think this is the reason why SD Maid Pro is not really working right now on Android 12:


I hope they find a way to fix this soon.
I gotcha, I was just curious if you had also tried this on a TV that had Google TV natively installed (& had success w/using all of the SD Maid Pro features) vs the Chromecast w/Google TV.
 

Thebear j koss

Senior Member
It's not a TV. It's Chromecast with Google TV (HD).

And I think this is the reason why SD Maid Pro is not really working right now on Android 12:


I hope they find a way to fix this soon.
Been 2 years. I don't see a fix coming. There is nothing to fix as it is a security implementation by Google. So unless Google changes it's stupid scoped storage, apps like SD card maid will only have limited access. Blame Google.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    You need to turn it on in AppCleaner settings, which should then prompt you to enable the service in the system.

    Some devices have trouble keeping the service running due to overzealous battery optimizations, requiring a reboot to get it started again. Some troubleshooting tips can be found here:


    FYI
    In contrast to other permissions, "Permitting accessibility" in the system settings also actually launches the accessibility service itself. Apps can't launch it themselves, it has to be launched by the system. So if for some reason the service isn't running, SD Maid can't restart it either (but will show an error to inform you).

    Sometimes toggling the service off/on again restarts it, but if the "battery optimizers" outright killed the service, then the system may treat it as "malfunctioning" and punish it. If that happens often enough, the service will not run until the device is rebooted. Might be a way the AOSP devs came up with to prevent buggy services from rendering the device unusable. :unsure:
    3
    It's not a TV. It's Chromecast with Google TV (HD).

    And I think this is the reason why SD Maid Pro is not really working right now on Android 12:


    I hope they find a way to fix this soon.
    Been 2 years. I don't see a fix coming. There is nothing to fix as it is a security implementation by Google. So unless Google changes it's stupid scoped storage, apps like SD card maid will only have limited access. Blame Google.
    2
    May I politely ask you to limit posts in this thread to SD Maid items and to post MiXplorer related questions and concerns in the MiXplorer development or Q&A threads.
    @Dark3n is most likely unable to fix any MiXplorer issues and doesn't need to have his thread cluttered.

    Thanks for your cooperation.
    Regards
    Oswald Boelcke
    Senior Moderator

    @zgfg Please advise if you like your posts to be moved.
    My posts were about the problem that SD Maid cannot access /Android/data on the Chromecast, because of the restrictions imposed by A12

    Hence my suggestion was to test if some other app, but the one built with an older target API level, like 29 (for A10) could access the same folder - because that might be a trick to circumvent the restrictions coming with A12 (API level 31 - the target level that SD-Maid is built for)

    @LostEchoes - My point was actually to test with some app that was built for an older target level - and for that reason I suggested (sorry, I don't know any other one) but that specific MiXPlorer version built for the API -29 target.
    Silver MiX from the Playstore is also most likely built for the API 31 target level

    ---

    About the meanings and importance of API target levels can be found on Internet

    API-29 corresponds to A10, API-30 to A11, API-31,31 to A12

    If an app was built for the target level 29, it doesn't necessarily mean that it would not work on A12 (but Google enforces to build apps for the latest target API levels, among other reasons, to conform to their always more stringent new security restrictions)
    2
    It's not a TV. It's Chromecast with Google TV (HD).

    And I think this is the reason why SD Maid Pro is not really working right now on Android 12:


    I hope they find a way to fix this soon.

    Sorry for being ignorant

    With root there is also no access to /Android/data?

    MiXPlorer also cannot access?
    Don't be sorry and you are totally the opposite of being ignorant. I can't access storage/emulated/0/Android/data and /media folders on Android 12 and 13. Workaround is to go from root directory folder. Root/sdcard/Android/data and/media
    1
    Hey all !
    I have bought SD Maid Pro (in app purchase) on my phone and I was trying to install it also on my Chromecast with Google TV. I found and downloaded the apk on APKMirror, I installed it on my CCwGTV but now I cannot find a way to make CCwGTV see that I have the pro version. It shows up as the non pro version on my Chromecast.
    Any ideas on this ?
    You would need to install the SD Maid Pro Unlocker from your phone in order to hit pay-dirt.
  • 527
    Description:
    Ive started working on a tool to clean up after apps (inspired by this thread).

    Nobody is perfect and android neither.
    Apps you have already deleted sometimes leave data behind.
    The system constantly creates logs, crash reports and debug files you don't really need.
    The market leaves temporary files of downloaded apps behind.
    Lets not go on here...

    SD Maid is a universal file tool that helps you keep your device neat and tidy.


    Features
    • Storage overview
    • Root explorer & search
    • Find & remove left over files from uninstalled apps
    • Freeze, Uninstall, Export or kill apps
    • Toggle autstart entries
    • Find & delete common unnecessary files
    • Clean applications by removing various cache files without loosing any data
    • Find & delete duplicate files
    • Overview over biggest files/directories on your device
    • Optimize your SQL databases
    • Show last modified files
    • and more...

    Installation instructions
    * Install this like any other app.
    * If your device is rooted, you will be asked if you want to grant SD Maid root permission upon its first launch
    * It is up to you what you choose, in each case SD Maid will make best possible use of its features.
    * Have the SuperUser application remember this choice, repeated prompts can cause unexpected behavior

    Download links
    SD Maid can either be downloaded from Google Play or direct from my server, appropriate links are collected here. The unlocker for SD Maid Pro can currently only be obtained through Google Play. I really recommend to only use these two sources. If you can't verify that the apk files are original you may put your device at risk.

    Changelog
    A detailed changelog can be found on Github and most update release posts also contain some explanation of what's new.

    Bugs / Requests
    Please use the issue tracker for any kind of bug reports or feature requests for both SD Maid stable & beta. I'll also discuss issues else where but usually a lot of helpful information gets lost if it's not organised, so I prefer the issue tracker :).

    Beta testing
    If you are interested in beta versions and want to help test new features you can find the appropriate links here There is also some discussion in SD Maids G+ community.

    Translations
    If you want to help translate look here: SD Maid @ crowdin.com
    Thank you!

    Help document
    See sdmaid.darken.eu/help

    Privacy
    See sdmaid.darken.eu/privacy

    XDA:DevDB Information
    SD Maid - System Cleaning Tool, App for the Android General

    Contributors
    Dark3n

    Version Information
    Status: Stable
    Current Stable Version: -
    Stable Release Date: 1969-12-31

    Created 2014-06-02
    Last Updated 2017-08-15
    78
    How to help me troubleshoot your issues

    Please see here for instructions on how to best report bugs:
    https://github.com/d4rken/sdmaid-public/wiki/Reporting-a-bug
    31
    Weekend beta v4.3.0 brings a truckload of core improvements.

    Here are the links if you just want to dive in:

    http://sdmaid.darken.eu/download
    http://sdmaid.darken.eu/changelog
    http://sdmaid.darken.eu/issues

    Some notes:
    • Tools will now display 'allocated size' instead of 'apparent size'. Allocated size is the size an item actually takes up on your storage (i.e. a 1 byte file actually uses 4096 byte on storage). Apparent size is a files length, how large the file itself tells us it is (i.e. a file may say it is 8096 byte long, but actually only takes up 4096 byte). A big source for discrepancy between sizes are caused by "sparse-files", these are files that contains a lot of 0000000. If the file system supports it, a sparse file of length 1GB could be saved on a 1MB storage. I think we are mainly interested in size on our storage (allocated size), not how much data something uses when sending it over network (apparent size). This will be most noticeable with the AppCleaner (which will show larger amounts because of many small files) and the SystemCleaner (which will show smaller ammounts, due to thumbnails often being sparse files). The Explorer will show both sizes if they differ, format 'allocated size (apparent size)'.
    • SD Maid now ships with toybox instead of busybox. Toybox is smaller and it fixes an issue I had with busybox. It's debatable whether toybox is faster, but looking it's code it is at least a lot leaner. Toybox is also something that all future Android versions will ship which gives us a lot of room for good compatibility on future Android ROMs (e.g. if we have to use the system toybox binary instead of SD Maids own). Busybox was not installed in most ROMs. Why not both? SD Maid is now compatible with both toybox and busybox, and will fallback to a busybox on your system if that is what it takes to run without issue on your device. Maxium compatibility :)!
    • If you have root SD Maid will no longer ask for secondary storage permission. There were too many problems with people on chinese (rooted) ROMs that did not manage to grant the permission. You can still grant it manually via advanced settings. In theory, i thought performance should be better with secondary storage permissions through the storage access framework, but I couldn't actually measure it. ¯\_(ツ)_/¯
    • You will probably never see the 'BUSYBOX error' page again because this only happens with root and SD Maid will now give up root if it would otherwise mean showing the error and giving up.
    • AppControl doesn't load app sizes by default anymore and is thus much faster. Also has improved filtering options (right side drawer).
    • The tool "Biggest" is now called "Storage analyzer" and has been completely rewritten.
    • Explorer now supports unpacking any type of 'zip' files (.zip, .apk etc) (without root for now).
    • The LastModified tool is gone (bye!), and the Searcher now has options for minimum and maximum age (hi!).
    • There is a new (better?) clutter reporter tool which uses GitHub. Let me know how it works and what I can improve, clutter reports is what gets us closer and closer to a 100% detection rate.
    • Besides dozen of bugfixes, there have also been multiple core changes that attempt to improve performance of SD Maid by reusing objects and making data lookups faster.
    • Not that you can see it, but many of the changes made it also a lot easier for me to better write unit tests for modules of SD Maid :cool:

    All unit tests, I currently have, passed, but due to the amount of changes and changes to the core structure, I expect a few bugs, so this is a beta only release. Catching them and adding more tests is what a beta is for though, right :)? (give the issue tracker some love!)
    28
    I made some good progress on the weekend so SD Maid v4.10.0 is here.

    This update is dedicated to the duplicates tool and a beta-only release.

    Let's start with the biggest change: The previous autoselection dialog is gone and SD Maid now performs an automatic selection based on a set of criterias you can adjust. So now you press the autoselection button and it just happens.

    The previous dialog allowed you to select one and only one type of criterion to select files by. There isn't really a right and a wrong way to do that, but based on many mails I received there is certainly a popular preference. I've put these preferences as "defaults" into an extra screen (check the option menu) which you can adjust.

    Currently we have the following defaults:

    - Priority 1: Media Provider, try to keep files that are indexed by the Media Storage app and try to delete those that are not indexed. The most common type of support mail I get is people complaining that SD Maid deleted their images, because they only look in the gallery app, they think SD Maid deleted them all, but the remaining copy is just in a space that is not indexed.

    - Priority 2: Storage location, assuming the user has an extra sdcard, try to keep the files on the sdcard and delete the files in internal storage. The assumption is that the user always wants to free space on internal storage.

    - Priority 3: Path nesting, we prefer to keep shallowly nested files as those are easier to find and access.

    - Priority 4: Modification date, we prefer older files because we assume that the newer file is an unwanted copy. E.g. older picture comes from the camera app, while the newer picture is a copy from an instant messenger app.

    I'm looking for feedback whether you think this is the optimal default setup.

    You can also find these details in the wiki: https://github.com/d4rken/sdmaid-public/wiki/Duplicates

    The second new feature is "pruning media storage references". It's a not too rare occurence that apps show empty/grey thumbnails for image files that have been deleted, because the media storage database still contains a reference. SD Maid will now check the database for references to images deleted by the duplicates tool and then delete those references.

    There have also been various changes to the user interface. I'm slowly changing some of SD Maids core UI architecture to allow for a more responsive UI interaction. The duplicates tool is just the first tool getting this treatment. The UI should lag less on low end devices and it should also no longer freeze when running selection on thousands of files. Play a bit around with the autoselection, using single click/long click on items and let me know how it goes.

    I've also added a box that shows the task result prominently. Task results were previously rather hidden away (navdrawer, startpage, notifications) and you couldn't easily view them in the actual tool they belong too, which is a bit backwards, isn't it? I plan to add this "task result box" to other tools too. With more space to display infos we can then also make the result messages a bit more detailed.

    Some texts such as the selection criterion explanations are not translatable yet as I'm looking for your feedback on the wording. Is it clear what each option? Please let me know.

    Oh and the duplicates settings have been moved into their own file and gotten a "reset to default" option, once the other tools get this we can finally have a nice and clean backup option for settings :).

    There have been a few other changes, but I think this is enough wall of text. Check the changelog ;).

    http://sdmaid.darken.eu/changelog
    http://sdmaid.darken.eu/issues
    http://sdmaid.darken.eu/download
    28
    v4.10.1 is out.

    I've fixed reported crashes (thx @IronTechmonkey ) and spend time rewriting quick access and other progress related feedback to improve performance. In some case there were multiple dozen callbacks per second which just wasted UI resources. I've limited this to ~70ms update intervals which is about the lower edge of delay at which humans can notice motion.

    Using ConstraintLayout I've also made several UI hierarchies flatter which should also improve performance when redrawing elements to display progress updates.

    Now that the duplicate criteria screen no longer crashes, I'm looking for some feedback on the texts/wording of each option before they are made translateable.

    http://sdmaid.darken.eu/changelog
    http://sdmaid.darken.eu/issues
    http://sdmaid.darken.eu/download