简体   繁体   English

Android - 带有非 root 设备的“设置设备所有者”

[英]Android - "set-device-owner" with non rooted device

We have to create a kiosk mode android app.我们必须创建一个自助服务终端模式的 android 应用程序。 The app is ready, we need only to set kiosk mode.应用程序已准备就绪,我们只需要设置信息亭模式即可。

We want to set the "set-device-owner" programmatically but our tablet is not rooted.我们想以编程方式设置“set-device-owner”,但我们的平板电脑没有root。 We don't want use ADB because this can be hard to explain to our customer.我们不想使用 ADB,因为这很难向我们的客户解释。

Is there another way to enable it?还有其他方法可以启用它吗?

You can use QR code provisioning to get device owner privilege.您可以使用二维码配置来获取设备所有者权限。

After factory reset on the welcome screen, tap Welcome 6 times to enter QR code provisioning mode.在欢迎界面恢复出厂设置后,点击欢迎 6 次进入二维码开通模式。 Here you can scan your QR code that is generated using the following code to activate device owner.您可以在此处扫描使用以下代码生成的二维码以激活设备所有者。

{"android.app.extra.PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME": "in.test.mdm/in.test.mdm.AdminReceiver", "android.app.extra.PROVISIONING_DEVICE_ADMIN_PACKAGE_CHECKSUM": "AVMYPJsNa1nCkf0jdWPEY7x_wnfYaIh1ouWuq10rYZY", "android.app.extra.PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION": " https://drive.google.com/uc?id=1XqplR-QKO_iUqdm6RAjAPeAAGwoI6uFj&export=download ", "android.app.extra.PROVISIONING_LEAVE_ALL_SYSTEM_APPS_ENABLED":true,"android.app.extra.PROVISIONING_SKIP_ENCRYPTION":true,"android.app.extra.PROVISIONING_ADMIN_EXTRAS_BUNDLE":{"test":"test" } } { “android.app.extra.PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME”: “in.test.mdm / in.test.mdm.AdminReceiver”, “android.app.extra.PROVISIONING_DEVICE_ADMIN_PACKAGE_CHECKSUM”: “AVMYPJsNa1nCkf0jdWPEY7x_wnfYaIh1ouWuq10rYZY”, “android.app.extra.PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION” : " https://drive.google.com/uc?id=1XqplR-QKO_iUqdm6RAjAPeAAGwoI6uFj&export=download ", "android.app.extra.PROVISIONING_LEAVE_ALL_SYSTEM_APPS_ENABLED":true,"android.app.extra.PROVISIONING_SKIP_ENC":true app.extra.PROVISIONING_ADMIN_EXTRAS_BUNDLE":{"test":"test" } }

You can generate a qr code by pasting the above text in any qr code generator site for example : https://www.the-qrcode-generator.com/您可以通过将上述文本粘贴到任何二维码生成器站点中来生成二维码,例如: https : //www.the-qrcode-generator.com/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM