已解锁 BootLoader,在没有 custom recovery 的情况下如何 root 手机?

2019-09-08 19:51:06 +08:00
 Awes0me
手机是 Redmi note 8 pro,已解锁,但是目前没有 custom recovery,尝试过 用 magisk patch boot.img ,但是刷入后 bootloop,对比下发现原版 boot.img 有 60 多 mb,patch 以后的只有 10mb 左右。
6958 次点击
所在节点    Android
14 条回复
mnssbe
2019-09-08 19:55:08 +08:00
看你这个用户名应该是有能力自己 root 的
ysc3839
2019-09-08 20:26:00 +08:00
你的 boot.img 哪来的?再者,如果 patch 后出现问题,你用 recovery 刷入也会出问题,因为那是在 recovery 环境下 patch 再刷入的。
Awes0me
2019-09-08 20:39:15 +08:00
@ysc3839 官方固件解包来的,magisk 这个教程就是免 recovery 刷入 patched boot 啊

In order to use this method, you are required to obtain a copy of the stock boot image, which can be found by extracting OEM provided factory images or extracting from OTA update zips. If you are unable to obtain one yourself, someone on the Internet might share it somewhere. The following instructions will guide you through the process after you have the copy of boot image.

Copy the boot image to your device
Download and install the latest Magisk Manager
Press Install → Install → Select and Patch a File, and select your stock boot image file
Magisk Manager will install Magisk to your boot image, and store it in [Internal Storage]/Download/magisk_patched.img
Copy the patched boot image from your device to your PC. If you can’t find it via MTP, you can pull the file with ADB:
adb pull /sdcard/Download/magisk_patched.img
Flash the patched boot image to your device and reboot. Here is the command if using fastboot on most devices:
fastboot flash boot /path/to/magisk_patched.img
ysc3839
2019-09-08 20:44:40 +08:00
@Awes0me 问题是你这设备哪来的官方固件?官网没看到呀?
Awes0me
2019-09-08 20:50:32 +08:00
@ysc3839

小米所有的官方固件都可以在这找到,国际版国内版都有
https://mirom.ezbox.idv.tw/phone/begonia/
ysc3839
2019-09-08 20:54:23 +08:00
@Awes0me 是我孤陋寡闻了。不过这种情况我也不知道怎么解决。
Laforet
2019-09-08 21:48:57 +08:00
magisk 修改 boot.img 后文件变小是正常的,主要是去掉了填零的部分。确定底包没有选错的话注意一下 AB 分区的问题,有些机型不指定分区是刷不进的。
fvckDaybyte2
2019-09-09 00:51:00 +08:00
magisk patch boot.img 不是用来刷入的吧,直接临时 boot 就好了
podel
2019-09-09 01:25:29 +08:00
已经解锁 bootloader 了 就可以用 fastboot 加载 自己得 recovery 或者 boot.img 了
huaxianyan
2019-09-09 02:23:02 +08:00
patch 后的 boot.img 不是用来刷进去的,而是用 fastboot 引导这个 boot 去启动
zzutmebwd
2019-09-09 11:55:40 +08:00
fastboot boot boot.img
dalabenba
2019-09-09 16:57:09 +08:00
解锁是去掉了开机时候对镜像的检验,要是 fastboot 支持比较全的话可以直接用 fastboot 刷镜像
但是厂商可能会修改 fastboot 导致刷不了
bsfmig
2019-09-10 14:43:53 +08:00
这里的问题是 Android Verified Boot,需要给 Linux kernel zImage 打二进制补丁,或者等小米开源内核之后自己编译。
zzzzz005
2019-09-12 08:29:19 +08:00
你都有 magisk 之后 boot.img 了,bootloader 界面,fastboot 进去应该可以吧。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/599077

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX