• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Android emulator sdcard is not writable

 
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.
 
Rancher
Posts: 43009
76
  • 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)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!