amity
amity

Reputation: 960

How to block installation of other application using device administrator app in android

How to block installation of other application using device administrator app in android. How can we code it to restrict the installation of the application using device administration application?

please help me out.

Upvotes: 5

Views: 5275

Answers (2)

Maxim
Maxim

Reputation: 4214

As far as I know for android version up to ICS (<= 3.2) Your app (device admin) cannot block installation of another apps. You can only handle the even that new app was installed/uninstalled.

Upvotes: 1

SERPRO
SERPRO

Reputation: 10067

I guess you should create a receiver for this action android.app.action.ACTION_INSTALL_PACKAGE check if the package is the one you want to block also follow the instructions from the Android page on How to create Device Admin Applications

Upvotes: 0

Related Questions