[Android Apps and Games] Diechel:
DISCLAIMER: I'm not responsible for any damage to your device!

- ROOT REQUIRED -

AutoTrim helps to restore the performance of your internal sdcard on your phone by trimming the filesystem (fstrim).

With AutoTrim you can set the time you want your phone's filesystem to be trimmed. When the time has been reached the app waits for an display on event, after that it will wait 5 seconds before trimming. The display on event is used because of problems with Dorimanx kernel (LG G2) and trimming when phone is sleeping. It can result in a Screen Of Death (SOD),

The app should work on all phones who's rom/kernel support the command 'fstrim'.

ANDROID VERSIONS:

Works with:

- Android 4.0+

- Android 6.0 Marshmallow

- Android 7.0 Nougat

- Android 7.1.2 Nougat

SCHEDULE:

The scheduler will once a day at your specified time. For example you set 6.0 which means 6 o clock in the morning. At 6 o clock AutoTrim will wait for an display on event, after that it will trim your chosen mountpoints. The next day it will run again.

TRIGGERS:

With triggers you can control the automation of the trimming. When you set the boot trigger, it will trim at boot, simple as that. Same for the rest of course.

LOGGING:

In the top right corner there is an setting icon, there you can enable Write log to file. This allows you to monitor the behavior of AutoTrim and how much it trims everytime. The file is saved on the root of the SDcard /sdcard/AutoTrim_log.txt.

Q&A:

Q: Textsize is too small.

A: You can change the textsize in settings, click on settings icon in the right top. Because the app is made with Tasker i cannot test multiple resolutions.

When you have any questions about AutoTrim, feel free to contact me through mail. If you like AutoTrim i would like to read that in a review :)

DONATIONS:

- Stefan P

TODO: [11-06-2017]

- Check if 'fstrim' command is supported, if not try 'busybox fstrim'

- Check if 'vdc fstrim dotrim' is supported if above does not work

- Try to fix text scale problems

- If only boot trigger is activated kill the service after that has been done

- Use own fstrim binary if system not supports it

DOWNLOAD:

https://play.google.com/store/apps/details?id=com.diechel.xda.autotrim

BETA:

https://play.google.com/apps/testing/com.diechel.xda.autotrim

CHANGELOG:

GREEN = WORKING

ORANGE = TESTING / BUSY

RED = NOT WORKING FOR NOW

V2.65 (19-06-2017)

- Added /sbin/busybox to command check

- Fixed command check busybox fstrim

V2.64 BETA (11-06-2017)

- Check if 'fstrim' command exists, if not try 'busybox fstrim' if not show error

- Added notification for boot trim

- Added runShell function for better debug

- Stop service if only boot trigger is activated, also stops when using back button within app, needs work

V2.63 BETA(10-06-2017)

- Changed command 'fstrim' to 'busybox fstrim'

- Reverted screen-on / off delay

V2.6

- Changed launcher icon

- Added delay after boot, screen-on and screen-off

- Removed subtitle

- New Tasker version ( http://tasker.dinglisch.net/changes.html )

V2.5

- Enable debug log for first startup after installation

- More debug logs

- Text can be used to change checkbox

- New Tasker version, possible fixes for Android Nougat

V2.4

- Fixed issue that parameters where not initialized on first start when SU permission was declined. Could reproduce it.

V2.3

- Fixed initializing of parameters if su permission not given on first start

- Layout fixes

V2.2.1 (28-03-2016

- Fixed schedule Time issue

- Added log delete button

V2.1

- ADDED TEXTSIZE IN SETTINGS!

- Added settings page

V2.0

- New layout

V1.6 (not released):

- Textual changes

- Do not show log in settings when file is not present

V1.5 (13-09-15, build 23):

- Added schedule time to schedule title

- Added logging feature (/sdcard/AutoTrim_log.txt), can be enabled in settings

- Added triggers which were requested by a user (boot, schedule + display on, display on, display off)

- Added variable reset function

- Layout changes

Build 16:

- Added trim on boot

- Forced profiles on/off on first startup

- Layout fixes

- Released source xml, you can edit/use it and of course redistribute it. (with credits)

Build 13:

- Removed first boot profile, added to INIT.

- Released source xml, you can edit/use it and of course redistribute it. (with credits)

Build 12:

- Layout changes

Build: 8

- Fixed critical bug, time was reset on startup