自定义policy manager 但是第一次运行必须 用户手动激活, 如何实现 程序运行 检测是否激活为设备管理器,如果不是则自动激活呢?
PHPz2017-04-17 17:08:30
Able to detect,
mDPManager.isAdminActive
But it cannot be forced to activate silently. Unless you have DeviceOwner or ProfileOwner permissions (this permission can only be set to an application at the factory or modify the configuration file after root, so it is actually meaningless for general apps).