How to add option (remove updates) to app info
as shown in the picture below Can I allow the user to do this through my application? I mean we are allowing the user to uninstall this update and restore it to a previous version.
Dose this option using us pragmatically, if so how to do it?
I tried to start the application, after which I changed the version name and started again, then I looked at the application information and that parameter was not there.
thank.
source to share
This option is only available for system applications.
System apps have a persistent base apk located underneath /system/app/
, and unless you start your device and uninstall this apk, it cannot be completely uninstalled. This is why the only option for system apps is Uninstall updatesto revert the app back to the factory version installed on the firmware.
If you opt Uninstall updatesfor a system app, confirming that you really want to do this, it will fall back to the factory version. Then, after the application reverts back to the factory version, in the Application Manager you will see the Uninstall option grayed out (disabled).
Applications that don't have a factory version, i.e. do not have apk under system/app/
and were installed manually by the user, do not have this option. The only option is to completely uninstall the app.
source to share