yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] emod0705:
Use ADB and the push command.. Be careful what you type.. This thing is a ***** to get the first time.. I wish you good luck

---------- Post added at 07:16 AM ---------- Previous post was at 07:10 AM ----------

Remember one other thing.. Sammy can not use Fastboot.. It's not that it's bad.. But it just won't in most cases.. Try CROM first to unlock the bootloader
[Android Software/Hacking General [Developers Only]] Mikolo007:
Thanks, very helpful!
[Android Software/Hacking General [Developers Only]] SlewedThread444:
Well i tried to root my phone before with cf auto root and with twrp and it said device verification has failed or something. Will it happen for this device?
[Android Software/Hacking General [Developers Only]] SlewedThread444:
How do i copy the stock boot image onto my internal storage?
[Android Software/Hacking General [Developers Only]] Pcarioca:
I'm having a question: does the new patched_boot.img file also contain my personal data? If not, then what's the best way to make a backup so that when I restore it my phone to be just like I didn't do anything to it(it should have all my apps, files,contacts, accounts etc untouched), but to be rooted? I have a Elephone a4 and I can't set up a custom recovery, that's why I want to follow this tutorial...
[Android Software/Hacking General [Developers Only]] SlewedThread444:
Go to smart switch and create a backup.
[Android Software/Hacking General [Developers Only]] Mustachetic:
Easy peezy

Works as advertised. One thing i would add to the guide is copying the patch boot img to where the command prompt window is opened. If i was using my noodle, it would be an unspoken, but i forgot and had to reboot once more. This would've saved me about 30 seconds, but i won't complain. I am on the moto z2 force sprint may 1 update with an unlocked bootloader
[Android Software/Hacking General [Developers Only]] zseoer:
I think this thing would be risky to do.
[Android Software/Hacking General [Developers Only]] HemanthJabalpuri:
Sir what is CROM?
[Android Software/Hacking General [Developers Only]] bhavzdevil:
trying to root using magisk HELP NEEDED !!

hi , newbie + noob here

i m trying to use magisk to root my phone i have few queries .

instructions on main thread https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445 doesnt help much to a noob like me it says

Via Magisk Manager:

This method does not need root, and also does not require a custom recovery.

However, you MUST have a stock boot image dump beforehand, and you also have to be able to flash the patched boot image, either through fastboot/download mode or ODIN

what is stock boot image and how/where do i get it from

Install the latest Magisk Manager

If you're planning to flash the patched boot image through ODIN, go to Settings > Update Settings > Patched Boot Output Format, and select .img.tar. For normal users leave it as the default .img

Press Install > Install > Patch Boot Image File, and select your stock boot image file

Magisk Manager will now patch your boot image, and store it in [Internal Storage]/MagiskManager/patched_boot.img[.tar]

Copy the patched boot image to your PC. If you can't find it via MTP, you can pull the file with ADB:

adb pull /sdcard/MagiskManager/patched_boot.img[.tar]

Flash the patched boot image to your device and reboot. Here is the command if using fastboot:

fastboot flash boot /path/to/patched_boot.img

my queries

1) will rooting via magisk wipe my data on phone as i dont have any backup so if it does wipe it how do i take backup so after rooting i can restore it without problem (Phone - One plus 2)

2) what is stock boot image and how do i extract it

kindly reply it will help me alot
[Android Software/Hacking General [Developers Only]] nougatverte:
having trouble to patch the boot.img

downloaded stock firmware. 8.0 for sm-a250f. extract boot.img. load on phone. run magisk.

after selecting install -> patch -> i get an error...

-Copying image to cache

-Device platform: arm64-v8a

-Existing zip found

-Extracting files

! Installation failed

any ideas?
[Android Software/Hacking General [Developers Only]] Muffyz:
Am I missing something here?

I'm new to rooting tablets but I've flashed my Samsung Galaxy tab sm-t365 with magicks via magicks manager on the tablet and firmware from samobile site. Flashed the patched boot.img.tar file which Magicks made vai Odin without bootloader unlocking and it roots fine with no errors.

Just having a securtyNet issue atm both tests failing was hoping to use Remote play for my PS4 but just loads up blank was thinking its down to the failed SecurityNet.
[Android Software/Hacking General [Developers Only]] bidel:
What shouls I do if my phone is bricked?
[Android Software/Hacking General [Developers Only]] DBCAB:
That depends on what phone you have and if it is a semi brick or not, can you get into recovery? what is the phone doing ? what model etc is it? Generally speaking when you mess up a phone if you still have access to it then re flashing the stock rom usually corrects the situation but thats not the case for all phones, did you mess up something? if so what phone and what did you do step by step so the people here can help with advice.
[Android Software/Hacking General [Developers Only]] Momodo:
hllo every one I have many problems with my divec lg stylo 3 Module lgl83bl I can't rooting and sim unlock. can you help my pleas
[Android Software/Hacking General [Developers Only]] ioura:
i remember when i tried to make cwm recovery using mtk droid tools: it also patches stock boot. img..... so, device does not boot after it) will it be the same after this manual? btw could anybody help to compile custom recovery, please ??the problem is in "secured boot image" i guess
[Android Software/Hacking General [Developers Only]] Mohit 22:
does it work with asus max plus? as i couldnt find any root and recovery available for this device???
[Android Software/Hacking General [Developers Only]] Bharathbigb:
Where can I find the Stock Boot.img file ? I am completely new to this and am trying to root my phone which doesn't have support for TWRP,CWM.etc.
[Android Software/Hacking General [Developers Only]] tennyleaz:
I'm having trouble to get my boot.img (miwang m2s, msm8909, android 7.1.2).

No any support from the phone seller, how can I obtain boot.img from my phone?
[Android Software/Hacking General [Developers Only]] angelillom:
mate install version 6.0 1 but my Magisk is still in the Zip version 17.2 without passing wing 17.3 Why?

My phone is the Huawei P20 Lite and I have the Original rum ANE-LX1 8.0.0.144 (C432) and I do not install the 8.0.0156 (C432) for fear of losing the root, I have the TWRP

THANK YOU and I would like advice
[Android Software/Hacking General [Developers Only]] giojj89:
Hi, i need to root A7 2018, SM-A750FN/DS but i dont find twrp. I can root with this metod? This device have bootloader checks boot.img?If rooting with this metod i have invalid signature? Thanks
[Android Software/Hacking General [Developers Only]] Darth_Revan90:
Moto E5 play
[Android Software/Hacking General [Developers Only]] Baboo85:
Hi, I have an HomTom HT26 and I wanted to use this to root the device (because the TWRP Recovery needed for this device was stored in ONE SINGLE PLACE in internet and obviously the link died. I want to punch in the face all the guide's creators for this).

So, I follow the guide but Magisk doesn't do anything. When I select the boot.img it just go back on the home page of the app.

Some help?

EDIT: sorry I'm still pissed off for the TWRP, I wasn't thinking.

The patching is done, now I try to flash it with SP Flash Tool (because the phone doesn't want to boot into fastboot and just reboot and goes in charge).
[Android Software/Hacking General [Developers Only]] kuzu115:
Thank you very much!

I finally rooted tablet Aoson M815 (after 1 month of many many experiments)!!!
[Android Software/Hacking General [Developers Only]] nbkappa:
will it trigger knox security on 7.0 and 8.0 ?

thanks
[Android Software/Hacking General [Developers Only]] karimovic44:
does it work for locked bootloader Phones ? any idea anyone try it
[Android Software/Hacking General [Developers Only]] zhelev81:
FRP protection

FRP protection doesnt allow odin to flash the patched image ,, any help ?
[Android Software/Hacking General [Developers Only]] Roviva:
how to install a rom like lineage?

Hello,

I rooted my Mi A2 without a TWRP.

How can I install a ROM like lineage or other?, I dont have a custom recovery installed.

Can I install a custom recovery after root the telephone?

thanks

:rolleyes:
[Android Software/Hacking General [Developers Only]] sapastre2:
Hello

i have a problem.

By doing fastboot flash boot patched_boot.img I get this error: FAILED (remote: partition length get error)

---------- Post added at 01:29 PM ---------- Previous post was at 01:16 PM ----------

Sorry, i have a device Huawei Mate 8 and EMUI 8
[Android Software/Hacking General [Developers Only]] _Masked_:
I think the thread title should be (without "") "[GUIDE] [ROOT] Patch boot.img to root with Magisk (No Recovery)"

---------- Post added at 05:09 PM ---------- Previous post was at 04:46 PM ----------

Yes you can.

For installing the ROM use my guide, and to install TWRP use my tool.

Use

fastboot boot patched_boot.img

not "fastboot flash boot patched_boot.img"
[Android Software/Hacking General [Developers Only]] sapastre2:
Answer:

PS C:\adb> fastboot boot patched_boot.img

downloading 'boot.img'...

OKAY [ 0.631s]

booting...

FAILED (remote: Command not allowed)

finished. total time: 0.652s

PS C:\adb>

Code:

fastboot flash boot patched_boot.img

Answer:

PS C:\adb> fastboot flash boot patched_boot.img

target reported max download size of 471859200 bytes

sending 'boot' (28986 KB)...

OKAY [ 0.633s]

writing 'boot'...

FAILED (remote: partition length get error)

finished. total time: 0.646s

PS C:\adb>
[Android Software/Hacking General [Developers Only]] _Masked_:
Enable USB Debugging in Developer Options. Is your Bootloader Unlocked?
[Android Software/Hacking General [Developers Only]] sanjiv204:
Infinix Note 5 Stylus. It worked on first attempt. Just make sure thatall the drivers

Thanks it worked for my Infinix Note 5 Stylus. Thank a lot.:o
[Android Software/Hacking General [Developers Only]] silverik1:
Help!!!

Trying to root without twrp using magisk

Im getting the error : unable to repack boot.img

anybody??????

Samsung S8 stock rom stock recovery

see attachements
[Android Software/Hacking General [Developers Only]] galaxyss8:
where do i get a patched image file from i can use for this boot ???
[Android Software/Hacking General [Developers Only]] crayg713:
Hi

I have the same problem with Galaxy J4.

Uninstalled/reinstalled magisk manager v6

downloaded exact ver firmware & extracted boot.img

tried to install/patch with magisk but fails at repacking img.

Am also unable to install TWRP recovery so am not able to flash zip file.

Magisk Log:

- Copying image to cache

- Device platform: armeabi-v7a

- Existing zip found

- Extracting files

- Unpacking boot image

MagiskBoot v18.0(18000) (by topjohnwu) - Boot Image Modification Tool

Parsing boot image: [/data/user_de/0/com.topjohnwu.magisk/install/boot.img]

HEADER_VER [0]

KERNEL_SZ [15127632]

RAMDISK_SZ [3412340]

SECOND_SZ [4278190336]

EXTRA_SZ [721421400]

RECOV_DTBO_SZ [4026554848]

OS_VERSION [41.68.0]

PATCH_LEVEL [2000-01]

PAGESIZE [8]

NAME [RPRB08A001KU]

CMDLINE [ndroidboot.selinux=permissive X�]

CHECKSUM [8001f60416]

Invalid DTB detection at 0xbe16f1: header tag of first node != FDT_BEGIN_NODE

Invalid DTB detection at 0xbea0c8: header tag of first node != FDT_BEGIN_NODE

Invalid DTB detection at 0xbf2a31: header tag of first node != FDT_BEGIN_NODE

Segmentation fault

- Checking ramdisk status

MagiskBoot v18.0(18000) (by topjohnwu) - Boot Image Modification Tool

- Stock boot image detected

- Backing up stock boot image

MagiskBoot v18.0(18000) (by topjohnwu) - Boot Image Modification Tool

Compressing to [stock_boot_b53de95a792a432a19c66669dc656d327741d9e1.img.gz]

cp: can't stat 'ramdisk.cpio': No such file or directory

- Patching ramdisk

MagiskBoot v18.0(18000) (by topjohnwu) - Boot Image Modification Tool

Add entry [init] (0750)

Patch with flag KEEPVERITY=[false] KEEPFORCEENCRYPT=[true]

Segmentation fault

- Repacking boot image

MagiskBoot v18.0(18000) (by topjohnwu) - Boot Image Modification Tool

Parsing boot image: [/data/user_de/0/com.topjohnwu.magisk/install/boot.img]

HEADER_VER [0]

KERNEL_SZ [15127632]

RAMDISK_SZ [3412340]

SECOND_SZ [4278190336]

EXTRA_SZ [721421400]

RECOV_DTBO_SZ [4026554848]

OS_VERSION [41.68.0]

PATCH_LEVEL [2000-01]

PAGESIZE [8]

NAME [RPRB08A001KU]

CMDLINE [ndroidboot.selinux=permissive X�]

CHECKSUM [8001f60416]

Invalid DTB detection at 0xbe16f1: header tag of first node != FDT_BEGIN_NODE

Invalid DTB detection at 0xbea0c8: header tag of first node != FDT_BEGIN_NODE

Invalid DTB detection at 0xbf2a31: header tag of first node != FDT_BEGIN_NODE

Segmentation fault

! Unable to repack boot image!

! Installation failed
[Android Software/Hacking General [Developers Only]] matz_92:
Unfortunaly this method does not work for me.

I'm working on a single-board computer i.MX7D with Android Things 1.0.8. I've correctly installed MagiskManager and it has repacked the new image patched_boot.img. Next I have flashed the new image into boot_a and boot_b partitions using fastboot:

fastboot flash boot_a patched_boot.img

target reported max download size of 419430400 bytes
sending 'boot_a' (14720 KB)...
OKAY [ 0.459s]
writing 'boot_a'...
OKAY [ 0.702s]
finished. total time: 1.161s

fastboot flash boot_b patched_boot.img

target reported max download size of 419430400 bytes
sending 'boot_b' (14720 KB)...
OKAY [ 0.463s]
writing 'boot_b'...
OKAY [ 0.702s]
finished. total time: 1.164s

When I reboot the system Magisk show "Magisk is not installed".
[Android Software/Hacking General [Developers Only]] naruto3217:
can someone plz help im so lost. if you have discord add me abaddon#1503 im trying to root my sm-g530az because i cant install kingroot
[Android Software/Hacking General [Developers Only]] StonebridgeGr:
how to pull from the device the boot.img if the device is not rooted?

it has unlocked BL

But its a huawei p20 pro i dont know how to get it.

Might from the official firmware?

---------- Post added at 00:02 ---------- Previous post was at 00:01 ----------

here you are

https://xdaforums.com/grand-prime/help/root-success-sm-g530az-5-1-1-t3283888
[Android Software/Hacking General [Developers Only]] Harshatxda:
not working for zenfone 5z

hi,

i have followed your this process for zenfone 5z but this is not working. my stock boot,img is flashed well with magisk but then it does not root. and post this if i flash patched_boot.img then it fails to flash via magisk and via twrp as well. kindly suggest.
[Android Software/Hacking General [Developers Only]] iTZ saurav:
Not working for me, I've performed exactly the same steps. But still magisk is not installed.

-Nokia 6.1 Plus (BL unlocked)
[Android Software/Hacking General [Developers Only]] Tenshi7t7:
Hi. I have a lgl212vl running oreo 8.1.0 I have tried multiple one touch root and no results. I am new to rooting and code. Very new. I cant find any roms for my phone or a way to root without pc. Please help
[Android Software/Hacking General [Developers Only]] adahkennedy:
This procedure is perfect

However magisk module don't load

I think it makes magisk root systemly instead of systemlessly
[Android Software/Hacking General [Developers Only]] clcombs262:
Will test
[Android Software/Hacking General [Developers Only]] vittorio99:
i have to flag keep dm verity?
[Android Software/Hacking General [Developers Only]] zZix2Nk:
and without computer would havd bee great :fingers-crossed: :laugh::laugh::laugh:
[Android Software/Hacking General [Developers Only]] N1ldo:
Has anyone tried the Samsung S10+ SD855?
[Android Software/Hacking General [Developers Only]] alza jibrani:
can we do this for emulator? oh wait, emulator not have boot.img right?
[Android Software/Hacking General [Developers Only]] Gotmilkman:
Any idea if this would work on a Chromebook? I'm rooted on my Chromebook, but need some of the modules from magisk/Xposed.
[Android Software/Hacking General [Developers Only]] Gotmilkman:
Any idea if there's a similar way to do this but on a Chromebook?
[Android Software/Hacking General [Developers Only]] DM2019:
hey thats kind of neat.

Nice. Essentially, your method sounds like that of Magisk but done manually . Question : Does root persist ? Can you, for example, install busybox binary, reboot, open terminal and run busybox? what triggers the manager to create a the modified boot.img ? could you create 1 just prior to reboot? then what ? if u got root still problem solved but if its the original img. start the process over lol ? wait .....temp root with magisk then flash SuperSu for perminent root, wouldnt pass safetynet but you wouldnt have to flash the img every boot ? im fascinated.....w/o magisk to automate process its hard to see it being useful in terms of systemless root that persist but it might be used as a means to attain ole school root. i think u could use flashfire for the process . if the devices doesnt power cycle it should keep root, flashfire boots to the bootloader which would still be the modded img if it isnt allowed to go the secondary program loader (idk but im working under the theory that the bl, doesnt reload the img on said partition from hotboot)
[Android Software/Hacking General [Developers Only]] Jason Zhang:
But one of my devices can't unlock the bootloader. So I can't use the method what you wrote. Would you tell me how I can root my vivo device. Special Thanks!( I have used nearly ways include xda's. But all failure. They can't unlock the vivo's bootloader and can't be root.)
[Android Software/Hacking General [Developers Only]] Neur0S!ck:
Nice method, tanks for this detailed document
[Android Software/Hacking General [Developers Only]] Tejasbatra:
While flashing patched img command prompt shows error can't open file
[Android Software/Hacking General [Developers Only]] tiberian41:
Can confirm this method doesn't work on a Blackview BV6100 (2019 model), neither does OEM unlock via settings. However OEM unlock works via adb fastboot.
[Android Software/Hacking General [Developers Only]] Dead_shootart57:
Flash the patched_boot.img.tar file

Where should I put the patched_boot.img.tar file in odin to flash it to Samsung galaxy j7 nxt SM-J701F , android version 9.0 One UI version 1.1 , Should I put it into AP,BL,CP or CSC ?. Please help me . Badly stuck here .

Thanks in advance
[Android Software/Hacking General [Developers Only]] zalie scorpio:
Bagaimn bang cara pasang magisk exposed buat root hp asus z00vd
[Android Software/Hacking General [Developers Only]] darfri:
Miksi sä et puhu englantia?
[Android Software/Hacking General [Developers Only]] antonello66:
hello, I wanted to know if the guuda is fine for the 7T Pro McLaren edition, in case of brick can you install a stock rom? Thank you. Current Roma: 1.0.5
[Android Software/Hacking General [Developers Only]] mtmtumbo:
tried this method on my g7 play (RETCA)

got the magisk_patched.img and applied it with fastboot command, but after reboot, just got random digits and letters (XXXXX-XXXXX-XXXXX-XXXXX) and it hung on this screen where it used to say "bad key" (which means the bootloader is unlocked)

had to hold down vol down and power to get back to fastboot menu and then restore from stock ROM in fastboot

has anyone else seen this?
[Android Software/Hacking General [Developers Only]] Dlions:
Hello

Can i then install a custom recovery using adb? Will stock system still replace it with stock recovery?

Thank You

God Bless
[Android Software/Hacking General [Developers Only]] beastes:
wow i have a cheap rca rltp5567 and that work i have try so many methode lol thank
[Android Software/Hacking General [Developers Only]] tiberian41:
Found this on 4pda.ru, but haven't figured it out yet.

Because magiskboot incorrectly unpacks a kernel of this type (it can’t, probably :)) and cannot replace skip_initramfs (skip) with want_initramfs.

Procedure *****

1) Install the magic manager on the device.

2) Patch the boot.img image (from the stock firmware)

3) Unpack the patched image, open the kernel in the HEX editor.

4) Look for the value "736B69705F696E697472616D6673" and replace it with "77616E745F696E697472616D6673"

5) Save the change and pack the image.

6) We flash the image into the body in the BOOT section. We are happy with the root.

https://4pda.ru/forum/index.php?showtopic=774072&st=25280#entry91068157

Would appreciate some advice/help on this.
[Android Software/Hacking General [Developers Only]] Piereligio:
Is it normal that using this method, root works but I cannot edit system folder?
[Android Software/Hacking General [Developers Only]] tiberian41:
Normal as far as I know until you mount root as rw in root explorer, mixplorer, adb, twrp, etc...
[Android Software/Hacking General [Developers Only]] AndDiSa:
... and you do not have an Android version with mounts SaR (system as root).
[Android Software/Hacking General [Developers Only]] LucasBac123:
damn you're a legend thanks a lot!:good:
[Android Software/Hacking General [Developers Only]] Smil3yWulf:
I have Wiko Life C210ae. I need help how to rooted with Magisk since I don't have twrp recovery.
[Android Software/Hacking General [Developers Only]] nateberhardt81:
I can confirm this working on Oukitel C21
[Android Software/Hacking General [Developers Only]] wktra:
How'd you do it?

After following the instructions, the C21 refused to boot. It remained in orange state, bootlooping.

How'd you root your C21?
[Android Software/Hacking General [Developers Only]] oldslowdiver:
This is interesting to me too. Please, help.
[Android Software/Hacking General [Developers Only]] TMrBloo:
I am on the queue too, i can't root it
[Android Software/Hacking General [Developers Only]] ArceusAbrar:
i have a locked bootloader and have no way to unlock it, can i use this method to root my phone?
[Android Software/Hacking General [Developers Only]] oldslowdiver:
hey there pal, did you solve that? If so, how? TY
[Android Software/Hacking General [Developers Only]] Robibd111:
This method worked on Oukitel C21. Thanks
[Android Software/Hacking General [Developers Only]] lolvatveo:
why does magisk not work when installed as system app via twrp but need to patch & flash custom boot.img
[Android Software/Hacking General [Developers Only]] darfri:
Because Magisk is not just an app, it needs to access your system closer than a system app
[Android Software/Hacking General [Developers Only]] BoyMantis18:
does this work on Nova 3i
[Android Software/Hacking General [Developers Only]] Jarod5001:
Hi,

I have a tecno spark 4 air (MT6761) android 9

I have made a backup using miracle thunder.

Unlocked bootloader

Flashed an empty vbmeta

Installed latest magisk (23) and launched install and pointed to the boot.bin created with miracle thunder, tried preserve... On/off, recovery on/off. Flashed the modified boot.img in fastboot. But didn't work. I got no error messages. But root checker says no root.

Magisk says : ramdisk no, Sam yes, a/b no.

Can't find a custom recovery, tried hovatek recovery maker but didn't work.
[Android Software/Hacking General [Developers Only]] luridphantom:
for all you folks with mediatek, use this to backup, unlock, and root https://github.com/bkerler/mtkclient