I was wondering how hibernating of an app works technically.
I know about freezing an app (shell pm disable com.mypackage.name
),
but this also hides the app icon from launcher. I want to know how Greenify App works. It disables the app from running in background until I launch it again and then when I exit from that app, Greenify automatically hibernates it.
So my question is how does it do that?
am
command did not disable apps, it just stop app from running but some event can still run app again. Greenify is usingpm
command to freeze apps. – QkiZ Nov 15 '20 at 13:56