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

来自linux中国网wiki
跳到导航 跳到搜索

问题

PH1现在没有root的吧  

换机 转资料 用这个 换机助手 https://huanji.qq.com/index.html

http://huanji.360.cn/

站内资源

Android刷机Nexus5刷机

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

最好是卡刷 在第一次之后不用电脑了 不过用官方的 recovery 就行了 fastboot 没成功呢

download package

LineageOS installation package

https://download.lineageos.org/mata

选择 Recovery image lineage-17.1-20201116-recovery-mata.img

Google Apps (use the arm64 architecture)

https://wiki.lineageos.org/gapps.html -->https://wiki.lineageos.org/gapps.html -->platform: ARM64 android:10 Variant:stock




操作

Basic requirements

has adb and fastboot ;Enable USB debugging

Unlocking the bootloader

Installing LineageOS from recovery

If you are not in recovery, reboot into recovery:

   With the device powered off, hold Volume Up + Power.

Factory Reset

Now tap Factory Reset, then Format data / factory reset and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage, as well as format your cache partition (if you have one). Return to the main menu. 中文意思就是选择 Factory Reset 再选择 Format data 下的 factory 出产重置 ,最后再返回主菜单

Sideload the LineageOS .zip package:

    On the device, select “Apply Update”, then “Apply from ADB” to begin sideload.
    On the host machine, sideload the package using: adb sideload filename.zip

我在power shell执行的如下 时间 09:53- 09:55   47%  有No error
PS G:\>  adb sideload  .\open_gapps-arm64-10.0-stock-20201118.zip
opening '.\open_gapps-arm64-10.0-stock-20201118.zip'...
connecting...

安装谷歌框架 opengapps

(Optionally): If you want to install any additional add-ons, click Advanced, then Reboot to Recovery, then when your device reboots, click Apply Update, then Apply from ADB, then adb sideload filename.zip those packages in sequence.
info_outline
Note: Additional add-ons aren’t signed with LineageOS’s official key, and therefore when they are sideloaded, Lineage Recovery will present a screen that says Signature verification failed, this is expected, please click Continue.
info_outline
Note: If you want Google Apps on your device, you must follow this step before booting into LineageOS for the first time!

我的命令  注意 中间可能提示有错什么的 按yes    时间 09:56-10:04
PS G:\>  adb sideload  .\open_gapps-arm64-10.0-stock-20201118.zip
opening '.\open_gapps-arm64-10.0-stock-20201118.zip'...
connecting...
serving: '.\open_gapps-arm64-10.0-stock-20201118.zip'  (~47%)    * failed to read command: No error
PS G:\>


#注意  这里有时可能要 Factory Reset一下才能进入系统
Once you have installed everything successfully, click the back arrow in the top left of the screen, then “Reboot system now”. 

lineageos see also

这个是官方文档了 看它就对了 https://wiki.lineageos.org/devices/mata/install

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

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

https://download.lineageos.org/mata

[教程] 到底该刷哪个opengapps!安装谷歌框架的正确指引

The Open GApps 各版本详细介绍

看完这篇文章,小白也能快速安装谷歌服务框架(GApps)!

打印 上一主题 下一主题 [教程] lineage os 刷机及软件安装小白攻略


屏没反应 刷新没成功 线刷,后面用 recovery 成功 不是屏问题,机器开机屏不能操作 那可以进入 fastboot的

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 模式

[email protected]:~# adb reboot recovery
[email protected]:~# adb devices
List of devices attached
PM1LHMA792000781	recovery

[email protected]:~# 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!


首先 手机备份相关信息

进阶

自己动手编译Android(LineageOS)源码

adb,fastboot常用命令及刷机技巧

【转】使用fastboot命令刷机流程详解

fastboot flash错误及解决办法汇总

参考

Recovery TWRP 相关知识补充

手機或平板TWRP卡刷ROM教學

TWRP备份还原

安卓Recovery你知多少?不懂别说是刷机高手

【TWRP】使用adb sideload线刷ROM的方法


使用电脑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)