Reputation: 1484
I know that we can get Package and Activity names by using "adb shell dumpsys window windows" and get values from mFocusedApp.
But when i just connect my device and trying to get package and activity names, for that i am getting appPackage as com.google.android.googlequicksearchbox appActivity as com.google.android.launcher.GEL
But these values doesnt seemed to be right. When use the above in Appium tool, the tool is malfunctioned.
Can someone tell me how to get these package or activity name?
Upvotes: 1
Views: 7428
Reputation: 31676
The adb shell
command to show the default launcher activity in Android 7.0+ without having to bring the launcher app to the front is:
adb shell cmd shortcut get-default-launcher
Also com.google.android.googlequicksearchbox/com.google.android.launcher.GEL
is a legitimate activity. So whatever malfunction you experienced - take it to the Appium developers.
Upvotes: 9