Unlock Bootloader, Install LineageOS ,TWRP and Root Essential PH-1

来自linux中国网wiki
Evan讨论 | 贡献2020年11月17日 (二) 12:46的版本 →‎lineageos
跳到导航 跳到搜索

Fastboot mode

Put your Essential Phone into fastboot mode by doing either of the following:

• Use the ADB tool packaged above to run the command:

 adb reboot bootloader 

Reboot your phone while holding the Volume-down button

Enable unlocking and Unlock your bootloader

Enable unlocking

Find the option: OEM Unlocking and turn it on


Unlock your bootloader

Run the command:

adb reboot bootloader
fastboot flashing unlock

• Press the Volume-down button to navigate to the YES option, then press the Power button to confirm


Flash the TWRP into essential

NMI81C-TWRP.img下载


magisk下载

adb reboot bootloader
或者手工进入

输入以下指令
fastboot devices -l
若出来一串序列号,说明安卓设备已连接

刷入TWRP

成功
fastboot flash boot   NMI81C-TWRP.img


失败 老的用法 
fastboot flash recovery twrp-mata_2.im



Installing  Magisk from recovery
Wipe the device
In the TWRP Home menu, select Wipe > Advanced Wipe. Select Dalvik / ART Cache, System, Data, and Cache. Do not select the Internal Storage otherwise you will lose the data. Then Swipe to Wipe.
有一次wifi打不开居然是这个原因


可能要用的命令
 adb shell twrp sideload
 adb sideload Magisk-v15.3.zip
 

essential Install LineageOS 可能是这个

最好是卡刷 在第一次之后不用电脑了

lineageos

https://lineageosroms.com/ph-1-mata/

https://wiki.lineageos.org/devices/#essential

https://wiki.lineageos.org/devices/mata/install

https://download.lineageos.org/mata

http://debian.ustc.edu.cn/lineageos/full/mata/20201026/




屏没反应 刷新没成功 线刷

fastboot flash boot <recovery_filename>.img
win下报错  
sending 'boot' (25737 KB)...
FAILED (remote: Requested download size is more than max allowed


重启 adb reboot (-n)

关机 adb shell reboot -p

https://wiki.lineageos.org/devices/mata/install

android10

Pixel (128 GB, Quite Black)
$649.00
Qty: 1
Serial: 35268908313212

16 english 


先 邻居借线吧  

然后先备份

February 2020 Security Update
[https://storage.googleapis.com/essential-static/PH1-OTA-QQ1A.200105.032.zip OTA Package: PH1-OTA-QQ1A.200105.032.zip]
[https://storage.googleapis.com/essential-static/PH1-Images-QQ1A.200105.032.zip Factory Image: PH1-Images-QQ1A.200105.032.zip]

Method 1: Sideload Android 10 OTA using Stock Recovery



Method 2: Flash Android 10 Factory Image using Fastboot

Important Note: This method will wipe all the data stored on your phone, including the internal storage. So, make sure that you take a full backup first!


首先 手机备份相关信息 


 解决安卓 linux adb 连接机器提示 no permissions 的问题
问题描述

adb devices
no permission (user xxx is not in the plugdev group); see [http://developer.android.com/tools/device.html]
复制代码

解决方案

    使用下列方式启动 adb

    adb kill-server #我用了这个就好了 
    cd the-path-your-sdk-adb
    sudo ./adb kill-server
    sudo ./adb kill-server


adb进入recovery 以及fastboot模式

开机状态下:

adb reboot fastboot   命令进入fastboot模式

adb reboot recovery 命令行进recovery模式

power + 音量下 recovery 模式


关机状态下:
power + 音量下 recovery 模式
power + 音量上 fastboot 模式
recovery 模式下可以选择进入fastboot 模式

root@latop:~# adb reboot recovery
root@latop:~# adb devices
List of devices attached
PM1LHMA792000781	recovery

root@latop:~# cd /home/evan/iso/

adb sideload  PH1-OTA-QQ1A.200105.032.zip

默认位置可能是/目录,我们需要找到内置存储/sdcard/的位置。
(UP A Level)为返回上级目录功能


https://www.thecustomdroid.com/download-install-essential-phone-android-10-q-update/

February 2020 Security Update OTA Package: PH1-OTA-QQ1A.200105.032.zip Factory Image: PH1-Images-QQ1A.200105.032.zip

Method 1: Sideload Android 10 OTA using Stock Recovery


Method 2: Flash Android 10 Factory Image using Fastboot

Important Note: This method will wipe all the data stored on your phone, including the internal storage. So, make sure that you take a full backup first!


首先 手机备份相关信息

参考

使用电脑adb给Essential Phone刷机 —(官方篇)

How to Root the Essential Phone (PH-1) using Magisk

https://www.essential.com/developer/current-builds

Nexus5刷机

Unlock Bootloader, Install TWRP and Root Essential PH-1

关于Essential Phone 获取root

关于Essential Phone 获取Root权限及Magisk的安装教程(2019/6/14)