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

Device administrator privilege to android app

I know similar questions has been asked many times but still i was unable to get my solution from any of it. I am quite new to android & JAVA so please keep that in mind :) .I am working on some security related experimental projects at work &…
Isha
  • 1
  • 1
  • 5
0
votes
0 answers

Prompt password on disabling device admin privilage

I have seen some applications like applocker in the playstore and I wonder how they prevent disable device admin privilege using a password prompt. I had some work around for the same but disappointed since the method onDisableRequested in my class…
Ansal Ali
  • 1,583
  • 1
  • 13
  • 30
0
votes
2 answers

No place to put device_admin.xml

I know that device_admin.xml should be put in my /res/xml folder but I have not a xml folder under the res folder. Where should I put it? device_admin.xml:
ffttyy
  • 853
  • 2
  • 19
  • 49
0
votes
3 answers

Hide app from Device Administration in system settings security

I programmatically gave my android application Device Administration access. I can now successfully enable and disable admin access through my application. But my app is showing in android settings-> Security -> Device Administrators. Through that…
0
votes
1 answer

Android Intent Filters

I require my application to monitor the installed application on an android device and also get the details of the applications currently running on the foreground. The two possible solutions i can think of are: 1.Defining a sticky service and…
0
votes
0 answers

Locking an android device with password

I'm developing a security application in android which will use DeviceAdmin rights. And if user tries to uninstall the app by deactivating Device Admin, an activity will be launched by ACTION_DEVICE_ADMIN_DISABLED receiver, which will prompt user…
Vishal Afre
  • 1,013
  • 3
  • 12
  • 39
0
votes
6 answers

Enable Device Admin without asking user

I'm using in my app Device Admin API but it requires actions from user to enable it - I was wondering that is it somehow install app and automatically enable admin on it without asking user? Does anyone tried to do something like this
Robert
  • 1,272
  • 4
  • 21
  • 40
0
votes
1 answer

Mobile device managment for SAFE devices

I am trying to develop a Mobile Device Management Application. I have so far implemented native or basic restrictions (policies) based on http://developer.android.com/guide/topics/admin/device-admin.html Now I want more access to the device to put…
Khawar
  • 5,197
  • 4
  • 28
  • 52
0
votes
1 answer

How to set hint in Device Administrator of my application

Hello I am trying to enable the "Device Administrator" of my application that is working perfectly but I want in "Device Administrator" settings, under my application it should show some hint about my application. I didn't find the way to do…
N Sharma
  • 33,489
  • 95
  • 256
  • 444
0
votes
2 answers

DevicePolicyManager could not be destroyed explicitly

I am launching DevicePolicyManager in an Activity after checking if user should be prompted to enable DeviceAdmin on device. If user clicks "Activate button", deviceAdmin will be enabled. If user clicks "Cancel" button, user will be shown a…
android_learner
  • 343
  • 2
  • 13
0
votes
1 answer

A couple of questions about password policies for Android devices

The application is device administrator, it can set a password policy with expiration time for the password. How will the user be notified about the expired password? Does it depend on the application? Or it will be standard android behavior? Can I…
obi4niy
  • 555
  • 4
  • 11
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

Kill Camera App Programmatically on Android

I am currently looking into creating a location aware security app whereby the camera is disabled if the phone moves into a designated location. I am now able to disable and enable the camera using the Device Administrator class and calling…
wakaka
  • 533
  • 1
  • 7
  • 21
0
votes
1 answer

Android taking photo when user fails password

I have a DeviceAdminReceiver, and I want to take a picture with the front camera when the user fails the password - but I got an error... The code: @Override public void onPasswordFailed(Context context, Intent intent) { try { …
0
votes
1 answer

Pass result from DeviceAdminReceiver back to calling activity

My activity (MyActivity.class) executes the method to set the screen lock as follow: startActivityForResult(Security.setLockscreen(getBaseContext()), 1001); Then my receiver class logs the change to the screen lock as follow: public class…
ChuongPham
  • 4,761
  • 8
  • 43
  • 53