adb devices
adb shell
# su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
shell@android:/ # rm system/app/Calculator.apk
cn@cnUBT:~/mydroid/out/target/product/grouper/system/app$ adb install '/home/cn/mydroid/out/target/product/grouper/system/app/Calculator.apk'
# su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# chmod 777 /system (Or any subdirectory you want to push to inside system)
# exit
adb push <local file> <device location>
and eventually you should restore the original directory permissions by:
# chmod 755 /system (Or any subdirectory you modified permissions to)
1. 最简单的,adb remount
2. 不行的话,adb shell su之后将文件系统remount为读写权限: mount -o rw,remount /system。出于安全考虑,记得完事后remount回只读: mount -o ro,remount /system
3. 和方法2类似,mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system