简体   繁体   English

Android ADB Push不起作用

[英]android adb push not working

My problem is i can write files on sd card in emulator but i find the solution to this problem in stack overflow here to implement that you have to add a group media_rw under android.permission.WRITE_EXTERNAL_STORAGE in platform.xml so for i successfully pulled the xml file but after editing the file i can't push that file so when i am pushing it gives the below error 我的问题是我可以在模拟器中的sd卡上写文件,但是我在这里找到了堆栈溢出中此问题的解决方案,以实现您必须在platform.xml中的android.permission.WRITE_EXTERNAL_STORAGE下添加一个media_rw组,这样我就成功地将xml文件,但是在编辑文件后我无法推送该文件,因此当我推送它时会出现以下错误

[Java is awesome]:~$ adb push platform.xml /system/etc/permissions/ 
failed to copy 'platform.xml' to '/system/etc/permissions//platform.xml': Read-only file system

to overcome this i remount the adb and again i tried i gives the below error 为了克服这个问题,我重新安装了adb,然后再次尝试给出以下错误

[Java is awesome]:~$ adb remount
remount succeeded
[Java is awesome]:~$ adb push platform.xml /system/etc/permissions/
failed to copy 'platform.xml' to '/system/etc/permissions//platform.xml': Out of memory

so how can push the file or is there any alternative that can enable editing of file with in the adb shell Thanks in advance 因此,如何推送文件或是否有其他选择可以在adb shell中启用文件编辑功能?

You need to increase the /system partition size accordingly to account for the extra bytes in the file: 您需要相应地增加/ system分区大小,以解决文件中的额外字节:

You can do this with the following command: 您可以使用以下命令执行此操作:

emulator -partition-size <size>

Where is the size depends on your system image plus the extra bytes. 大小取决于系统映像加上额外的字节。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM