Questions tagged [device-policy-manager]

DevicePolicyManager is a Java class in Android where device policies (password quality etc) can be set by a third party Device Administrator application.

Methods and constants in DevicePolicyManager are shown here:

http://developer.android.com/reference/android/app/admin/DevicePolicyManager.html

A tutorial to write a Device Administrator application can be found here:

http://developer.android.com/guide/topics/admin/device-admin.html

154 questions
0
votes
2 answers

GetPasswordQuality method of Device Policy manager gives none value first time?

In my device i already set a password of device, now i install my app which is managed by device policy manager. now when i call this method int currentPolicy = devicePolicyManager.getPasswordQuality(demoDeviceAdmin); …
shyam002
  • 237
  • 1
  • 5
  • 19
0
votes
2 answers

Android NFC Provisioning and installing in house corporate apps

My company wants to distribute tablets to employees for company use only, but wants to set them up with certain permissions, custom applications and a custom launcher. So I have the basics down as I have an app that will use NFC to provision an new…
Brian
  • 371
  • 2
  • 17
0
votes
0 answers

Android Device Password Policy erased on Reboot

I am using DevicePolicyManager class in Android to set a password policy from my device admin application. I noticed that on reboot, the password policy is erased. For example, if minimum length of the password was set to 5, after reboot it is…
0
votes
1 answer

Android 5.0 Admin Policy startActivityForResult

I have an app with AdminPolicy since Android 4.0 and worked like a charm. Now with Android 5.0 when i start the Admin check Activity, the app don't open the Activity, but flashes white and black. This is my code that worked in Android 4.0 ...…
Allen Walker
  • 866
  • 1
  • 9
  • 17
0
votes
1 answer

How are apps white/black listed in a corporate owned device (DevicePolicyManger)

I've studied the source code (and what little documentation there is) for the Google sample app which demonstrates the use of the DevicePolicyManger class to set up a corporate owned device.…
Gruntcakes
  • 37,738
  • 44
  • 184
  • 378
0
votes
1 answer

Android 5.X Hide application from launcher

I've an application with DevicePolicyManager configured, on Android 5.0.1. I don't want to create a work profile and control it, but i want to control my own (default) profile and hide some applications. When i try to use the setApplicationHidden…
Sharas
  • 1,985
  • 3
  • 20
  • 43
0
votes
1 answer

Device-Owner fine grain control of configuration: How?

I'm designing a device-owner App for professional purposes, and even if there is few doc about this, Google tells everywhere* that a device-owner app can do almost whatever it wants on the device... But sadly all the examples are desperately…
JBA
  • 2,889
  • 1
  • 21
  • 38
0
votes
1 answer

Is it me, or is DevicePolicyManager.getStorageEncryptionStatus() broken?

I am trying to determine the storage encryption status of my Android device from within my application. Following the recommendations of the relevant Android Developer page, here is my code: DevicePolicyManager mDPM = (DevicePolicyManager)…
Patrick Brennan
  • 2,688
  • 3
  • 20
  • 30
0
votes
1 answer

Which level of DevicePolicyManager password quality disables pattern password?

I am writing an android app which sets the password quality based on certain conditions. I can say with certainty that when password quality is set to PASSWORD_QUALITY_SOMETHING, the pattern password is available on the phone but when I set the…
Crusher
  • 231
  • 3
  • 11
0
votes
1 answer

Unlock using DevicePolicyManager

My application will set as active admin using DevicePolicyManager . I am setting a password like '1234' using DevicePolicyManager.resetPassword() method. Is it possible to unlock the phone without asking the default lock screen (I want pass the…
0
votes
1 answer

DevicePolicyManager deviceManger.lockNow() is not working anymore after upgrade to Android 4.3

My App was working fine before the upgrade on my Samsung Note II, it was able to do lockNow() and wipeData() perfectly using DevicePolicyManager. i could'nt find any solution to my problem. is there anything i can do to fix it , or google just…
OKAMS7
  • 31
  • 8
0
votes
2 answers

deviceManger.lockNow() is Not Working on some Device

I am working on Phone Lock from this Reference. Working well on my Samsung Tab 2. But when I run the Same Code On Nexus 2. It does not work .I have posted some Code below. It Logs "DeviceAdminSample" "Admin enable FAILED!". Any help will be…
Bhoomika Brahmbhatt
  • 7,404
  • 3
  • 29
  • 44
0
votes
1 answer

How to run Device Police Manager From A Service

I am able to create an Activity that uses the DevicePolicyManager API's. The tutorials show that I need use it the following fashion: if (!mDPM.isAdminActive(mAdminName)) { Intent intent = new…
drlobo
  • 2,139
  • 5
  • 32
  • 42
0
votes
1 answer

Uninstall DevicePolicyManager app

My App uses a DevicePolicyManager. If my users want to uninstall the app they have to do following steps: SETTINGS -> Location and Security-> Device Administrator deselect my App and then thay can uninstall it I think that is not a good solution…
Cilenco
  • 6,951
  • 17
  • 72
  • 152
0
votes
1 answer

How to only allow an Android app granted Device Administration API access to control a given feature

I have recently been reviewing Android's Device Administration API in order to find a way to protect a device from having certain apps forcefully stopped or uninstalled. I came across wipeData() as…
gonzobrains
  • 7,856
  • 14
  • 81
  • 132
1 2 3
10
11