安卓:通过ADB外壳上午启动应用信息对话框 [英] Android: launch app info dialog via adb shell am

查看:305
本文介绍了安卓:通过ADB外壳上午启动应用信息对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图写一个脚本,将通过亚行推出的应用程序信息对话框的系统为应用我测试。

我已经做了一些调查,并用这个命令,这将启动应用信息,但失败了强制关闭(NullPointerException异常在logcat中)想出了:

 亚行外壳上午开始-a -n android.intent.action.VIEW com.android.settings / .applications.InstalledAppDetails -es com.android.settings.ApplicationPkgName com.my.应用-es PKG com.my.app

似乎包名没有被正确传送。

什么是包名参数传递到的正确方法上午在这种情况下的命令?


解决方案

 亚行外壳上午开始-a android.settings.APPLICATION_DETAILS_SETTINGS -d包:其中,包名称>

I'm trying to write a script which will launch the "app info" system dialog via adb for an app I'm testing.

I have done some investigation and came up with this command, which will launch "app info" but fails with a force close (NullPointerException in logcat):

adb shell am start -a android.intent.action.VIEW -n com.android.settings/.applications.InstalledAppDetails -es com.android.settings.ApplicationPkgName com.my.app -es pkg com.my.app

Seems that the package name isn't being properly passed.

What is the correct way to pass the package name parameter to the am command in this case?

解决方案

adb shell am start -a android.settings.APPLICATION_DETAILS_SETTINGS -d package:<package-name>

这篇关于安卓:通过ADB外壳上午启动应用信息对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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