Home > Net >  How to launch an apk via ADB with console arguments on Android
How to launch an apk via ADB with console arguments on Android

Time:02-10

How to launch an application with console arguments via adb on Android 10?

Search in docs https://developer.android.com/studio/command-line/adb

Googled for two days, everywhere they write what they need like this: adb shell am start -S -D -n projectname.app/com.unity3d.player.UnityPlayerActivity --es args '"-runTests"'

Tried some more options but nothing worked

The application is a game on Unity, there I display System.Environment.GetCommandLineArgs() directly

CodePudding user response:

  •  Tags:  
  • Related