Brush embodiment Android

Obtain

Prior to brush machine, you need to download Android Preview package on a computer, I usually to  Andrews Chinese  , where you can download the latest package.

Cellular phone

Relative download package acquisition, there is a more difficult to support the latest Android phone, the general Preview version of the system are supported by default Google's own mobile phone.

Pixel is mainly oriented series of mobile phones. Google still prefers his own son on the series.

Brush

Brush There are two troublesome areas, the first is the need to install  adb the command, which is the Android function module, the second is the need to unlock the phone.

adb Configuration

Android SDK download coming down, and then configure it to environment variable can be

Windows

  1. ANDROID_HOME configuration variables to the environment variable
  2. Configuring% ANDROID_HOME% \ platform-tools into the path
  3. Configuring% ANDROID_HOME% \ tools into the path of

Linux & Mac

Open the profile file, the default is _.bash_profile  If you are using zsh edit  .zshrc_ file.

Place the following contents into the profile file

ANDROID_HOME=~/developerTools/adt-mac/sdk
export ANDROID_HOME
PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

Mac

Mac computer offers automatic installation of a content can be  adb related to the contents of installed directly, but if you want to develop Android applications, it must be configured according to the above scheme.

First you need to install the brew, see specific programs  Homebrew  , or you can look at it directly GitHub homepage  Homebrew / BREW  .

Then execute the following command

brew cask install android-platform-tools

If the execution time brush, suggesting fastboot is too old you will need to reinstall the  Android-Platform-Tools  , since  brew update updates are not updated  cask  contents of the library.

brew cask reinstall android-platform-tools

Finally, execute the command line  adb devices is not being given just successfully configured. If Once configured, the error still remains, you can check whether during use, the USB debugging features turned off.

operating

  1. Connect your phone
  2. adb devices Get phone device id
  3. adb reboot bootloader Enter bootloader mode
  4. If you have already unlocked, go to step 8, if not unlock it enter the fifth step
  5. After entering the bootloader, execute fastboot flashing unlock
  6. If Pixel 2 XL is executed fastboot flashing unlock_critical
  7. If the earlier device, you need to perform fastboot oem unlock
  8. Go to the download directory, and then execute the script flash-all, if  Windows  is  flash-all.bat , the other is executed flash-all.sh
  9. After the execution, the phone has a good brush, you can use the restart
  10. If this fails, then you need to extract the directory  image  corresponding packet, then the following command

    fastboot flash vendor vendor.img fastboot flash boot boot.img fastboot flash system system.img 

Then restart the phone on it.

V unlocked version of the phone

You need to brush into a tool to unlock

adb push dePixel8 /data/local/tmp
adb shell chmod 755 /data/local/tmp/dePixel8
adb shell /data/local/tmp/dePixel8 

And then perform  adb reboot bootloader can be properly unlocked.

dePixel8.zip Download

Determine whether the V version of the phone

adb shell getprop|grep cid

If the V version of the phone is VZW_001

Guess you like

Origin www.cnblogs.com/banshiliuli1990/p/11802269.html