Simple file operations on Android devices

1.pull

# 拷贝 /system/etc/start_eth.sh 至 /home/hil/obufile/
adb pull /system/etc/start_eth.sh /home/hil/obufile/

2. Grant permissions

# 重新加载文件系统 实现权限赋予
mount -o rw,remount yaffs2 /

3.push

# 拷贝 /home/hil/obufile/start_eth.sh 至 /system/etc/
adb push /home/hil/obufile/start_eth.sh /system/etc/

 

Guess you like

Origin blog.csdn.net/qq_41854291/article/details/108257483