Ratul
Ratul

Reputation: 27

Unable to add a file under SDcard in Android Linux Emulator

I am trying to add a file under Linux Android Emulator . I followed the following procedure

$Android_Emulator/tools>./mksdcard -l 256M mysdcard.img
$Android_Emulator/tools>chmod 777 mysdcard.img

The mysdcard.img is created successfully with read write permissions. In android emulator Run as>Run Configurations>Target -- I am selecting my emulator/avd and in commandsline typing

-sdcard "/Android_Emulator/tools/mysdcard.img

Upvotes: 2

Views: 497

Answers (1)

ligi
ligi

Reputation: 39519

after -l you should give a label name

> ./mksdcard -h
mksdcard: create a blank FAT32 image to be used with the Android emulator
usage: mksdcard [-l label] <size> <file>

Upvotes: 1

Related Questions