Reputation: 14828
I know this may not be possible. but I just found such an app. I can't uninstall the app, even not able to clear data, cache of the app an really this is not a system app. What this app does is just spam my phone with push notifications all time.
My Phone is not rooted!!
So my question is how is it possible to make such an app?
Upvotes: 2
Views: 13403
Reputation: 178
The apps which have administrative permissions, which can be found under Setting > Security & Private > Device Administrator, cannot be uninstalled without revoking administrative permission.
Upvotes: 4
Reputation: 321
I would recomend reading up on ROM development. What you need to do ise create a non rooted ROM that has the app you don't want to be uninstalled in the /system/app directory. All apps that ship with ROM's will be in that directory which is restricted. Because you can't write to that directory when you install a new app they get placed in the /data/app directory. So if you issue an update to the app then it will most likely get placed in the /data/app directory and the update can be uninstalled.
Your options are kind of limited.
Upvotes: 0
Reputation: 11194
The only way to make your application uninstallable ( You can't really if the user is using a rooted phone) would be to install it directly in Android bundle, pushing it via ADB (while rooted) to the
/system/app
directory...
Then, it's in anyway possible for a dev with standard access to the users phone.
Upvotes: 2