Questions tagged [device-admin]

The Device Administration API for Android 2.2 and later allows applications to enforce security policies by requiring a password or encryption, and to lock or wipe the device programmatically.

Android 2.2 introduces support for enterprise applications by offering the Android Device Administration API. Administrators can enforce password policies — including alphanumeric passwords or numeric PINs — across devices. Administrators can also remotely wipe (that is, restore factory defaults on) lost or stolen handsets.

226 questions
0
votes
1 answer

"Enable device admin" page not showing

I got a strange problem i wanna show user the device admin page in setting for set my app as admin but i don't know why after create the intent nothing happened! here is my all codes: code for showing page: ComponentName componentName = new…
erfan
  • 81
  • 1
  • 11
0
votes
1 answer

make app as device admin

I am using following code to set app as device admin Intent intent = new Intent(DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN); intent.putExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN, deviceAdminComponentName); // Here setting my receiver as device…
Rajeev Kumar
  • 4,901
  • 8
  • 48
  • 83
0
votes
1 answer

Can DevicePolicyManager.lockNow() be called from a non-admin app?

These document the use of lockNow() from an app that's admin. https://developer.android.com/reference/android/app/admin/DevicePolicyManager.html#lockNow(int) http://blogs.quovantis.com/android-device-administration-apis/ The basic process…
mikeLundquist
  • 769
  • 1
  • 12
  • 26
0
votes
0 answers

How to add custom policy to device administrator api?

In list of policies provided by android OS there exist policies about password , wipe data and etc . Is it possible to add new policy in this list? I need a policy when a mobile connect to a BTS It checks if it's cell id is in my list of valid BTS…
ofskyMohsen
  • 1,121
  • 1
  • 12
  • 26
0
votes
2 answers

How to Display Toast on Lock Screen after Failed Password Attempt

I am trying to show a Toast on the lock screen after a user enters the wrong password 3 times. I am able to verify that the user has failed 3 times through the log console, but would like some message to show on the lock screen so the user knows. I…
dsb
  • 121
  • 12
0
votes
1 answer

Android - INSTALL_FAILD_SHARED_USER_INCOMPATIBLE

My original question is here: Android - How to programmatically switch users by user name? and it still unanswered, but I got some progress and now I'm completely stuck. Now I've followed these steps: Added a DeviceAdmin class as shown in the code…
Liran Friedman
  • 4,027
  • 13
  • 53
  • 96
0
votes
0 answers

Android device administration

I am trying to develop an app with the help of device administration policies to disable stock camera on non-rooted devices,and the key point will be that the policy can't be deactivated by anyone without entering password can you someone please…
user3556209
0
votes
0 answers

How to disable or remove this prompt when install our app "Do you want to install this application? It does not require any special access"?

Whenever I install my android application I am facing this prompt before getting installed. Is there anyway to remove or disable this prompt in programmatically? What I want to achieve is, I want to send application file(apk) from server to mobile…
0
votes
1 answer

Is it possible to enable the target app's device admin from the test APK?

My app is a device admin, and I enable it by running Intent intent = new Intent(DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN); and pressing "Activate" or "Enable." Can I enable the device admin from my test APK using Espresso?
Maksim Dmitriev
  • 5,985
  • 12
  • 73
  • 138
0
votes
0 answers

Android: not showing messages on onPasswordFailed

I have implemented my own class, extending the DeviceAdminReceiver, given the app appropriate authorities to run this etc. I have tried to display a message (as a simple Toast as below, and by starting a new activity) when user has entered wrong…
stoif
  • 1
  • 1
0
votes
1 answer

Android packagemanager not launching app

So a few days ago I build an update for my custom android car tablet with my own launcher (based on Nexus 7 2013, Android 5.1.1). I added a few new features and some fixes (which have nothing to do we the activity that causes the problem), and I…
0
votes
1 answer

How to get current open activity package name or class name in setting like device administration in android 5 and above?

I Want to lock my device administration setting through my app so how to get package name or class name of device administration in android 5 and above version
0
votes
1 answer

Android Device Administration AndroidManifest.xml, why the question mark in the receiver name?

In reading the Android documentation on Device Administration, it says to set it up as follows:
VikingGlen
  • 1,705
  • 18
  • 18
0
votes
0 answers

DeviceAdminAPI is not working

I am trying to use device Admin API in my app. My DeviceAdmin caller class is this: public class DeviceAdminCaller extends Activity implements OnClickListener { static final int activationCode = 47; Button b; DevicePolicyManager mgr; ComponentName…
0
votes
1 answer

Device Administration Screen won't open

I am trying to use device Admin API in my app. My DeviceAdmin caller class is this: public class DeviceAdminCaller extends Activity { static final int activationCode = 47; @Override protected void onCreate(Bundle savedInstanceState) { // TODO…