I have a simple android app .apk file create with Expo (react native) using the expo build:android
script.
I am trying to run this on a device which is locked down by the provider so their is no access to Expo client. The only interface is via ADB.
I have successfully installed the app using the following command:
adb -s <device_id> install <package-name>.apk
I am then trying to start the app via the following:
adb shell am start -n host.exp.myapp
But I get the following error:
Exception: java.lang.IllegalArgumentException: Bad component name: host.exp.myapp
When I run adb shell cmd package list packages
, I can see the package:host.exp.myapp
listed and I am sure it's following naming conventions with lowercase and no special characters.
How can I start my app via ADB?