1

Description

I'm trying to Push file (.so library) onto Android Device (Samsung NexusS) "system\lib" folder using Eclipse. But when I press "Push a file onto the device" an error appears:

[2011-06-24 15:41:21] Failed to push selection: Read-only file system

Researches

To solve this problem I search through internet and find some articles and documentations, but nothing helps me, here are some articles and documentations which I have tried.


  • Copying Files to or from an Emulator/Device Instance

    Here on Android Developers Forum I found "You can use the adb commands pull and push to copy files to and from an emulator/device instance's data file. Unlike the install command, which only copies an .apk file to a specific location, the pull and push commands let you copy arbitrary directories and files to any location in an emulator/device instance."


I also try to run adb remount command, but same permission error appeared:

remount: permission denied

Question

How I can push file onto Android Device (NexusS) using eclipse or adb ?

Viktor Apoyan
  • 10,655
  • 22
  • 85
  • 147

2 Answers2

3

Typically access to system folder requires root permission, so unless you have rooted your phone i.e. you have superuser permission its not possible to access system folder or change its permission.

Check this: Rooting samsung Nexus S,

Viktor Apoyan
  • 10,655
  • 22
  • 85
  • 147
sat
  • 40,138
  • 28
  • 93
  • 102
  • I cant use `fastboot devices` command because "The program can't start because AdbWinApi.dll is missing from your computer. Try reinstalling the program to fix problem." what does this mean ? – Viktor Apoyan Jun 24 '11 at 12:15
  • I have Rooted my Android and now how I can push file into it ? – Viktor Apoyan Jun 28 '11 at 06:15
  • 1
    change permission of system folder, from readonly to read write. – sat Jun 28 '11 at 08:46
1

Okay I have done rooting of my device and push files into it.

To root your Android Nexus S device check How to get root and recovery for Nexus S on Windoes 7. After do this:

$adb shell
#mount -o remount, rw -t yaffs2 /dev/block/mtdblock3 /system
#cat (file which you want) > (destination path)

Thats All !

Viktor Apoyan
  • 10,655
  • 22
  • 85
  • 147