2015-06-07 76 views
0

1)我不知道我是否需要root设备才能在android中使用设备管理应用程序?设备管理需要root

2)在每个模拟器中解锁BootLoader,那么我可以锁定模拟器的BootLoader吗?

+1

为什么你不使用Genymotion?它是默认的根。 – Mohsen

回答

1

为了让您的应用程序使用设备管理API,您不需要对设备进行根目录。

要使用设备管理API,应用程序的清单必须包括以下内容:

1. A subclass of DeviceAdminReceiver that includes the following: 
     - The BIND_DEVICE_ADMIN permission. 
     - The ability to respond to the ACTION_DEVICE_ADMIN_ENABLED intent, expressed in the manifest as an intent filter. 
2. A declaration of security policies used in metadata. 

More details