yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] donjoe0:
Damn. I was afraid this was the explanation. :) OK, thanks for clearing it up.

I wanted this for the Opera browser, which I don't even understand why it would need to know about reboots. Unfortunately, it's also listening to MY_PACKAGE_REPLACED with the same receiver, and I do want it to know when it's been updated, so it can sort out its settings the way it's supposed to. So I guess I'm out of luck on that one.

I think I confused this with what I could do in Amplify when I had the Xposed Framework on CM 11 (KitKat) a couple of phones ago. Judging by the fact that Xposed is needed for that, I'd say it's not easy and it probably can't be done in a "regular" app even if it has root. I'll just flash Xposed on my 12.1 (Lollipop) and get Amplify again, I don't need this added to SDMaid based on a false memory. :)
[Android Apps and Games] Dark3n:
It's not necessarily malicious, e.g. SD Maid needs it to restore the scheduler alarm, because scheduled events get wiped on reboot.

I think Services just like Activities and BroadcastReceiver (basically anything that's registered in the manifest), can be disabled/enabled without exposed, just root.
[Android Apps and Games] BrokenBee:
[MENTION=608746]Dark3n[/MENTION] : I just tried to optimise the database on a new install of cyanogenmod and it said 1 database failed. When I click for info on the failed database it says 'Error: no such collation sequence : LOCALIZED'

Its the musicdb.db of the stock music app. I have no music. Is that normal? What does that message mean?
[Android Apps and Games] KOCOBO:
Why SD Maid deleting dictionary from G Board? Could You fix this error, please? It's so annoying bug and keyboard need hours to sync the dictionary (sometimes, it takes a few days)... Thanks!
[Android Apps and Games] Vagelis1608:
Add an exclusion.
[Android Apps and Games] sordna:
Hi Dark3n, could you please bring Last Modified tool back? Either that, or allow the searcher tool to return results sorted by time (newest on top)? Multiple sort options would be even better of course. Thanks!
[Android Apps and Games] Dark3n:
https://github.com/d4rken/sdmaid-public/wiki/Searcher#options

https://github.com/d4rken/sdmaid-public/wiki/Searcher#last-modified

https://cloud.githubusercontent.com/assets/1439229/18595328/7c4ce3d2-7c44-11e6-8de3-f9771a007744.png
[Android Apps and Games] sordna:
I am aware of these options, but the results are not sorted by time if you don't specify a minimum or maximum age. If I do then they are sorted in reverse chrono order. Thanks for pointing to that web page, maybe you could mention in that page what the sort order is when ages are not specified?

Is it random? It is neither by time nor by filename. Thanks!
[Android Apps and Games] Dark3n:
if (searchTask.maxAgeDays != 0 || searchTask.minAgeDays != 0) {
Collections.sort(searchResults, NEWEST_FIRST);
}

If neither min nor max age option is set, the results should be sorted in the order they were found, otherwise by date, newest first.

Can you show me an example where it's not sorted correctly?

edit: nvm you were not suggesting they were sorted wrong.

edit2: Updated wiki to say how it's ordered.
[Android Apps and Games] Dark3n:
SD Maid v4.6.0 brings a few long desired improvements.

http://sdmaid.darken.eu/download

http://sdmaid.darken.eu/changelog

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

Notes:

Lots of new clutter data and translations improvements, thanks to everyone who contributed!

AppCleaner got performance improvements. Deletion is a lot faster, the new code no longer needs individual item deletion to allow for exclusions.

Support for Link2SD/Apps2SD. SD Maid now detects the `/data/sdext2` location. StorageAnalyzer will show it for comparison, and CorpseFinder has a new filter that specifically looks for corpses in `/data/sdext2` and on sdcards in `Link2SD` and `Apps2SD`.

AppControl scan is a bit faster and no longer needs root to determine force-stopped apps.

SD Maids double tap to exit no longer vibrates if you turned haptic feedback off in the system settings.

Did quite a lot of internal code changes that (hopefully) won't have any effect now, but will allow me to write better unit tests, so more of an investment into the future for less bugs and more stable code ;), modularity ftw!
[Android Apps and Games] Itachi2016:
please change the scheduler time,up to a month.
[Android Apps and Games] Dark3n:
Any feedback from people using Link2SD or Apps2SD regarding the new corpse filter in v4.6.0?

I've made a demo setup on a test device but this is not very close to a real "living" environment.

Got some nice unit tests setup though and would love to make sure they cover all cases.

[MENTION=7460114]Itachi2016[/MENTION] Sounds good, can you make a ticket on Github for that?
[Android Apps and Games] Freddyfre:
Add possibility call history removal? in new version SD Maid

How can I remove file in download folder?
[Android Apps and Games] lgabdo:
I can't find the freeze / unfreeze app option. Is it no longer available?
[Android Apps and Games] sleepyg72786:
App Control > tap app > Freeze/Unfreeze
[Android Apps and Games] lgabdo:
Not available here, perhaps due to the fact that my isn't rooted?
[Android Apps and Games] sleepyg72786:
Maybe. I do believe you need root for that feature, but not entirely positive since I've always rooted my devices.
[Android Apps and Games] Itachi2016:
Done,hope to see the improvement soon.

thanks in advance.
[Android Apps and Games] Vagelis1608:
Root is required for freezing / unfreezing apps.
[Android Apps and Games] killoid:
[MENTION=608746]Dark3n[/MENTION] AppLock Lite keeps resetting the locked app list after performing cleaning from quick access (system cleaner, app cleaner, corpse cleaner & database optimizer are enabled) on sd maid. please take a look at this. thanks in advance.
[Android Apps and Games] Vagelis1608:
Run them individually to see which tool does it.

(My guess is the Database Optimizer).
[Android Apps and Games] killoid:
ran them individually but couldn't guess anything. there are some cache in app cleaner, but i think he will figure it out.
[Android Apps and Games] Vagelis1608:
I meant clean as well to see after which one the problem happens.
[Android Apps and Games] Dark3n:
[MENTION=5107949]killoid[/MENTION] You figure out which tool causes it and what the file paths are, then I can figure out what can be done to fix it :).
[Android Apps and Games] killoid:
i found it! it's the systemcleaner! when it cleans empty folders, it also cleares out the app's folder. i've attached a screenshot for you. the directory will be - /storage/emulated/0/.securityappslite.

it is in my internal storage. i am running LOS 14.1 on galaxy note 3.
[Android Apps and Games] stispan:
The path is: /sdcard/external_sd

I wan't to clean files that have been left in my sd card from unistalled apps.

I am using "corpse finder".
[Android Apps and Games] Dark3n:
The corpse finder can only detect directories as remains from uninstalled apps if they are in standart Android directories, i.e. /sdcard/external_sd/Android/data/

There is no way for an app to know that any other directory like "Music", "RandomApp45" etc. belongs to a certain app. So those can not be cleaned automaticly.

There is just no information available that can be used reliably to delete those folders, we don't want to delete the wrong folders...
[Android Apps and Games] fozzie:
Great app. One small problem. If the file explorer is on a directory that gets cleaned up/removed, when you go back to file explorer you're stuck on that directory and can't navigate away; you have to restart the app. (HTC Desire running Cyanogenmod 7.03).
[Android Apps and Games] Dark3n:
Thanks.

Didn't think about that :-).

I have 0.9.6 almost done, i will either fix it in this one or the next update.
[Android Apps and Games] Dark3n:
Just pushed 0.9.6 to the market.

The fix for getting stuck in the explorer is included.
[Android Apps and Games] Dan_Aykroyd:
Hi darken,

The "remove market history" on the misc tab doesn't work in my Samsung Galaxy S I9000 stock Froyo, even after restarting the phone.

I've found that others cache cleaners that supposedly erase the history too (NG Cache, Cache Mate) and that require root, also said that I should see the results after restarting, but the thing is that I didn't neither.

Amazingly, one that works is 1Tap Cleaner, which doesn't require root and clears the Market History (plus others) on the fly, without any reset required! :eek:

Do you know what might be going on? How might the developer of that app do that without root access and also that I'm able to see them cleared right away, without a restart!?

The thing is that I'd like to consolidate and use (buy) your app for everything and remove 1Tap, but sadly your app isn't cleaning the Market history for me.

Please, let me know what you think. Thanks.
[Android Apps and Games] Dark3n:
The market search history is saved inside this file

"/data/data/com.android.vending/databases/suggestions.db"

You sometimes have to restart the device if the market is running in the background, for the changes to take effect. I could close the market app automaticly in a future version.

Thanks for the suggestion.

I will see if i can improve my methods.
[Android Apps and Games] Dan_Aykroyd:
Thanks darken but I think that it will not work even if automatically closing the market, because it still doesn't work after a restart.

On the other hand, as I wrote before, I'm amazed as how 1Tap is able to do this "on the fly", without root and even with the Market opened - and it would still work (i.e., suggestions disappear from the Market).

Thanks again
[Android Apps and Games] Dark3n:
Pushed 0.9.6.1 to the market.

Its a small update, mostly fixing possible force closes under unusual circumstances.

I have looked at it and have an idea how it is done. I might implement it in a future version.
[Android Apps and Games] Dan_Aykroyd:
Thanks; looking forward to it so I can finally remove 1Tap and buy your app definitely!

Regards,
[Android Apps and Games] Dark3n:
Just pushed v0.9.6.2 to the market.

Various small improvements to the code.

System cleaner allows simultaneous thread, could speed up progress on fast devices (see settings to increase threads).

Made duplicate finders results more compact and highlighted the sets of clones with color.
[Android Apps and Games] Dan_Aykroyd:
Hey dark3n,

Using more than 1 thread in my device (Galaxy S I9000) always returns the error "something might have been wrong check the android log" flash. I've noticed that when that happens it detects less Kb of logs to clear.

Do you know what's going on?

Thanks!
[Android Apps and Games] Dark3n:
It usually means that it could not start all threads, thus some files will be left out.

It's usually caused by the superuser app not granting access fast enough.

Nothing to worry about, could just run it a second time or set the threadcount lower.

Small preview, i'm currently reworking some corpse cleaner code so it will work in limited capability on unrooted devices.
[Android Apps and Games] Dark3n:
Pushed 0.9.6.3 to the market.

Fixed some typos and updated translations.

Fixed a FC in the misc tab when showing biggest files.

I enabled the corpse cleaner on unrooted devices.

Results are not as good as on rooted devices though.
[Android Apps and Games] Dan_Aykroyd:
Hey again dark3n,

Another suggestion here. Would it be possible to have only 1 super user prompt, and then you wrap every action in that request? Because I'd rather authorize all apps manually every time I run them, but with SD maid it's impossible because it asks for su access hundreds of times (for every thread in the clean system tab, for every one of the >200 installed apps, and such)

I think most of root apps work that way (Titanium Backup comes to mind, as it only asks once on startup; no matter how many changes you do to the system later)

Thanks!
[Android Apps and Games] Dark3n:
Pushed 0.9.6.4 to the market.

Some translation fixes and a missplaced entry in the settings.

Small tweak to system cleaner.

Added some code to reset two settings (System Cleaner performance and Show biggest files count) which could cause crashs if previous settings contained invalid information.
[Android Apps and Games] djsolidsnake86:
can you make it faster during check of programs? it's a little slow many other programs make the scan so quickly
[Android Apps and Games] rcummings100:
Just bought the App. Love it! It recovered a ton of free space on my phone.

Just gave you 5/5 stars...thanks for something so useful!
[Android Apps and Games] Dark3n:
What function do you mean by "check of programs" ?

The app cleaner?

I don't believe i can speed it up much more, other apps that do it ALOT faster are probably not that thorough.

But i will take a look at the code again and see if i can optimize further.

Thanks, im happy when my users are happy :-).
[Android Apps and Games] Dan_Aykroyd:
What do you think of this dark3n?

Thanks
[Android Apps and Games] Dark3n:
Did you reproduce the problem by deleting the folders manually?

I don't think the app stores settings via empty folders.
[Android Apps and Games] KaMyKaSii:
[MENTION=608746]Dark3n[/MENTION] is it possible to add minutes/hours to age of the files? I want more precise searches
[Android Apps and Games] Dark3n:
Yeah, the difficult part is the UI though.

Feel free to make a ticket for but please include some description of how you would image the time picking would look like.
[Android Apps and Games] KaMyKaSii:
Maybe a field where you select what kind of unit you want (minutes, hours, days, weeks, months...) and in the other you put the gross value. Preferably with the keyboard, no sliding. For both minimum and maximum age

Edit: I created an issue in github
[Android Apps and Games] killoid:
sorry i misunderstood things! it was appcleaner's fault. appcleaner cleaned some files of the app & created the problem. will you check it please?

ss attached. there are many files here, don't know which are the culprits. i've added an exclusion for now for the app.
[Android Apps and Games] Dark3n:
[MENTION=5107949]killoid[/MENTION]

On that screenshot I only see files from `/data/user/0/com.ivymobi.applock.lite/cache/` which is the official private cache folder.

If deleting this content causes the issue then it's not an SD Maid issue as there is no reasonable expectation for files to be permanent in that folder (the system may also delete them at any time it deems necessary).

There might be other files though that are just matched because SD Maid was too aggressive (i.e. the hidden cache filter from AppCleaner is quite aggressive) then you could either turn that off or add an exclusion.

A user exclusion is likely the most reasonable solution though.
[Android Apps and Games] krule031:
Hey [MENTION=608746]Dark3n[/MENTION]

I have a tiny problem.

So lately, when I set up the scheduler to clean every day at 5am, it just resets the timer to 0 and doesn't clean anything.

Do you know what could be the problem? It was working great before lol.
[Android Apps and Games] Dark3n:
What does the Statistics>History log show?
[Android Apps and Games] krule031:
Here, I screenshoted this few minutes ago:

As I see there, logs say the time of cleaning is 10:26, but I set scheduler to clean at 5 am so log is pointing the time I cleaned manually, I guess.
[Android Apps and Games] Dark3n:
There is no "Scheduler - Normal execution" so the alarm that should trigger SD Maid never triggered.

I think something either kills SD Maid and wipes the alarm (task killer / security app or so), or the alarm is lost through natural reasons (reboot) and SD Maid is prevent from restoring it after rebooting.

If you open SD Maid set an alarm for +5min and just wait with the UI open, does it trigger? If you do the same but exit SD Maid through the back button, does it still trigger?
[Android Apps and Games] krule031:
I have nothing but Greenify installed, and SD Maid is not on its list.

So, I set the scheduler with ui opened, and it triggers, cleaning starts and timers sets itself to 24h (I set it to clean every day so that's correct)

When I double tap the back button to exit (I didn't clear the app from recents), then it doesn't do anything, timer resets to nothing. :confused:

Before, I set the scheduler to clean at 5am, and when I woke up there was always a notification that it cleaned, now that notification is not appearing.
[Android Apps and Games] Dark3n:
Then I would suggest to record a logcat.

* Start recording

* Set the timer in SD Maid

* Double tap out of SD Maid

* Wait until 5min after the scheduled time

* Stop recording and upload

Extra points if you change SD Maids debug level to "2" before :).
[Android Apps and Games] krule031:
Here, log is in the attachment :)
[Android Apps and Games] Dark3n:
Haha almost, but i meant a real logcat to see what the system does when it should trigger ;).

From SD Maids POV it looks ok, there was no schedule, you set a schedule and when SD Maid checks it, it's still set.

1487192554191 I/SchedulerWard: Checking scheduler...
1487192554193 I/ScheduleManager: Scheduler enabled: false
1487192554193 I/SchedulerWard: Schedule shouldn't exist and doesn't exist. That's okay.
(...)
1487192575001 D/ScheduleManager: startScheduler(dayInterval=1, hour=22, minute=5)
1487192575043 D/ScheduleManager: Scheduler enabled set to: true
1487192575066 D/ScheduleManager: SchedulerWard is ENABLED
1487192575066 I/ScheduleManager: Scheduler due in 124s
1487192575068 I/ScheduleManager: Scheduler enabled: true
(...)
1487192769290 I/SchedulerWard: Checking scheduler...
1487192769291 I/ScheduleManager: Scheduler enabled: true
1487192769291 I/SchedulerWard: Schedule should exist and does exist. Yay!
[Android Apps and Games] krule031:
Ooopsss, my bad.

I hope it's better now xd (Sorry for being a noob) :fingers-crossed:
[Android Apps and Games] Icetea:
for statistic only: Whatever the reason was, my problem is solved using the latest version. THX!;)
[Android Apps and Games] Dark3n:
Better but I can't see anything suspicious in the log. You could retry and wait 5 more mins as Android can fuzz the trigger time to conserve battery but it's a shot in the dark. Currently a bit out of ideas, sorry :(
[Android Apps and Games] krule031:
Should I maybe reinstall the app? Could that help? :confused:
[Android Apps and Games] ogisha:
I am x86 user and must say that performance increase is noticeable. :good:

I was pleasantly surprised.
[Android Apps and Games] Dark3n:
[MENTION=4888288]junk031[/MENTION]

I don't think this is something that can be screwed up by a bad install or settings, but just to be safe try it.

I'm still thinking it's some other app or system battery/RAM saving issue.

At this point it would be helpful to test this with other Sony D2303 @ 5.1.1 to see whether this is a ROM/SD Maid issue or one with the specific setup on your device.

[MENTION=4657522]ogisha[/MENTION]

Awesome, can you share more details where? Theoretically it affects only shell operations so not the UI but scan/delete/copy/move of files.
[Android Apps and Games] krule031:
The thing that confuses me is that scheduler worked correctly few days ago.

As for battery saving apps, I have just Greenify installed and SD Maid is not on it's list lol, so I guess that is not the problem, hopefully.
[Android Apps and Games] ogisha:
Well, I launched Quick Access only once to test it after update.

I did not see any speed increase during scanning.

It is different story with cleaning. I did not have any corpses so I could not see the difference, but system cleaning and application cleaning were noticeable faster. Database vacuuming was, I think, same speed like before.

Device is Asus zenpad 8 z380c.
[Android Apps and Games] Dark3n:
[MENTION=4888288]junk031[/MENTION] Backtrace what changed between a few days ago and now :). I'm unfortunately out of ideas for now :(. If I had access to the device I would probably try to debug the alarm manager to see if it's still set or removed. See: http://stackoverflow.com/questions/28742884/how-to-read-adb-shell-dumpsys-alarm-output
[Android Apps and Games] krule031:
I will try to, stay tuned xD
[Android Apps and Games] kos25k:
dudes I need some help please.maybe now u will hear the most stupid question,but I have to ask cause I cant find any solution.I have very offen facebook and messenger wifi dropouts.I also use a module called x messenger privacy.my wifi dropouts begun just at the point I made a clean with sd maid.I remember I checked some extra files to be cleaned in old apps remainings settings. (I think,not sure).So next I did a restore eith TWRP from my 5 old days rom backup.But after this also,my wifi dropouts remain...I had tryied also to dirty flash my rom (before backup) with success,but again the same.I want to ask if is possible with this app,to be erased important files from sd card,that are neccessary for devices to work properly.I use sd maid many years now (with stock settings) with never a single issue.thanks.

device:sony z3 tablet with stock prerooted MM 6.0.1.
[Android Apps and Games] Dark3n:
Everything is possible but this is very unlikely caused by SD Maid, just coincidence.

> I want to ask if is possible with this app,to be erased important files from sd card,that are neccessary for devices to work properly.

It's possible to delete system files in SD Maid, but it's very unlikely that this will manifest is unreliable wifi (it either works or doesn't).

Also: The sdcard does not hold any system relevant data.

In most cases this isn't even a device issue but something related to the position or performance of thew ifi access point.
[Android Apps and Games] kos25k:
thanks dude.I made a clean install my rom and same happens.now I notice same happens with skype.wiyh my phone (also MM) this doesn't happen.I will revert back to LP and hope that this isnt a hardware problem...
[Android Apps and Games] krule031:
[MENTION=608746]Dark3n[/MENTION]

So, I tried to temporarily disable Greenify, and let scheduler do it's thing without Greenify running, and same thing happened. Scheduler resets to nothing without even cleaning.

Now I'm out of ideas xD

Edit: I saw you edited your last post with something about alarms. I tried to read that but man, I don't understand a damn word...

If you have time, you could tell me what exactly should I do to do that :)
[Android Apps and Games] trantiendat3004:
I use it daily ;) you can add fstrim :confused:
[Android Apps and Games] Dark3n:
[MENTION=4888288]junk031[/MENTION]

Setup an alarm, close SD Maid, ~5min before the alarm should fire, execute the following command (if you have ADB set up):

“adb shell dumpsys alarm > alarms.log”

or from a root shell on the device:

"dumpsys alarm > /sdcard/alarms.log"

(Change the target logfile to your liking)

Repeat the same thing ~10 minutes after the scheduled alarm time.

Then show me the logs (add to github ticket).

General info: https://www.google.de/search?q=adb+dumpsys+alarm

Within the log we should see whether the scheduled alarm is still in the system.

It should be in the system before the trigger time, and after the trigger time aswell.

[MENTION=7920747]trantiendat3004[/MENTION] Long standing idea, I have some concerns with it, see https://github.com/d4rken/sdmaid-public/issues/18 Feel free to add your thoughts on that ticket to it.
[Android Apps and Games] krule031:
[MENTION=608746]Dark3n[/MENTION]

I'll do my best to get you those logs soon. Keep you posted

Edit: I did what you said from the terminal emulator, and I attached the logs(for some reason couldn't upload .log files so I archived them).

http://cloud.tapatalk.com/s/58ab70b5ead94/alarm logs.zip
[Android Apps and Games] Itachi2016:
how about to postpone the schedule reboot for a few minutes that user specified before?

like when the screen is on or when you are talking to someone.