“Installing adb and fastboot”的版本间的差异

来自linux中国网wiki
跳到导航 跳到搜索
第34行: 第34行:
  
 
==方法2==
 
==方法2==
 +
<pre>
 +
On Linux
 +
 +
    Download the Linux zip from Google.
 +
https://dl.google.com/android/repository/platform-tools-latest-linux.zip
 +
 +
    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.
 +
 +
 +
 +
Setting up adb
 +
</pre>
 +
 +
 
https://wiki.lineageos.org/adb_fastboot_guide.html
 
https://wiki.lineageos.org/adb_fastboot_guide.html
  

2021年3月16日 (二) 07:54的版本

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 


方法2

On Linux

    Download the Linux zip from Google.
https://dl.google.com/android/repository/platform-tools-latest-linux.zip

    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.



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

How to Boot Into Recovery