I have updated this to work with Android Q. There are zero logs produced and you can confirm it is working by doing what I did in the screenshot. Updated version is attached, please uninstall previous versions first.
I have also changed it to mark the apps locked via the eternal lock option as a system app. These apps will not be closed down UNLESS it is absolutely necessary. I could add the exception option which REFUSES to kill the app regardless (these are known as native processes, IE kernel is running them) but I do not think that is necessary.
If you run the following code either in a terminal emulator or in adb shell, you can check your locked app's oom_adj values which will let you know if it is working. I missed this module because my keyboard and Always On Display would occasionally get killed because they would get pushed to "empty app" status. Now they will never be.
View attachment 5125891
EDIT: Found a few things I missed. Fixed and is attached.
Thanks, it works on android 10 with EdXposed.