You can use the code below to install application from command line
adb install example.apk
this apk is installed in the internal memory of current opened emulator.
adb install -s example.apk
this apk is installed in the sd-card of current opened emulator.
You can also install an apk to specific device in connected device list to the adb.
adb -s emulator-5554 install myapp.apk
Refer also to adb help for other options.
Related Posts:
- Install an apk file from command prompt?
- adb is not recognized as internal or external command, operable program or batch file
- How to install APK from PC?
- Session ‘app’: Error Installing APK
- Application Installation Failed in Android Studio
- What is INSTALL_PARSE_FAILED_NO_CERTIFICATES error?
- Is there a way to get the source code from an APK file?
- Adb backup does not work
- How to use ADB Shell when Multiple Devices are connected? Fails with “error: more than one device and emulator”
- Reverse engineering from an APK file to a project
- INSTALL_FAILED_NO_MATCHING_ABIS when install apk
- What exactly is “com.google.android.packageinstaller”
- How to display Toast in Android?
- How to use adb command to push a file on device without sd card
- Exception : AAPT2 error: check logs for details
- How can I find and run the keytool
- You need to use a Theme.AppCompat theme (or descendant) with this activity
- because an app is obscuring a permissions request, Settings can’t verify your response
- Android: adb pull file on desktop
- ADB No Devices Found
- adb shell su works but adb root does not
- adb shell su works but adb root does not
- MediaStore.Images.Media.insertImage deprecated
- SQLiteDatabase.query method
- Android ADB device offline, can’t issue commands
- Android SDK location
- Android Studio Run/Debug configuration error: Module not specified
- IllegalArgumentException: Unable to locate adb in Android Studio v2.3
- How to change background color in android app
- Intel HAXM is required to run this AVD
- Unsupported method: BaseConfig.getApplicationIdSuffix()
- Getting weather info feeds from accuweather
- Font size of TextView in Android application changes on changing font size from native settings
- Android: How to handle right to left swipe gestures
- No tests found for given includes Error, when running Parameterized Unit test in Android Studio
- adb command not found
- Activity, AppCompatActivity, FragmentActivity, and ActionBarActivity: When to Use Which?
- “cannot resolve symbol R” in Android Studio
- Session ‘app’ error while installing APK
- PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT (in windows 10)
- How to build a horizontal ListView with RecyclerView
- Emulator for Amazon Kindle
- What is difference between SQLite and SQL
- I am getting this error “your cpu doesn’t support vt-x or svm, android studio 2.1.1 in AMD 6300 processor”
- Getting activity from context in android
- Adding an onclicklistener to listview (android)
- Change status bar text color when primaryDark is white
- Android – Listen For Incoming SMS Messages
- How can you make a custom keyboard in Android?
- What does “Failure [INSTALL_FAILED_OLDER_SDK]” mean in Android Studio?
- How to give persiomission com.sec.android.provider.badge.permission.READ or WRITE in android 6.0
- java.lang.RuntimeException: Unable to start activity ComponentInfo
- How to convert int to Integer
- Android LinearLayout Gradient Background
- Why emulator is very slow in Android Studio?
- “ArrayAdapter requires the resource ID to be a TextView” XML problems
- Android Studio SDK location
- Android Studio SDK location
- How to convert int to Integer
- How can I get the android-support-v4.jar file (from Android Support Library) on Linux?
- Android Studio 3.0 Execution failed for task: unable to merge dex
- What does ellipsize mean in android?
- Android Fragment onAttach() deprecated
- ViewText in Android
- Android SDK location should not contain whitespace, as this cause problems with NDK tools
- How can I open a URL in Android’s web browser from my application?
- Login Error: There is an error in logging you into this application. Please try again later
- ‘dependencies’ cannot be applied to ‘(groovy.lang.Closure)’
- How to emulate a gyroscope in an Android Emulator
- Fullscreen Activity in Android?
- Call to getLayoutInflater() in places not in activity
- How to add a jar in External Libraries in Android Studio?
- What is the difference between gravity and layout_gravity in Android?
- Android Overriding onBackPressed()
- Remove Project from Android Studio
- Error inflating class android.support.design.widget.FloatingActionButton
- How to change the color of a button?
- How do I parse JSON in Android?
- Cannot resolve symbol ‘AppCompatActivity’
- Change the project theme in Android Studio?
- setBackgroundDrawable() deprecated
- How to implement a confirmation (yes/no) DialogPreference?
- Your CPU does not support VT-x
- Android – border for button
- Android Studio Gradle DSL method not found: ‘android()’ — Error(17,0)
- Android: No Activity found to handle Intent error? How it will resolve
- Cannot resolve symbol ‘AppCompatActivity’
- Android Studio – Emulator – eglSurfaceAttrib not implemented
- Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $
- Start an activity from a fragment
- HAXM is not installed on this machine
- Android: remove or disable programmatically the Lock Screen on Samsung Galaxy S2 device
- How to convert a Drawable to a Bitmap?
- How to Resize a Bitmap in Android?
- What to use instead of “addPreferencesFromResource” in a PreferenceActivity?
- How to code using android studio to send an email
- HAX kernel module is not installed
- Could not find method android() for arguments
- Cannot resolve symbol AppCompatActivity – Support v7 libraries aren’t recognized?
- WordPress post to android