安卓之父[PH-1]刷机教程【fastboot】— Essential PH-1 Brush tutorial [fastboot]

发布于 2019-05-18  1.05k 次阅读


前言:

【开心ucu】编写。【开心ucu】拥有最终解释权

除了本“人”授权,禁止商用。如有发现,请自负全责

如需转载,请备注好本【本地址】

如果你看不懂,或者其他情况,需要远程的,请到某宝自行询问

http://shop417562951.taobao.com/index.htm PC端【网页】

https://shop417562951.m.taobao.com 手机端【网页】

如果觉得可以的,有一定的经济能力的,(u_u)

教程开始,本教程针对有电脑的人群。建议在win7及以上电脑系统。XP的系统也行,不建议。

32位和64位系统都可以

PS:看不懂中文的,最下面有英文翻译,还请对照上述截图进行操作。翻译结果来自【谷歌翻译】如果无法理解,请复制中文内容到其他地方进行翻译。

PS: I don't understand Chinese. There is an English translation at the bottom. Please also follow the screenshot above. The translation results are from [Google Translate] If you cannot understand, please copy the Chinese content to other places for translation.

【1】手机操作【能正常开机状态下】

【中文截图操作】

9.0-058系统截图,其他系统,大同小异

打开【设置】


滑到最下面,多次点击【版本号】
直到出现【您已处于开发者模式xxx】
返回上一步
OEM解锁打开,USB调试打开

【英文截图操作】

打开【Settings】

多次点击最后一个
打开OEM unlocking和USB debugging

【2】电脑操作

安装驱动。链接: https://pan.baidu.com/s/16YCHVmfciC3oBQJEJ9iBsg 提取码: 6666

如果驱动无法安装,请使用驱动精灵进行安装。

驱动安装检测方法【电脑操作】

右击【此电脑】win7的是【我的电脑】等等,选择【管理】如果有【设备管理器】,直接选择

【3】ADB环境搭建【如果使用【2】驱动安装的话,【ADB】全局环境已经安装好了【部分不会安装环境】如果已经安装,请忽略本条。

这里不打算弄【全局】的教程,方法简单,把文件放到【C:/windows/system32】目录下即可安装全局ADB环境

链接: https://pan.baidu.com/s/1fIBLgcc5Inu-wSbcwqBrxA 提取码: 6666

解压
双击打开
会弹出类似的命令提示符


环境测试【ADB]和【fastboot】

adb
直接输入adb回车确认。如果出现一堆英文,说明环境有了


fastboot
相同方法,输入fastboot来测试fastboot环境

【4】adb/fastboot常用命令分享【针对PH-1】

【来自各大佬已经各平台的整理】【不完善】

检查设备是否连接
adb devices

进入recovery
adb reboot recovery

进入 Bootloade  【BL】【fastboot】
adb reboot bootloader

重启手机
adb reboot

进入shell
adb shell
以下来自大佬的汇总【不是刷机的】【美化的】
在此,由于各种因素。不方便透露

一、沉浸相关命令

沉浸方法一(推荐):

1.全屏沉浸模式(包括状态栏和虚拟按键):
adb shell settings put global policy_control immersive.full=*

2.沉浸状态栏:
adb shell settings put global policy_control immersive.status=*

3.沉浸虚拟按键(隐藏后底部上划可以呼出):
adb shell settings put global policy_control immersive.navigation=*

4.恢复正常模式(如果隐藏了状态栏或者虚拟按键但是又不想用了):
adb shell settings put global policy_control null

沉浸方法二(使用此方法请提前下好手势软件):

1.隐藏状态栏:
adb shell wm overscan 0,-160,0,0

2.隐藏导航栏: 
adb shell wm overscan 0,0,0,-150

3.隐藏状态栏和导航栏:
adb shell wm overscan 0,-160,0,-150

4.恢复原样:
adb shell wm overscan 0,0,0,0

二、去除网络叉号

1.去除WIFI及信号x号(方法一):
adb shell settings put global captive_portal_https_url https://www.google.cn/generate_204

2.去除WIFI及信号x号(方法二):
adb shell settings put global captive_portal_https_url https://captive.v2ex.co/generate_204

3.去除WIFI及信号x号(此方法会禁用网络验证,如登陆需要微信验证或账号登陆的WIFI,请连接后打开浏览器进行登陆验证):
adb shell settings put global captive_portal_mode 0
来自大佬的fastboot命令汇总【直接 复制粘贴】


一、解锁与上锁(不建议再上锁)
fastboot flashing unlock(解锁)
fastboot flashing unlock_critical(完全解锁)
 
二、获取手机信息

fastboot getvar all(获取全部信息)

fastboot getvar current-slot(获取AB活动分区)

三、切换AB分区

fastboot set_active a 或者 b   

四、刷入某些分区

system分区
fastboot flash system_a  文件名带目录
fastboot flash system_b  文件名带目录

boot分区
fastboot flash boot_a 文件名带目录
fastboot flash boot_b 文件名带目录

依次类推,需要刷入哪个分区就填写哪个分区的名字。

文件能拖拽进命令提示符的尽量拖进去,不能拖进去的,请注意目录是否有误,符号是否正确。

因为Essential Phone是AB双分区,所以一般两个分区都刷。

PS:Root只刷单分区,要刷入哪个分区参考“获取活动分区”命令

五、擦除某些分区

fastboot erase system(擦除system分区)

fastboot erase boot (擦除boot分区)

fastboot erase cache (擦除cache分区)

fastboot erase userdata (擦除userdata分区)

依次类推,需要擦除哪个分区就填写哪个分区的名字。

六、重启

fastboot reboot
个人建议,上述的命令中,切换分区,直接使用
补充
【BL】【bootloader】【fastboot】上锁
fastboot flashing lock

fastboot set_active other   //切换到另一个分区【PH-1是AB双分区】
fastboot getvar current-slot       //查看当前分区

【5】手机进入fastboot模式

可以用
adb devices    //检测连接
如果出现unauthorized。请解锁手机
勾选,然后【确认】
输入
adb devices  //知道变成xxxx + devices 【5】第一张图片

adb reboot bootloader    //重启到【fastboot】【bootloader】【BL】

如果输入之后,手机没有重启到bl或者,无法开机状态下【bl还在】按住电源键和音量-不动,重启后松开电源键,音量-长按不动。

出现类似界面松手【忽略最上方的英文】

【6】解锁【BL】【会清空手机所有数据】

自行对比最下面的英文
lock是锁定状态。unlocked是解锁状态,如果是解锁状态,请忽略下述教程

电脑输入
fastboot flashing unlock
出现[OKEY]类似字样。请看手机
音量+-,选择[YES]电源键确认。
确认之后,手动进入BL
按住电源键和音量-不动,重启后松开电源键
音量-长按不动
和上述方法一样【下文如果出现需要手动进入BL的情况,请看上述教程,下文将不会涉及到此部分教程】

输入
fastboot flashing unlock_critical    // 完全解锁BL
如果出现[OKEY]
请安装上述操作继续
然后进入BL

如果出现FIxxx 且后面包含   unlocked!
说明已经全解锁了。


建议输入此命令检测是不是全解锁。
刚进入BL时候,如果最下面是unlcoked,请输入一遍【全解锁】命令

解释:

没有全解锁情况,如果刷入触控文件不兼容等系统时候,会无法触控等

【7】开始线刷

打开下载的刷机包

如果没有请自行寻找自己需要的下载

地址-如果点击时候,跳转到另外一个网页,关闭网页,重新打开即可

http://ucu520.top/%E5%AE%89%E5%8D%93%E4%B9%8B%E7%88%B6ph1%E9%83%A8%E5%88%86%E5%88%B7%E6%9C%BA%E5%8C%85%E5%88%86%E4%BA%AB-%E5%AE%98%E6%96%B9/

如果双击flashall.bat文件,没有弹窗,请把刚刚的ADB文件夹内的文件全部复制到刷机包解压后的目录里面。再双击flashall.bat即可

补充【此处没有英文翻译】【如需翻译,请自行翻译】

------------------------------------------------------------------------------------------------------------------

【英文翻译】【English translation】

Foreword:
[Happy ucu] is written. [Happy ucu] has the final interpretation
Commercial use is prohibited except for the authorization of this person. If found, please take full responsibility
If you need to reprint, please note this [this address]
If you don't understand, or other situations, you need to be remote, please ask yourself
Http://shop417562951.taobao.com/index.htm PC end [webpage]
Https://shop417562951.m.taobao.com mobile phone [webpage]
If you think it is ok, have a certain economic ability, (u_u)
 
At the beginning of the tutorial, this tutorial is for people with computers. Recommended in win7 and above computer systems. The XP system is also OK, not recommended.
Both 32-bit and 64-bit systems are available
[1] Mobile phone operation [can be turned on normally]
[Chinese screenshot operation]
9.0-058 system screenshots, other systems, similar
Open [Settings]
 
 
 Slide to the bottom, click [version number] multiple times
Until [You are already in developer mode xxx]
Return to the previous step
  OEM unlock open, USB debug open
[English screenshot operation]
Open [Settings]
   Click the last one more times Open OEM unlocking and USB debugging
[2] Computer operation
install driver. Link: https://pan.baidu.com/s/16YCHVmfciC3oBQJEJ9iBsg Extraction code: 6666
If the driver cannot be installed, use the driver wizard to install it.
Driver installation detection method [computer operation]
 Right click [this computer] win7 is [my computer] and so on, select [manage] if there is [device manager], select directly

 
[3] ADB environment setup [If you use [2] driver installation, [ADB] global environment has been installed [some will not install environment] If you have already installed, please ignore this article.
I am not going to get the [global] tutorial here. The method is simple. Put the file in the [C:/windows/system32] directory to install the global ADB environment.
Link: https://pan.baidu.com/s/1fIBLgcc5Inu-wSbcwqBrxA Extraction code: 6666
 Unzip Double-click to open a similar command prompt

Environmental testing [ADB] and [fastboot]
Adb
 Enter adb and confirm directly. If there is a bunch of English, it means the environment has

Fastboot
 In the same way, enter fastboot to test the fastboot environment.

[4] adb/fastboot common command sharing [for PH-1]
[From all the major organizations have been organized by the platform] [not perfect]
Check if the device is connected
Adb devices

Enter recovery
Adb reboot recovery

Enter Bootloade [BL] [fastboot]
Adb reboot bootloader

restart cellphone
Adb reboot

Enter the shell
Adb shell
The following is a summary from Daxie [not a brush machine] [beautified]
Here, due to various factors. Inconvenient to disclose

I. Immersion related orders

Immersion Method 1 (recommended):

  1. Full screen immersive mode (including status bar and virtual buttons):
    Adb shell settings put global policy_control immersive.full=*
  2. Immersive status bar:
    Adb shell settings put global policy_control immersive.status=*
  3. Immerse the virtual button (after hiding, the bottom line can be called out):
    Adb shell settings put global policy_control immersive.navigation=*
  4. Restore normal mode (if you hide the status bar or virtual button but don't want to use it):
    Adb shell settings put global policy_control null

Immersion method 2 (use this method, please get the gesture software in advance):

  1. Hide the status bar:
    Adb shell wm overscan 0,-160,0,0
  2. Hide the navigation bar:
    Adb shell wm overscan 0,0,0,-150
  3. Hide the status bar and navigation bar:
    Adb shell wm overscan 0,-160,0,-150
  4. Revert to the original:
    Adb shell wm overscan 0,0,0,0

Second, remove the network fork

  1. Remove WIFI and signal x (method 1):
    Adb shell settings put global captive_portal_https_url https://www.google.com/generate_204
  2. Remove WIFI and signal x (method 2):
    Adb shell settings put global captive_portal_https_url https://captive.v2ex.co/generate_204
  3. Remove WIFI and signal x (this method will disable network authentication, such as login WIFI for WeChat verification or account login, please open the browser for login verification after connecting):
    Adb shell settings put global captive_portal_mode 0
    Summary of fastboot commands from Daxie [direct copy and paste]

First, unlock and lock (not recommended to lock again)
Fastboot flashing unlock
Fastboot flashing unlock_critical (completely unlocked)
 
Second, get mobile phone information

Fastboot getvar all (Get all information)

Fastboot getvar current-slot (Get AB active partition)

Third, switch AB partition

Fastboot set_active a or b

Fourth, brush into some partitions

System partition
Fastboot flash system_a file name with directory
Fastboot flash system_b file name with directory

Boot partition
Fastboot flash boot_a file name with directory
Fastboot flash boot_b file name with directory

And so on, which partition to fill in to fill in the name of which partition.

Files can be dragged into the command prompt as far as possible, can not be dragged in, please note that the directory is wrong, the symbol is correct.

Because the Essential Phone is an AB dual partition, generally both partitions are brushed.

PS: Root only brushes a single partition, which partition to brush into, refer to the "Get Active Partition" command.

Fifth, erase some partitions

Fastboot erase system

Fastboot erase boot

Fastboot erase cache

Fastboot erase userdata (erasing userdata partition)

And so on, which partition needs to be erased to fill in the name of which partition.

Sixth, restart

Fastboot reboot
Personal suggestion, in the above command, switch partition, use directly
supplement
[BL] [bootloader] [fastboot] locked
Fastboot flashing lock

Fastboot set_active other //Switch to another partition [PH-1 is AB dual partition]
Fastboot getvar current-slot //View the current partition
[5] The phone enters the fastboot mode
Can use
Adb devices //detect connection
  If unauthorized appears. Please unlock your phone
 Check, then [confirm]
Input
Adb devices // know to become xxxx + devices [5] the first picture

Adb reboot bootloader //reboot to [fastboot][bootloader][BL]
If the phone does not restart to bl after input, it can't be turned on [bl is still] hold down the power button and volume - no motion, release the power button after restarting, volume - long press.
 A similar interface appears. [Ignore the top English]
[6] Unlock [BL] [will clear all data of the phone]
 Self-contrast
Lock is locked. Unlocked is the unlocked state, if it is unlocked, please ignore the following tutorial

Computer input
Fastboot flashing unlock
A similar word like [OKEY] appears. Please look at the phone
 Volume +-, select [YES] to confirm.
After confirming, manually enter BL
Press and hold the power button and volume - do not move, release the power button after restarting
Volume - long press
Same as above. [If there is a need to manually enter the BL, please see the above tutorial. The tutorial will not be covered below.]

Input
Fastboot flashing unlock_critical // completely unlock BL
If [OKEY] appears
Please install the above operation to continue
Then enter BL

If FIxxx appears and it contains unlocked!
The instructions have been completely unlocked.

It is recommended to enter this command to check if it is fully unlocked.
Just enter the BL, if the bottom is unlcoked, please enter the [full unlock] command

Explanation:

There is no full unlocking situation. If the system is incompatible with touch files, it will not be able to touch.
[7] Start line brush
Open the downloaded brush package
If you don't have it, please find the download you need.
Address - If you click, jump to another page, close the page, and reopen it.
http://ucu520.top/%E5%AE%89%E5%8D%93%E4%B9%8B%E7%88%B6ph1%E9%83%A8%E5%88%86%E5%88%B7 %E6%9C%BA%E5%8C%85%E5%88%86%E4%BA%AB-%E5%AE%98%E6%96%B9/
  
If you double-click the flashall.bat file, there is no pop-up window, please copy all the files in the ADB folder to the directory after the brush package is decompressed. Double click on flashall.bat


公交车司机终于在众人的指责中将座位让给了老太太