Stream

Join this community to post or comment

David DAWEIS

General Discussion  - 
 
i was wondering does exist some adb hack for SD maid? ? But i dont tknow... because it include /rw sys what is imposible on non rooted device
1
1
Add a comment...

Horst-G. Thiel

Bugs || Ideas  - 
 
Small optical problem, S7 Edge, Stock M, 560 dpi
1
Horst-G. Thiel's profile photoJay M's profile photo
6 comments
Jay M
+
1
2
1
 
I just noticed your font I'm using the default font so I guess a temp fix is to use the default font on anything lower than medium
Add a comment...

Sergio Lobianco

Bugs || Ideas  - 
 

Every time I run the AppControl, SD Maid Stopped.

SD Maid v 4.5.7(40507)

CM 13.1
1
darken's profile photo
2 comments
darken
 
Try deactivating animations and or preview loading in the settings.
Add a comment...

Laurent Vimeney

General Discussion  - 
 
Hi guys,

I'd like to know something, should I uncheck "skip running apps" when optimizing database ?

Happy new year!
2
darken's profile photoLaurent Vimeney's profile photo
2 comments
 
Thank you for your quick response 
Add a comment...

XIAN CORE

Compliments || Feedback  - 
 
JUST PURCHASE TODAY

AND IT WORKS AWESOME


6
1
Add a comment...

Levan Talakhadze

Compliments || Feedback  - 
 
Super
1
Add a comment...

Nagesh Pattanshetty

General Discussion  - 
 
Can anyone tell me where is the link to enter the beta program?
3
Nagesh Pattanshetty's profile photoRay Hollingsworth's profile photo
4 comments
 
Generally, expanding the community description via the down-pointing symbol to the right of the community name will reveal this information for any Beta community.
Add a comment...

Sanjay S Kumar

Help || Questions  - 
 
+darken ​Will you make this as Xposed Module to enhance more features? And I don't what I can do with pro version day before yesterday I bought 😑
1
René Carannante's profile photoSanjay S Kumar's profile photo
8 comments
 
+René Carannante Thanks for the information dude, Somewhat I understand.✌
Add a comment...

René Carannante

Bugs || Ideas  - 
 
Hey +darken​​, got a little bug in the statistic page.
The labels are overlapping.
4
1
René Carannante's profile photoSanjay S Kumar's profile photo
7 comments
 
+René Carannante Yes
and the label display one over the other
Add a comment...

darken
owner

General Discussion  - 
 
SD Maid v4.5.3 fixes a long standing issue regarding running apps detection.

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

If you care for a little bit of in-depth ramblings:

Story time, because this was an interesting one.
A user mailed me about SD Maid v4.5.0+ not detecting frozen apps correctly.
Although communication was a bit cumbersome (no common language, had to google translate), without him this problem would have likely gone unnoticed for quite a while.

Ok so the predicate is that frozen app detection doesn't work correctly. I wasn't too suprised by this because v4.5.0 changed a lot of AppControl code, so I just made a mistake... No problem, that's what betas are for, so lets reproduce this. I gathered a couple of devices and compared v4.4.1 against v4.5.0. Checked Pixel... no difference, checked Nexus9... no difference, checked a MotoG3... oh okay 1 app difference. That's at least something to work with. It's a system app, something OTA related.

I installed a dev version of v4.5.0 on it, still reproducable, so start the debugger and look deeper. Why does it not enter the code to check for frozen / force-stopped code? The app wasn't even checked for it's "frozen" (disabled) state (a change I made in v4.5.0+) because the application was running!? Checking the state in the debugger manually... it's disabled and running !? Wait what? It's either frozen or running... can't be both.
Alright, start ADB shell, check running processes manually, basically looks for that apps packagename in process infos. It's not running! Why does SD Maid think it's running?
So the bug is not with frozen apps or their detection it's with running apps detection.

So how does the current code detect running apps...
It's a main method with a fallback method. Fallback gets chosen when the main method returns no usable results. This isn't the case care here so the wrong data comes from the main method. Right the main method uses the linux applet "ps" to get a list of running processes including their process id, user id and process arguments. Then we get a list of installed apps and iterate the list, then for each installed app we get the user id and see if there is a process with the same user id. Sounds like sound logic to me... at least I thought so for probably a long time because this piece of code has existed since SD Maid v3...

Right so where is the flaw? Apps can share their user id... Oh it's so obvious... something something hindsight 20/20... So a process if the user id 1000 was running (common for the system itself and the case for our problem app from above), we would consider all apps with that user id as running... This also had a negative effect on other tools if they use the running apps data to skip operations on active apps. Ok now one can argue that shared user ids means shared access so skipping action based on that data would actually be more accurate, but in reality it didn't lead to the desired behavior and the chance for issues from it is negligble.
The solution is to determine running apps based on command argument output from "ps". In almost all cases the argument is the exact packagename, a bit of parsing/regex takes care of the rest. So I changed the code, installed and the missing frozen app on the MotoG was suddenly "Frozen" and no longer "Running", yay!

I still had some concerns over using the command argument from "ps", parsing always breaks with edge cases and I'm not sure how many there can be, because every device is different... We can't make it more relaxed because if we don't match the packagenames EXACTLY we get false positives again. A user id being just a number was much each to handle... Remember the "fallback" method from above? It's using different approaches to get the same data from the official Android API, lets just make it not a "fallback" option. Lets just take the data and merge it with the data from "ps" based on the process id. You may ask yourself why two methods in the first place? Not all ROMs give reliable data via the same methods.

To make issues such as this more obvious, e.g. an app both running and being frozen/force-stopped, I now don't make assumption, check both and display both if it happens, such that the error is also more obvious UI wise.

So that's the story of how running app detection was fixed. Have a nice sunday everyone!
38
William Briggs's profile photo
 
You have a great app. Thanx for what you do.
Add a comment...

Boris Wegner

Translation || UI  - 
 
German and Dutch language 100% translated,greeetz!!!
7
Add a comment...

Created by

About this community

A community to discuss beta versions of SD Maid. Use the links below to op IN/OUT of getting the BETA versions. Beta versions may: - Contain bugfixes - Have more bugs - Crash more - Crash less - Set your device on fire - More features - Less features Please use the issue tracker link to report problems or request features.

darken
owner

General Discussion  - 
 
SD Maid v4.5.9, can never have enough fixes.

Notes
* Fixed UI issues introduced with last android support library update.
* AppControl should now correctly handle cases where a package-restriction XML file exists, but is empty (instead of crashing or ignoring it).
* StorageAnalyzer better handles cases where an item within the file tree we try to generate could unexpectedly not be found. Logs indicate this either happens when the file was unexpectedly deleted or the filesystem returns corrupt metadata.

http://sdmaid.darken.eu/download
http://sdmaid.darken.eu/changelog
http://sdmaid.darken.eu/issues
48
1
darken's profile photoJosé Luiz Souza's profile photo
3 comments
 
Olá o seu app è incrível. Mas falta opção de Scannear Pastas 📁 vazia no SD CARD e no TELEFONE. Para limpeza.

BRASIL 🇧🇷 PORTUGUÊS
 ·  Translate
Add a comment...

darken
owner

General Discussion  - 
 
SD Maid v4.5.8 brings small tweaks & fixes.

Notes
* Scanning of `/data/system_ce|de` since v4.5.5 broke the SystemCleaner filter for `/data/system/dropbox` this is now working again.
* Due to not being able to detect recovery modes, the directories `TWRP` and `clockworkmod` have been flagged as common and will no longer be suggested as corpses.
* Blocking SD Maids internet access via firewall should no longer delay the initialization. Previously SD Maid was blocking and waiting on the time out for the update check. The timeout still happens now, but it won't keep SD Maid from continuing anymore.

http://sdmaid.darken.eu/download
http://sdmaid.darken.eu/changelog
http://sdmaid.darken.eu/issues
39
Annie Charles's profile photoClaude Deguili's profile photo
2 comments
 
Merci de votre message je ne parle et ne comprend que le francais il m arrive meme de me tromper a bientot
 ·  Translate
Add a comment...

darken
owner

General Discussion  - 
 
SD Maid v4.5.7 just fixes a crash.

I made a mistake when refactoring code, which lead to AppControl crashing after uninstalling or resetting an app :(

http://sdmaid.darken.eu/download
http://sdmaid.darken.eu/changelog
http://sdmaid.darken.eu/issues
37
darken's profile photoAnnie Charles's profile photo
2 comments
 
+ what .to get atandant.
Add a comment...

darken
owner

General Discussion  - 
 
First update of 2017: SD Maid v4.5.6.

Finds more stuff, handles edge cases better and is a little bit faster.

http://sdmaid.darken.eu/download
http://sdmaid.darken.eu/changelog
http://sdmaid.darken.eu/issues
28
Add a comment...

darken
owner

General Discussion  - 
 
SD Maid v4.5.5, sneaked directly into production.
Wasn't a beta but just making a post for possible discussion and some details for those who care.

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

When the previous updates introduced merging of running apps data from multiple sources I missed that the system may return that an app is running, but not give us a PID for it, but give us a PID of 0 instead. When using the databases tool without "Skip running apps" there was a chance that SD Maid tried to SIGSTOP the PID 0 (system scheduler) which would hang SD Maid possibly even the super user app until reboot. I searched Androids source code but could not find out when an app is running, but without a PID, I have a feeling that it's related to apps being bound/started by other apps, but could not confirm it. For now we are treating apps without a PID as "not running".
I've also improved the data merging to correctly merge apps with multiple pids into the same datastructure, this improves SD Maids ability to kill multiple processes like sandboxed browsers (e.g. Chrome).

24
1
Stefan Wimmer's profile photoThomas William H. Mc Kinty (Billy)'s profile photo
4 comments
 
Simply the best
Add a comment...

Yusuf B. Kenkaya

Bugs || Ideas  - 
 
it's not a big problem but, background colour and maid android's background color isn't the same. you can see the difference when you look carefully.
1
Vasilj Milosevic (eboye)'s profile photodarken's profile photo
12 comments
darken
 
Mail me.
Add a comment...

darken
owner

General Discussion  - 
31
darken's profile photoJeffrey Tew's profile photo
2 comments
 
Okay 
Add a comment...

darken
owner

General Discussion  - 
 
SD Maid v4.5.2 irons out the last kinks in our new v4.5.X series :).
There is also a new unlocker release.

http://sdmaid.darken.eu/download
http://sdmaid.darken.eu/changelog
http://sdmaid.darken.eu/issues
40
darken's profile photoPhilipp Gebert's profile photo
8 comments
 
+darken​ happy is good 👍 thanks for the explanation
Add a comment...

Horst-G. Thiel

Bugs || Ideas  - 
 
Wenn der automatische Deinstallations-Beobachter aktiviert ist, crasht SDM nach dem letzten Update der Beta Version. Galaxy S7 Edge M 6.01
Crash Report wurde gesendet
 ·  Translate
2
darken's profile photoHorst-G. Thiel's profile photo
3 comments
 
+darken Problem fixed, thank you
Add a comment...