Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I Install .apk files in the android emulator? [duplicate]

Tags:

android

I want to install my .apk file in android emulator.But I have multiple emulators opened(5554,5556) and i don't want to close any one of the emulator how to install a .apk file in an emulator when there is multiple emulators are opened?

like image 456
ram Avatar asked Jul 25 '11 11:07

ram


People also ask

Can you download APK on Android emulator?

First of all, we still have to open the Emulator and after that drag, your APK file and drop it in the emulator anywhere and that's it it will simply install that app in the Emulator.

How do I copy an APK file?

Method 1: Using an Advanced File Explorer Generally, the installed apps are found in “/data/apps“. So, from here you can simply copy the APK files and paste it wherever you want. However, you can also extract APK of installed apps using an advanced file explorer on a non-rooted Android phone.


2 Answers

You can tell adb which device you want to connect to.

adb -s emulator-5554 install something.apk

(from the host). I am not sure the numbers you gave are the "serial numbers", so check with

adb devices
like image 134
Jan Hudec Avatar answered Oct 26 '22 23:10

Jan Hudec


Use -s command line option with the name of emulator device, e.g.

#adb -s emulator-5554 install ...
like image 42
b3er Avatar answered Oct 27 '22 00:10

b3er