简体   繁体   English

我们可以在 Android 上使用 'dpm set-owner' 用于有根/无根 Android 上的生产设备吗

[英]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.不,这是不可行的,因为该命令仅用于测试功能。

  1. Not all devices have a full implementation of device owner并非所有设备都有设备所有者的完整实现
  2. Most devices have to be wiped in order to activated device owner and this is not possible as the setup process in most cases provision some hidden accounts (can be the Agenda and even OEM apps)大多数设备必须被擦除才能激活设备所有者,这是不可能的,因为在大多数情况下,设置过程会提供一些隐藏帐户(可以是议程甚至 OEM 应用程序)
  3. The app cannot be shared through Google Play Store该应用无法通过 Google Play 商店共享

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.

相关问题 Android:在非根目录设备上运行脚本 - Android: run a script on non-rooted device 在非root用户的Android上模拟主机文件 - Emulate hosts file on non-rooted Android 如何使用adb命令在非root用户的android设备中擦除用户应用,用户数据,用户缓存? - How to wipe user apps, user data, user cache in non-rooted android devices using adb commands? Android : 使用非 root 的 android 设备捕获 HTTP 请求 - Android : Capturing HTTP Requests with non-rooted android device 非root用户设备上的Android用户空间文件系统驱动程序? - Android userspace filesystem driver on non-rooted device? 以编程方式在Android设备上创建Google帐户(非root用户设备) - Creating a google account on android programatically (non-rooted device) 外部指纹扫描仪,用于无根Android平板电脑 - External fingerprint scanner for non-rooted Android tablets 是否可以在非 root android 手机上添加属性? - Is it possible to add a property on a non-rooted android phone? 是否可以在非 root 的 android 手机上运行本机 arm 二进制文件? - Is it possible to run a native arm binary on a non-rooted android phone? Android - 带有非 root 设备的“设置设备所有者” - Android - "set-device-owner" with non rooted device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM