This feature is currently available in
Semaphore Kernel for 4.2 JB
Mackay Kernel (untested)
Fishears Kernel (untested)
You can add up to 6 apps (kernel-limit) that will not get killed if your phone needs free ram. The purpose of this is to prevent e.g. your launcher from being killed when your phone needs more ram - resulting in redraws and unresponsiveness.But be warned: if you add too many memory intensive apps to this list your phone will get laggy and in worst case you will get force closes.
How it works:
To make an app "invulnerable" one needs to write it's PID (process ID) in a Kernel-config file
To get the PID of an app it has to run
This is why the whitelist-app starts a service (on boot and if you change the config) that runs and checks periodically for PIDs until it has found all your selected apps
Be aware that the service will run forever if you add an app that never gets started to the list!
If you only add your launcher and/or other apps that run permanently it will finish immediately.
Of course this requires root permissions to work!!
It is not the prettiest android app there is, so feel free to contribute with a better layout
Since Version 1.2 there are 3 open intents, which let you clear/create the whitelist from within other apps. The intent actions are:
BIG THANKS TO STRATOSK, the developer of Semaphore Kernel and the Semaphore Manager app.
Please consider donating to him to support the further development of the kernel.
If you want to support my work please have a look at my apps in play store (see my signature)
I will send the source code to anyone asking me via PM.
Raise Version to 2.0
-) Ability to detect services running in their own process (works for greenify, possibly also tasker - didn't check though)
-) Create Launcher shortcuts for apps combined with whitelist actions, takes label and icon from the selected app
- clear whitelist: recommended for games, whitelist needs to be manually enabled again afterwards
- temporary add to whitelist: recommended for music player apps, the started app gets added to the whitelist until it is refreshed
Fix wrong game mode state on reboot
Option to force greenify apps in game mode (enable in settings)
Changed launcher shortcut to toggle game mode (whitelist on/off)
Added new open intent TOGGLE_WHITELIST
Added Launcher shortcut to clear whitelist
Added open Intents to clear/create whitelist
Renamed to LMK Whitelist
Added option to disable toast messages
Added about dialog