功能介绍:
实现 手机锁屏,数据清空,APP卸载等操作
一.首先获取手机的超级用户权限
res目录下新建xml文件,在xml文件下创建一个device_admin_sample.xml.这个是最高权限的资源文件,需要配置文件进行引用.
<device-admin xmlns:android="http://schemas.android.com/apk/res/android" >
<uses-policies>
<limit-password />
<watch-login />
<reset-password />
<force-lock />
<wipe-data />
<expire-password />
<encrypted-storage />
<disable-camera />