In the AVD emulator, how to see the sdcard folder? and install apk in AVD?

I created an Android emulator (Android Virtual Device), but I could not recognize the SD card that I created at the time of creation.

How to find the SD card and its contents, as well as how to install the APK files in the AVD ?

+56
android android-emulator avd
May 21 '12 at 7:23
source share
9 answers
  • switch to DDMS perspective
  • Select the emulator from the list of devices whose SDCard you want to learn.
  • Open the Explorer tab on the right side.
  • expand the tree structure. mnt / sdcard /

see image below enter image description here




To install apk manually: copy apk to the sdk / platform-tools folder and run the following command in the same folder

adb install apklocation.apk 
+101
May 21 '12 at 7:40 a.m.
source share

I used the following procedure.

The procedure for installing apk files in Android Emulator (AVD):

Check the installed directory (for example: C: \ Program Files (x86) \ Android \ android-sdk \ tools) if it has an adb.exe file or not). If this folder is not there, then download the attachment here , extract the zip files. You will get adb files, copy and paste these three files into the tools folder

Run the AVD manager from C: \ Program Files (x86) \ Android \ android-sdk and run the Android emulator.

Copy and paste the apk file into C: \ Program Files (x86) \ Android \ android-sdk \ tools

  • Go to Start β†’ Run β†’ cmd

  • Enter cd "C: \ Program Files (x86) \ Android \ android-sdk \ tools"

  • Type adb install example.apk

  • After receiving the team success

  • Go to the application icon in the Android emulator, we can see your application

+9
May 21 '12 at 7:26
source share

The linux sdcard file contains:

 ~/.android/avd/<avd name>.avd/sdcard.img 

You can mount it, for example, using (it is assumed that / mnt / sdcard is an existing directory):

 sudo mount sdcard.img -o loop /mnt/sdcard 

To install the apk file, use adb:

 adb install your_app.apk 
+5
May 21 '12 at 7:35 a.m.
source share

The location of the emulated SD card is currently located at /storage/emulated/0

+5
Nov 05 '16 at 11:14
source share

if you use eclipse. You should switch to the DDMS perspective from the upper right corner there, after selecting your device you can see the folder tree. to install apk manually you can use adb command

 adb install apklocation.apk 
+2
May 21 '12 at 7:27 a.m.
source share

// on linux

// in your .android home folder, the hidden folder goes where you can find the open avd folder and check your public name avd, and you can see sdcard.img , which is your sdcard file.

// To install apk on linux

 $adb install ./yourfolder/myapkfile.apk 
+1
May 21 '12 at 7:30 a.m.
source share

DDMS is deprecated in Android 3.0. "Device File Browser" can be used to view files.

+1
Apr 09 '18 at 17:15
source share

Adding a solution for using files to a DDMS / File Explorer file, for those who don’t know, if you want to read the file, you need to select the "Extract file from device" button on the file viewing toolbar. Unfortunately, you cannot just drag or double-click to read.

0
Feb 20 '13 at 18:11
source share

Tp install apk to avd, just drag and drop the apk file into the open emulated device manually

0
Apr 04 '19 at 8:10
source share



All Articles