【发布时间】:2020-04-27 09:07:35
【问题描述】:
我刚开始使用 Android Enterprise 进行开发,需要在工作资料中部署一个应用。
我的政策(见下文)允许安装带有调试版本变体的 apk。通过 Android Studio 启动调试会话现在将应用程序安装在私有和工作配置文件中,这意味着该策略在工作配置文件上处于活动状态。 但是,调试会话始终连接到私有配置文件中的应用程序。
是否可以直接在工作配置文件上启动到应用实例的调试会话?
我还尝试过使用用户标志:
adb shell am start -n "com.siemens.fileshare/com.siemens.fileshare.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D -W --user 10
但是,连接超时。
这是我的政策:
{
"name": "enterprises/some123/policies/policy1",
"version": "11",
"applications": [
{
"packageName": "com.google.samples.apps.iosched",
"installType": "FORCE_INSTALLED"
},
{
"packageName": "com.mycompany.myapp",
"installType": "AVAILABLE"
}
],
"debuggingFeaturesAllowed": true
}
【问题讨论】:
标签: android debugging adb remote-debugging