yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] atomomega:
[MENTION=608746]Dark3n[/MENTION] thank you very much for your dedication and for caring for your userbase, I'm really happy to be a Pro user cause I see that you are really committed to your app. The issue was resolved the next day. Don't worry, I wasn't upset at all, it was just weird since I had never had an issue like that.
[Android Apps and Games] Mike B.:
In those instances when the Play Store misbehaves (not an uncommon occurrence!), remember that you can simply download the apk from [MENTION=608746]Dark3n[/MENTION]'s own server (see OP). As long as you already installed the PRO unlocker, you'll retain the PRO features.
[Android Apps and Games] Dark3n:
This is a very technical issue with details, but maybe someone has a good idea.

I'm still investigating an issue where the system has no UUID value for an external sdcard, which makes it impossible for SD Maid to restore "normal" access to the external sdcard on unrooted devices with 5.0+.

I've attached two screenshots of the current stats i got, the LG G3 seems to be certainly a canidate and some Samsung devices.

The question is: Is this a ROM or sdcard issue?

An example output for an LG G3 device is:

StorageVolume:
mStorageId=131073 mPath=/storage/external_SD mDescriptionId=17040808
mPrimary=false mRemovable=true mEmulated=false mMtpReserveSpace=0
mAllowMassStorage=false mMaxFileSize=0 mOwner=null [B]mUuid=null[/B]
mUserLabel=null mState=mounted

For GT-I9505:

StorageVolume:
mStorageId=131073 mPath=/storage/extSdCard mDescriptionId=17040804
mPrimary=false mRemovable=true mEmulated=false mMtpReserveSpace=0
mAllowMassStorage=false mMaxFileSize=0 mOwner=null [B]mUuid=null[/B]
mUserLabel=null mState=mounted mSubSystem=sd mActivitySecureContainer=true

Both times, no UUID, normally the value is set and something like "C7BA-FD11".

To provide access on Android 5.0+, SD Maid needs to reverse map the URIs it gets from the system uris to actual files/pathes.

Currently this is done by using the UUID of the external sdcard as unique identifier, because the URI the system puts out are also defined by it.

In detail:

SD Maid asks the system for all storages and gets objects as the ones above.

What we want is to create a mapping like this:

/storage/foobar/strawberry.apk - > content://android/tree/foobar/strawberry.apk

Normally "foobar" is the UUID of the storage in question.

Then we store an object in a map that contains the UUID and the path the storage is mounted on.

Now if we need to acess a file on the external sdcard, we look into the map and create the correct URI to access that file via androids storage provider.

But now we have storages without a UUID. The only case i could look at in details (LG G3) had the mount name, e.g. "extSdCard", for "foorbar" where normally the UUID is used. This seems very arbitrary.

I looked through AOSP code and found no instance which would explain where the id-value (foobar) comes from if the UUID is null.

Looking at AOSP source-code where i got my inspiration, they even use the same approach.

More mysterious is that they also throw the mapping away if the UUID is null, and the external sdcard access on 5.0+ works through the ExternalStorage provider.

I currently have no clue wtf is happening there and even with the larger datasets I'm still stuck :eek:

Also tracked as issue here:

https://bitbucket.org/d4rken/sd-maid/issue/232/investigate-sdcards-with-no-uuid
[Android Apps and Games] Dark3n:
v3.1.2.8(365) replaces v3.1.2.7.

No notable changes, just small polishing to get production ready.

Previous version had no huge issues but needed a few tweaks and language updates.

This is currently in beta but probably not for long.

http://sdmaid.darken.eu/download

http://sdmaid.darken.eu/changelogbeta﻿
[Android Apps and Games] gary138.138:
It's really a nice app. Thank you, Dark3n!
[Android Apps and Games] vrwmiaris1:
I'd like to ask something, I'm using this app since the beginning, and yesterday I've read a post that in pro version i can set a time or day that the app runs and do it's magic.is this true?
[Android Apps and Games] Sajoo:
Yes. It really does the magic to a certain time.
[Android Apps and Games] iodine71:
rivetstvuyu all. Need help. The application was installed 3.1.2.8, his work was executed perfectly, after the system hangs and reboot the phone, instead of the icon was green Android and after clicking on it showing that the program is removed. After that I can't install the program, writes: "Program not installed". Tried to clear the system of different cleaners, not helped anything. Phone HTM 9503, android 4.2.2
[Android Apps and Games] Dark3n:
The latest beta version is now v3.1.2.9 (366).

Databases and languages have been updated, as well as a few more not very useful analytics infos have been removed.

http://sdmaid.darken.eu/download

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

This version is just as stable as the last one, which already was stable enough for production, just the analytics system wasn't ready yet.
[Android Apps and Games] Mr.NamMo:
Have step for test ver pro ?
[Android Apps and Games] Dark3n:
FYI v3.1.2.9 is now in staged rollout and no longer a beta.
[Android Apps and Games] Celestial Fury:
V3.1.2.9 (366) gives a FC "an unexpected error has occured but don't worry an email has been sent to Darken" or something of the sort. This happens because internet permissions were denied in XPrivacy. The error does not occur once internet permissions are given (but internet access still blocked by firewall). I suspect it has something to do with the new analytics. I'd like it back the way before where internet permissions can be safely denied.
[Android Apps and Games] Dark3n:
Being able to deny permission that are declared in the manifest was never something that was officially supported. If it worked it was just by chance.

Revoking permissions from the manifest is just not something that's supported by Android and unless it is official supported, I'm not willing to program under the assumption that the user can have screwed with any detail of the app.

What is supported is that SD Maid silently fails if internet is not available and that it will have no impact it on it's performance.

In any case though, I'm curious to see where exactly the crash is coming from as i would have expected it to still fail without a crash as it uses similar methods as update checker, which has been in use for years. I'm actually suprised that you say it was previously possible without crash.

Because crash reports also rely on Internet the toast is a lie and i will not have gotten a crash report, if you mail me a logcat of the crash i will look into it.
[Android Apps and Games] Celestial Fury:
[MENTION=608746]Dark3n[/MENTION] ,screenshot and Catlog attached. For Catlog, if it's too short, let me know what keywords to look for.

If App Analytics is UNticked, it will work with internet permissions denied. However, ticking OR UNticking App Analytics (with internet permission denied) will cause the error "Something unexpected happen..." every time. It's reproducible and the Catlog is from this error. It does not FC on this error but goes to the main screen.

I don't know about:

But isn't denying permissions the whole premise of XPrivacy?
[Android Apps and Games] Dark3n:
The log only has half the stacktrace, please repeat it.

Toggeling the analytics checkbox sends an event (e.g. either the first or last event SD Maid will send in that session).

That it only crashes back to the main screen is because the settings are their own Activity.

Sure but the whole premise of XPrivacy is also for it to work without needing further modification in the app.

As you said it doesn't crash without internet or with a firewall. Which points to SD Maids/Piwiks code correctly handeling the "no internet" situation.

Now XPrivacy should try to fake an offline connection just like in a normal "no internet situation".

So this could also be a bug within XPrivacy.

Possibly it's an edgecase that might also happen in a normal "no internet situation" and a bug within SD Maid, then i would fix that, and the side effect is XPrivacy being able to do the same thing without crashing ;).

The analytics code is open source btw. the error most likely originates from here:

https://github.com/piwik/piwik-sdk-.../main/java/org/piwik/sdk/Dispatcher.java#L201

Comparing this with SD Maids other code using the same method, i see i have a general try-catch for Exceptions there, which the analytics code doesn't.

Seeing complete stacktrace will give me the exact type of exception.

So i think this is fixable and good for everyone (XPrivacy or not). v3.2.1.9 is currently halted at 20% rollout and i think i can include this fix in todays changeset and push it with the next update.

Need that stacktrace though :).
[Android Apps and Games] Celestial Fury:
Let me know if it's still not enough. Is there a better way to format a Catlog other than manually setting anything that starts with a date on its own line?
[Android Apps and Games] Dark3n:
Don't really know what you are doing but the logcat is cut off at the same line as the last one, meaning it starts halfway through the logcat.

Open the file, the "half" stacktrace is where it begins ;).

I usually record logcats through adb from a computer "adb logcat > logcat_recording.txt" then abort (ctrl+c) after i reproduced the event.

You should just open any logcat recording app, tell it to record into a file and reproduce the issue.

Or reproduce it, open the app and see if the stacktrace is still visible then save it to a file.
[Android Apps and Games] Celestial Fury:
Ok I see "approved.stacktrace" in here. This should be it. :fingers-crossed:
[Android Apps and Games] Dark3n:
Indeed, it's complete now :).

And it confirms my suspicion, it it passes exactly through line 201 i linked above :).

I'll make the try-catch broader so it fails silently in any case. Which also a good way to go about it as failing analytics is not something that needs to take down the whole app, annoying for me, but not critical, where as other things failing unexpectedly better take down the app to prevent problems. Will be in v3.1.3.0 which I'm currently finishing. It will continue the rollout. Nothing critical but some minor annoyances :).
[Android Apps and Games] Dark3n:
The rollout continues with v3.1.3.0.

Or grab it from here.

It includes your change [MENTION=5401012]Celestial Fury[/MENTION]
[Android Apps and Games] ew:
Delete old SMS messages

I am looking for a way to purge old SMS messages. I have accumulated nearly too many messages and have finally decided that I can not go forever without having some method of cleaning old files.

Can SD Maid do that (I can't find it, but SD Maid does so much - I could be missing that). I have the unlocked version and am on Lollipop.

If that is not something done by SD Maid, does anybody have any other recommendations.

Thank you in advance.
[Android Apps and Games] Mike B.:
[MENTION=608746]Dark3n[/MENTION] will probably find some way to have SD Maid do that, but for now you could purge old messages from the Hangouts menu (even if it's not your default SMS app) by going to "SMS" and checking "Delete old messages". Another approach is to simply delete "/data/data/com.android.providers.telephony/databases/mmssms.db" from any root-enabled file manager or a Terminal prompt (or TiB) and reboot your device.
[Android Apps and Games] muha1999:
ok

ok......
[Android Apps and Games] Dark3n:
"Privacy cleaning" for SD Maid is not planned.

There are several reasons why I currently dislike the idea:

- Requesting permissions like "read/write messages" etc. which I don't want to.

- App coverage. The stock messaging app would be no problem, but everyones messaging app of choice might have different implementations that does not offer a method of "clearing" their data.

- Messages just like call history does not use much space, it's all small database entries.

- Every messaging or call history app has a "clear all" button.

[MENTION=4343728]Mike B.[/MENTION]'s suggestion is the intended way to go about it if you really want SD Maid to do it. You can automate this by creating a custom SystemCleaner filter.
[Android Apps and Games] ew:
I understand completely.

In case it helps somebody else - this is how I have taken care of this.

I had thousands of text messages accumulating, and I wanted some way of cleaning things out.

I use SMS Backup+ (https://play.google.com/store/apps/details?id=com.zegoggles.smssync) to save a copy of all text messages in gmail. That gives me long term archival storage.

For "purging" I used SMS Backup & Restore (https://play.google.com/store/apps/details?id=com.riteshsahu.SMSBackupRestore) and did the following (all with that program):

Created a backup of all messages (including MMS).

Deleted all messages on my phone

Restored recent messages (for me, since 1/1/15)

I accomplished exactly what I wanted. Unfortunately, I don't know that there is a way to automate the process, but it is not something that needs to be done too frequently.

I hope this may help others who may want to do the same thing. If anybody has ideas for further automation, please feel free to make any suggestions.

Thank you for all the help
[Android Apps and Games] Technical:
SD Maid cleaning corps has saved me a lot of times!

But now, two or three app that were installed by Amazon can't be installed anymore (error).

I have check all the options for app cleaning... Is there anything else I could do?
[Android Apps and Games] Dark3n:
[MENTION=1011179]Technical[/MENTION] That really depends on the nature of the error.

Without knowing what the error is, it could be anything including Gremlins.

Try to record a logcat of the error and maybe it has more details about why the Amazon Market is failing to install those apps.
[Android Apps and Games] Dark3n:
Latest beta v3.1.3.1(368).

I replaced some rather broad thread syncronization with more fine-grained locking (i.e. syncronizing methods vs small blocks on different objects).

This should slightly improve general performance when doing multiple things at once in SD Maid, but most notably reduce (fix?) the lag in QuickAccess when starting/canceling operations.

Thanks to Julian(jkccl9) for helping me debug this.

http://sdmaid.darken.eu/download

http://sdmaid.darken.eu/changelogbeta﻿
[Android Apps and Games] Dark3n:
v3.1.3.2(369)

Just databases & languages.

http://sdmaid.darken.eu/download

http://sdmaid.darken.eu/changelogbeta﻿
[Android Apps and Games] :
I have SD Maid Pro, and I've had some problems with Titanium Backup, Skype, and Xposed Installer. A few days ago I accidentally deleted all data and I had to reinstall everything. All the apps were working fine. Until I cleaned the files with SD Maid. After that, Titanium Backup wouldn't recognize the Pro license, Skype wouldn't give me notifications, and Xposed Installer wouldn't notify me when a module was installed or updated. Can someone tell me why this is happening, and how to fix this? I do not want to do another reset for at least a while. I also remember now that I know this that the problems first started after I got SD Maid. I'm using a GT-P7310 if you need to know.
[Android Apps and Games] Dark3n:
SD Maid is really a set of tools, you would have to narrow it down to a specific tool before anyone can start make educated guesses. Scan in each tool, then view the details of the results and see if something looks wrong.

Edit:

Btw SD Maid v3.1.3.2 is now considered stable and in rollout.
[Android Apps and Games] :
I am not entirely sure, but I think the problems started after I got Pro.

EDIT: I just scanned everything, and I didn't find anything that could have done any damage except maybe SystemCleaner. Am I correct when I say AppCleaner clears app caches? If so, that can't be the problem, because I clear cache all the time, unless SD Maid clears some different caches. Also, I have a question. What do the /data/log/, /data/tombstones/, and /data/anr/ directories contain?
[Android Apps and Games] carlese:
[MENTION=608746]Dark3n[/MENTION] is it possible to delete some entries in a custom filter? I created a filter "SD Card" and I noticed I put some duplicates there.. how can i remove them? Maybe a checkbox or an option to long press to mark for deletion would be great ;)
[Android Apps and Games] Vagelis1608:
Press it. It will go in edit mode. Then delete it.
[Android Apps and Games] carlese:
Nope.. I don't want to remove the entire custom filter but some of the entries..
[Android Apps and Games] Walla Walla:
Quick suggestion...

Not sure if this has already been mentioned or not, but how about integrating a Wake Lock Blocker with the same color code scheme used in SDMaid? (which is just

one

of the things that makes SDMaid better than the rest). I downloaded your wakelock app thinking it was an app privacy/permissions modifier, in which I believe SDMaid could do a lot better than all the other apps out there.

Been a pro user for a while now, and still hands down SDMaid is the best..., I still remember how awesome and funny it was when I went into the Advanced Options, and the app asked me, "Are you sure you know what your doing?"
[Android Apps and Games] Dark3n:
More like "cache type files", i.e. files that are regenerated if necessary. This does include the "stock cache" though (the one the systems "clear cache" targets).

Says so right below each filter entry.

[MENTION=4849551]Vagelis1608[/MENTION] suggestion was still spot on though, long press paths in custom filter to edit them again.

When in doubt, long press!

I feel "wake lock" stuff would deviate too much from SD Maids scope. Creeping featurism is a slippery slope... where does it end? World cup results in your notification bar?

I even have some ideas for extensive features that would be within SD Maids scope but where i think it's better if they are an extra app that can integrate like a plugin.
[Android Apps and Games] carlese:
[MENTION=608746]Dark3n[/MENTION] I found the issue with duplication.. Everytime you press the save button whent entering a custom path in a filter, it duplicates everything in the filter, so if you have 3 lines and hit save you have 6 lines then.. Hope it helps to fix it!

Steps:

- create a custom filter

- go to the "1" tab and enter a path

- exit and enter again in the "1" tab

- press the save button

- exit and enter again and you should see everything duplicated

Cheers ;)

Edit: seems like all you have to do to get the duplication is to go in the 1 tab and exit.. I have more than 1000 entries now :(
[Android Apps and Games] Dark3n:
[MENTION=2290290]carlese[/MENTION] Thanks. It will be fixed with the next update.
[Android Apps and Games] atomomega:
Hi [MENTION=608746]Dark3n[/MENTION], is it possible to have App Control change apps sorted by in real time? I usually have to go to settings, change sorting and then rescan.
[Android Apps and Games] Dark3n:
That's planned for the next major update (v4), no ETA.
[Android Apps and Games] jchen12:
Some questions:

1) Does SD Maid have a task killer?

2) Does CCleaner for android clean anything that the free version of SD maid doesnt?

3) Im without root, if i upgrade to pro will the app ccleaner clean cache from apps like chrome in which i have to manually go into the app to clear history/cache?

Thanks!
[Android Apps and Games] Dark3n:
1: No, on purpose.

2: Cleaning app cache like files requires SD Maid pro.

3: It will, whether that includes browsing history depends on where the app stores it.

You can see what AppCleaner finds without buying anything. Just press scan.
[Android Apps and Games] Dark3n:
v3.1.3.3 is now the latest stable version. Small maintenance update.

Wait for the rollout or grab from below.

http://sdmaid.darken.eu/download

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

[MENTION=2290290]carlese[/MENTION] it should fix the issue you described.
[Android Apps and Games] carlese:
Confirmed, works like a charm now :)
[Android Apps and Games] eluspo:
How can i exclude google photos from cleaning? I have saved photos via the cloud and i dont wanna erase their thumbnails. Tia!
[Android Apps and Games] eluspo:
Why is it that i can's clean this? Do i need to be rooted first? Fyi im on android M.
[Android Apps and Games] Sajoo:
You can exclude the thumbnails via filter in SD Maid
[Android Apps and Games] Dark3n:
It's because of Android M. Other features probably don't work either as in my tests the internal storage was not correctly detected (at least on my N9). I assume it's the same on N5/N6 (check Overview?).

Next beta should fix this.
[Android Apps and Games] eluspo:
Thank you! And if i may have instructions on how to exclude an app like google photos, it would be wonderful.
[Android Apps and Games] jchen12:
So i bought the pro key, and the default cleaning cleans my launcher so it always restarts after every cleaning. is that ok or should i try to exclude the launcher from the cleaning process? Thanks
[Android Apps and Games] Borfas:
All app on xda it`s not free ?
[Android Apps and Games] Sajoo:
why should it be free? He put a lot of work in it and he should be payed for it. It is not even expensive.
[Android Apps and Games] gbueno6:
Totally agree with you!

Enviado desde mi D5103 mediante Tapatalk
[Android Apps and Games] athibanvasanth:
Thanks for this wonderful app :)
[Android Apps and Games] YeezY.:
Nice application thanks ?

Envoyé de mon SM-G850F en utilisant Tapatalk
[Android Apps and Games] julieace:
Been using it from almost two years...best in class...thank you Dark3n
[Android Apps and Games] Dark3n:
Always make sure that other apps can't write to SD Maid config files, otherwise malicious apps could trick SD Maid into doing something for them.

That is normal, the AppCleaner kills an app before attempting to work on its files.

Depending on your device it is also possible that the system kills the launcher if SD Maid requires more resources at that point than the system can spare.

http://www.xda-developers.com/a-guide-to-paid-work-on-xda-developers/
[Android Apps and Games] zolaisugly:
[MENTION=608746]Dark3n[/MENTION] quick question sorry if already asked, I have a xperia z tablet running stock 5.0.2, on my other devices running lollipop the function "biggest file" runs quite quickly, on my tab z it takes forever to run, then it just shuts down with out completing. any advice how to fix?

I have cleared data, cache, and uninstalled, did all the normal things, but still no joy.

TIA for any help or advice
[Android Apps and Games] Dark3n:
[MENTION=3745523]zolaisugly[/MENTION] Does the tablet shutdown or SD Maid? If the tablet shuts down this is probably a kernel issue or faulty sdcard, if SD Maid shutsdown, I'll need a logcat.
[Android Apps and Games] zolaisugly:
Will see if I can get a logcat it might be rather long the last time I ran it after 3 hrs it still had 38ops to go, I fell asleep upon waking the tab screen was off and SD maid was not running.
[Android Apps and Games] munky-head:
Hi guys,

As advised by [MENTION=608746]Dark3n[/MENTION], I thought I ask here.

I have SD Maid PRO running a cleanup every day.

Recently I got myself a Pebble watch. The problem is - every time AppCleaner runs, it breaks the Pebble connectivity. Thus, I am being forced to reflash the Pebble firmware.

I have asked [MENTION=608746]Dark3n[/MENTION] about this, and he advised to exclude every single Pebble-related app. Yet, it still happens.

Do you have any bright ideas to help me?
[Android Apps and Games] Mike B.:
Apparently you're not preserving EVERYTHING the watch needs. You may want to look at whatever it is that gets installed when you reflash, then make sure you exclude those components from SD Maid's cleanup. If it uses a conventional flashable ZIP, look for clues in its "updater-script" (usually in META-INF/com/google/android/).
[Android Apps and Games] munky-head:
Actually, the Pebble is handled via a designated app, that retains a connection to the watch.

The firmware is not flashed directly, but via this app. You just launch it, it detects that a firmware needs to be flashed, and it sends it over to the watch.

This happens every time, and I've paid close attention to figure out that it happens during the AppCleaner stage of my schedule.