yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Dark3n:
I wasn't happy with the name "Biggest", it didn't translate very well either. Future updates will enhance the tool a bit further where "analyzer" will fit even better (think file type analysis etc).

The current code of the Storage Analyzer tool can no longer scan arbitrary pathes. Each scan starts with a root element, a "Storage".

Currently it loads the storages for location SDCARD, DATA and SYSTEM (if enabled in settings).

More locations can be added, but I think the current ones already cover everything that is interesting.

You can see the detected locations in the debug log (here is also an incomplete list: https://github.com/d4rken/sdmaid-public/wiki/Systemcleaner#location), but many of those locations are already covered, i.e. SDCARD covers PUBLIC_DATA,PUBLIC_MEDIA etc.

The initial load only loads the storages, clicking a storage then starts a scan of that storages file tree. After that the result is cached so you can quickly switch between multiple storage file trees. Pressing the scan button while in a subdirectory only refreshes that particular sub-tree (kinda proud of that :o), which is necessary if you delete item in a sub-tree and need to update all parent elements.

Storage of type PORTABLE needs some improvement, which would be something like USB-OTG. I think this works if the device uses something like Chainfire's USB OTG mount, but does not work on storages that mount USB-OTG devices without root. Like on Android 7.0 where the stock file manager pops up with a notification.

The issue here is that the whole content has to be read through the Storage Access Framework (SAF) which SD Maid can't do at the moment.

I have the architecture for that already finished, meaning all tools work unware of how the data is actually read, just don't have any code yet to do it via the SAF as the only case this is relevant at the moment is USB-OTG on 7.0 without root.
[Android Apps and Games] Alexey71:
https://youtu.be/spEsGnM0RCI
[Android Apps and Games] Dark3n:
A video also works. :good:

https://github.com/d4rken/sdmaid-public/issues/525

I think it happens because the last page that was open (and SD Maid will try to restore) was hidden.

Can you confirm that it only happens if the currently open page is disabled?
[Android Apps and Games] slayer101234:
i have a question if app cleaner needs pro and it does is clean app cache which we also can clean cache in android without any 3rd party apps :D then why it scans for app cleaning :confused: :p
[Android Apps and Games] Dark3n:
https://github.com/d4rken/sdmaid-public/wiki/Appcleaner and yes it needs the pro version.
[Android Apps and Games] Alexey71:
I send logcat to email support@darken.eu
[Android Apps and Games] Dark3n:
Thanks, I was wrong, it's not coming from the code that restores the last page.

It's coming from Googles support library:

https://code.google.com/p/android/issues/detail?id=222597

Fixing this will probably require me to wait until they release a new version :(.
[Android Apps and Games] Genus123:
Good application thanks!
[Android Apps and Games] MrWasdennnoch:
Welcome to XDA! We have a thanks button to keep the threads clean ;)
[Android Apps and Games] kyzn:
Great app. Long time fan. The only cleaning app tool I trust to do what it promises, get rid of junk files. Thanks dev.
[Android Apps and Games] Oswald Boelcke:
Thanks very much for your dedication, elaboration how you drive SD Maid intellectually further, and the insights into the "miracles" of Android. Great job, and I've to admit I love your application.

Yesterday, I installed v4.3.4 and have already played quite a bit. No issues at all on my device (for system configuration, please check the hidden part of my signature). No problems with storage or mount detection. I'm going to replace Chainfire's SuperSU v2.76 by PHH's systemless SuperUser (r259) in a moment. Reporting back if any issues occur.

Edit (2016-09-25):SD Maid v4.3.4 is also running without any problems when root management is provided by PHH's systemless SuperUser (r259).
[Android Apps and Games] Dark3n:
v4.3.5, just fixes ¯\_(ツ)_/¯.

This mainly fixes this UI related bug:

https://github.com/d4rken/sdmaid-public/issues/525

I thought it was a rare issue, but it's not, so the user impact was to huge to leave it for the next update.

http://sdmaid.darken.eu/download

http://sdmaid.darken.eu/changelog

http://sdmaid.darken.eu/issues﻿

The mount/storage detection issue I talked about v4.3.4 seems to be fixed. Yay :)!
[Android Apps and Games] SUPERUSER:
every time I let the app run its cleaning sequence it unmounts my sd1 external sdcard? In settings it says 0b. I must unmount and mount the sdcard from settings app to have the sdcard working again.

Help?
[Android Apps and Games] Dark3n:
[MENTION=5084869]SÜPERUSER[/MENTION] Sounds like a hardware issue, the kernel may unmount the storage in case of filesystem errors. SD Maid trying to read files could then cause this behavior.
[Android Apps and Games] Dark3n:
v4.3.5 is now in staged rollout.

Binary setup is the gift that keeps on giving though:

https://github.com/d4rken/sdmaid-public/issues/528

No huge issue, so I'm not delaying the rollout.
[Android Apps and Games] Dark3n:
SD Maid v4.3.6 says hi! :)

http://sdmaid.darken.eu/download

http://sdmaid.darken.eu/changelog

http://sdmaid.darken.eu/issues﻿

Notes:

* The CorpseFinder now has a new filter for `<sdcard>/Android/media`. It's by default off and it would be good if you could turn it on and let me know about how it works for you.

* Some Nougat devices with root had some trouble with the binary setup, this should be fixed now.

* Updated the toybox in SD Maid because to fix issues with getting sizes >2GB on 32bit devices.

* A case of false-positive duplicate results is fixed now, thanks to user Chris, who reported it and provided me with debug logs. The issue can happen on rooted devices where SD Maid uses an existing system busybox, and that busybox randomly says `Segmentation fault` and crashes.

This is a release canidate and can go into production if nothing comes up.

I think small regular updates are good, but sometimes changes go deep and draw a long tail of other required changes behind them, what do you think?

Anyone using

BusyBox v1.24.2-osm0sis (2016-03-30 21:58:04 ADT) multi-call binary.

might want to look into why it can randomly crash with segmentation faults... :confused:
[Android Apps and Games] KOLIOSIS:
Small/frequent updates would seemingly have a big advantage vs larger/less frequent updates in the troubleshooting of unforeseen issues.

I say keep 'em coming' as frequent as you wish. :good:
[Android Apps and Games] SuperSimian:
Small regular updates seem like the better alternative for me, bugs may be easier to pinpoint if they arise, thats just my opinion.
[Android Apps and Games] Oswald Boelcke:
My personal opinion: Release an update when you believe you and the code are ready! For beta versions provided by you via xda, I think you might go as fast and often as you like. Everybody here is happy to support you in testing, and the guys have sufficient knowledge not to cry if something doesn't work as expected yet. Final versions released via Play Store, I would only make available if definitely required (e.g. for security reasons) or major "overhauls". There are enough idiots crawling through the play store who are crying about too many updates too frequently and in turn dragging your rating down.

Installed v4.3.6 last night; running very well (so far); however, not using that BusyBox - sorry. `<sdcard>/Android/media` is turned on but no corpses were available yet. Reporting back after some usage.

Last but not least, even if I'm repeating myself: Great job! Well done!:good:
[Android Apps and Games] Dark3n:
v4.3.6 has been promoted to "production" :).
[Android Apps and Games] Dark3n:
Would really love to have a norwegian translation, anyone from Norway :)?
[Android Apps and Games] B3311:
I can do it Dark3n - bit busy with life at the moment, but I'll start this weekend?
[Android Apps and Games] bgdrls:
Can you add shortcut or widget option to AppControl?
[Android Apps and Games] Dark3n:
Yes.
[Android Apps and Games] Dark3n:
SD Maid v4.3.7 is now available in the beta channel.

- Improved clutter matching and definitions

- Improved hidden-caches AppCleaner filter

- Scheduler fixes (2day interval issues and restoration after long shutdown times)

- Fixed double tap to exit

- You can now add a shortcut for AppControl to your launcher ( [MENTION=5957557]bgdrls[/MENTION] )

- Work towards getting detection of running apps functional again on Android 7.0 (see https://github.com/d4rken/sdmaid-public/issues/527).

http://sdmaid.darken.eu/download

http://sdmaid.darken.eu/changelog

http://sdmaid.darken.eu/issues﻿
[Android Apps and Games] Dark3n:
SD Maid v4.3.8, more improvements.

The AppCleaner now also processes items found through the clutter database which are marked as `common`. These are items we can attribute to a specific app, but their name is so common that it is basically guaranteed another app also uses the same folder name, e.g. "backup", "ebooks", "skins" or "recordings". Because these are so common we don't use the known path<>app relation to detect corpses or removing them when uninstalling through AppControl as the chance for false positives is too high. Excluding them from the AppCleaner was overzealous though as any `common` item will still have to match a filter for expendable files.

CorpseFinder, SystemCleaner and AppCleaner will now also try to show file previews for list items in their details pages and tapping previews icon will now try to open the file in a compatible app.

http://sdmaid.darken.eu/download

http://sdmaid.darken.eu/changelog

http://sdmaid.darken.eu/issues﻿
[Android Apps and Games] pakitos:
Hey [MENTION=608746]Dark3n[/MENTION] How does the Crowding updated words work?

I think I found a couple of words from the "old code" that are not right and wanted to update them but Im not sure if it messes with the current built and if you will even notice lol
[Android Apps and Games] MrWasdennnoch:
Just type your new translation on Crowdin and hit suggest, it screws nothing up, but it depends on the votes which translation gets exported (the owner can also manually select (by deleting the wrong one)). You can also add an issue on Crowdin with the reason that the current translation is wrong.

However if you are talking about the original english strings you have to contact him (you just did), it isn't quite clear from what you said.
[Android Apps and Games] pakitos:
Yeah Im talking about the translated ones, the ones that are in spanish. I saw some that were translated by Dark3n lol and some in some cases the syntax is not proper.
[Android Apps and Games] MrWasdennnoch:
I don't know if he is Spanish, but he could also be named as the translator because he imported the strings from Github when he created the Crowdin project.
[Android Apps and Games] Dark3n:
[MENTION=7083389]MrWasdennnoch[/MENTION]'s answers are spot on, [MENTION=5420315]pakitos[/MENTION].
[Android Apps and Games] pakitos:
Ok, so Im leaving them like that...
[Android Apps and Games] MrWasdennnoch:
You can correct them if they are wrong.
[Android Apps and Games] pakitos:
That was the point...

I have been the app translator for the last 2 years or so and I wanted to make it even more accurate but I did not get the answer I needed so I guess it is ok to leave it like that. My name is not even in the "helpers"...
[Android Apps and Games] Dark3n:
I don't understand your issue. Which answer did you not get?

The "helpers" string is part of the translations on Crowdin, you just have to add yourself to the list.
[Android Apps and Games] dreamland2000:
NVM i found that by wiping the data etc of the app it seemed to have corrected itself. So not sure if restoring a back up of the app on Android N causes issues or whether it was just a one off but the problem seems to have been sorted now.

[MENTION=452425]Darken[/MENTION] I.ve just updated to the latest Android 7.1.1 beta and tried to run SD Maid but I get an error saying that I am missing Busybox and SD Maid closes. I have run TiBu and that has no issues and I think that also uses Busybox?? Does anyone have any ideas what it could be? I am rooted with Magisk + phh-superuser-magisk-r259, all other root apps work and I can grant root access to this app but when it runs I get the error:

A necessary file can't be setup. Proceeding is not possible.

This is often caused by incomplete root access. Please check your device setup.

busybox/toybox can't be set up.

SD Maid v4.3.8(40308)

Build.CPU_ABI: arm64-v8a

Build.CPU_ABI2:

Build.SUPPORTED_ABIS: [arm64-v4a, armeabi-v7a, armeabi]

Build.SUPPORTED_32_BIT_ABIS: [armeabi-v7a, armeabi]

Build.SUPPORTED_64_BIT_ABIS: [arm64-v8a]

google/bullhead/bullhead:7.1.1/NPF10C/3347772:user/release-keys
[Android Apps and Games] Dark3n:
[MENTION=4124051]dreamland2000[/MENTION] Probably caused by some toybox/busybox function not working with root access. SD Maid is a bit more picky upfront than other root apps, so it fails upfront and we don't run into unexpected issues later.

Please record a debug log, so we can see what failed.
[Android Apps and Games] dreamland2000:
Thanks for the reply. The app is working fine now after clearing data but I'll see if I can recreate the issue and get a log from it.
[Android Apps and Games] Dark3n:
On further thought:

Normally if SD Maid fails to setup it's busybox due to some issues ("restrictions") when testing certain applets with root, it automatically relinquishes root (assuming you have the latest SD Maid version), to at least run without root.

If you saw the error screen this means that it also didn't work without root. Likely failed during binary extracting and or setting of its permission. It already tries to correct wrong permission on its own files. Maybe the backup restoring did not set the user:group ownership correctly which could explain why SD Maid couldn't fix it itself.

The only way to find out is to reproduce this though and record a log.
[Android Apps and Games] naifaharsy:
I used this app from eclair until now..thanks
[Android Apps and Games] raptorddd:
Guys how can i stop stadistics from running. Thanks
[Android Apps and Games] FlyingHorseGA:
Go into Settings -> Statistics and change the limits for "Statistics" and "History" to -1 This will disable them IIRC.

HTH :)
[Android Apps and Games] polo_naref:
I have the last version 4.3.8, and have the same issue. Is it a bug, or am I the problem ?
[Android Apps and Games] Dark3n:
[MENTION=7811386]polo_naref[/MENTION], At least no bug that I know of.

The scheduler is where it has always been in SD Maid v4:

https://github.com/d4rken/sdmaid-public/wiki/Scheduler
[Android Apps and Games] Oswald Boelcke:
I assume [MENTION=7811386]polo_naref[/MENTION] and [MENTION=2041536]thewizardoz[/MENTION] simply didn't tick scheduler in the overall settings i.e. it doesn't appear in the list. Most likely, he found the scheduler in the settings itself where you select the "skip on low battery" and "only on charger" options.
[Android Apps and Games] Dark3n:
That would mean that they hid the scheduler (SD Maid > General Settings > Show/Hide Tabs) though at some point before as there are no hidden tabs by default?
[Android Apps and Games] polo_naref:
Ok, my bad. You're right, that's exactly what happened. :rolleyes: All is alright know. Great app by the way !
[Android Apps and Games] PolluxDevelopers:
works, Lenovo A830
[Android Apps and Games] Oswald Boelcke:
Glad about your feedback and that my hint (or actually assumption) was a bit of help. If this was really the case I don't mind if you hit the thanks button in the bottom right corner of the post.
[Android Apps and Games] pakitos:
Updated every misspelled word in the spanish translations and added opening marks for questions and exclamations ( ¿ ¡ )

Paco Inurreta
[Android Apps and Games] Dark3n:
Ah now I understood your changes. Didn't know about this... Thanks for your contributions.

TIL: https://en.wikipedia.org/wiki/Inverted_question_and_exclamation_marks
[Android Apps and Games] pakitos:
No problem. That is why I was asking the other day.
[Android Apps and Games] Dark3n:
Beta v4.4.0 with a few new features!

- The explorer will show which directories are mount-points if you have the option 'Owner research' enabled.

- You can now share the results from SD Maids search tool.

- The sort mode for the applist in appcontrol can now be changed from the right-side filter drawer instead of settings.

- Autoselection for duplicates now offers the choices 'Keep on primary storage' and 'Keep on secondary storage'.

- You can enable the location `/cache` in the storage analyzer options.

- I've remade the whole statistics section. Instead of listing each file in a list, it will now list each event and for each event you can view which files (or apps) have been affected.

- Fixed a bug that caused duplicates not be found across different storages (i.e. one on primary storage and one on secondary storage).

http://sdmaid.darken.eu/download

http://sdmaid.darken.eu/changelog

http://sdmaid.darken.eu/issues﻿

Side note:

Is anyone using SD Maid on a rooted Pixel device? Any feedback?
[Android Apps and Games] Technical:
1. I wish we can see an import/export settings feature. The app is highly configurable and I'm sure I will be very sad if I can't restore its settings via TitaniumBackup.

2. I'm not being able to find which databases are failing to be compressed. There are tons of them (all green) and can't find 2 of them that can't be managed by SDMaid. Maybe a sort option? :o
[Android Apps and Games] Dark3n:
1:

Exclusions and custom filters can already be exported.

Settings import/export would be easy if I wouldn't get **** for resetting everyone settings to implement that. But I would, so I would have to write code to migrate all old settings (which kinda sucks) so it's low on my priority list. If there is a ticket for it on github feel free to add your thoughts.

2:

Hm maybe, like sort by result states/name? From options? Ticket :)
[Android Apps and Games] Technical:
How?

Yes, state/name sorting, not from options, but from the list itself. Of course, if it is easier to implement it via settings, it'll be ok.

Ticket: I would suggest you put a link to the GitHub page in your signature ;)

Each time I need to go there, I need to search for the project.
[Android Apps and Games] Dark3n:
Select item by long pressing it, choose export from the context menu.

If that's not obvious how can I improve this (honestly)?

If i put the link in my signature you search for a post from me to use the link in my signature everytime? The github links are all over SD Maid, fairly easy to remember ( sdmaid.darken.eu/issues ) , in every update post and typing "SD Maid github" or "SD Maid issues" into google also gives you the correct page. Be reasonable. ;)
[Android Apps and Games] IronTechmonkey:
The OP of this thread is a much more constant place than are individual posts and there is already an expectation (in fact an XDA rule) that we read the OP... which would already be the most logical place to look for such information even if there was no such rule. It's hard to see what would be more practical or easy than that.

[EDIT] Deleted part of post that was in response to something I failed to understand.
[Android Apps and Games] Dark3n:
[MENTION=5119654]IronTechmonkey[/MENTION] The "If that's not obvious how can I improve this (honestly)?" was referring to the option of exporting/importing exclusions in the app.
[Android Apps and Games] nov01:
logs

[MENTION=608746]Dark3n[/MENTION],

Hello!

I just found a problem and I think that you might be the best person to resolve it, and the perfect man to win the benefits from it.

When I'm out listening to music through Bluetooth headphones and my phone making giant log named :

btsnoop_hci.log which grew and took all my free place until at one point my internal storage is totally full.

Usually when you notice that the space has decreased just run sd maid and she fix it all. Unfortunately in this case she fails to find the file and it remains, and the device remains full of sh*.

So my suggestion is when you do the next update to add and delete this (as far as I read) spyware log.

Ps it is situated in:

Internal storage/Emulated/0/Android/data/ .. btsnoop_hci.log with size about 500 MB

Thanks!
[Android Apps and Games] Dark3n:
It's not spyware, it's a debugging option in the developer settings.

I agree, this is something SD Maid should cover and already does ;). The SystemCleaners log-file filter should match this.

Though for accuracy, because we can match this to a specific app, i.e. "com.android.bluetooth", this is also something the AppCleaner should pick up.

Committed for the next update.
[Android Apps and Games] Dark3n:
SD Maid update v4.4.1 gets the previous v4.4.0 release ready.

Minor UI polish, few crash fixes.

http://sdmaid.darken.eu/download

http://sdmaid.darken.eu/changelog

http://sdmaid.darken.eu/issues﻿
[Android Apps and Games] dingdong3000:
I'm new into using SD Maid can anyone be so helpful to let me know what option is the best to keep when clearing out duplicate section?
[Android Apps and Games] Oswald Boelcke:
Being new to something at XDA automatically means by forum rules to use the powerful XDA search engine and in any case to read the OP!

The OP contains a link to @Dark3n's very good "help document"! Please allow me to phrase out of this in regard to your question:
[Android Apps and Games] nov01:
This is how it looks after about 2 hours out and listening to music with my Bluetooth headset
[Android Apps and Games] Vagelis1608:
Considering how SD Maid works, you would have to run SD Maid every time to delete it.

But that doesn't seem practical.

I would set up Tasker, or a similar app, to check its size at a specific interval and delete it if it's too big.

P.S.

Don't get me wrong.

I like SD Maid, I have been using it since v2 and I have bought the Pro version. I'm also the proofreader for the Greek translation.

I'm not "advertising" another app, just saying that it's impractical, in this case.
[Android Apps and Games] Dark3n:
Or deactivate the logging.

You didn't mention that the logs are rotated ("btsnoop_hci.log.last") :|
[Android Apps and Games] nov01:
I haven`t noticed it before and that is why i showed it so you can be more prepared for your successful work on it!
[Android Apps and Games] Dark3n:
v4.4.1 is now considered stable and in rollout to production.
[Android Apps and Games] Citizen_Snips:
[MENTION=608746]Dark3n[/MENTION], can SDmaid decompile / recompile apps? Can it be used in any way, shape or form as a alternative for an mobile APKtool?

Someone kept telling me it could, which I know it can't. Just wanted to link the developers reply. :p
[Android Apps and Games] pakitos:
[MENTION=608746]Dark3n[/MENTION]

I just reflashed my tablet and reinstalled SD Maid with its Pro Unlocker and Im trying to disable Autostarts but no matter what app it always says that it failed.

I'm not sure it is related but I just rooted and did the scrip to remove Kinroot and install SuperSU using the terminal. Everything seems to be working fine but SD Maid.

I tried reinstalling the app with the same result.

It is a Lenovo Tab 2 A7-20F running Kitkat 4.4.2
[Android Apps and Games] Dark3n:
It can't. SD Maid currently only modifies the state of an installed apk (enabling/disabling components). The .apk file itself is not modified.

APKtool and SD Maid have different purposes. I don't think decompiling/recompiling will ever be part of SD Maids feature set, it's outside its scope and would be better suited for a sepperate app.

Record a debug log and find out :).
[Android Apps and Games] pakitos:
That is super weird. Yesterday I tried everything untill I installed another autostart manager and disabled them.

I tried the debug log but now they were able to disable/enable. I should have done the debug before but I was annoyed at this, maybe next time it happens lol

Thanks anyway!
[Android Apps and Games] Technical:
After running a quick access + cleaning, where could I find a log of the cleaned/deleted files?