Tuesday, May 7, 2019

disable app - How does freezing an app work technically?


Apps like Link2SD and Titanium Backup are able to "freeze" other apps, that is disable them without removing them. What do these apps do to achieve this?



Answer



Titanium Backup etc just use in-built Package Manager (pm) to freeze an app. pm has a feature to prevent apps from running & from appearing in Launcher. To use it, Titanium Backup etc execute following command:






You can freeze apps by yourself without using a dedicated freezer app. Just use the above command in Terminal Emulator or ADB Shell.


For example, if you want to freeze Stock Web Browser, open Terminal Emulator & switch to root using su command. Then, execute # pm disable com.android.browser.
It'll return #Package com.android.browser new state: disabled. Done!
Restart your Launcher (some devices may require reboot) to see the app icon gone.


To defrost the app, just replace disable with enable in the command.


No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...