- Home /
Question by
mc_fragezeichen · Apr 05 at 11:33 AM ·
adb
launch Android apk with options using ADB
I have an option in my Unity app that enables a self-play mode of the app. This is heavily used for device testing of the app. However currently I have to compile two versions of the app: One where autoplay is by default enabled and another where it's disabled.
Is there a way to launch the app with the above mentioned option passed as a parameter using ADB?
This is how I currently launch my Unity app using adb:
pkg_name=com.My.AppName
adb shell am start -S -n $pkg_name/com.unity3d.player.UnityPlayerActivity
Comment
Your answer
Follow this Question
Related Questions
How to set my ADB path ? pls. 3 Answers
adb.exe forward tcp 0 Answers
Black Screen on Android 0 Answers
adb install: connection reset by peer 3 Answers
Certificate problems when installing APK file on Android phone from command line 1 Answer