方法1:
adb root
adb shell rm -rf /mnt/vendor/nvcfg/camera
adb shell "ps -A | grep cameraserver | grep -v grep | sed 's/ [ ]*/:/g' | cut -d: -f2 | xargs kill -9"
adb reboot
方法2:
@echo on
adb wait-for-device
adb root
adb shell rm -rf mnt/vendor/nvcfg/camera/cctNvramFile/*
adb shell rm -rf mnt/vendor/nvcfg/camera/cctNvramFile/*
adb shell rm -rf data/vendor/camera_dump/*
adb shell rm -rf mnt/vendor/nvcfg/camera/*
adb shell rm -rf mnt/vendor/nvdata/media/*
adb shell rm -rf data/vendor/cameraserver/*
adb shell rm -rf data/misc/cameraserver/*
adb shell rm -rf sdcard/DCIM/Camera/*
adb shell rm -rf /data/nvram/*
adb shell pkill camera*
adb shell stop camerahalserver
adb shell start camerahalserver
pause
adb reboot