I am trying to write a script that will launch the "application information" system dialog via adb for the application that I am testing.
I did some investigation and came up with this command that will run “application information” but will not work with force closure (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
It seems that the package name is not being transmitted properly.
What is the correct way to pass the package name parameter to the am
command in this case?
source share