Reputation: 1336
I'm trying to run my test via Appium's server but getting the error:
Permission to start activity denied
I'm actually trying to run Chrome app(without providing the APK. the app is already installed on my phone).
appPackage: "com.android.chrome"
appActivity : "org.chromium.chrome.browser.ChromeTabbedActivity"
However, when I'm running the same test with Appium's client GUI, everything works great. Still, I would like to use the server(running Appium with CMD) and not by GUI.
Upvotes: 1
Views: 509
Reputation: 51
You are launching activity which has android exported= True To solve this issue follow below steps Set path for SDK/build-tools Now from command prompt run aapt dumb badging "path of apk" find Launchable activity This will work
Upvotes: 0
Reputation: 34180
try with
appPackage: "com.android.chrome"
appActivity : "com.google.android.apps.chrome.Main"
In my case it is working.Hope these help you.
Upvotes: 1