开发者

Unable to add a file under SDcard in Android Linux Emulator

开发者 https://www.devze.com 2023-03-16 10:50 出处:网络
I am trying to add a file under Linux Android Emulator . I followed the following procedure $Android_Emulator/tools>./mksdcard -l 256M mysdcard.img

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_E开发者_开发技巧mulator/tools/mysdcard.img


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>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号