[英]Can we use 'dpm set-owner' on Android for production devices on Rooted/Non-rooted Android
Plot Plot
Android has an option for single-purpose devices to be managed using Device Owner Kiosk Applications. Android 可以选择使用设备所有者信息亭应用程序管理单一用途设备。 Now there are various Device provisioning ways to make a Kiosk app Device Owner.
现在有多种设备配置方法可以让 Kiosk 应用成为设备所有者。 One of the ways is to use the official Android EMM solution and enroll devices.
其中一种方法是使用官方的 Android EMM 解决方案并注册设备。
The other simple and quick-to-use method is using dpm set-owner
command for rooted and non-rooted devices.另一种简单且快速使用的方法是使用
dpm set-owner
命令来获取 root 和非 root 设备。 Rooted Devices can run this command with su
rights and make the desired Kiosk App a Device Owner and Non-rooted devices can also be made device owner using adb command. Root 的设备可以使用
su
权限运行此命令,并使所需的 Kiosk 应用程序成为设备所有者,非 root 设备也可以使用 adb 命令成为设备所有者。
As asked and answered in following question.正如在以下问题中所问和回答的那样。
How to make my app a device owner? 如何让我的应用成为设备所有者?
Now having such a simple way to provision device and app to be Device Owner is very useful where Kiosk devices are to be placed and used on large scale without depending upon Android Enterprise or EMM.现在,在不依赖 Android Enterprise 或 EMM 的情况下,在大规模放置和使用 Kiosk 设备的情况下,通过这种简单的方法将设备和应用程序配置为设备所有者非常有用。 But I have few questions about this.
但我对此没有几个问题。
Questions:问题:
Is provisioning app to be device owner using dpm set-owner
logical and safe to use for long-term production devices and at volume?使用
dpm set-owner
将应用程序配置为设备所有者是否合乎逻辑且安全地用于长期生产设备和大量使用?
Are there any potential downsides of using this approch?使用这种方法有什么潜在的缺点吗?
No, this is not viable as the command is meant only for testing of features.不,这是不可行的,因为该命令仅用于测试功能。
In case you do manage to get it running on some devices, you need to make sure you implement policies as it can easily be removed.如果您确实设法让它在某些设备上运行,您需要确保实施策略,因为它很容易被删除。
And on a positive side, yes, once its activated it works exactly as it was intended.从积极的方面来说,是的,一旦它被激活,它就会完全按照预期工作。
If you can and if the project allows, you are better of with activating over NFC at setup or by building a custom rom for that particular device and adding your package name as device owner on the system partition.如果可以并且项目允许,最好在设置时通过 NFC 激活,或者为该特定设备构建自定义 rom,并将 package 名称添加为系统分区上的设备所有者。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.