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

2019-06-07 22:57发布

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 ?

2条回答
时光不老,我们不散
2楼-- · 2019-06-07 23:36

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,

查看更多
Anthone
3楼-- · 2019-06-07 23:44

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 !

查看更多
登录 后发表回答