0

Trying to developing multiple apps in which I have a Main app. All other apps are kind of supportive ones.

Can we uninstall support apps if the Main app is uninstalled by user. If so, what changes would it require to do in all apps.

As I know using Action_DELETE it will ask user's consent to uninstall the app but I want to uninstall without that.

Vaibs
  • 1,128
  • 3
  • 16
  • 36
  • What's wrong with asking the user? – Olaf Dietsche Nov 23 '16 at 07:35
  • @OlafDietsche: There can be multiple apps so I don't want user to be bugged. Also those apps would be useless if Main App is uninstalled. – Vaibs Nov 23 '16 at 07:36
  • I asked, because I would be upset, if anyone removed apps without asking. – Olaf Dietsche Nov 23 '16 at 07:40
  • If the only purpose of these apps is to support your main app, reconsider your architecture. You could easily do all of this in one app. – tynn Nov 23 '16 at 07:46
  • without root permissions you cannot uninstall any app without user permission – Nishant Pardamwar Nov 23 '16 at 07:49
  • @NishantPardamwar So if we gain system level permission of app than it can be achieved and not for 3rd party am I right? – Vaibs Nov 23 '16 at 08:02
  • 1
    **pm uninstall** commands needs **android.permission.INTERACT_ACROSS_USERS_FULL** permission which has **signature** only permission, so it wont work unless your apk is signed with same certificate as your system. you can check [here](https://android.googlesource.com/platform/frameworks/base/+/master/core/res/AndroidManifest.xml) – Nishant Pardamwar Nov 23 '16 at 08:37
  • 1
    there is other way which you can checkout [here](http://stackoverflow.com/questions/10900928/uninstall-app-silently-with-system-priveleges) – Nishant Pardamwar Nov 23 '16 at 08:40
  • @NishantPardamwar Thanks for the info.. Its really helpfull. – Vaibs Nov 24 '16 at 06:05

0 Answers0