页面“Jenkins迁移之备份和还原”与“Unlock Bootloader, Install LineageOS ,TWRP and Root Essential PH-1”之间的差异

来自linux中国网wiki
(页面间的差异)
跳到导航 跳到搜索
 
 
第1行: 第1行:
[[category:ops]]
+
=问题=
=info=
+
  PH1现在没有root的吧 
old 2.60.3
 
  
new image: jenkins/jenkins:2.60.3-alpine
+
换机 转资料 用这个 换机助手 https://huanji.qq.com/index.html
  
使用的备份还原插件为 ThinBackup
+
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 =
 +
 
 +
[https://doc-00-9s-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/ctk8lmbjhebr5f987q4us4gv5m56i9lf/1517472000000/14260627717518624942/*/1BU5splgIxsqYtki4t3zG297ZGxZDizsS?e=download  NMI81C-TWRP.img下载]
 +
 
 +
[https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445 magisk下载]
  
=backup=
 
 
<pre>
 
<pre>
插件开始的页面 不安全直接跳过都可以 如下 manage 页面
+
adb reboot bootloader
http://192.168.10.208:7099/manage
+
或者手工进入
  
在老的机器上备份
+
输入以下指令
系统管理-->ThinBackup-->Backup Now
+
fastboot devices -l
 +
若出来一串序列号,说明安卓设备已连接
  
例如目录如下  要配置
+
刷入TWRP
  
Backup directory /var/jenkins_home/backups
+
成功
 +
fastboot flash boot  NMI81C-TWRP.img
  
 +
失败 老的用法
 +
fastboot flash recovery twrp-mata_2.im
  
查看物理目录
+
Installing  Magisk from recovery
find / -name backups
+
Wipe the device
eg
+
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.
/home/data/docker/volumes/docker4jenkins_jenkins_home/_data/backups
+
有一次wifi打不开居然是这个原因
 +
 
 +
 
 +
可能要用的命令
 +
  adb shell twrp sideload
 +
adb sideload Magisk-v15.3.zip
 +
 
</pre>
 
</pre>
  
=还原=
+
=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:====
 +
<pre>
 +
    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...
 +
</pre>
 +
==== 安装谷歌框架 opengapps ====
 
<pre>
 
<pre>
在新机器安装新的 jenkins 版本最好一样,然后插件什么的差不多不用理  要重要安装 ThinBackup  反正下面要还原的 (今天不小心复制多了个- 找半天呢 )
+
(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:\>
  
在新的机器上 也先点击还原 并设置目录如上
 
  
然后把老机器的这个目录的备份文件 覆盖到这个新目录(rsync  -avz)  
+
#注意 这里有时可能要 Factory Reset一下才能进入系统
目录有可能如下  FULL-2020-08-31_09-32/
+
Once you have installed everything successfully, click the back arrow in the top left of the screen, then “Reboot system now”.
 +
</pre>
  
要重启jenkins  url/restart 用老用户 密码登录
+
==lineageos see also==
  
例如是
+
这个是官方文档了 看它就对了
 +
https://wiki.lineageos.org/devices/mata/install
  
 +
https://lineageosroms.com/ph-1-mata/
  
 +
https://wiki.lineageos.org/devices/#essential
  
docker-compose restart jenkins
+
https://download.lineageos.org/mata
  
Troubleshooting
+
[https://club.lenovo.com.cn/thread-4406439-1-1.html  [教程<nowiki>]</nowiki> 到底该刷哪个opengapps!安装谷歌框架的正确指引 ]
  
修改几个  xml文件 为1.0 按提示来
+
[https://marasati.com/2019/06/10/gapps.html The Open GApps 各版本详细介绍]
  vim slave02/2020-08-27_15-01-36/history.xml
 
  
  vim  nodes/slave03/2020-08-27_15-01-42/history.xml
+
[https://www.iapps.me/archives/33 看完这篇文章,小白也能快速安装谷歌服务框架(GApps)!]
  
 +
[https://www.lineageos.org.cn/thread-207-1-1.html  打印 上一主题 下一主题 [教程<nowiki>]</nowiki> lineage os 刷机及软件安装小白攻略]
  
docker-compose restart jenkins
+
<pre>
  
进入新jenkins 并用原来的用户就可以登录了
 
  
注意
+
屏没反应 刷新没成功 线刷,后面用 recovery 成功 不是屏问题,机器开机屏不能操作 那可以进入 fastboot的
恢复后 jenkins 的ssh key 密码 要重新输入的 不然 不行
 
  
 +
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
 
</pre>
 
</pre>
 +
https://wiki.lineageos.org/devices/mata/install
 +
 +
==android10 放弃 后面不更新了==
 +
<pre>
 +
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)为返回上级目录功能
 +
 +
</pre>
 +
 +
 +
https://www.thecustomdroid.com/download-install-essential-phone-android-10-q-update/
 +
 +
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!
 +
 +
 +
首先 手机备份相关信息
 +
 +
=进阶=
 +
[https://www.cnblogs.com/luoyesiqiu/p/10701419.html  自己动手编译Android(LineageOS)源码 ]
 +
 +
[https://blog.phpgao.com/adb.html adb,fastboot常用命令及刷机技巧]
 +
 +
[https://www.cnblogs.com/xuan52rock/p/11544142.html  【转】使用fastboot命令刷机流程详解 ]
 +
 +
[https://www.jianshu.com/p/2be6f943e519 fastboot flash错误及解决办法汇总]
 +
 +
=参考 =
 +
 +
Recovery  TWRP 相关知识补充
 +
 +
[https://www.moonlol.com/twrp-recovery%E5%8D%A1%E5%88%B7rom-5967.html  手機或平板TWRP卡刷ROM教學 ]
 +
 +
[https://www.kocpc.com.tw/archives/233419 TWRP备份还原]
 +
 +
[https://news.mydrivers.com/1/542/542943.htm 安卓Recovery你知多少?不懂别说是刷机高手]
 +
 +
[https://www.cnblogs.com/godfeer/p/12029476.html  【TWRP】使用adb sideload线刷ROM的方法 ]
  
=see also=
 
  
[https://blog.csdn.net/weixin_36854967/article/details/84314177  Jenkins的备份插件--ThinBackup使用详解]
+
[https://www.cnblogs.com/yanglang/p/10227069.html 使用电脑adb给Essential Phone刷机 —(官方篇)]
  
[https://segmentfault.com/a/1190000019505621 Jenkins简单的迁移方法]
+
[https://www.xda-developers.com/how-to-root-essential-phone-ph-1/ How to Root the Essential Phone (PH-1) using Magisk]
  
[https://www.cnblogs.com/operationhome/p/12240233.html Jenkins 定时备份插件 ThinBackup]
+
https://www.essential.com/developer/current-builds
  
 +
[http://wiki.linuxchina.net/index.php?title=Nexus5%E5%88%B7%E6%9C%BA Nexus5刷机]
  
[https://blog.csdn.net/weixin_46308547/article/details/104408836?utm_medium=distribute.pc_relevant_download.none-task-blog-searchfrombaidu-6.nonecase&depth_1-utm_source=distribute.pc_relevant_download.none-task-blog-searchfrombaidu-6.nonecas Jenkins升级、迁移]
+
[http://www.droidviews.com/unlock-bootloader-install-twrp-root-essential-ph-1/ Unlock Bootloader, Install TWRP and Root Essential PH-1]
  
[https://blog.csdn.net/weixin_36854967/article/details/84314177 Jenkins详细教程]
+
[https://zhuanlan.zhihu.com/p/55950119 关于Essential Phone 获取root]
  
 +
[https://zhuanlan.zhihu.com/p/58507641 关于Essential Phone 获取Root权限及Magisk的安装教程(2019/6/14)]
  
[https://blog.csdn.net/huaqiangli/article/details/79201831  Jenkins 系列: (五) Jenkins 数据备份与恢复]
+
[[category:Desktop]]

2020年11月23日 (一) 03:19的版本

问题

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

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!


首先 手机备份相关信息

进阶

自己动手编译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)