search

Home  >  Q&A  >  body text

android policy manager 是否可以自动激活为设备管理器,不需要用户手动确认?

自定义policy manager 但是第一次运行必须 用户手动激活, 如何实现 程序运行 检测是否激活为设备管理器,如果不是则自动激活呢?

PHP中文网PHP中文网2772 days ago849

reply all(1)I'll reply

  • PHPz

    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).

    reply
    0
  • Cancelreply