如何本地管理Android设备?

发布于 2025-01-15 13:17:21 字数 1167 浏览 1 评论 0原文

我正在创建一个可以本地管理/控制 Android 设备的个人应用程序。特别是,我希望能够执行诸如锁定设备、强制执行密码策略以及根据设备的本地状态擦除设备等操作。我已经审查了许多可能的方法,但这就是我遇到麻烦的地方。

根据此文档,DeviceAdmin 基本上已被弃用(即设备必须被托管或具有托管配置文件以访问大部分 DeviceAdmin API)。

根据 本文档,创建自定义设备策略控制器 (DPC) 本质上是已弃用。旁注:从上下文来看,我假设 DPC 本质上是具有托管设备/配置文件的 DeviceAdmin,但我找不到任何明确说明这一点的地方(如果我错了,请纠正我)。

最后,我进入了 Android Management API,乍一看似乎就是我想要的想。直到我完成quickstart并发现我必须创建服务器并管理设备通过客户端-服务器关系。提醒一下,我正在寻找一种本地管理设备的方法。现在有发行说明表明本地管理可能会将来会出现,但不是现在。

所以这是我的问题:当前是否有支持的本地管理设备的方法?

我知道开发者黑客可以设置应用程序作为设备所有者。虽然这可能适合我个人使用,但在企业管理方面这似乎是一个相当大的漏洞。

I am creating a personal application that can locally manage/control an android device. In particular, I want to be able to do things such as lock down the device, enforce password policies, and wipe the device according to the local state of the device. I have reviewed a number of possible ways of doing this, but that is where I run into trouble.

According to this documentation, DeviceAdmin is essentially deprecated (i.e. the device must be Managed or have Managed Profile to access most of the DeviceAdmin API).

According to this documentation, creating a custom Device Policy Controller (DPC) is essentially deprecated. Side note: from context I am assuming a DPC is essentially a DeviceAdmin with a Managed device/profile but I can't find anywhere that explicitly states that (please correct me if I am wrong).

And finally I'm lead to the Android Management API, which at first seems to be what I want. Until I go through the quickstart and find out that I have to create a server and manage the device through a client-server relationship. As a reminder, I am looking for a way to locally manage the device. Now there are release notes indicating that local management may be coming in the future, but that is not now.

So here is my question: is there a currently supported way to locally manage a device?

I am aware of a developer hack that can set an application as a device owner. And while this may be able to work for my personal use, that seems like a pretty big hole in terms of enterprise management.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

长安忆 2025-01-22 13:17:21

确实,截至目前,Android Enterprise 无法在本地管理设备。作为我们推动与 AMAPI SDK 的可扩展性集成的一部分,有一个开放的功能请求,要求添加对本地执行命令的支持。但如前所述,目前不支持它。

尽管 Android Enterprise 不再接受自定义设备策略控制器 (DPC) 的新注册/验证,但开发人员仍然可以 构建设备策略控制器来锁定设备、实施密码策略并根据本地设备状态擦除设备。您仍然可以构建一个并通过 QR 或 NFC 将其部署到您的设备。也就是说,需要注意,DPC 无法使用 Play EMM API(因此,无法通过 Play 商店进行应用管理)。此限制可能会使您的解决方案失去资格。

It is correct that, as of today, Android Enterprise has no way to manage a device locally. There is an open feature request to add support for the local execution of commands as part of our push for extensibility integration with the AMAPI SDK. But as mentioned, it is not currently supported.

Despite Android Enterprise no longer accepting new registrations/validations for custom device policy controllers (DPCs), developers can still build a device policy controller to lock down a device, enforce password policies, and wipe the device according to the local device state. You can still build one and deploy it to your device with a QR or NFC. That said, it's important to note that the DPC would NOT be able to use the Play EMM APIs (so, no app management via the Play Store). This limitation may disqualify the solution for you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文