在/ system目录下的文件 [英] Create a file in /system directory

查看:102
本文介绍了在/ system目录下的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要创建在/ system目录下的文件。我认为,目录是受保护的手机必须植根访问和创建它。 我用这个简单的code以创建/系统中的文件,但没有创建:

I want to create a file in the /system directory. I think that directory is "protected" and the phone must be rooted to access and create to it. I used this simple code to create a file in /system but nothing is created:

File file = new File("/system", "test.prop");

我该如何解决这个问题? 感谢您的帮助。

How can i solve that problem? Thank you for your help.

推荐答案

我不知道如何执行下面的步骤,但我认为这不是太难在网络上找到一个解决办法:

I can't tell how to implement the following steps but I think it's not too hard to find a solution on the net:

  • 在获取root访问你的应用程序
  • 检查/系统安装与选项RW,如果没有,重新安装它,以便

提示:使用亚行壳,并检查上面的步骤能够获得成功 (SU&安培;&安培;重新安装邻重新装载,RW /系统和放大器;&放大器;触摸/系统/测试)

hint: use the "adb shell" and check if the upper steps can lead to success (su && remount -o remount,rw /system && touch /system/test)

在一些设备有不幸的机会,内部存储器是处于保护模式(谷歌S-ON / S-OFF)。如果这是你的情况下,它不会那么容易像我想象的。 但甚至比它必须是可能的,因为市场上安装的文件在那里。这将是最后提示,看看市场的源 - code; /

On some devices there's the unlucky chance that the internal memory is in protected mode (google S-ON / S-OFF). If this is the case for you it will not be that easy like I imagined. But even than it must be possible, since the market is installing files there. This would be the last hint, to look at the market source-code ;/

这篇关于在/ system目录下的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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