【发布时间】:2013-03-31 17:36:59
【问题描述】:
我是 Android 新手。我正在尝试运行 shell 命令来重命名系统中的文件。我有它的root访问权限。
shell命令:
$ su
# mount -o remount,rw /system
# mv system/file.old system/file.new
我试过了,但是不行:
public void but1(View view) throws IOException{
Process process = Runtime.getRuntime().exec("su");
process = Runtime.getRuntime().exec("mount -o remount,rw /system");
process = Runtime.getRuntime().exec("mv /system/file.old system/file.new");
}
【问题讨论】:
-
我确定有错误消息或类似的东西......你为什么不在你的问题中分享呢?
标签: java android eclipse shell command