Alibabacloud.com offers a wide variety of articles about how to activate device administrator android, easily find your how to activate device administrator android information here online.
of interest.
For each component, the activation method is different. The following describes how to activate the activity, service, and broadcast receiver components.
1.1. Activity) component Activation
By passing an Intent object to Context. startActivity () or Activity. startActivityForResult () to load or specify a new job to) an Activity. The initial intent is displayed for the corresponding activity. The intent is viewed through the getIntent ()
carefully6. If the required list of permissions is acceptable, click Accept7. Make the installation process completeNow that you've installed the app, you'll find the launcher in the home screen or in the application drawer (or both). Click on it, launch the application, it will require you to give administrator privileges to proceed (figure a).Figure A Android Lost running on verizon-branded HTC M8When you click Request Administrator Rights (ask for
[Android] mobile guard device management permission lock screen, android lock screen
Device administrator Device Admin
Obtain the DevicePolicyManager object, and use getSystemService (DEVICE_POLICY_MANAGER) to configure the Device
displayed. This setting does not appear, however, if you do not configure Meta-data, Device Manager is not able to activate normally. What do we do? Install with normal Device Manager program, normal activation, and then remove the program's meta-data configuration, build apk, install to the Android
Device management
Android 2.2 and later versions provide a set of device Management APIs to manage Android mobile phone devices, including device lock and camera disabling (4.0 and later), erase user data (also can erase the data in sdcard, but to 2.3) and a series of
Manager that exploits this vulnerability to invoke Devicepolicymanager's Removeactiveadmin method to deactivate This method requires more than system permissions to execute.About the android.app.action.DEVICE_ADMIN_ENABLED caused by the hole is here to end, the following is the analysis of another interesting thing to encounter.As mentioned earlier, when setting gets the manager list, there is a piece of code such asDeviceadmininfo.pngThe instance Deviceadmininfo object in the code, Deviceadmin
Since Android 2.2 (api=8), Android phones are system-level device management through the device management API.This article describes how the device Management API can create a security-sensitive application by forcing device mana
: Initialize several types of device management:
// Obtain the device management service
The code of the admincycler class is as follows:
Package COM. yfz. broadcast;
It inherits the deviceadminreceiver and does not perform any special operations. It only outputs a prompt message when it is excited or disabled.
In addition, like the normal broadcast class, this class also needs to be registered in the a
See the document Docs/guide/topics/admin/device-admin.html section for an introduction to Android Device Administratioin.This article demonstrates the implementation of Android Device policy Management through an example.1. Sample Basic Operation diagram650) this.width=650;
Recommended reading:
An analysis of Android phone defender SIM card binding
An in-depth analysis of the Android phone defender MD5 encryption when saving passwords
Detailed Android Phone Guardian Settings Wizard page
An analysis of Android phone defender turn off automatic Updates
A brief analysis of
Device administrator Devices adminGets the devicepolicymanager object, via getsystemservice (device_policy_manager), device policy managerCall the Devicepolicymanager object's locknow () method, lock, and report a security exception at this timeCreate a new class MyAdmin inherit the system deviceadminreceiver, this is the broadcast receiverManifest file to registerAdd node, set nameSet permissions android:
Timer_list: Init_timer (button_timer);Activation timer: Add_timer (button_timer);Note: Setup_timer (button_timer,button_timer_function,test); This can replace the 2 steps above.3. In the interrupt handler function, Mod_timer (button_timer, jiffies+hz/100); 10msNote: The dynamic timer does not need to be released manually, and Mod_timer is automatically released after the timeout is executed. Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduc
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.