How I can push file onto Android Device (NexusS) u

2019-06-07 22:56发布

问题:

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.

  • Read-Only File System" when trying to ADB Push an App

    Here users suggest to write adb shell sysrw, but when I an permission denied error appeared:

    sysrw: permission denied


  • 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 ?

回答1:

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,



回答2:

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 !