Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Android emulator sdcard is not writable

 
Monica Marcus
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to copy a video to the sdcard of an android emulator, so that I can play it in an application. When I try to copy the video (by drag and drop) I get the message:

[2013-05-18 23:49:54 - ddms] transfer error: Read-only file system
[2013-05-18 23:49:54] Failed to push selection: Read-only file system

What can I do to make the sdcard writable?


 
Monica Marcus
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Monica Marcus wrote:I want to copy a video to the sdcard of an android emulator, so that I can play it in an application. When I try to copy the video (by drag and drop) I get the message:

[2013-05-18 23:49:54 - ddms] transfer error: Read-only file system
[2013-05-18 23:49:54] Failed to push selection: Read-only file system

What can I do to make the sdcard writable?




The real problem is that I can't find the directory sdcard in my file system. I can only see it in Eclipse. If I could find the directory, that I know how to change permission (chmod on Mac OS X).
 
Monica Marcus
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the answer on a different forum. There are some adb commands to be written.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's great; care to post a link to that other discussion, so that people here have a chance to learn?
 
Monica Marcus
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, this is what I did:

In a terminal (I work on Mac OS X) I wnt to sdk/platform-tools directory (to get access to the adb shell) then I typed the following commands:

./adb shell
su
mount -o rw,remount rootfs /
chmod 777 /mnt/sdcard

and then typed "exit" to exit the adb shell.

I hope it works for others as well, because I cannot find the link to the actual post (It was a post from stackoverflow.com)
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!