记几条adb/fastboot指令
1. 下载adb/fastbooadb/fastboot下载地址
2. 在platform-tools中打开终端
3.执行命令:
./adb devices
./adb start-server
将会报错
4.建立并修改内容:
sudo gedit /etc/udev/rules.d/pixel7.rules
sudo udevadm control --reload-rules
sudo service udev restart
sudo udevadm trigger
./adb kill-server
./adb start-server
./adb devices
5. root
重启并进入bootloader:
./adb reboot bootloader
之后:
./fastboot flashing unlock
将会报错:fastboot not detect my android device
需要sudo:sudo ./fastboot flashing unlock
之后烧写修改后的init_boot:
sudo ./fastboot flash init_boot /home/xxxxx/Pixel7/magisk_patched-25200_XXXX.img
重启:sudo ./fastboot reboot
6. 解决无法连wifi:
./adb shell settings delete global captive_portal_https_url
./adb shell settings delete global captive_portal_http_url
./adb shell settings put global captive_portal_http_url http://captive.v2ex.co/generate_204
./adb shell settings put global captive_portal_https_url https://captive.v2ex.co/generate_204
详见https://www.xda-developers.com/how-to-unlock-bootloader-root-magisk-google-pixel-7-pro
页:
[1]