• 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
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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: 43026
76
  • 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)
 
Slideshow boring ... losing consciousness ... just gonna take a quick nap on this tiny ad ...
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic