Click here to Skip to main content
15,881,867 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello everyone,

I am making a security related android app. In which
I want to restrict user to uninstall the android app by password,
at the time of app installation I want to get input password from user and during uninstallation user must enter the same password to uninstall it.
Without entering that password he should not uninstall the app.

I searched over internet and asked many android developers but nobody can sort it out.
This type of security exist in quick heal app (quick heal antivirus for mobile), so it is possible.
Some says it can't be possible with normal android SDK, it requires administrative API.
Some says it can't possible.

Please suggest me if anyone have solution.

I tried out package watcher through broadcast receiver and reached almost near by to my goal.
But at the time of uninstallation two package installer generates, one is the default (implicit) and one is created by me (explicit).
When user select "my package installer" then he prompt for password and everything goes as desired but when user selects default package installer then the app got uninstall without asking for password.

Anyone here to solve this issue?
Posted
Updated 11-Feb-14 9:13am
v2

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900