Profile

Cover photo
darken
14,135 followers|1,486,119 views
AboutPostsCollectionsPhotosYouTube

Stream

darken

Shared publicly  - 
20
Harald Pohle's profile photoCraig D'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

Shared publicly  - 
 
Happy Holidays!

SD Maid v4.5.5 is now the latest release and currently in rollout to production.

New stuff:
- Improved Android TV support
- AppControl now has a new entry experimental feature called "Activity Manager"
- On rooted devices AppControl now also supports moving apps between internal and external storage if your device supports it.
- CorpseFinder has a new filter for `/mnt/secure/asec` which checks for encrypted apps that have been moved to external storage.
- SystemCleaner has a new filter for "Recent tasks" which clears out the data used to restore the apps from the recent tasks screen after reboots.
- AppCleaner has a new filter for clearing out send/received files by the Telegram app. The analytics filter now also targets a few additional files related to Adobe analytics.
- Databases page and the Exclusions page now have new sort/filter option for their user-interface.
- On Android 7.1+ you can trigger the QuickAccess scan+delete through app shortcuts.
- The scheduler now offers a task to reboot your device with the options of hot reboot (just UI) and full reboot (powercycle).
- Fixed apps (especially system apps) being falsely detected as "running".
- Major rework of SD Maids internal task system.
- Major rework of AppControl's internal procedure to build "AppObjects".
- Improved cache detection for items on the root of the sdcard.

For more indepth remarks please see these posts in the beta community:
https://plus.google.com/b/116634499773478773276/116634499773478773276/posts/5MD4t2sNjwD
https://plus.google.com/b/116634499773478773276/116634499773478773276/posts/Yvxjf3b6cJb

http://sdmaid.darken.eu/download
http://sdmaid.darken.eu/changelog
http://sdmaid.darken.eu/issues
43
Celia de Castro's profile photoVania Kovmir's profile photo
2 comments
 
Awww
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...

darken
owner

General Discussion  - 
 
SD Maid v4.5.0 brings presents.

New stuff:
- Android TV support, no new UI, but it shows among other Android TV apps now.
- AppControl now has a new entry called "Activity Manager" which allows you to launch activities besides the one an app starts from it's launcher icon. Not all apps handle this well, but some do, and for those there is a button to add a shortcut to this activity to your homescreen.
- On rooted devices AppControl now also supports moving apps between internal and external storage.
- CorpseFinder has a new filter for `/mnt/secure/asec` which checks for encrypted apps that have been moved to external storage.
- SystemCleaner has a new filter for "Recent tasks" which clears out the data used to restore the apps from the recent tasks screen after reboots.
- AppCleaner has a new filter for clearing out send/received files by the Telegram app. The analytics filter now also targets a few additional files related to Adobe analytics.
- Databases page and the Exclusions page now have new sort/filter option for their user-interface.
- On Android 7.1+ you can trigger the QuickAccess scan+delete through app shortcuts.
- The scheduler now offers a task to reboot your device with the options of hot reboot (just UI) and full reboot (powercycle).

Notable changes:
- Improved detection of hidden caches on the root of sdcard. Previously it was required that the parent directory was named after app in question. If we are at the point where we check whether files are expendable, then we already know who owns that folder and don't really care about the directory name.
- The baseconditions setup was rewritten to fix a possible hanging issue. This is the routine that runs before anything else runs each session.
- A SD Maid tasks distribution. This is a routine that gives each of the tools their task and manages how many may run in parallel, as well as makes sure that only one task can run per tool at most. The rewrite was necessary as we now have a new task (i.e. reboot task), that only makes sense to run after all other tasks have run.
- Major changes to the external task system which is used by the scheduler and widgets. This was necessary to allow the Android 7.1 shortcut system to use the same system. I have some concerns over old widgets/schedules, if they don't work correctly please record a debug log of this first, and then see if resetting is necessary to fix it.
- The AppControl tool uses a much more modular approach now. Basic `AppObjects` are populated with different types of data items like storage, receiver, permissions. At the cost of a bit of speed we get more room for clean code and new features, as well as better reflecting changes made to apps (e.g. if we disable receivers, we can just refresh the "receiver-data" part of the AppObject instead of making assumptions or refreshing the whole object).

This is a beta only release, depending on everyones feedback I might hide a few of the new features as "experimental" for a production release.

http://sdmaid.darken.eu/download
http://sdmaid.darken.eu/changelog
http://sdmaid.darken.eu/issues
34
1
Damiano Orengo's profile photodarken's profile photo
9 comments
darken
+
1
2
1
 
+Damiano Orengo I didn't say it can't be done. I'm saying adding code for each launcher is dirty. Launchers should support the official API. developer.android.com - App Shortcuts
Add a comment...

Communities

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
47
1
Ray Hollingsworth's profile photodarken'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

Shared publicly  - 
 
SD Maid v4.5.7 is now the latest production version.

Finds more stuff, handles edge cases better, fixes some Android M/N issues and is a little bit faster.

http://sdmaid.darken.eu/download
http://sdmaid.darken.eu/changelog
http://sdmaid.darken.eu/issues
30
2
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
darken's profile photoStefan Wimmer's profile photoThomas William H. Mc Kinty (Billy)'s profile photo
4 comments
 
Simply the best
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...
darken's Collections
Communities
Contact Information
Contact info
Email
Story
Tagline
I enjoy Android development!
Introduction
Creator of SD Maid and other apps.