Installing an APK file onto an Android device via the command line
adb devices
adb install "C:\path\to\your\app.apk"
Managing Multiple Connected Devices
-
Run
adb devicesto get your device’s unique serial number (e.g.,4200d7bf682a3489). -
Use the
-sflag to target it directly:
adb -s 4200d7bf682a3489 install "path/to/app.apk"