“Installing adb and fastboot”的版本间的差异
跳到导航
跳到搜索
(→方法1) |
(→方法2) |
||
(未显示同一用户的2个中间版本) | |||
第47行: | 第47行: | ||
https://dl.google.com/android/repository/platform-tools-latest-linux.zip | https://dl.google.com/android/repository/platform-tools-latest-linux.zip | ||
+ | cat /etc/profile | ||
+ | |||
+ | if [ -d "/home/evan/adb-fastboot/platform-tools" ] ; then | ||
+ | export PATH="//home/evan/adb-fastboot/platform-tools:$PATH" | ||
+ | fi | ||
+ | |||
+ | |||
+ | |||
+ | 这些不太行 | ||
Extract it somewhere - for example, ~/adb-fastboot. | Extract it somewhere - for example, ~/adb-fastboot. | ||
Add the following to ~/.profile: | Add the following to ~/.profile: | ||
第55行: | 第64行: | ||
Log out and back in. | Log out and back in. | ||
+ | </pre> | ||
You may also need to set up udev rules: see this repository for more info. | You may also need to set up udev rules: see this repository for more info. | ||
− | + | https://github.com/M0Rf30/android-udev-rules#installation | |
Setting up adb | Setting up adb | ||
− | |||
+ | [https://blog.csdn.net/s464036801/article/details/9353391 Linux下Android手机刷机指南] | ||
https://wiki.lineageos.org/adb_fastboot_guide.html | https://wiki.lineageos.org/adb_fastboot_guide.html |
2021年3月18日 (四) 01:53的最新版本
adb常用命令
root@myxps:~# adb devices
List of devices attached PM1LHMA792000781 device
没有的话 先开启 开发者选项的 调试各个开关
pre
4 nexus
Hold VOLUME UP + VOLUME DOWN + HOME until you are in the bootloader Once you are in the bootloader, use the VOLUME buttons to navigate to RECOVERY Press POWER to select and enter recovery
关机状态下同时按住音量下+音量上 +电源键 就可以进入fastboot 模式,然后 各种模式都 不只是recovery mode
LineageOS USB调试
连续点击内部版本号就出来了
方法1
#In Debian / Ubuntu / LinuxMint / ElementaryOS: sudo apt-get install android-tools-adb android-tools-fastboot #In Fedora / Centos : sudo yum install android-tools 记得root evan@myxps:~$ fastboot devices no permissions (user in plugdev group; are your udev rules wrong?); see [http://developer.android.com/tools/device.html] fastboot evan@myxps:~$ sudo fastboot devices PM1LHMA792000781 fastboot
方法2
On Linux Download the Linux zip from Google. https://dl.google.com/android/repository/platform-tools-latest-linux.zip cat /etc/profile if [ -d "/home/evan/adb-fastboot/platform-tools" ] ; then export PATH="//home/evan/adb-fastboot/platform-tools:$PATH" fi 这些不太行 Extract it somewhere - for example, ~/adb-fastboot. Add the following to ~/.profile: if [ -d "$HOME/adb-fastboot/platform-tools" ] ; then export PATH="$HOME/adb-fastboot/platform-tools:$PATH" fi Log out and back in.
You may also need to set up udev rules: see this repository for more info.
https://github.com/M0Rf30/android-udev-rules#installation
Setting up adb
https://wiki.lineageos.org/adb_fastboot_guide.html
方法3
如果你用的是win 那就直接上刷机精灵吧 打开 刷机精灵 --》其它 --》进入fastboot
参考
Using ADB and fastboot https://wiki.lineageos.org/adb_fastboot_guide.html#installing-adb-and-fastboot