yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Dark3n:
[MENTION=4888288]junk031[/MENTION]

Internal Whitelist (14 items):
com.android.keyguard
com.sonyericsson.android.mbt.power
com.sonymobile.smallapps.timer
com.sonyericsson.extras.liveware
com.sonymobile.superstamina
com.android.systemui
com.android.providers.calendar
android
com.sonyericsson.secureclockservice
com.sonyericsson.organizer
com.sonyericsson.android.wakeup
com.sonymobile.androidapp.ginga
com.sonymobile.provider.tasks
com.sonyericsson.android.mbt.powerinstrumentation

User Whitelist (1 items):
-1

And then

Suppressed alarms: 391
...
RTC_WAKEUP #389: Alarm{821c55b type 0 when 1487629620820 eu.thedarken.sdm}
tag=*walarm*:eu.thedarken.sdm.ACTION_SUBMIT_EXTERNAL_TASKS
type=0 whenElapsed=+4m6s74ms when=2017-02-20 23:27:00
window=-1 repeatInterval=0 count=0
operation=PendingIntent{3fe4f1f8: PendingIntentRecord{1404c6d1 eu.thedarken.sdm broadcastIntent}}
standalone=false
...

So it looks like there is some kind of "whitelist" going on and SD Maids alarm (among a couple of hundred others) is being supressed by the systems alarm manager.

I can't see the whitelist or the supressed alarms output on my pixel.

Some googlefu points towards a "Stamina Mode", seems to be a Sony thing.

[MENTION=7460114]Itachi2016[/MENTION] That's a good idea. If the device screen is on, skip the reboot. Can you make a ticket for that on GitHub?
[Android Apps and Games] krule031:
As for Stamina Mode, i enable it very rarely, so idk if that is the problem. I'll play around with it to see if there's something with it.

EDIT: I set the timer to clean at 5:00am every 2 days, and it worked. It cleaned, the timer was not reset to zero, and I got a notification that it cleaned. So, when setting 1 day it doesn't work I guess.
[Android Apps and Games] Itachi2016:
done,hope to see it soon.

thanks
[Android Apps and Games] Dark3n:
No limit like that in SD Maid or stock Android, the minimum interval is theoretically around ~5min.

That's not correct. Can't reproduce though. SD Maid v4.6.3?
[Android Apps and Games] Dark3n:
If it happens everytime, can you record a debug log?

https://github.com/d4rken/sdmaid-public/wiki/Reporting-a-bug#debugrun-log
[Android Apps and Games] krule031:
Well, I don't know what to say now xd

I guess I'll leave it to clean every 2 days :fingers-crossed:
[Android Apps and Games] Dark3n:
You guys probably noticed v4.6.4 appearing.

It's mostly internal changes to make tools better testable.

Historically SD Maids "Worker" classes contained all of the juicy code which was just called directly. With SD Maid v4 I've moved the whole app to a task<>taskresult based system which allowed for more modular and UI independent behavior. Now further into SD Maid v4 I want to improve testing and reduce side effects. Large classes containg lots of code are prone to sideeffects and bad to test, so I'm moving the task processing code into extra modules, one module for scanning, one for deleting, one for disabling apps etc. (per worker).

This allows me to give each module mock objects such that I can control what data they get, and then check the output (i.e. unit-testing).

For this update I refactored storage analyzer code towards this. Refactoring was quick, but writing unit-testing code was not, especially testing file operations is quite cumbersome, so I've spend most time writing tooling to make testing easier, e.g. classes to help me mock files for search/deletion etc.

Furthermore I've improved the clutter matching system.

Instead of defining "/sdcard/AppDev"<>"com.appdev.someapp", "/sdcard/AppDev"<>"com.appdev.someotherapp" etc., we can now just create a clutter marker "/sdcard/AppDev"<>"com.appdev.*" (regular expression).

This reduces the chance for false positives as now any new app matching this pattern would automatically be matched correctly instead of requiring a manual database update, (i.e. if the dev publishes a new app using the same pattern). The idea is that when the clutter matching system is loaded, SD Maid checks regular expression against the packagenames of all installed apps. If there is a match, a clutter marker matchedapp<>definedpath is created, but if there is no match, then we use the regular expression as owner. As a regular expression contains symbols that are not allowed in package names, it will never match an installed apps and thus the marker defines a corpse (which is what we want). We can then just display the regular expression as owner name in tools like explorer or corpsefinder :).

http://sdmaid.darken.eu/download

http://sdmaid.darken.eu/changelog

http://sdmaid.darken.eu/issues﻿
[Android Apps and Games] Dark3n:
v4.6.4 has been promoted to production and is now in rollout.
[Android Apps and Games] krule031:
[MENTION=608746]Dark3n[/MENTION]

Just a heads-up, scheduler is working normally now. I don't know what was the problem, but now it cleans like it should, every day at 5am, as I set it to do.

Just wanted to let you know :)
[Android Apps and Games] Oswald Boelcke:
Referred to the SD Maid thread. You're going to find a superb tutorial here. Personally, I'm fascinated by SD Maid's performance and the extreme "activeness" of its developer. This is a very pro-actice thread, too. Actually, I'm also using all beta's, maybe you like it also.
[Android Apps and Games] jlb1959.01:
I've been using SD for many years and until yesterday I had no idea some of the things it can do..I can control start up?,that surprised me,I looked into it a little but I'm still lost..sorry for my ignorance,I do not want to mess up my phone,I'm rooted ,on xdabbeb 3.1,, I'm trying to control my start ups..
[Android Apps and Games] Oswald Boelcke:
You can manage the autostart for each application. Please check in this part of Dark3n's Wiki here under "Receiver Manager":

https://github.com/d4rken/sdmaid-public/wiki/AppControl

@Dark3n: The link in the OP to the help document (your Wiki) isn't working anymore.
[Android Apps and Games] jlb1959.01:
thank you,appreciate all your help...
[Android Apps and Games] Dark3n:
Thanks, fixed.

I still own "thedarken.eu" but most redirections no longer work since i redid some webserver stuff and moved everything to be based on "darken.eu", shorter is better :).
[Android Apps and Games] Dark3n:
Beta v4.6.5 is available.

Lots of little improvements and some internal code refactoring to make room for future changes

I've refactored root related code, added tests and changed some structures that will make it easier to move it into an extra module. I fancy the idea of open sourcing a few root related parts of SD Maid as I think it would help the root app community to have better tools.

Moved analytics tracking to full encryption (yay letsencrypt) and updated it to include a few contributions I made (see Piwik for Android 2.0 on GitHub). Next step is rewriting SD Maids update check, the more encryption the better...

Also rewrote the code related to enabling the "Pro" features. Instead of a "isPro()", it's now more of a "hasFeature(X)". I've done some overall consolidating of pro/upgrade related code. I want to test different ways of upgrading SD Maid, maybe making it optional to actually install the unlocker app. I would prefer IAPs over the unlocker concept, but changing this now isn't easy (and when SD Maid was released IAPs were not available). I would love some way to "grandfather" in the people with previous purchases. But I don't have a good solution yet because Google doesn't offer a way access to purchase related data via API... For now I'm just experimenting a bit. It certainly doesn't hurt to improve SD Maids architecture, even if we don't use it yet.

Good architecture makes us future proof :).

In case you didn't notice, Android O was announced ;). I've got my eye on it, but didn't do much testing yet. I've read through the changelog and created a few tickets already though. A few things are already fixed in this update. If you are already using Android O and notice issues that are not on the tracker yet, please make a ticket.

http://sdmaid.darken.eu/download

http://sdmaid.darken.eu/changelog

http://sdmaid.darken.eu/issues﻿
[Android Apps and Games] dreamland2000:
I have noticed while I've been testing android o that running corpse finder detects almost all the apps installed {around 3gb) worth. When I go into the individual lines it shows its deleting everything from data/app/...
[Android Apps and Games] Dark3n:
[MENTION=4124051]dreamland2000[/MENTION] Can you record a debug log of that and make a ticket?
[Android Apps and Games] dreamland2000:
Yeah will do, I'll see if it does it on the updated build from today.

Edit - just added the issue with a log
[Android Apps and Games] Dark3n:
Anyone using SD Maid on Android O on a Pixel/XL and getting the dreaded binary setup error?

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

I'm also looking for 1-2 testers who are using Android O on a rooted devices, to test the corpse matching:

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

Send me a quick mail and I'll give you a test apk.
[Android Apps and Games] Thor™:
Clean and capable app. Cheaper than other root cleaner apps and works much better. It cleaned garbage, which other apps failed to do so. The free version of this app is ad-free, dev is a generous person. Though Clean Master is downloaded more than 700 Million times, SD Maid Pro is the cleanest scavenger when real productivity is taken into account :angel: Every root user must try it once in lifetime.
[Android Apps and Games] Spacemonkie4207:
Could I add an adb command to make it work without root?
[Android Apps and Games] Dark3n:
[MENTION=4467274]Spacemonkie4207[/MENTION] Currently not, and all root functions probably never, but a few AppControl related functions is possible.

You would use ADB to make SD Maid a device owner, giving SD Maid access to these API calls:

https://developer.android.com/reference/android/app/admin/DevicePolicyManager.html

Not sure how much interest there is to work on these:

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

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

There is probably not a lot of people who know how to use adb and are not rooted. Maybe on not rootable devices or warranty etc. though...
[Android Apps and Games] nitrous²:
I have this issue where the corpse finder is unable to delete folders from my MicroSD card. I'd love to provide a detailed log but can't find how. The folders it can't delete are marked with "PUBLIC_DATA" and have a small padlock symbol below. They're all either, 128KB, 256KB or 384KB.

I added the MicroSD card under settings\storage access and additionally all the folders within MicroSD\Android"data" "obb" "media".

My device is a Samsung Galaxy S7 Edge (SM-G935F Exynos).
[Android Apps and Games] Dark3n:
> I'd love to provide a detailed log but can't find how.

https://github.com/d4rken/sdmaid-public/wiki/Reporting-a-bug#debugrun-log

> The folders it can't delete are marked with "PUBLIC_DATA" and have a small padlock symbol below. They're all either, 128KB, 256KB or 384KB.

> I added the MicroSD card under settings\storage access and additionally all the folders within MicroSD\Android"data" "obb" "media".

This sounds like SD Maid doesn't have the correct permission for the external sdcard.

The uri permission dialog in advanced settings lets you add ANY permission independent of whether it is the one SD Maid needs.

Also you don't need to add sub directories, these uri permissions are recursive.

If everything is "standard" on your S7, then I guess you are not giving permission for the correct path, the only other think I can think off would be a corrupt filesystem but that's unlikely.

It's sadly not possible to trigger the setup manually one skipped, so I would suggest you reset SD Maids data and do the setup again, making sure the permission box turns green as seen here:

https://github.com/d4rken/sdmaid-public/wiki/Setup

If you don't want to do that or it doesn't help, then I'll need a debug log.
[Android Apps and Games] novas78:
[MENTION=608746]Dark3n[/MENTION], Thanks for the great app. It works like a charm. :good:
[Android Apps and Games] Dark3n:
I'm getting a few reports that since a few updates ago SD Maid is stuck at "In queue" on unrooted devices. As far as I can tell SD Maid is stuck during root check. Disabling it via the debug menu fixes it.

It would help me a lot if someone with this issue could record a debuglog for me:

https://github.com/d4rken/sdmaid-public/wiki/Reporting-a-bug#debugrun-log﻿
[Android Apps and Games] 24imelqui:
Can you make a toggle to disables boot reciever in app control so it would be easy. Just a request only.
[Android Apps and Games] SuperSimian:
I can't avoid Nova launcher and Gboard's app cache from being deleted, this makes it so Nova has to restart and Gboard needs to re-download suggestions, I've already excluded them from app cleaner but still face this issue.
[Android Apps and Games] justjr:
Just don't use App Cleaner. It will delete your cache and you will have to redownload.
[Android Apps and Games] Oswald Boelcke:
For me, AppCleaner works as advertised. I just tried it with Nova Launcher. The only files, which were indicated and deleted, were files related to Crashalytics. And that fine with me.

I don't use Gboard i.e. no try.

Maybe you can post screenshots of your settings for AppCleaner, and of your selections in the module itself?
[Android Apps and Games] Dark3n:
You can already do that, or do you mean from the main list?

Then the exclusion probably doesn't match. If the exclusion works, the excluded items should not be part of the next scan.

If you are certain that the AppCleaner is doing this it's probably easiest to exclude the two apps by packagename instead of individual files by path.
[Android Apps and Games] justjr:
As u can see, it does delete dictionaries, and files that will be redownloaded or unpacked when u use the apps again. Like the info about cards on clash royale. At least for me.

I think it is intended, so I just don't use it.

Enviado de meu MotoG3 usando Tapatalk
[Android Apps and Games] Oswald Boelcke:
In my personal view, you're blaming Matthias' well programmed SD Maid for poorly programmed applications. How and why do their developers hide heavy downloads into a cache.

I attached screenshots from SD Maids AppCleaner showing e.g. the results of OSMAnd, which carries about 2 GB of offline maps on my device but not in its cache. Same applies to my dictionary dict.cc that has downloaded four languages, total of also about 2 GB - but not into its cache. If I had such apps I'd contact their dev's.

And regarding Nova: I tried again but its settings stick.
[Android Apps and Games] justjr:
In my personal view you are trying to start a feud here, no one is blaming nobody, I don't know about the minor details, but as I said, I thought it is the intended, and as such I just didn't used the app cleaner when I see I'll the 300mb clash royale cache there, cause I know it will be sluggish next time I play it, but still using the app and i love it, mainly the AppControl which is fantastic. Just correct me if I'm wrong and stop taking things personal.

Oh, and thanks for sharing the configuration your using and congrats on your nice choice of apps.
[Android Apps and Games] Dark3n:
The AppCleaner tools purpose is to show the user all files (per app) that can be deleted without grave consequences, meaning expendable files, meaning data that can (and will) be automatically recreated/regenerated/redownloaded if necessary. (tl;dr https://github.com/d4rken/sdmaid-public/wiki/AppCleaner )

SD Maid (or really any app) can't know which cache files are convenient for the user at this moment, if the user just wants "to clean the device a bit", if the user desperate needs space or if the user is trying to fix something.

The clash royales files (at least those visible on the screenshot) are deleted because of the "Default caches" filter which acts the same way as the systems build in cache deletion. <pkg>/cache is the official cache folder for apps.

The GBoard files are deleted because of the "Hidden caches" filter which targets all files that are not in the official cache folders, but could be, it is quite aggressive in some cases, but as long as these are "expendable" files (per above definition) that is intended. In this case SD Maid detected the nested cache dir i.e. "<pkg>/files/cache".

The correct solution here would be to create an exclusion for these files (or apps) (if automatic AppCleaner action is still desired).

edit: Of course it's also reasonable to just manually check the AppCleaner when necessary. If everything is well and there is no shortage of space, then there isn't really a reason to wipe all caches.
[Android Apps and Games] Dark3n:
[MENTION=4807909]SuperSimian[/MENTION] Would still like to hear details about why the exclusions are not working for you. I'm unaware of any issues in that area. It would probably best if you could share screenshots or export the created filters and post them here.
[Android Apps and Games] justjr:
Thanks for the nice explanation.
[Android Apps and Games] SuperSimian:
I'll do so later today :svetius:
[Android Apps and Games] SuperSimian:
My exclusions. I just tried deleting the exclusion and adding it again; problem persists.
[Android Apps and Games] chazall1:
Been Using SD Maid for over a year now.

Great Work.

Thank You
[Android Apps and Games] 24imelqui:
A main lists just to disable boot receiver and a toggle to disable/enable it. Similar to MyAndroidTools.
[Android Apps and Games] Dark3n:
[MENTION=4807909]SuperSimian[/MENTION] The exclusion works for me. Can you show me the files you want to prevent from being deleted via this exclusion?

[MENTION=7232334]24imelqui[/MENTION] I'm still not sure what exactly you are looking for.
[Android Apps and Games] SuperSimian:
That is the only file appearing in the app cleaner, and excluding it from list does not keep Nova from redrawing. I only have 3 other exclusions that work perfectly (including the new one I added yesterday for gboard). I'll keep experimenting..

Edit: I just created a global exclusion for com.teslacoilsw.launcher that also did not work, I can't seem to find the cache for nova and and how to keep from being deleted.
[Android Apps and Games] Wesley_NL:
[MENTION=608746]Dark3n[/MENTION]

i have a question i purchased the sd maid pro a few months ago and now i have to purchase it again ?
[Android Apps and Games] SuperSandro2000:
Just install the app from the play store.
[Android Apps and Games] Wesley_NL:
as i stated , play store ask 3 euro again for pro... thats why
[Android Apps and Games] SuperSandro2000:
Did you do a refund? If you uninstall the app in the refund period you get a refund.
[Android Apps and Games] kyzn:
How many hours did you keep SD maid pro before uninstalling it?
[Android Apps and Games] Dark3n:
[MENTION=3168239]Wesley_NL[/MENTION] Please check the FAQ: https://github.com/d4rken/sdmaid-public/wiki/Frequently-Asked-Questions#sd-maid-pro

and if that doesn't help you PM/Mail me your transaction id and I'll check.

Every purchase on Google Play has a transaction ID with which developer can look it up. Even failed purchases or declined purchases have such an ID. You get it via mail but it's also all visible here: https://payments.google.com/payments/home#oneTimePurchase
[Android Apps and Games] jerryn70:
Not working in my samsung galaxy s4 lollipop.

I tried clear data and reinstall but its not working. It always showing scanning.....
[Android Apps and Games] Dark3n:
[MENTION=4546389]jerryn70[/MENTION] Please provide a debug log and a more detailed description.
[Android Apps and Games] jerryn70:
Plz give your mail id i will sent you the log . :)
[Android Apps and Games] vagsvag:
Hi [MENTION=608746]Dark3n[/MENTION] I use your app some years now (pro version) and I haven't any problem at all, after updating my note 2 to 7.1 lineage os I discovered that after cleaning system and apps with sd maid (scheduled) wasn't possible to hear sound from calls. I am sure about this. Pls take a look.
[Android Apps and Games] Dark3n:
[MENTION=4546389]jerryn70[/MENTION] Same as always, support@darken.eu

[MENTION=2158728]vagsvag[/MENTION] "Pls take a look" <-- I don't have your phone in my hands so how would I fix anything without more infos ;).

What is "sound from calls"? The in-call voice (earspeaker or loudspeaker?) or the ringtone?

How do you fix it? Phone reboot?

Does it happen every time?

If you can reproduce this by running SD Maid, then please provide a debuglog from a run that causes it.

I've killed my own ringtone occasionally when SD Maid deleted a duplicate that was created when selecting an mp3 as my ringtone. I've never heard of SD Maid (or any app for that matter) affecting in-call voice. It's actually quite difficult to affect a call in this way.

There's a bug in Android O itself that causes in-call voice to not work, but I guess that's unrelated to 7.1 lineageOS...
[Android Apps and Games] vagsvag:
Both ears speaker and loudspeaker. Every time the phone was working ok the first day and the second day was loosing the sound. I had scheduled sd maid to clean the phone every night, this happened at least 10 times with different 7.1 roms and different gapps, bean gapps open gapps mini or full, until to understand the reason. Yesterday I cleaned it directly with sd maid after flashing the phone and restoring my apps with titanium and the sound lost the same moment. Reboot or dirty flash rom and gapps etc wasn't possible to recover the sound, only clean flash. Logcat this time is not possible because I am using 6.1 for now.
[Android Apps and Games] Dark3n:
I see, but it's not possible for me to look into this if I neither have logs, nor am able to reproduce it (doesn't happen on my Pixel@7.1) :|
[Android Apps and Games] Oswald Boelcke:
...damned true!
[Android Apps and Games] Oswald Boelcke:
FC when selecting "Change Permissions"

- SD Maid Pro v4.6.5 (40605)

When trying to change permissions of a folder or file located either in internal storage or root, SD Maid always forcely closes as soon as tapping on "Change Permissions".

I hope the error report was sent. Please advise in case of further questions or if a log / logcat is required.

Ticket on Github opened!
[Android Apps and Games] bgdrls:
With 4.7.1 beta, many icons not loading in AppControl. They stuck with loading circle...
[Android Apps and Games] Oswald Boelcke:
I confirm this issue; however with the following qualification: They are loading but it takes a very long time.

Please advise if you like a ticket to be opened at GitHub or a log is required.
[Android Apps and Games] Dark3n:
A ticket is always good.

Don't need a log, I can reproduce it.
[Android Apps and Games] Dark3n:
There is also something wrong with the shell code. Depending on what system binary is installed, it's possible that SD Maid is not able to read any files.

Update coming up later.