I need to install an app on a physical device from Android Studio without it starting automatically because I need to ensure the device is completely isolated from all outside networks, etc. when I launch the app on the phone.
I did some research but could only find the following two irrelevant posts:
- Installing Android app on device from Android Studio - Irrelevant because it doesn't specifically ask how to install without automatically launching.
- Install Android app in Eclipse without running it - Irrelevant because it asks about Eclipse instead of Android Studio.
I found the answer at https://developer.android.com/studio/run/rundebugconfig#general-tab .
Steps to install app on device without running it automatically using Android Studio:
note: assumes Android Studio Arctic Fox | 2020.3.1 Patch 1
The option "Nothing" is defined as follows in the documentation link above: