17_使用设备管理器
来源:互联网 发布:链轮链条设计软件 编辑:程序博客网 时间:2024/06/05 08:37
使用设备管理器
设备管理器的使用流程
我们先要写一个Receiver继承DeviceAdminReceiver
然后在清单文件里注册Receiver
<receiver
android:name=".receiver.SafeDeviceAdminReceiver"
android:description="@string/device_admin_description"
android:label="@string/device_admin"
android:permission="android.permission.BIND_DEVICE_ADMIN" >
<meta-data
android:name="android.app.device_admin"
android:resource="@xml/device_admin" />
<intent-filter>
<action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
</intent-filter>
</receiver>
然后在res文件夹下创建xml文件夹,创建device_admin.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 /> -->
</uses-policies>
</device-admin>
- 17_使用设备管理器
- 设备管理器的使用
- android设备管理器使用
- 设备管理器使用
- 使用命令打开设备管理器
- 使用设备安全管理器配置设备安全策略
- 设备管理器
- 设备管理器
- 设备管理器
- 设备管理器
- 设备管理器
- 设备管理器
- 枚举设备管理器设备
- C#使用SetupAPI获取设备管理器相关信息
- 安卓学习笔记之使用设备管理器(Administrator)
- 遍历设备管理器的设备
- 设备管理器显示隐藏设备
- 设备管理器的实现
- android学习——handler的学习及实现封装下载图片功能
- 虚拟机技术
- C++ 中Traits技术 (2) —— 与迭代器
- 16_获取联系人信息
- 【BZOJ1005】明明的烦恼
- 17_使用设备管理器
- AS插件-GsonFormat
- intellij idea蓝屏重启后代码到处报错解决方法
- TimesTen内存数据库体系结构
- 18_开机广播
- Android自定义控件2-简单的写字板控件
- 19_读取短信内容
- mysql 查询理解
- 中介者模式