V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Awes0me
V2EX  ›  Android

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

  •  
  •   Awes0me · 2019-09-08 19:51:06 +08:00 · 6366 次点击
    这是一个创建于 1664 天前的主题,其中的信息可能已经有所发展或是发生改变。
    手机是 Redmi note 8 pro,已解锁,但是目前没有 custom recovery,尝试过 用 magisk patch boot.img ,但是刷入后 bootloop,对比下发现原版 boot.img 有 60 多 mb,patch 以后的只有 10mb 左右。
    14 条回复    2019-09-12 08:29:19 +08:00
    mnssbe
        1
    mnssbe  
       2019-09-08 19:55:08 +08:00
    看你这个用户名应该是有能力自己 root 的
    ysc3839
        2
    ysc3839  
       2019-09-08 20:26:00 +08:00
    你的 boot.img 哪来的?再者,如果 patch 后出现问题,你用 recovery 刷入也会出问题,因为那是在 recovery 环境下 patch 再刷入的。
    Awes0me
        3
    Awes0me  
    OP
       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
        4
    ysc3839  
       2019-09-08 20:44:40 +08:00
    @Awes0me 问题是你这设备哪来的官方固件?官网没看到呀?
    Awes0me
        5
    Awes0me  
    OP
       2019-09-08 20:50:32 +08:00   ❤️ 3
    @ysc3839

    小米所有的官方固件都可以在这找到,国际版国内版都有
    https://mirom.ezbox.idv.tw/phone/begonia/
    ysc3839
        6
    ysc3839  
       2019-09-08 20:54:23 +08:00
    @Awes0me 是我孤陋寡闻了。不过这种情况我也不知道怎么解决。
    Laforet
        7
    Laforet  
       2019-09-08 21:48:57 +08:00 via Android
    magisk 修改 boot.img 后文件变小是正常的,主要是去掉了填零的部分。确定底包没有选错的话注意一下 AB 分区的问题,有些机型不指定分区是刷不进的。
    fvckDaybyte2
        8
    fvckDaybyte2  
       2019-09-09 00:51:00 +08:00 via iPhone
    magisk patch boot.img 不是用来刷入的吧,直接临时 boot 就好了
    podel
        9
    podel  
       2019-09-09 01:25:29 +08:00
    已经解锁 bootloader 了 就可以用 fastboot 加载 自己得 recovery 或者 boot.img 了
    huaxianyan
        10
    huaxianyan  
       2019-09-09 02:23:02 +08:00 via Android
    patch 后的 boot.img 不是用来刷进去的,而是用 fastboot 引导这个 boot 去启动
    zzutmebwd
        11
    zzutmebwd  
       2019-09-09 11:55:40 +08:00
    fastboot boot boot.img
    dalabenba
        12
    dalabenba  
       2019-09-09 16:57:09 +08:00 via Android
    解锁是去掉了开机时候对镜像的检验,要是 fastboot 支持比较全的话可以直接用 fastboot 刷镜像
    但是厂商可能会修改 fastboot 导致刷不了
    bsfmig
        13
    bsfmig  
       2019-09-10 14:43:53 +08:00
    这里的问题是 Android Verified Boot,需要给 Linux kernel zImage 打二进制补丁,或者等小米开源内核之后自己编译。
    zzzzz005
        14
    zzzzz005  
       2019-09-12 08:29:19 +08:00
    你都有 magisk 之后 boot.img 了,bootloader 界面,fastboot 进去应该可以吧。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2764 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 11:57 · PVG 19:57 · LAX 04:57 · JFK 07:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.