Can someone please test this? I did, and it seems to work, no guarantees (not sure). If it works, maybe I can patch the framework so that we don’t need a module. I don’t have egate to test.
First, before flashing the module, open any app on your Qin F21 Pro.
Then:
adb shell pidof (package_name)
Close the app from recents.
Run the command again, should return no pid.
Flash the module and try the same process again.
no-kill.zip (331.7 KB)
Found something in:
/system/framework/services.jar → classes.dex → ActivityManagerService.smali
Here is the line that seems to kill app process when closed in recents:
invoke-virtual {this, ...}, Lcom/android/server/am/ActivityManagerService;->removeProcessLocked(...)
This is for all app processes, not just egate.