1

I keep having an error trying to start some apps using am start command. It works for many, but for some apps I get the same error mentioned below:

#adb shell am start com.amazon.venezia
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] pkg=com.amazon.venezia }
Error: Activity not started, unable to resolve Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.amazon.venezia }

#adb shell am start com.whatsapp
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] pkg=com.whatsapp }
Error: Activity not started, unable to resolve Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.whatsapp }
  • Just to add on. I can manually tap on the apps and turn them on but in using $ adb shell am start _____ gives that same error for many apps. It seems to give the error when the Package Name is COM.____ but if it is something else the ADB START works – Vel Mar 9 '16 at 20:46
  • I thought it had to do if the Package Name started with COM. but that doesn't seem to be related. Same error for many apps – Vel Mar 9 '16 at 20:52
  • In case you need to start an app using only its package name, you can use this alternative: monkey -p PACKAGE 1 – Firelord Mar 9 '16 at 20:55
  • So the command would be something like $adb monkey -p com.whatsapp ?? I tried also $adb start monkey -p com.whatsapp .....I can't seem to get that command right :/ (syntax wise). Thank you for your reply :) – Vel Mar 9 '16 at 21:01
  • The command would be adb shell monkey -p PACKAGE 1. This trick used to work well. Now it is acting funny in Android 6.0.1 for some reason. – Firelord Mar 9 '16 at 21:02
1

use this:

adb shell am start -n com.whatsapp/.HomeActivity
  • While this might answer the question "How to start WA via ADB", that was not what the OP asked (though it might be implicated). Could you please edit your answer and add some explanation? – Izzy Apr 7 '16 at 13:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.