Android/COSU:应用程序在安装后应如何自动运行 [英] Android/COSU: How is the app supposed to auto-run after install

查看:190
本文介绍了Android/COSU:应用程序在安装后应如何自动运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题特别是关于Android文档中的一行. https://developers.google.com/android/work/prov-devices# set_up_device_owner_mode_google_account .特别是第2项,上面写着

My question is specifically about one line in Android documentation here. https://developers.google.com/android/work/prov-devices#set_up_device_owner_mode_google_account . Particularly item #2 where it says

  1. DPC将自动下载到设备并启动.

如何?

具体来说,下载仍然在启动向导的上下文中启动DPC的触发器是什么?我问是因为它不适合我.

Specifically, what is the trigger that launches the DPC after download while still in the context of the startup wizard? I'm asking because it isn't working for me.

我有企业拥有的一次性使用(COSU)应用程序,但在部署过程中遇到了麻烦-特别是DPC应用程序将其自身设置为设备所有者的部分.到目前为止,我已经将该应用程序作为私有应用程序加载到Google Play商店中. G-Suite位于同一域中,并且Google已注册为该帐户的EMM. COSU应用程序已列入白名单,并作为安装向导的一部分进行安装...但无法启动.

I've got Corporate-Owned Single Use (COSU) application, but I'm getting tripped up on deployment -- specifically the part where the DPC app sets itself as the device-owner. So far, I've loaded the app in Google Play Store as a private application. G-Suite exists in the same domain and Google is registered as the EMM for the account. The COSU app is whitelisted and installs as part of the setup wizard... but it doesn't launch.

据我所知,它必须在出厂重置的上下文中启动,以便我可以将设备所有者重置为下载的应用.

To the best of my understanding, it has to launch within the context of factory-reset so that I can reset the device owner to the downloaded app.

我应该寻找特定的Activity或BroadcastIntent吗?我是Android的新手,所以我一直在浏览TestDPC代码,Android文档和SO帖子,但是这种部署很麻烦.

Is there a specific Activity or BroadcastIntent I should be looking for? I'm new to Android, so I've been pouring through the TestDPC code, Android docs, and SO posts, but this deployment thing is a pain.

作为辅助查询.您将如何调试这种情况?它全部恢复出厂设置并通过电线安装,因此我没有机会打开开发人员模式并通过Android Studio观看日志.将新版本推入Google Play并重置硬件以进行下载和安装需要很长的周期.

As a secondary query. How would you debug this situation? Its all factory-reset and install by wire, I don't have the opportunity to turn on developer mode and watch logs through Android Studio as it happens. And pushing new builds to Google Play and resetting hardware to download and install has a very long cycle time.

预先感谢

推荐答案

要在添加帐户后下载并启动DPC,您需要使用此EMM注册您的G-Suite域.

For your DPC to be downloaded and launched after an account is added you need to register as your own EMM along with your DPC, and enroll your G-Suite domain with this EMM.

使用Google的新 Android可能会更简单管理API ,不需要实施DPC或注册为EMM.

It might be simpler for you to instead use Google's new Android Management API which doesn't require implementing a DPC or registering as an EMM.

这篇关于Android/COSU:应用程序在安装后应如何自动运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆