d:\liuqi\Desktop>adb disable-verity Verity is already disabled
d:\liuqi\Desktop>adb remount Verity is already disabled Remounted /system as RW Remounted /system_ext as RW Remounted /product as RW Remounted /vendor as RW Remounted /vendor_dlkm as RW Remounted /system_dlkm as RW Remounted /odm as RW Remounted /vendor/dsp as RW Remount succeeded
d:\liuqi\Desktop>adb push test.txt /vendor/firmware_mnt/image/ adb: error: failed to copy 'test.txt' to '/vendor/firmware_mnt/image/考试大�': remote fchown() failed uid: 1000 gid: 1000: Operation not permitted test.txt: 0 files pushed. 0.2 MB/s (3659 bytes in 0.018s)
二、问题分析
2.1 查询mount
1 2 3
d:\liuqi\Desktop>adb shell xxxx:/ # mount |grep firmware /dev/block/sde4 on /vendor/firmware_mnt type vfat (rw,context=u:object_r:firmware_file:s0,relatime,gid=1000,fmask=0337,dmask=0227,codepage=437,iocharset=iso8859-1,shortname=lower,errors=remount-ro)
d:\liuqi\Desktop>adb remount Verity is already disabled Remounted /system as RW Remounted /system_ext as RW Remounted /product as RW Remounted /vendor as RW Remounted /vendor_dlkm as RW Remounted /system_dlkm as RW Remounted /odm as RW Remounted /vendor/dsp as RW Remount succeeded
d:\liuqi\Desktop>adb shell mount -o rw,remount /vendor/firmware_mnt