This week's book giveaway is in the Spring forum.
We're giving away four copies of Java Persistence with Spring Data and Hibernate and have Cătălin Tudose on-line!
See this thread for details.
Win a copy of Java Persistence with Spring Data and Hibernate this week in the Spring forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

Android emulator sdcard is not writable

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I found the answer on a different forum. There are some adb commands to be written.
 
Rancher
Posts: 43075
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
All of the following truths are shameless lies. But what about this tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic