########电子书论坛,电纸书,水墨屏手机,yota,安卓电纸书,电子书,eink,漂白软件博阅电纸书,博阅电子书,likebook,jdread,云遥客栈,boyue,博阅电纸书########

simonkin 发表于 2019-4-21 12:26:25

Yota 3+ Root 两种方法 (转自XDA)


转载: 原帖位置 https://forum.xda-developers.com/yotaphone-3/development/yota-3-root-twrp-updates-t3891101


方法1:Magisk无系统root(参考:https://www.xda-developers.com/what-is-magisk/),由于不需要删除用户数据,因此风险较小,但比较脆弱,如果系统出现问题(例如尝试在启动的操作系统之外修改存储),你可能需要完全重装系统。但是应用程序和谷歌商店不容易检测到设备已root,这是好的方面。
方法2:完全root包括TWRP,Magisk和禁用的存储加密,这意味着你可以在引导的操作系统之外自由修改存储,如果出现问题,你将能够启动到TWRP并可能修复问题/制作或恢复备份。但是这种方法必须删除并完全重新安装系统才能工作。注意:保持设备未加密不安全,如果设备丢失,个人数据也可以从中找到。因此,一旦完成了所有root应用程序的安装并确保一段时间内正常工作,建议执行以下操作: - 加密您的设备(设置>安全和位置>加密和凭据>加密手机) - 锁定boootloader(设置>系统>开发人员选项> OEM解锁>关闭)这将使设备再次安全,但请注意,你将无法再从TWRP修改/访问用户数据。此外,除非您重新应用Disable_Dm-Verity_ForceEncrypt_12.16.2018.zip(https://forum.xda-developers.com/and...crypt-t3817389),否则你将无法修改系统分区。


方法1 - System-less root
注意:这是一个system-less的root方法,这意味着如果您尝试从自定义恢复修改系统分区,那么它将无法再次启动!

准备工作 (重要!):
[*]备份你的个人数据
[*]开启开发者界面:
https://img.xda-cdn.com/dSBp37t_jxA9FsA2WHCyQBfjik8=/https%3A%2F%2Flh4.googleusercontent.com%2Fab9AAZWUac5oWUQfKOEW62MIsxjnoeYH5YmOtOlxtYiXx4yhyMoYgbMlptGqZMju-iMc8SEUpzOgYA%3Dw2046-h883-rw
[*]USBdebugging开关打开:
https://img.xda-cdn.com/lSSd-ZawiqCXh-gXZ0AKE725DkM=/https%3A%2F%2Flh3.googleusercontent.com%2FAmnIye94cG09OLsWH7bOHLutJXp5GS9TFsCJpwcb2wsxAoC-6sjdXDVCMV3WgUcUkNYlNtij2EMa8g%3Dw2046-h883-rw
[*]OEM unlocking 开关打开:
https://img.xda-cdn.com/KDyBUcUaTrR41Ydyj08LlJBiMPc=/https%3A%2F%2Flh5.googleusercontent.com%2FwbIw8aBsBvji89uQggaI8csX7vXMOrUHKQzwDRoZj_8Vr2TUedxlVtxKjYrCFT7YY64x5cOwMQYBrw%3Dw2046-h883-rw
[*]adb, fastboot 工具已经在PC上安装
[*]Device的打开 (Settings > Security & location > Screen lock > PIN)   【原文就是如此,自己判断哦】


步骤:
[*]下载new9008-0112.zip https://forum.xda-developers.com/yot...-news-t3862999【论坛里有】
[*]解压new9008-0112.zip > 复制boot.img 到设备
Boot image 复制到设备:
https://img.xda-cdn.com/IYGunH_2bl-21kbfHB7qS_zRX8I=/https%3A%2F%2Flh4.googleusercontent.com%2F31aNVZJ__0BjiSNPaWOIwsuWGyveZ9AHmHoXxR5Lyib6mSWhr7pbjIyan-5SjjLNeBL_SIbq3lhNTQ%3Dw2046-h883-rw
[*]安装Magisk. : https://forum.xda-developers.com/app...mless-t3473445
[*]打开Magisk > Install > Patch Boot Image File > 选择上一步复制的boot.img > 生成patch过的文件 > 关闭
https://img.xda-cdn.com/XjFayxhvaYlwf2zg-ILRP0fANDU=/https%3A%2F%2Flh3.googleusercontent.com%2FzZyRuPxAOHgZbd4Nt1sw2uXknwuQZLMfPMw-616z3a7RgufAcxr6yqPIRO8RyNodQC_Wf3mUCaD3dg%3Dw2046-h883-rw
https://img.xda-cdn.com/_GHqKuAvzxjOKuQSASR_MxlfKoQ=/https%3A%2F%2Flh4.googleusercontent.com%2FUafahxGRRaLB6siu3HJkMqjdm27K3BTrcCP0E0qu5TXTv8DJ5eY1X9zbXq2XxC0VS_7AHZUmi50KWQ%3Dw2046-h883
[*]复制生成后的patched_boot.img到你的PC上:【复制到ADB目录下】
https://img.xda-cdn.com/EsdUHqc4bXpTLszTjHuNKZQw39E=/https%3A%2F%2Flh5.googleusercontent.com%2FVdjNT5TIJAiRuUPFNKe8XxkbSzhQ6s2cRgUca0KaI3QA5IA_kL8VLV8y1qxke_iXKz3-k8Bs6R99Kg%3Dw2046-h883-rw
[*]运行windows CMD,进入ADB目录,运行 adb reboot bootloader (或者关机后同时按下电源和音量-),进入刷机模式后,运行fastboot boot patched_boot.img

https://img.xda-cdn.com/GdPzbu94NHQXQGqrYboEUERJm2o=/https%3A%2F%2Flh6.googleusercontent.com%2Fft2JOVDct7EeMxSh_8JOG2UoHYXRHDB6_6n4LR-ThRyZlPtJOjL4p_81v1HmgfsSk7NZFOU-nargAw%3Dw2046-h883
[*]设备重启 > 打开Magisk app > 会提醒获得root权限 > 点grant允许 > 点Install安装按钮 > Direct Install(Recommended) > 重启
获得权限:
https://img.xda-cdn.com/r01l76jcvjHvXWifrhv6V_4CJeg=/https%3A%2F%2Flh5.googleusercontent.com%2FC5IIz34fQh2M_LqeeBaHSbMNQC8s-EoQahZ_H8IZXvkupCGAFUI-eyvkii_Yf8XOZhoylK8KQaU3cw%3Dw2046-h883-rw
安装对话界面:
https://img.xda-cdn.com/IbqT4WkI-gM_V82cWgesuvgbl2Y=/https%3A%2F%2Flh5.googleusercontent.com%2FwIUjp1ocjA1CcT8JErTmf6yj0WJCyrF44LT8XlYy0ySlaFO_vlMNfi683uWc0hVawXwogRS4Nkm04g%3Dw2046-h883-rw
patch boot 分区, 点击reboot:
https://img.xda-cdn.com/snD_ToDvbDSzJoRsatqbhGGbIwM=/https%3A%2F%2Flh5.googleusercontent.com%2F1zx3K47tQJ32DWpkw3w-Bty8J-5oG30ummNa-uhNINwQ0JQFYRY-Nm106KxuYGFKyCMNG9BAzSFPMg%3Dw2046-h883-rw
确认重启后Magisk中间的两个大的绿块仍然是绿色的:【Magsisk is installed 和 Magisk Manager is up to date】
祝贺, 你的设备已经root完成!
方法 2 - Yota 3+ 8.1 System Root with TWRP recovery, Magisk and storage encryption disabled

我已经设法创建了一个特定于Y3 +的TWRP并编写了.bat脚本,该脚本自动重新安装OS 8.1,最新的ota 54更新,magisk和root并禁用存储加密。


准备工作 (重要):
[*]设备至少有50%以上的点亮
[*]adb, fastboot 在PC上安装,并且加入到Windows系统环境变量的home path中
[*]adb 调试打开
[*]开发选项的 OEM unlocking 打开
[*]备份所有的个人数据

步骤:
[*]下载所有文件: mega.nz/#F!yMBGBYIY!24gGnv0DXNhqBvE7IbrEmA


[*]点击install.bat
[*]按照屏幕指示往下操作
[*]重要! 当出现home screen的时候至少浏览一次你的墨水屏,否则系统可能因为不能访问Launcher会在5-10分钟后崩溃. 完成后重启设备.

【方法二的附件很大,这里只列一下文件目录】


simonkin 发表于 2019-4-21 23:49:57

上传install.bat,扩展名请自行更改.


simonkin 发表于 2019-4-21 12:28:27

Install.bat 内容:


@echo off
echo "=============================================================="
echo "| TWRP & Rooting script for Yota 3+ 8.1 by vvinjj 2019.02.03 |"
echo "=============================================================="

set /p var="You about to flash your device to Y3 plus v8.1, all data will be lost. Are you sure?:"
if not %var%== Y exit
set startTime=%time%
call adb devices
echo "Rebooting into bootloader... Please wait!"
call adb reboot bootloader
TIMEOUT /T 10 /nobreak
call fastboot devices || goto :error
call echo "Ensuring the bootloader is unlocked..."
call fastboot oem unlock-go || goto :error
call fastboot flashing unlock || goto :error
call echo "Rebooting into bootloader to apply unlock. Please wait!"
call fastboot reboot bootloader || goto :error
TIMEOUT /T 10 /nobreak
call fastboot flash boot .\patched_boot.img || goto :error
call fastboot flash system .\system.img || goto :error
call fastboot flash vendor .\vendor.img || goto :error
call fastboot flash cache .\cache.img || goto :error
call fastboot flash persist .\persist.img || goto :error
call fastboot flash splash .\splash.img || goto :error
call fastboot flash mdtp .\mdtp.img || goto :error
call fastboot flash recovery .\twrp_recovery.img || goto :error
call fastboot format userdata || goto :error

call fastboot boot .\twrp_recovery.img || goto :error
echo "Booting into twrp recovery... Please wait! Don't touch your phone as e-ink screen responds to touches as main screen."
TIMEOUT /T 25 /nobreak

call adb shell twrp wipe data || goto :error
TIMEOUT /T 1 /nobreak

call adb shell twrp wipe cache || goto :error
TIMEOUT /T 1 /nobreak

call adb shell twrp wipe dalvik || goto :error
TIMEOUT /T 1 /nobreak

echo "Remounting system rw..."
call adb shell twrp mount /system
call adb shell twrp remountrw /system

echo "Remounting data rw..."
call adb shell twrp mount /data
call adb shell twrp remountrw /data

call adb shell twrp sideload || goto :error
TIMEOUT /T 5 /nobreak
echo "Installing Yota updates and root. Don't panic if progress percentage is stuck, you can see the actual sideload progress in twrp."
call adb sideload .\ota_update-Y3-54_patched_as_YT.zip || goto :error
TIMEOUT /T 5 /nobreak

call adb push .\Disable_Dm-Verity_ForceEncrypt_12.16.2018.zip /data || goto :error
call adb shell twrp install /data/Disable_Dm-Verity_ForceEncrypt_12.16.2018.zip || goto :error

call adb push .\Magisk-v18.0.zip /data || goto :error
call adb shell twrp install /data/Magisk-v18.0.zip || goto :error

call adb reboot bootloader || goto:error
TIMEOUT /T 10 /nobreak
call fastboot boot .\patched_boot.img || goto:error

if %errorlevel% == 0 (
        echo "Re-installation is done. Setup you phone. Connect to Wifi."
        echo "As soon as you are on home screen browse your e-ink screen at least once, otherwise the OS might crash after ~ 5-10 minutes due to inability to properly access its launcher."
        echo "Once done. Reboot your device."
) else (
        :error
        echo "Errors encountered during execution. Exited with status: %errorlevel%"
)
echo Start Time: %startTime%
echo Finish Time: %time%
echo "Press any key to exit..."
PAUSE

caochali 发表于 2019-4-21 17:00:46

批处理命令都被翻译成汉字了,原文件有吗,

zhoucheng1220 发表于 2019-4-29 17:35:29

感谢提供优质资源!

ShinPan 发表于 2019-5-2 16:26:14

You about to flash your device to Y3 plus v8.1, all data will be lost. Are you sure?:Y
List of devices attached
f2a0e0a3      device
emulator-5584   host
emulator-5566   host

"Rebooting into bootloader... Please wait!"
error: more than one device/emulator

等待0 秒,按 CTRL+C 退出 ...
"Ensuring the bootloader is unlocked..."
< waiting for any device >

ShinPan 发表于 2019-5-2 16:33:48

出现错误了

comeonshe 发表于 2019-7-13 10:13:28

求方法二的全部文件下载

只打尖儿不住店 发表于 2019-7-14 15:47:15

所以方法二的附件呢??

pop4ever 发表于 2019-8-18 20:55:51

谢谢分享
页: [1] 2
查看完整版本: Yota 3+ Root 两种方法 (转自XDA)