我如何使用Eclipse或亚行推动文件拖到Android设备(NexusS)? [英] How I can push file onto Android Device (NexusS) using eclipse or adb?

查看:159
本文介绍了我如何使用Eclipse或亚行推动文件拖到Android设备(NexusS)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

说明

我试图 一键文件(.so库)到Android设备(三星NexusS) 系统\\ LIB使用Eclipse文件夹中。但是,当我preSS 按文件到设备上出现了错误:


  

[2011-06-24 15时41分21秒]未能推
  选择:只读文件系统


研究

要解决这个问题,我通过互联网搜索和发现一些文章和文档,但没有帮助我,这里有一些文章和文档,我都试过了。


  • <一个href=\"http://androidforums.com/droid-all-things-root/91799-read-only-file-system-when-trying-adb-push-app.html\"相对=nofollow> 只读试图ADB当推一个App <文件系统/ EM>

    下面的用户建议写亚行外壳sysrw ,但是当我一个权限被拒绝错误出现了:


      

    sysrw:许可被拒绝。





  • 复制文件或从一个模拟器/设备实例

    下面对Android开发者论坛,我发现您可以使用adb命令推拉将文件复制到并从模拟器/设备实例的数据文件。不像install命令,只拷贝了。 apk文件到特定位置,推拉命令,让你随心所欲的目录和文件复制到任何位置在模拟器/设备实例。



我也尝试运行亚行重新装入命令,但出现了相同的权限错误:


  

重新挂载:许可被拒绝。


问题

如何,我可以使用Eclipse或亚行推动文件拖到Android设备(NexusS)?


解决方案

好吧,我已经做了我设备的生根和文件推到它。

要根你的Andr​​oid Nexus S的设备检查的 如何获得root和恢复的Nexus S于Windoes 7
做到这一点之后:

  $ ADB壳
#mount -o重新装入,RW -t YAFFS2的/ dev /块/ mtdblock3 /系统
#cat(你想要的文件)GT; (目标路径)

这就是所有!

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 ?

解决方案

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 !

这篇关于我如何使用Eclipse或亚行推动文件拖到Android设备(NexusS)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆