1.首先设备需要获取root权限
adb root
adb remount
2.进入到adb shell环境,找到文件所在路径
adb shell
cd /product/123.txt
adb shell
cd <文件路径> (例如:cd /product/123.txt)
3.添加一些字符串,查看是否写入成功。
echo -e qwert >> 123.txt
cat 123.txt
echo -e qwert >> 123.txt
cat 123.txt (文档末尾应该多出qwert这个字符串)