使用adb shell重命名文件 [英] renaming files using adb shell

查看:4200
本文介绍了使用adb shell重命名文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用adb shell重命名我的android设备上的文件(运行CyanogenMod 11)。我可以通过adb访问手机,但是当我转到文件所在的目录并尝试使用 mv ./file.old ./file.new我得到 mv ./file.old失败,只读文件系统。与 su 尝试相同,但随后得到 / system / bin / sh:su:找不到

I want to rename a file on my android device (running CyanogenMod 11) using the adb shell. I have access to the phone via adb, but when I go to the directory where the file is located and try to rename it with mv ./file.old ./file.new I get mv ./file.old failed, Read-only file system. Tried the same with su but then I get /system/bin/sh: su: not found

我需要在手机上或其他地方进行更改吗?

Do I need to change something on my phone or somewhere else?

推荐答案

您应该首先将 system 挂载为rw

You should first mount system as rw

su
mount -o remount,rw /system
mv ./file.old ./file.new

这篇关于使用adb shell重命名文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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