前馈科技

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 424|回复: 0

记几条adb/fastboot指令

[复制链接]

97

主题

97

帖子

539

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
539
发表于 2022-11-20 22:26:00 | 显示全部楼层 |阅读模式
1. 下载adb/fastboo
adb/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/h ... -google-pixel-7-pro
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|计算机控制

GMT+8, 2024-4-26 19:05 , Processed in 0.049191 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表