博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Setting up Device Testing
阅读量:6074 次
发布时间:2019-06-20

本文共 1908 字,大约阅读时间需要 6 分钟。

Setting up Device Testing

These are the essential elements that must exist for OEM devices to ensure minimal support for managed profiles:

  • Profile Owner as described in
  • Device Owner
  • Activation Code Provisioning

See for the complete list of requirements.

Summary


To test your device administration features:

  1. For device owner, use the test app.
  2. Consider working with other enterprise mobility management (EMM) providers directly.

Set up the device owner for testing


  1. Device MUST be built with userdebug or eng build.
  2. Factory reset the target device (and continue with the next steps in the meantime).
  3. Download . (Also see the documentation.)
  4. Unzip the file.
  5. Navigate (cd) to the unzipped directory.
  6. If you don't have it, download the package.
  7. Create a file with the name local.properties containing the following single line:
    sdk.dir=<path to your android SDK folder>
  8. On Linux and Mac OS, run:
    ./gradlew assembleDebug
    Or on windows run:
    gradlew.bat assembleDebug
  9. If the build is unsuccessful because you have an outdated android SDK, run:
    <your android sdk folder>/tools/android update sdk -u -a
  10. Wait for factory reset to complete if it hasn’t yet.

    Caution: Stay on the first screen after factory reset and do not finish the setup wizard.

  11. Install the BasicManagedProfile app by running the following command:
    adb install ./Application/build/outputs/apk/Application-debug.apk
  12. Set this app as the device owner by running this command:
    $ adb shell am start -a com.android.managedprovisioning.ACTION_PROVISION_MANAGED_DEVICE --es android.app.extra.PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME com.example.android.basicmanagedprofile
  13. Go through device owner setup on the device (encrypt, select Wi-Fi, etc.)

Verify the device owner was correctly setup


    1. Go to Settings > Security > Device Administrators.
    2. Confirm the BasicManagedProfile is in the list and verify it cannot be disabled. (This signifies it is a device owner.)

转载地址:http://soxgx.baihongyu.com/

你可能感兴趣的文章
51nod 1533 && CF538F
查看>>
【主席树】bzoj3524 [Poi2014]Couriers
查看>>
2012年最受欢迎的PHP框架
查看>>
用yum下载rpm包(不安装)到制定目录
查看>>
关于大学生社交网站使用动机与行为的调查问卷
查看>>
Long与long的区别
查看>>
mysql中key 、primary key 、unique key 与index区别
查看>>
java分享第七天-01(Hashmap和Hashtable的区别&Property)
查看>>
Golang学习笔记2——类型与变量
查看>>
ASP.NET与ASP.NET Core用户验证Cookie并存解决方案
查看>>
Redis------Set集合类型
查看>>
Webservice中的SOAP和REST方式比较
查看>>
内置函数与匿名函数
查看>>
VBA注释临时
查看>>
JSON关联属性转换异常
查看>>
去掉html样式
查看>>
Python爬虫之Scrapy框架介绍
查看>>
【示例】手把手教你构建一个简单的JavaWeb应用(会员注册唯一性检查,不带数据库)...
查看>>
javascript时间函数
查看>>
[HDFS_add_3] HDFS 机架感知
查看>>