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
0 answers

How to take photo on DeviceAdminReceiver.onPasswordFailed method?

I am trying to develop android application which will help to identify who is trying to access my mobile in case of invalid pattern/pin. I have enabled my application as device administrator and implemented email functionality to trigger in case of…
Gopinath2105
  • 35
  • 1
  • 7
0
votes
1 answer

Using the Android Device Administration API is it possible to restrict a password to being only numeric

At the request of the client, I am working to implement a password policy that restricts the password to being PASSWORD_QUALITY_NUMERIC_COMPLEX and will not permit the passwords to be of a higher quality by containing letters or special characters.…
JBJ
  • 1
  • 2
0
votes
1 answer

Using DPM to set Device owner

I know you can use dpm to set an app as a device owner via a runtime exec command, but my big question is can you also use the dpm to remove an app as device owner? Such as with a password run the code to remove the app from device ownership? I am…
0
votes
1 answer

how to identify an uninstall attempt which fails due to app defined as device admin

when attempting to uninstall an app which is defined as device admin, the uninstall fails (this is normal system behavior); however, there is no notification to explain to the user why this happens. is there a way to identify the uninstall attempt …
hundreAd
  • 158
  • 2
  • 8
0
votes
0 answers

Why this app is required by your device administrator and can't be Uninstall?

When I am trying to uninstall my application then it's showing "This app is required by your device administrator and can't uninstall ". But We have not implemented any device administrator in my application and not given any permission for that. We…
Jigar Shekh
  • 2,800
  • 6
  • 29
  • 54
0
votes
1 answer

Android Device Admin app enabled by default

I have a question about admin apps on Android that I can't find the answer to. I followed the guide on creating an admin app from here: https://developer.android.com/guide/topics/admin/device-admin#java I successfully created an admin app but…
John Octavious
  • 221
  • 1
  • 3
  • 9
0
votes
1 answer

Oppo phones showing yellow line at Notification Bar

I have an app which uses Administrator permission, In oppo phones if user provides Administrator permissions then Oppo phone is showing yellow line at Notification bar (Continuously flashing notification). How can I prevent that notification in oppo…
0
votes
1 answer

How to check if the user waited 10 seconds to enter password on phone?

I'm developing a security app, I need to check if someone waited for 10 seconds to enter a password on the android phone. How to do that? I was trying with this: new Handler().postDelayed(new Runnable() { @Override public…
Nabila Tajrin
  • 189
  • 2
  • 5
0
votes
2 answers

Fetch usage of other apps from my application in Device Admin mode

I have an Android app for which I wanted in COSU mode. I have successfully activated my device into Device Administrator mode. Now I want the data of the usage of other apps used daily. For eg: Facebook, etc. I need the data to monitor usage of…
Name is Nilay
  • 2,743
  • 4
  • 35
  • 77
0
votes
1 answer

Make My DeviceAdminReceiver Removable

I'm writing a xamarin app for android that uses the device admin api to implement a "kiosk mode". To do this I've implemented a subclass of DeviceAdminReceiver and and set that component as a device administrator via the adb command " dpm…
kabla002
  • 321
  • 4
  • 13
0
votes
1 answer

Android remote device management without internet

I'm trying to implement Android device administration on a range of company-owned devices. The network these devices will be on does not have an internet connection - It will only have Wi-Fi connection to the enterprise network. I have the device…
0
votes
1 answer

Google Apps device policy in Android

How to use Google Apps device policy in Android. what are the methods we need to use to provide google apps device policy in Android?
Android_programmer_camera
  • 13,197
  • 21
  • 67
  • 81
0
votes
1 answer

Device Owner setup using code not working

Runtime.getRuntime().exec("dpm set-device-owner com.integral.kiosk.kioskapp/.receivers.MyDeviceAdminReceiver"); not setting the device owner in Android emulator Nexus 6 OS Android 8. but when using adb shell command it is working fine. attaching the…
notify
  • 1
  • 1
0
votes
2 answers

can not Deactivate this device Administrator

Have an application granted device administration, while trying to uninstall went to device Administrator screen, but the option to Deactivate this device administrator text's visibility is dim and i can not deactivate.
Vikas Pandey
  • 1,115
  • 1
  • 15
  • 25
0
votes
2 answers

instead of making device owner is there a way to make android app disable camera accross all users account

We have android app as an Enterprise App which disables the camera of the Device. This functionality breaks when user switch to Guest user or similar functionality. Having app as Device Administer is not enough, We have found one solution to it i.e…