Xiaomi 13 Pro - Trying getting Root access by booting in magisk_patched-27000_xxx - failing


Hippa12345

Members
Apr 26, 2021
40
20
Hi,
I have a Xiaomi 13 Pro EEA Version: 1.0.7.0.UMBEUXM

I wanna get Root acces by the method by doing extracting the Boot.img file from the ROM and patch it by Magisk.
But when I patch the original Boot.img of the ROM, I get a modified magisk_patched-2700_xxxx.img, what is correct.

Now my problem:
- When doing "fastboot boot magisk_patched_boot.img" to boot to the magisk_patched_boot.img
- Phone will boot into the phone
- Go into Magisk -> Install -> Direct Install (Recommended) -> Reboot ( I don't see this option.... I only see Install -> Choose patch file)

How to fix this>? Doing I something wrong?
 
Hi,
I have a Xiaomi 13 Pro EEA Version: 1.0.7.0.UMBEUXM

I wanna get Root acces by the method by doing extracting the Boot.img file from the ROM and patch it by Magisk.
But when I patch the original Boot.img of the ROM, I get a modified magisk_patched-2700_xxxx.img, what is correct.

Now my problem:
- When doing "fastboot boot magisk_patched_boot.img" to boot to the magisk_patched_boot.img
- Phone will boot into the phone
- Go into Magisk -> Install -> Direct Install (Recommended) -> Reboot ( I don't see this option.... I only see Install -> Choose patch file)

How to fix this>? Doing I something wrong?
You need to patch init_boot.img

Sent from my 2210132G using Tapatalk
 
  • Like
Reactions: Hippa12345
You need to patch init_boot.img

Sent from my 2210132G using Tapatalk
Ah I dindt know that.... How to extract the init_boot.img of the current OS that is being installed?

This was for the Boot.img ( dd if=/dev/block/bootdevice/by-name/boot of=/sdcard/boot.img)

Could you tell me where the boot.img is need it for then?
 
Ah I dindt know that.... How to extract the init_boot.img of the current OS that is being installed?

This was for the Boot.img ( dd if=/dev/block/bootdevice/by-name/boot of=/sdcard/boot.img)

Could you tell me where the boot.img is need it for then?
Not sure if this is what you are trying to do but init_boot is at

dd if=/dev/block/bootdevice/by-name/init_boot_a of=/sdcard/init_boot.img

Sent from my 2210132G using Tapatalk
 
Not sure if this is what you are trying to do but init_boot is at

dd if=/dev/block/bootdevice/by-name/init_boot_a of=/sdcard/init_boot.img

Sent from my 2210132G using Tapatalk
Thanks, Im gonna try it and let you know.
But can you tell me the difference between the init_boot.img and the Boot.img?
 
Thanks, Im gonna try it and let you know.
But can you tell me the difference between the init_boot.img and the Boot.img?
I'm gonna let google answer that for you as i'm not the most technical person in the world :D

Q: What is the difference between boot.img and init_boot.img file?

A:
Terms related to Android operating systems and their file systems include boot.img and init_boot.img. The generic boot structure with kernel and ramdisk details is contained in the boot.img file, whereas the generic boot structure with initialization bootloader is contained in the init_boot.img file.
 
  • Like
Reactions: Hippa12345
I'm gonna let google answer that for you as i'm not the most technical person in the world :D

Q: What is the difference between boot.img and init_boot.img file?

A:
Terms related to Android operating systems and their file systems include boot.img and init_boot.img. The generic boot structure with kernel and ramdisk details is contained in the boot.img file, whereas the generic boot structure with initialization bootloader is contained in the init_boot.img file.
How to extract the init_boot.img?

I use on PC CMD:

ls -la /dev/block/bootdevice/by-name

Result:
lrwxrwxrwx 1 root root 16 1970-01-02 01:42 init_boot_a -> /dev/block/sde30
lrwxrwxrwx 1 root root 16 1970-01-02 01:42 init_boot_b -> /dev/block/sde59

Then I use:

dd if=/dev/block/sde30 of=/sdcard/init_boot.img

Result:
nuwa:/ $ dd if=/dev/block/sde30 of=/sdcard/init_boot.img
dd: /dev/block/sde30: Permission denied
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.001 s, 0 B/s
1|nuwa:/ $
 
Last edited:
Not sure if this is what you are trying to do but init_boot is at

dd if=/dev/block/bootdevice/by-name/init_boot_a of=/sdcard/init_boot.img

Sent from my 2210132G using Tapatalk
C:\adb\platform-tools>adb shell
nuwa:/ $ dd if=/dev/block/bootdevice/by-name/init_boot_a of=/sdcard/init_boot.img
dd: /dev/block/bootdevice/by-name/init_boot_a: Permission denied
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.001 s, 0 B/s
1|nuwa:/ $
 
C:\adb\platform-tools>adb shell
nuwa:/ $ dd if=/dev/block/bootdevice/by-name/init_boot_a of=/sdcard/init_boot.img
dd: /dev/block/bootdevice/by-name/init_boot_a: Permission denied
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.001 s, 0 B/s
1|nuwa:/ $
You cannot extract it from the phone without root.
You need to get the IMG from the ROM installation zip.

We are clearly out of topic here as you don't seem to have a xiaomi.eu rom.

Search how to extract init_boot.img from your firmware zip file


Sent from my 2210132G using Tapatalk
 
You cannot extract it from the phone without root.
You need to get the IMG from the ROM installation zip.

We are clearly out of topic here as you don't seem to have a xiaomi.eu rom.

Search how to extract init_boot.img from your firmware zip file


Sent from my 2210132G using Tapatalk
That's my whole point.
I want to extract the current init_boot.img of the phone that's sit on WITHOUT having the Recovery or fastboot or ROM file of the phone.
How can I succeed to extract the init_boot.img from my phone OR with a PC, WITHOUT having the recovery or fastboot.img?
 
That's my whole point.
I want to extract the current init_boot.img of the phone that's sit on WITHOUT having the Recovery or fastboot or ROM file of the phone.
How can I succeed to extract the init_boot.img from my phone OR with a PC, WITHOUT having the recovery or fastboot.img?
You cannot unless you have root.
But as I said you can download the ROM that you have on your phone from miui official website and extract boot_init from there

Sent from my 2210132G using Tapatalk