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
- ANDROID_HOME configuration variables to the environment variable
- Configuring% ANDROID_HOME% \ platform-tools into the path
- 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
- Connect your phone
adb devices
Get phone device idadb reboot bootloader
Enter bootloader mode- If you have already unlocked, go to step 8, if not unlock it enter the fifth step
- After entering the bootloader, execute
fastboot flashing unlock
- If Pixel 2 XL is executed
fastboot flashing unlock_critical
- If the earlier device, you need to perform
fastboot oem unlock
- Go to the download directory, and then execute the script flash-all, if Windows is
flash-all.bat
, the other is executedflash-all.sh
- After the execution, the phone has a good brush, you can use the restart
-
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.
Determine whether the V version of the phone
adb shell getprop|grep cid
If the V version of the phone is VZW_001