https://github.com/WeirdMidas/BasicCleaner
A magisk/KSU module that applies a set of cleanups and fixups every 7-15-30 days.
https://github.com/WeirdMidas/BasicCleaner
Last synced: 4 months ago
JSON representation
A magisk/KSU module that applies a set of cleanups and fixups every 7-15-30 days.
- Host: GitHub
- URL: https://github.com/WeirdMidas/BasicCleaner
- Owner: WeirdMidas
- Created: 2025-04-09T20:00:23.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-09-15T22:49:45.000Z (4 months ago)
- Last Synced: 2025-09-16T00:23:37.360Z (4 months ago)
- Language: Shell
- Size: 46.9 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-android-root - Basic Cleaner - A magisk/KSU module that applies a set of cleanups and fixups every 7-15-30 days. `FOSS` `[M]` `[K]` (๐งน Debloating and Cleaning / Themes and Visual Mods)
README
# BasicCleaner

### Safe and fast, efficient cleaning
A simple module designed to be a maintenance tool for devices that want to last a little longer, but don't want to do manual things to maintain the longevity of the device.
The script applies the following maintenance after 2min of boot:
- fstrim every 7 days on: system, data, cache, persist, vendor, system_ext and product.
- clean cache and trash of apps every 7 days.
- zipalign every 15 days.
- synchronize the art, compile the images, the final cleanup of unused files from the ART and a background recompilation of the apps is also applied to make everything more robust every 30 days.
If you want logs, just go to the android folder in the main storage. It will show all the cleanings applied, the time it took between them, etc.
And remembering that the times above are for the next cleanings, the module will apply all the cleanings mentioned after boot after installation and thus, the next ones will be at the time mentioned above. This means that the module will be cleaning the device continuously when it hits the period that was marked (but it can be customized by the user).
## Customizing the cleaning time
The module has now been updated and you can customize the cleaning period for each task. This is done in the file called "panel_cleancfg.txt", which is located in the android folder where the cleaning logs are located. The way to customize it is through seconds, where you will enter the time of the day in seconds (example: 15 days for optimization of final clean would give 1296000). It is recommended to NEVER set it to less than 5 days (or even 7 depending) because this can cause "overcleaning", which can affect your system by leaving it so clean that it can generate errors, such as messengers frequently disappearing messages.
- Default Values โโ(And their Meanings)
- ZIPALIGN=1296000 (Zipalign|15 days)
- JUNK=604800 (Cache and Junk of apps|7 days)
- FSTRIM=604800 (Fstrim|7 days)
- FINALCLEAN=2592000 (Sincronyze, compile the XML images and Clean of unused files from ART|30 days)
## WARNING!
The module also comes with the latest version of the sqlite binary, which is a maintenance that I will do to keep the module up to date. So if you use a module that also does this, I recommend removing it, or not using my module.
Older Androids can also suffer from the updated sqlite, so have your bootloop protection module on hand, in case something goes wrong.
### Credits
To the artist of the image I used for the cover; I couldn't find him here.