yashsingh1/xdaforums huggingface dataset:
[OnePlus 7T Guides, News, & Discussion] shreyassps:
Hi, If anybody has patched boot for 10.0.6 Indian version (I'm on 10.0.6.HD65AA) could someone send it? Thanks.

I was able to see US (Also global?) one in the thread.
[OnePlus 7T Guides, News, & Discussion] imakul8:
:laugh: I got it sorted straight away.
[OnePlus 7T Guides, News, & Discussion] mikefnz:
Same for me.
[OnePlus 7T Guides, News, & Discussion] imakul8:
https://drive.google.com/file/d/1I0Z7DoHJsxOXDju08QYLnGUXHDcbolUG/view?usp=drivesdk
[OnePlus 7T Guides, News, & Discussion] abalam:
You have install ota zip or full zip?
[OnePlus 7T Guides, News, & Discussion] mikefnz:
I fastbooted the 10.0.6 fastboot ROM from [MENTION=4712355]mauronofrio[/MENTION]'s thread and then OTA update.

I suspect that you are correct. That if we started with the full 10.0.7 we wouldn't lose root on reboot.
[OnePlus 7T Guides, News, & Discussion] abalam:
I think it's best to put the full rom on A and B. Previously on my 6t with custom I made sure that the rom was always double flashed, so on A and B. Also that I always on A. Can be a bit of a weird thought but I have never encountered any problems. Precisely with what kernels are playing and immediately after every flash in exkm magisk installed after it, now remains root. I did this because I was not notified that root is already installed and there is no need to flash again.
[OnePlus 7T Guides, News, & Discussion] gpz1100:
Thinking out loud here for a universal general method.

Goal: To get root/magisk installed

Requirements: Stock device with unlocked bootloader only (no other mods), most recent ota update applied and system rebooted. Fastboot and adb windows executables.

1) Enable advanced reboot and usb debugging in developer options

2) Reboot to bootloader

3) Boot to twrp (obtain image from https://xdaforums.com/oneplus-7t/development/recovery-unofficial-twrp-recovery-t3976961 ) fastboot boot twrp.img (or whatever you named it).

4) Once booted, enter adb

adb shell

5) type

dd if=/dev/block/bootdevice/by-name/boot of=/tmp/boot.img

exit

5.5) Copy file to the pc

adb pull /tmp/boot.img stock_boot.img

6) Reboot phone back to android

6.5) Copy boot.img back to phone

adb push stock_boot.img /sdcard/boot.img

7) Make sure wifi or lte is connected

8) Install Magisk Manager apk (from OP)

9) Open Magisk Manager and select advanced options. Enable both of these:

Preserve force encryption

Preserve avb 2.0/dm-verity

Tap 3 horizontal lines top left and select settings, choose channel Canary.

Then select option to install Magisk (not manager). Choose the option that say from file.

10) Point to the boot.img on the internal storage (/sdcard).

11) It will do its thing then come back with a done message. File /sdcard/download/magisk_patched.img will be created.

12) You need to copy this file to your pc, either use mtp or adb

adb pull /sdcard/download/magisk_patched.img

13) Reboot the phone into bootloader mode using the power button.

14) Flash the file from #12 - fastboot flash boot magisk_patched.img

15) Done!

These steps might seem much, but really this process is fairly simple and straight forward. The main benefit is you're patching the exact kernel/boot.img that's from your device. No version or region issues to be concerned about. Given all the boot.img files between the different threads on here, I think this is safer.

This also eliminates the need to boot into an older kernel that may have issues with the current build (experienced this myself, only had lte, no wifi).

Thoughts?

Update 12-23-2019: Updated step 9 to include setting advanced options before patching, channel selection.

Update 1-1-2020: Cleaned up paths as /sdcard from twrp is only a virtual path, not present once booted in android. Clarified commands in steps 4-6.5.

If you want to test the image before actually flashing, use:

fastboot boot magisk_patched.img

Once phone is booted, open magisk manager and check to successful installation status. If all is good, reboot back into bootloader and follow step 14
[OnePlus 7T Guides, News, & Discussion] g96818:
10.0.7 update took an eternity to boot.

Sucks that vanced no longer works after this update.
[OnePlus 7T Guides, News, & Discussion] doctoralex:
Good day,

I have a very strange problem. When I was in 10.0.6 I have to remove the root because of a banking stupid app. Since I saw the update to 10.0.7 I said to repeat the whole process of rooting. The problem is that whatever I do, different boot images, even flash patched boot, I can't get root. Every time after the reboot (in case of boot->direct install) I have the message in Magisk manager, Magisk is not installed.

The only difference which I don't believe plays roles but... who knows is that the images (both 10.0.6 and 10.0.7) which I use have a canary version (I think 20.22) and I'm trying the latest stable.

But it is completely stupid. Even flash a patch image(to both A/B) doesn't work which is.... impossible.

Any idea what the hell is going on?
[OnePlus 7T Guides, News, & Discussion] Eddiemc:
I'm running 1007 here, magisk works absolutely fine. (Magisk vanced)

So it's something on your end. Did you delete the modules before updating?

What bank app?

If you use magisk hide and repack the manager I'd be curious if it's still an issue..
[OnePlus 7T Guides, News, & Discussion] BlackBull85:
Didnt worked for me......:rolleyes:
[OnePlus 7T Guides, News, & Discussion] gpz1100:
^^You'll need to be more specific. Were all steps completed successfully?

What's the output from flashing the patched boot.img?

Screen shot of magisk manager?
[OnePlus 7T Guides, News, & Discussion] doctoralex:
A local bank app. That's "known issue" regarding the reinstallation which when I had the Xiaomi (with TWRP) was easy to fix. But that's not the problem.

I didn't remove the modules but I done it afterwards. I even install the stock boot images twice.

The strange is that even the patched one (which I know that works since I boot it) doesn't "work".
[OnePlus 7T Guides, News, & Discussion] mikefnz:
With my limited knowledge that looks great. I assume that the adb steps are pulling out a copy of the installed boot image?

I may have a go at it soon. However, when things go wrong it can be a seriously time consuming process to start from scratch. When we get a working TWRP I would feel happier about tinkering....

For now everything is running sweetly. I have root and all the essential Magisk modules that I need. If I lose root I know I just have to fastboot the patched boot image.
[OnePlus 7T Guides, News, & Discussion] BlackBull85:
It worked!!! I was some kind of stupid. and didnt realized that magisk generates a new file named magiks_patched.img.
[OnePlus 7T Guides, News, & Discussion] zorrozh:
I don't know why but I have 0 bytes free in my root partition...

I thought this was caused by some mistakes in my rooting procedure, because I noticed that after rooting I tried to install hosts files via Adaway but I was unable to do it because there was no space left in the root partition (the phone was showed correctly rooted in MagiskManager).

So I decided to revert back to stock my OP7T with the fastboot image and I took this screenshot after the first boot on 10.0.3HD65AA so not yet rooted..

https://imgur.com/H0jSKR5

Could someone please explain to me why it says that I have 0 bytes free in root? Is there something wrong with my phone?

How can I reset my root partition so I get rid of this problem?
[OnePlus 7T Guides, News, & Discussion] KC':
I'm on 10.0.7 and managed to root ,but later i tried to install edxposed for AOD but it didn't boot rather it booted into fastboot after that I tried 10.0.6,10.07 patched images but I'm unable to root .

Is there is any solution to this problem
[OnePlus 7T Guides, News, & Discussion] zioloiso:
I Dont know how i can update 1.0.0.6 to 1.0.0.7 and no lost root. OTA want to dowload full package 2.6 GB.

Wysłane z mojego HD1903 przy użyciu Tapatalka
[OnePlus 7T Guides, News, & Discussion] Lossyx:
I have the same, and I think all Android 10 users do too.

This probably have something to do with the new partitioning layout and the facts it's permanent read only.

Or it might something OnePlus has done.

^

I have no clue though about that though

You'll need to enabled "Sytemess hosts" in magisk Settings to make adaway work.
[OnePlus 7T Guides, News, & Discussion] thanasis12.:
Me download ota full package, lost root, and after flash patched_boot.img, version 10.0.7,

and now i have root. ( maybe brick ( in to me, brick two times!!!!).).
[OnePlus 7T Guides, News, & Discussion] mediaman123:
where can i get the stock boot image for the build I am running?

10.0.7.HD65BA
[OnePlus 7T Guides, News, & Discussion] zioloiso:
Ok, run [emoji3] I instal Magisk Rom and Kernel art... works fine [emoji106]

Wysłane z mojego OnePlus 7T przy użyciu Tapatalka.

---------- Post added at 05:02 PM ---------- Previous post was at 05:01 PM ----------

You hate to have stock and create boot magisk manager.

This method is great, I only copy boot.img(Stock) from ota update because dont can copy ABD (step 5) I start with file(boot.img) from step 8.

For 1.0.0.7 EU https://mega.nz/#F!9Uo1mCAQ!LbgV_A4L6BnawyU_3Af9xQ

Wysłane z mojego OnePlus 7T przy użyciu Tapatalka.
[OnePlus 7T Guides, News, & Discussion] gpz1100:
Step 5 creates the image of the partition and saves it on the internal storage.

Step 5a (while optional, highly recommended) saves that image on your pc.

If you're rooted already there's nothing more to root. As I mentioned at the end, the main benefit of this method is using your own sources rather than downloading something that may or may not be an exact match for your region/build. Not to mention being modified in some other way. The kernel performs very low level functions. I'm more comfortable knowing it's just modified by magisk than possibly having other unsanctioned modifications.

When an update rolls around, I would use the method suggested in the OP to reroot it before rebooting. Don't forget to set the advanced optional switches:

Preserve force encryption

Preserve avb 2.0/dm-verity

I updated the guide to enable the above toggles in step #9. Again folks, I realize this involves more steps, but hopefully you understand the reasoning behind it.
[OnePlus 7T Guides, News, & Discussion] van_gogh:
This guide is awesome.

Small correstions from noob like myself:

So anyone just need to type (just to be clear):

adb shell

After that you will need exit adb shell so type:

exit

For some reason I wasn't able to locate the result file after boot, so I had to copy the backup file created at step 5a

---------- Post added at 06:29 PM ---------- Previous post was at 06:19 PM ----------

Was finally able to fix that without any wipes:

My issue was that originally I used Canary Magisk Manager and Canary Magisk (20.2) but switch update channel to Stable so frequent Canary updates won't bug me.

So when I upgraded to 10.0.7 from 10.0.6 and before reboot installed Magisk to inactive slot I believe it somehow installed Stable 20.1 version. So after reboot there was a mismatch and I lost root.

So to fix that I switch Magisk Manager to Canary channel so it now suggested 20.2 for install.

Then I patched stock boot using it (the result file has different MD5 hash then the one I obtained in XDA and tried flash).

Then I flashed the result magisk_patched.img and VOILA!!!

I now have my SO anticipated root again.:good:
[OnePlus 7T Guides, News, & Discussion] gpz1100:
^^

Correct, just adb shell. I like working from directly with in shell as it shows the output rather than just performing the command.

As for /sdcard/boot.img not being present after a reboot, that's odd. The path is to the internal storage which survives reboots. Try that step again (after booting twrp).

If you do a "ls -l /sdcard/boot.img" in adb shell, is the file there? If so, it should be there after a reboot.
[OnePlus 7T Guides, News, & Discussion] mediaman123:
Does the phone need to be booted in to twrp in order to pull the stock image...?.

That's the step I need to achieve first before trying anything else..
[OnePlus 7T Guides, News, & Discussion] gpz1100:
Steps 3-5a in the guide I posted earlier.

Smart thinking.. Backup first, flash second, not flash then run around like a chicken with its head cut off when something does't go right. :)
[OnePlus 7T Guides, News, & Discussion] Berner:
The main reason people are booting into older kernels is because they're too lazy or inattentive to find or make a patched boot.img that matches their current region and version. ALL of the OTAs are available, and therefore with payload_dumper, every single OP7T owner could root with the correct/current boot.img and avoid problems.

But instead people grab random .img files and flash them to their phones. :crying:
[OnePlus 7T Guides, News, & Discussion] gpz1100:
@Berner Thanks for your comments. I should of done some more research before diving in the deep end. Preference of course would be to patch my own boot.img directly.

It's been a good decade since I bootloader unlocked (S-off) and rooted my first android device (htc evo 4g). Methods have changed a lot since then.
[OnePlus 7T Guides, News, & Discussion] AlexShostak:
Hello. There is a misunderstood in your algorithm.

After patching image. when you boot to a system, a phone won't have connection via WIFI and cellular. There will be no option to download magisk zip from the internet. So, before flashing image, need to install Magisk and download zip file. Then flash patched image. After booting to system with not working cellular and wifi, install Magisk zip. then reboot.

Otherwise if you restart phone after patched image, Magisk won't be able to install zip file. It will show this error: "unsupported/unknown image format".
[OnePlus 7T Guides, News, & Discussion] obol2:
I patched the latest boot img (extracted with payload dumper), tried to flash it and after reboot it says "Qualcom Crashdump Mode". I rebooted back to fastboot and flashed the stock boot img (before patching) and got the phone working. Anyone knows how to fix this problem?
[OnePlus 7T Guides, News, & Discussion] virajkin:
Tried booting above imageon OOS 10.3.0, Magisk shows not installed

Can someone provide magisk-core only boot image for OOS 10.3.0 Indian variant HD1901

I stucked at fastboot while installing Viper4Android, so I flashed stock boot image, but lost root.

Cant flash patched 10.3.0 boot, it stucks at fastboot

---------- Post added at 09:17 PM ---------- Previous post was at 09:08 PM ----------

Hi, can you please make an image for me, it will be a great help

https://drive.google.com/open?id=1lPQPTO-7JRsZLo-1_xnSx9DIHtW5nmgt
[OnePlus 7T Guides, News, & Discussion] gpz1100:
Did you extract from identical version/region as to what's on your phone?

How exactly did you patch?
[OnePlus 7T Guides, News, & Discussion] Tulsadiver:
Here you go. Flash your magisk_patched.img first to gain root. When back in fastboot, boot my image_new.img. This places a .disable_magisk file in the /cache folder. After removing the bad module run the enclosed bat file (ADB mode) to remove the disable file.

Image file

https://www.androidfilehost.com/?fid=4349826312261684990

Remove disable bat file

https://www.androidfilehost.com/?fid=4349826312261684991
[OnePlus 7T Guides, News, & Discussion] obol2:
Yea took the boot.img from oos zip, patched it with latest magisk canary.
[OnePlus 7T Guides, News, & Discussion] virajkin:
Thank you very much.

Got back Root using above steps...
[OnePlus 7T Guides, News, & Discussion] Kirahvi:
Did you remember to check the "dm-verity" in magisk before patching?
[OnePlus 7T Guides, News, & Discussion] obol2:
I didn't patch it with dm activated. Going to test it now. Thanks
[OnePlus 7T Guides, News, & Discussion] thanasis12.:
please the " magiskdisableflag.bat ", how to run? , the phone must to fastboot mode ? please answer.
[OnePlus 7T Guides, News, & Discussion] thanasis12.:
I run the command " fastboot flash boot image-new.img ", and the phone lost dialer.

and the " magiskdisableflag.bat ", I cant run. any idea ?
[OnePlus 7T Guides, News, & Discussion] Breville:
I had the same problem. That solved it, thanks.
[OnePlus 7T Guides, News, & Discussion] thanasis12.:
I can't install magisk, and the dm verify, uncheck ... I think must uninstall the magisk manager. You know method ? with command adb ?

---------- Post added at 01:47 AM ---------- Previous post was at 01:03 AM ----------

I flash stock boot.img, and after uninstall the magisk, from apps manager. I install again magisk manager, flash patched boot img, and the magisk not installed.

I think the key are: me check the dm verify, but this after flashing, is uncheck. Any idea ?
[OnePlus 7T Guides, News, & Discussion] altojd:
If so, try installing the regular Magisk from Magisk Manager (direct install) and reboot.

After the reboot install the custom Magisk as if it were a classic module then reboot

after flashing magisk patched boot image i installed magisk manager but it has no "direct install" mode for installing magisk.zip
[OnePlus 7T Guides, News, & Discussion] virajkin:
No the phote should be in ADB mode,

Boot normally and enable USB debugging in Settings..Developer Options..
[OnePlus 7T Guides, News, & Discussion] thanasis12.:
In my phone I checked .. dm verity, and I flashed the patched boot img. After reboot the magisk not installed and the dm verity are uncheck. The phone uncheck...!

Any idea to keep the dm verity check? I think this is the key, to install magisk!
[OnePlus 7T Guides, News, & Discussion] Kenji242:
Hello friends, I hope you can help me. I have the current Oneplus 7 version> 10.0.7. (EU Version) Unfortunately I flashed this with this boot image here. Talk to the patched 10.0.3 version. Now I have the problem that my wifi can no longer be activated. What can I do now to save my cell phone? Unfortunately, Resett didn't do anything and I found a stock image file and tried it out. Only here is the problem that this is gone so to speak after a factory reset and I again have no WiFi. Please help
[OnePlus 7T Guides, News, & Discussion] gpz1100:
You did make a back up image of the stock kernel before flashing??

If not, you'll need to find a full image for the EU version or have someone upload it.

Is the global version the same as EU? If so, there's a few threads with firmware files available in the https://xdaforums.com/oneplus-7t/how-to section.
[OnePlus 7T Guides, News, & Discussion] Kenji242:
Unfortunately I have not made a backup. I think the global should differ from the EU. Too bad. At the moment I can't find an EU stock version for me: /

i found this one. But..if I flash this and reset it, the missing wifi starts again,

https://androidfilehost.com/?w=files&flid=303273

Briefly again for explanation. I completely reset the device. From here on, wifi no longer works when logging in. Now I flash this 10.0.7 patched version and have wifi again after restarting. If I put it back but I have no wifi again. I would need it there because I want to restore my backup.

Sorry for the google translate.
[OnePlus 7T Guides, News, & Discussion] gpz1100:
^^https://xdaforums.com/oneplus-7t/how-to/oneplus-7t-repo-oxygen-os-builds-t3997037

This looks to have EU firmwares https://xdaforums.com/oneplus-7t/how-to/oneplus-7t-repo-oxygen-os-builds-t3997037 .

You can use payload dumper to extract the boot.img.

Or, you can try the this - https://xdaforums.com/oneplus-7t/how-to/op7t-unbrick-tool-to-restore-device-to-t3994835 .
[OnePlus 7T Guides, News, & Discussion] north.vill.44:
I have the same suggestion as above

That is to revert to the OTA updated version with payload_dumper

日本の人でしょうか？

参考にはならないと思いますが、私の経験したことを忘れないために書いたメモです

https://docs.google.com/document/d/...Vp7BDDKrkXmbhYLt8PWZkk5akyLb7PqXl7Z6HfmXw/pub
[OnePlus 7T Guides, News, & Discussion] altojd:
backup your phone to google drive and flash 10.0.7 EU fastboot rom

---------- Post added at 07:34 AM ---------- Previous post was at 07:31 AM ----------

I would backup the phone to google drive and then flash 10.0.7 EU fastboot rom
[OnePlus 7T Guides, News, & Discussion] gpz1100:
Thanks for linking to my post. I think I got all the necessary steps in there after a few revisions.
[OnePlus 7T Guides, News, & Discussion] Kenji242:
So my cell phone is running again. Only installing Magisk is still a problem. The patched file in the link above leads to a black screen after 2 seconds. Then always have to flash back on stick. Quick question can I install the Magisk canary files on a europa Oneplus or do I have to pay attention to the country? I am aware that I have to pay attention to the correct version.

lg.
[OnePlus 7T Guides, News, & Discussion] Galaxea:
Magisk 20.2 issue

I was on the Indian 10.3.0 (10.0.7) with Magisk 20.1 and I just updated the Magisk Manager to the newer version released today (no problems) then I flashed the latest version of Magisk released today (20.2) and now it boots to the screen with the dots going round and round and never gets any further.

I flashed to both slots as per the OP (this has always worked for me in the past), but not with this version of Magisk (20.2).

Has anyone else tried Magisk 20.2 yet, and how do I recover from this issue please?

EDIT: Yes, I did have the correct options ticked in Magisk, before I get asked.

EDIT2: Even booting to a rooted boot image from fastboot also hangs now....Help!
[OnePlus 7T Guides, News, & Discussion] karayemis:
Any news on this? I am passing the update for now because of this issue
[OnePlus 7T Guides, News, & Discussion] pedritopl:
I updated 1h ago. Absolutely no problem. Just read what's on the screen... You select "Direct Install", not "Install to Inactive Slot" when updating Magisk. That's just my wild guess what could be the reason for it not working for some people.

My setup: HD1900 with 10.0.7 OOS.

---------- Post added at 05:57 PM ---------- Previous post was at 05:40 PM ----------

..and that's the problem.

The OP talks about updating the ROM, not Magisk.

If You did the "Install to Inactive Slot" you forced the switch of active slot.

To recover - try changing the active slot (back) in fastboot.
[OnePlus 7T Guides, News, & Discussion] Galaxea:
I eventually had to do a full wipe to get it working again.

I am on 20.2 now and it is working fine. I will not be installing to inactive slot again as this is the second time that doing that has caused issues for me.

Not sure why the OP suggests this if it is not necessary.

---------- Post added at 07:02 PM ---------- Previous post was at 07:01 PM ----------

I never knew that you could control which slot to boot from! Please elaborate on how to do this from fastboot.
[OnePlus 7T Guides, News, & Discussion] pedritopl:
$ fastboot getvar current-slot

Should tell You which slot is currently active.

$ fastboot --set-active=a

or

$ fastboot -aa

Should set the active slot to A.

Similarly

$ fastboot --set-active=b

or

$ fastboot -ab

Should set the active slot to B.

---------- Post added at 06:10 PM ---------- Previous post was at 06:07 PM ----------

Installing to Inactive Slot is necessary when updating ROM and that is what OP states.

When updating Magisk (not the ROM) You need to select "Direct Install (Recommended)". You don't change the active slot then. That is not mentioned in the OP at all. Maybe it should? [MENTION=4712355]mauronofrio[/MENTION] ?
[OnePlus 7T Guides, News, & Discussion] Galaxea:
Nice. Thanks for the info.
[OnePlus 7T Guides, News, & Discussion] karayemis:
Yep, all working now. I have root on 10.0.7 European version.
[OnePlus 7T Guides, News, & Discussion] Fiava:
My phone isn't even connecting to my PC properly so adb fastboot doesn't work. After 8 hours, I got it to connect to the PC and it shows up as HD1900 with an F: drive that's called OnePlus Drivers. How do I root this?
[OnePlus 7T Guides, News, & Discussion] xrelic7:
Go back to page 1 and read the instructions very ez to read and follow I used method number 2