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

Can we use DeviceAdmin API to handle application specific policies

I need to handle expire of password in Android Application.The password will be stored in preferences or db. http://developer.android.com/guide/topics/admin/device-admin.html says that DeviceAdmin Api has ability to set policies like "Password…
Abhijith V R
  • 81
  • 2
  • 7
0
votes
1 answer

Android: Device Admin: Why should Activity be an inner class of the DeviceAdminReceiver class?

Many posts I read state that the Activity should be an inner class of the DeviceAdminReceiver, but I can't understand why this should be the case. The android documentation doesn't make such a statement either, though their sample is like that. Is…
Heshan Perera
  • 4,592
  • 8
  • 44
  • 57
0
votes
2 answers

DEVICE_POLICY_SERVICE can not be resolved or is not a filed

I got a problem with this code. if (Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.FROYO){ DevicePolicyManager mDPM; mDPM = (DevicePolicyManager)context_.getSystemService(Context.DEVICE_POLICY_SERVICE); mDPM.wipeData(0); } the…
Boe-Dev
  • 1,585
  • 2
  • 14
  • 26
0
votes
1 answer

Instructions called before the activity is closed

I'm trying to understand if the user has enabled the admin or not and LATER update a checkbox (in onResume). The problem is that the activity which allows the user to enable the admin is launched and it's launched the following code without waiting…
Hoconosc
  • 416
  • 9
  • 24
0
votes
2 answers

Device lock programmatically in Android

I have to lock emulator when I click the button. I use this code- I don't understood what are active and securemeAdmin I use this link-> Lock the android device programmatically public class adminActivity extends DeviceAdminReceiver { public…
arpit
  • 555
  • 1
  • 7
  • 25
0
votes
1 answer

What will happen to mDPM.lockNow(); if there is no security pin on android device?

If a user has not put a security pin on her device, and my app even if it has device admin privileges sends a mDPM.lockNow(); to remote lock the mobile, what will happen?
Vikas Singh
  • 1,781
  • 7
  • 27
  • 54
-1
votes
1 answer

How do I disable a syncadapter or provider as Device Admin programmatically?

I need to write an App that can prevent contact syncing in a work profile. Until Android 9 i just disabled the package com.google.android.syncadapters.contacts and that's it. Unfortunately since Android 10 the Play Services are responsible for…
-1
votes
1 answer

Preventing "Force Close" and "Uninstall"

How can I keep my company's app from being force closed and or uninstalled without authorization? I know it can be done. I just done know the hows, because I have seen it in other apps. Where I work, we own our devices and give them to our…
-1
votes
1 answer

How to disable only Force stop button android

How to disable only Force stop button not Uninstall button in android. I'm using below link code but it disabling both uninstall and force stop button http://prashantandroid.blogspot.in/2013/07/disable-force-stop-in-manage.html
Rudresh
  • 731
  • 1
  • 10
  • 26
-1
votes
2 answers

Prevent user from changing input method

Is it possible to prevent a user from changing input method/keyboards? I know it's not allowed by default but maybe with some security/IT device administration feature it is possible? I've been looking around but couldn't find a definitive answer.
Bended
  • 494
  • 1
  • 7
  • 22
-1
votes
1 answer

handle device's default screen lock behaviour

I am using device default lock screen in my app for activating and deactivating screen lock. In my application I used a check box which shows that screen lock is activated or not. Intent intent = new…
Akhilesh Mani
  • 3,502
  • 5
  • 28
  • 59
-1
votes
1 answer

Android application security

Im developing a parental app which restricts outgoing calls to limited defined numbers. I need to set a password for the app log in and is it possible to set a password which can be set to control the process of uninstall of this application. I had…
subrussn90
  • 1,142
  • 1
  • 14
  • 27
-2
votes
1 answer

Differnt way of uninstalling device admin app for different phones

I have added my app as device admin. Now when uninstalling the app, For Moto G I get a screen which ask me to "Manage Device Administrators". But for Samsung S6, it just disables the "Ok" button of App uninstall alert box. Can anyone tell me the…
User 308
  • 45
  • 6
-2
votes
1 answer

Remove the sample app, Android MDM?

I was just doing some research on MDM. And found that Google provides some solution for it. So I downloaded the sample app available on SAMPLE MDM ANDROID I installed it on my phone. But I am not able to uninstall it. How do I uninstall the app?
WISHY
  • 11,067
  • 25
  • 105
  • 197
-2
votes
2 answers

Android:Getting List of Application's package info which has been installed as a Device administrator

I need to get the list of package info for application which has been installed as Device admin. The code you share should support from Adroid Api version 8. The following code will give me the list of Downloaded apps info, but i need an extra…
Sudarshan
  • 1,291
  • 3
  • 26
  • 35
1 2 3
15
16