手机屏幕损坏使用ABD打开开发者模式

手机解锁bootloader

刷TWRP

adb shell mount data

adb shell mount system

adb pull /data/property/persist.sys.usb.config /Your directory

persist.sys.usb.config中输入mtp,adb(如果没有上面的文件就新建)

adb push /your-directory/persist.sys.usb.config /data/property

adb pull /system/build.prop /your-directory

build.prop中添加

persist.service.adb.enable=1

persist.service.debuggable=1

persist.sys.usb.config=mtp,adb

adb push /your-dir/build.prop /system/

adb push /.android/adbkey.pub /data/misc/adb/adb_keys