yashsingh1/xdaforums huggingface dataset:
[OnePlus 7T Pro 5G McLaren Guides, News etc.] jhofseth:
https://www.oneplus.com/support/contact

has 3 contact options: phone (Call us +1 (833) 777-3633 7x24 hours),

live chat

and

email

. I really think a XDA Recognized Developer might have some luck getting a MSM image for the OnePlus 7T Pro 5G McLaren. There is a legitimate safe development need for this and providing it only benefits OnePlus and T-Mobile. The squeaky wheel gets the grease!
[OnePlus 7T Pro 5G McLaren Guides, News etc.] ntzrmtthihu777:
Barring actually getting the MSM I may have a method of recovery using fastboot and friends. However, I need the help of

a hotdogg owner with stock firmware & unlocked bootloader. The method is non-destructive (aside from the unlocking nuking

your data); just requires you to use fastboot to boot a twrp image and use adb to pull a partition (its 15gb, so to make it faster

you may want to use a real usb-c 3.0 cable; I don't think the orange one that comes with it is) and unpack it with a tool

called 'lpunpack' (unfortunately I don't know how to build it outside of an aosp/lineageos/grapheneos tree yet).
[OnePlus 7T Pro 5G McLaren Guides, News etc.] jhofseth:
So, does T-Mobile flash the final firmware after OnePlus ships it to the US or something? If the firmware isn't finally flashed until it gets to the US, then that might make sense; but, if not, someone there could either be mistaken or less than truthful.

---------- Post added at 11:24 AM ---------- Previous post was at 10:54 AM ----------

Maybe this will be a good avenue for us?

https://twitter.com/tmobilehelp
[OnePlus 7T Pro 5G McLaren Guides, News etc.] ntzrmtthihu777:
Do you currently have one in an unflashed (to anything other than stock), unlocked state? If so I can probably guide you through how we can get a sort of

flashable stock image (flashed over fastboot). Hit me up if you are in that situation (sim unlocked, bootloader unlocked, and otherwise stock firmware).

---------- Post added at 11:50 AM ---------- Previous post was at 11:27 AM ----------

Quite possible. I don't recall offhand but I believe mine came to me with version 10.0.14, and after 'recovering' from

flashing an experimental lineageos build on mine I ended up on version 10.0.13, which may be sort of the last common

ancestor for all the variants, and its now unable to OTA (it wants to go to 10.0.16, but as an incremental update it

can only jump versions 'in the correct order').
[OnePlus 7T Pro 5G McLaren Guides, News etc.] a63548:
Getting my device tomorrow, but will obviously have to get it sim unlocked first, then wait the week for the OnePlus token to unlock the bootloader. But once I am at that point, I would happily do this if it could possibly lead to an alternate fastboot recovery method if no one is able to get the MSM tool. Obviously if anyone else can do this before I am able to, please do :)
[OnePlus 7T Pro 5G McLaren Guides, News etc.] jhofseth:
I was wondering what particular device was mounted root, so I did: cat /proc/mounts

Apparently, / is /dev/block/dm-8
[OnePlus 7T Pro 5G McLaren Guides, News etc.] jhofseth:
This is why TWRP is taking so long for Android 10: https://twrp.me/site/update/2019/10/23/twrp-and-android-10.html

"Android 10 also introduces a new dynamic partitioning system. Instead of having a dedicated system partition and a dedicated vendor partition, etc. Android 10 uses a super partition. I like to think of the super partition as a partition that contains a bunch of smaller partitions. One of the side effects of this dynamic partition system is that Google has chosen to use a form of the ext4 file system that is for all intents and purposes, read-only. This choice means that even if you wanted to, you can't easily mount and modify the system partition. We haven't really discussed this with other developers yet, but it may impact your ability to do things like install Gapps. In addition, the dynamic partition model means that eventually, we should probably provide you, the user, some GUI driven tools in TWRP to allow you to manage the dynamic partitions that are on the super partition." [MENTION=912474]Dees_Troy[/MENTION]
[OnePlus 7T Pro 5G McLaren Guides, News etc.] ntzrmtthihu777:
Yeah, but / is not terribly important compared to /system, /vendor, and /product (it is important tho)

Yeah, but twrp is not incredibly essential to the backup/restore process I've theorized about (still not sure about how it would work

in practice), just needed to get something to boot with root available without actually changing the stock firmware (by installing

magisk and such) in order to be able to pull the stock data.

---------- Post added at 12:38 PM ---------- Previous post was at 12:35 PM ----------

Yeah. This super partition is what I'm interested in. Once you copy it from the device (using adb pull /dev/block/.../super super.img)

you can extract it into its subpartitions using lpunpack. I believe one would be able to flash its subpartitions using fastboot in order

to recover from either a bad flash or a bad restore (like I and another user have, which left us on 10.0.13).
[OnePlus 7T Pro 5G McLaren Guides, News etc.] jhofseth:
/dev/block/bootdevice/by-name/super

I made an image of super and file info reads 14.0 GiB (15,032,385,536).

That super.img compresses down to about 4.6 GiB in a regular zip file.

https://source.android.com/devices/tech/ota/dynamic_partitions/implement
[OnePlus 7T Pro 5G McLaren Guides, News etc.] ntzrmtthihu777:
Nice, nice. Yeah. that's to be expected. I think with that file I and dandroid would be able to restore our phones, assuming

that's stock firmware. Potentially others. Do you have a reliable means to share the file, if you're willing to? Per the link you

posted it contains no userdata so it should be safe to share.
[OnePlus 7T Pro 5G McLaren Guides, News etc.] jhofseth:
I think it would it be something like:

fastboot -w

fastboot flash aop_b aop_b.img

fastboot flash bluetooth_b bluetooth_b.img

fastboot flash boot_b boot_b.img

fastboot flash dsp_b dsp_b.img

fastboot flash dtbo_b dtbo_b.img

fastboot flash LOGO_b LOGO_b.img

fastboot flash modem_b modem_b.img

fastboot flash oem_stanvbk oem_stanvbk.img

fastboot flash qupfw_b qupfw_b.img

fastboot flash storsec_b storsec_b.img

fastboot flash multiimgoem_b multiimgoem_b.img

fastboot flash uefisecapp_b uefisecapp_b.img

fastboot flash recovery_b recovery_b.img

fastboot --disable-verity flash vbmeta_b vbmeta_b.img

fastboot --disable-verity flash vbmeta_system_b vbmeta_system_b.img

fastboot reboot fastboot

fastboot --set-active=b

fastboot flash super super.img

fastboot reboot
[OnePlus 7T Pro 5G McLaren Guides, News etc.] ntzrmtthihu777:
Exactly. Most of them wouldn't matter, and I wouldn't flash the entire super.img (there's a tool to break it into chunks but the

build for it more or less assumes a full setup to build an android rom which requires quite a bit of downloading and disk space;

no standalone build as far as I can tell yet) but the internal partitions in it. Granted a lot of super.img is blank space so it may

just work but I'd rather only flash over what was my lineageos side and keep my working if unupdatable 10.0.13 OxygenOS side

intact in case it doesn't work.
[OnePlus 7T Pro 5G McLaren Guides, News etc.] jhofseth:
https://drive.google.com/open?id=15liTbTgvTZgIceQp_1XU3HnkXZJVgTOo

SHA1 of zip extracted super image: c0edacffa05e1066e02bf64e3dc988117cb8da31

Android security patch level

November 1, 2019
[OnePlus 7T Pro 5G McLaren Guides, News etc.] LLStarks:
Do these contain any personal or device-specific markers?
[OnePlus 7T Pro 5G McLaren Guides, News etc.] ntzrmtthihu777:
Excellent. Downloaded, unzipping, thanks for the hash. I'll let you know how it goes.
[OnePlus 7T Pro 5G McLaren Guides, News etc.] jhofseth:
TBH, I don't know for sure. All I know right now about super is here: https://source.android.com/devices/tech/ota/dynamic_partitions/implement
[OnePlus 7T Pro 5G McLaren Guides, News etc.] ntzrmtthihu777:
Oh, and one thing else. Could you check for me one thing: `adb reboot fastboot` and `fastboot getvar current-side`.

This should return either 'a' or 'b'.

Should not. The super partition is not supposed to contain any userdata and we all get the same

OTAs so they should be the same.
[OnePlus 7T Pro 5G McLaren Guides, News etc.] LLStarks:
This super is likely only useful for when fastboot is functional and overall partition layout is in tact. If you brick to the point where EDL and MSM is the only option, you're SOL.

I'd certainly like to think that having a repository of partitions (probably starting with 10.0.16 as a baseline) should at least let us start messing around with the system partition.

If all else fails, this device should be a decent candidate for LineageOS.
[OnePlus 7T Pro 5G McLaren Guides, News etc.] omariscal1019:
U guys should start a new thread with your findings. Its way better for exposure trust me!!

Maybe getting the system from a non 5g 7t pro or mclaren and swapping it maybe getting closer to global conversion but after msm is out to have a fall back
[OnePlus 7T Pro 5G McLaren Guides, News etc.] NEMES|S:
[MENTION=7308704]jhofseth[/MENTION] [MENTION=6692406]ntzrmtthihu777[/MENTION]

And with exact stepts on how to pull & flash super.img (Clear steps, only the required steps 1 by 1)

Also, I can't find Ipunpack anywhere.
[OnePlus 7T Pro 5G McLaren Guides, News etc.] thepotatoman1:
I contacted both TMobile and OnePlus over the phone 2 times to figure out if I received different responses and also got moved to tier two support. OnePlus says they only have the files for global. TMobile said they have nothing to do with software development and OnePlus develops their modified version for them. OnePlus says the only real way is if I sent it to them for repairs meaning somebody in the company has some sort of recovery tool, but support has not received it yet.
[OnePlus 7T Pro 5G McLaren Guides, News etc.] omariscal1019:
https://github.com/AndroidDumps/Firmware_extractor/blob/master/tools/Linux/bin/lpunpack

They just added support for super.img
[OnePlus 7T Pro 5G McLaren Guides, News etc.] ntzrmtthihu777:
Very true, but the A/B update system should generally keep you safe if you're not doing anything freaky

or dangerous or experimental. Hell, my phone works, its just on some sort of prerelease firmware which

can't OTA update anymore. Hopefully flashing this should allow me to get that working again.

I'm actually looking into that myself; have a bootable image but no networking so next to useless.

Intended, but its not quite to new thread status yet. If/when it is determined this is a working recovery

method I will definitely be doing the documentation.

No idea bout the 'global' conversion stuff. What would converting to global get you?

lpunpack is part of android's platform tools (same repo as adb and fastboot) but are generally not packaged for

distributions. Had to build it myself as part of the lineageos source tree.
[OnePlus 7T Pro 5G McLaren Guides, News etc.] LLStarks:
We'd probably lose 5G with a non-5G, but I'm not sure. Maybe vendor.img plays a bigger role.
[OnePlus 7T Pro 5G McLaren Guides, News etc.] omariscal1019:
Its modem issue only and maybe a kernel issue but who know until someone digs in it

---------- Post added at 08:30 PM ---------- Previous post was at 08:29 PM ----------

Global just faster updates and remove tmo **** other that i dont see a anything else lol
[OnePlus 7T Pro 5G McLaren Guides, News etc.] ntzrmtthihu777:
This should work for most folks, however, sometimes binaries online will

break on distributions with a more aggressive update policy (app depends on libfoo.so.4 but the distro is

already on libfoo.so.5).

---------- Post added at 07:36 PM ---------- Previous post was at 07:34 PM ----------

Honestly I'm surprised at the lack of tmo bloat on the phone. Granted I don't care about faster

updates from the vendor; I'm more interested in getting onto lineageos asap so that's a non-issue for

me.
[OnePlus 7T Pro 5G McLaren Guides, News etc.] omariscal1019:
Thats true !!
[OnePlus 7T Pro 5G McLaren Guides, News etc.] ntzrmtthihu777:
One other thing. I screwed up (was trying to uninstall magisk and it went south) and was hoping you could dump and

upload recovery_a.img. Never even got to try flashing because of that :<

---------- Post added at 08:44 PM ---------- Previous post was at 08:04 PM ----------

False alarm! I'm now back on 10.0.16! Not sure what did it; I was flailing pretty hard there after the

magisk uninstall fiasco.
[OnePlus 7T Pro 5G McLaren Guides, News etc.] NEMES|S:
I would like to create a hybrid super.img with Global 7T Pro img & 5G 7T Pro img. (maybe keeping modem/vendor/kernel from 5G) It should be possible.

I can't compile lpunpack. (Ubuntu 18.10) Still can't extract super.img for individual images... and what about repack? (in order to create hybrid super.img)
[OnePlus 7T Pro 5G McLaren Guides, News etc.] LLStarks:
When in doubt, run or compile on Arch.
[OnePlus 7T Pro 5G McLaren Guides, News etc.] DanDroidOS:
Has anyone been able to get that super.img extracted?:confused:

I get this error every time!

eosdev@eosdev-ubuntu:~/Firmware_extractor$ ./extractor.sh firmware.zip

Create Temp and out dir

Extracting firmware on: /home/eosdev/Firmware_extractor/out

./extractor.sh: line 168: gawk: command not found

./extractor.sh: line 207: gawk: command not found
[OnePlus 7T Pro 5G McLaren Guides, News etc.] ntzrmtthihu777:
As much as I love(d) arch (currently a gentooist) thats the exact type of distro

that binaries floating around the web are not going to work for forever. You

can build your own lpunpack, which will definitely work on your system, but

I don't know how to do that outside of using the lineageos/etc build tree

yet, however.
[OnePlus 7T Pro 5G McLaren Guides, News etc.] NEMES|S:
In my case, I just want a clean hybrid img in order to activate the dual sim function. That's all I want, the TMO firmware is perfectly fine... (and replace boot/shutdown animations with original McLaren bootanimations) This super.img pull procedure and the ability to push/restore it back is a huge step forward for our McLaren 5G. At least there is a bit of light the end of the tunnel. (even without the damn MSM Tool)

[MENTION=6692406]ntzrmtthihu777[/MENTION] Can you post the super.img extracted... at least that way we can flash images individually. (and test replacing/swapping images)

Also... you do have a 7T Pro too? lol... You have the full kit required... lol (we also need the 7T Pro images... lol)
[OnePlus 7T Pro 5G McLaren Guides, News etc.] ntzrmtthihu777:
well, gawk (gnu awk) is not found in your path. And where did you get firmware.zip from?
[OnePlus 7T Pro 5G McLaren Guides, News etc.] DanDroidOS:
Just renamed the super.zip to firmware.zip. Installed gawk and still nothing, no error but empty output folder:(
[OnePlus 7T Pro 5G McLaren Guides, News etc.] ntzrmtthihu777:
Yeah. super.zip is not anything from the mfgs. Its the super partition, compressed with plain' ol' zip after the guy dumped it. Extract it, then run

lpunpack (its in the repo you cloned/downloaded, probably) super.img out-dir. it will crap out 8 images. the *_b.img images come out empty. the *_a.img

files have the following sha1sum's:

255e61557828a0781a7a781fc9f4e5d5a6b22d00 odm_a.img
9f2ee6cb21f8fd63a7c9008bc4bb8ee68a9ed0df product_a.img
6ca738a6ed64c755ab24d7fc318466063d5fa3ac system_a.img
cbbdf61bb14afc0f54a042180f7cc94fe7aabbf5 vendor_a.img
[OnePlus 7T Pro 5G McLaren Guides, News etc.] jhofseth:
[MENTION=6692406]ntzrmtthihu777[/MENTION] , it's interesting only the super slot a ones have data, because I'm definitely on slot b with the November 1, 2019 security update. I run cat /proc/mounts and no slot a are mounted, only slot b.
[OnePlus 7T Pro 5G McLaren Guides, News etc.] ntzrmtthihu777:
Perhaps the a/b thing loses context outside of a live device, and lpunpack just names them whatever.
[OnePlus 7T Pro 5G McLaren Guides, News etc.] jhofseth:
Maybe, but cat /proc/mounts indicates /dev/block/dm-8 is mounted as / and I am running slot b right now with November 1, 2019 security update. The SHA1 of the system_a image in super does not match /dev/block/dm-8. I think that super image is how the phone came before the first OTA update to November 1, 2019 security update.
[OnePlus 7T Pro 5G McLaren Guides, News etc.] ntzrmtthihu777:
Nope. After using the super.img to restore my phone I was immediately back on the Nov 1, 2019

update. Perhaps system_a has some trailing 'padding' data but after being setup with devmapper

(what creates /dev/block/dm-* devices, at least on desktop android) it does not?
[OnePlus 7T Pro 5G McLaren Guides, News etc.] TEKHD:
Don't rename to .zip. Keep the .img file (super.img) and run:

tekhd@TEKHDX:~/Desktop/oneplus/Firmware_extractor-master/tools/Linux/bin$ ./lpunpack super.img

inside the bin directory "bin" (that's where lpunpack is located)

see screenshot...

and of course make sure you installed all the packages:

sudo -i

apt install unace unrar zip unzip p7zip-full p7zip-rar sharutils rar uudeview mpack arj cabextract file-roller

apt install liblzma-dev python-pip brotli lz4

pip install backports.lzma protobuf pycrypto

apt install gawk
[OnePlus 7T Pro 5G McLaren Guides, News etc.] DanDroidOS:
Did you flash odm?
[OnePlus 7T Pro 5G McLaren Guides, News etc.] ntzrmtthihu777:
Well, uninstalling magisk bricked the phone (probably something I did wrong; I've never used

magisk before) so I ended up flashing the entire super.img and a boot.img I saved from my original

attempts at it and I ended up back on 10.0.16. Need more testing before I turn it into a proper how-to.
[OnePlus 7T Pro 5G McLaren Guides, News etc.] DanDroidOS:
can you share the boot.img please?
[OnePlus 7T Pro 5G McLaren Guides, News etc.] ntzrmtthihu777:
https://drive.google.com/file/d/1_9BqvJO4_MyzHApQNJUypya7gkk6FD24/view?usp=sharing

you have to run 'gunzip boot.img.gz' first; its compressed.
[OnePlus 7T Pro 5G McLaren Guides, News etc.] DanDroidOS:
The super.img didn't work for me:( Everything flashes ok with no errors but when I "fastboot reboot" it goes to some Qualcomm error screen?
[OnePlus 7T Pro 5G McLaren Guides, News etc.] jhofseth:
after unzipping attached, maybe this could help

fastboot erase boot_a

fastboot erase boot_b

fastboot flash boot_a boot_a.img

fastboot flash boot_b boot_b.img

fastboot --set-active=b

boot_a is older

boot_b is November 1, 2019 security update one

these are original, unmodified, without magisk
[OnePlus 7T Pro 5G McLaren Guides, News etc.] kirschdog1:
So I've been reading this and is it safe to assume we will have a working msm or restore firmware at some point? I'm thinking about upgrading my OnePlus 7 pro but desperately need a way to restore upon brick as I love rooting.
[OnePlus 7T Pro 5G McLaren Guides, News etc.] TEKHD:
I think I found how to activate Dual SIM on TMO firmware (and 5G Radio on Global Firmware)

Will create a new thread soon...
[OnePlus 7T Pro 5G McLaren Guides, News etc.] LLStarks:
Holy hell. What.

Partial global with T-Mobile criticals? If that's the case, open betas and Android 11 dev previews should be possible.
[OnePlus 7T Pro 5G McLaren Guides, News etc.] tserv95:
Can someone explain to me what this means for the T-Mobile users? Is it possible that a conversion to global firmware is within reach?
[OnePlus 7T Pro 5G McLaren Guides, News etc.] LLStarks:
We're inching towards...something. The new thread is up with pretty interesting test requests. Whether people feel safe enough to test after the encouraging partition research is still not clear.
[OnePlus 7T Pro 5G McLaren Guides, News etc.] DanDroidOS:
Is it possible for someone to pull all these partitions?

aop.img

bluetooth.img

boot.img

dsp.img

dtbo.img

LOGO.img

modem.img

oem_stanvbk.img

qupfw.img

storsec.img

multiimgoem.img

uefisecapp.img

recovery.img

vbmeta.img

vbmeta_system.img

opproduct.img

system.img

vendor.img

product.img

The super.img method isn't working for me:(
[OnePlus 7T Pro 5G McLaren Guides, News etc.] LLStarks:
If we're going to start messing around, we really need to start specifying 10.0.0.13 and 10.0.0.16 and putting together an organized repo of partitions.
[OnePlus 7T Pro 5G McLaren Guides, News etc.] DanDroidOS:
Agreed, 1000% :good:
[OnePlus 7T Pro 5G McLaren Guides, News etc.] jhofseth:
https://drive.google.com/open?id=1J5_igi3ekdHM-nXT72wKyfHK9pxfI0gc

SHA1 of flash.zip: 1573fb5d6daf63005f54673469b27603c8676131

Android security patch level

November 1, 2019

Manual below, also included flash-all.bat and flash-all.sh , etc., in the zipped flash folder; I haven't tested the two scripts yet, so please let me know if they need edits. If anyone was going to use Google's files, I would recommend copying extracted content to the same folder as the images (or cut/pasting extracted images vice-versa).

(note: fastboot -w wipes userdata; this avoids errors, but please have a backup of important files first)

Starting in bootloader is OK for all partitions except super; it has to reboot into userspace to flash the super partition without forcing, because of dynamic partitioning. Thats why the command fastboot reboot fastboot.

fastboot -w

fastboot flash aop_a aop_a.img

fastboot flash aop_b aop_b.img

fastboot flash bluetooth_a bluetooth_a.img

fastboot flash bluetooth_b bluetooth_b.img

fastboot flash boot_a boot_a.img

fastboot flash boot_b boot_b.img

fastboot flash dsp_a dsp_a.img

fastboot flash dsp_b dsp_b.img

fastboot flash dtbo_a dtbo_a.img

fastboot flash dtbo_b dtbo_b.img

fastboot flash LOGO_a LOGO_a.img

fastboot flash LOGO_b LOGO_b.img

fastboot flash modem_a modem_a.img

fastboot flash modem_b modem_b.img

fastboot flash oem_stanvbk oem_stanvbk.img

fastboot flash qupfw_a qupfw_a.img

fastboot flash qupfw_b qupfw_b.img

fastboot flash storsec_a storsec_a.img

fastboot flash storsec_b storsec_b.img

fastboot flash multiimgoem_a multiimgoem_a.img

fastboot flash multiimgoem_b multiimgoem_b.img

fastboot flash uefisecapp_a uefisecapp_a.img

fastboot flash uefisecapp_b uefisecapp_b.img

fastboot flash recovery_a recovery_a.img

fastboot flash recovery_b recovery_b.img

fastboot --disable-verity flash vbmeta_a vbmeta_a.img

fastboot --disable-verity flash vbmeta_b vbmeta_b.img

fastboot --disable-verity flash vbmeta_system_a vbmeta_system_a.img

fastboot --disable-verity flash vbmeta_system_b vbmeta_system_b.img

fastboot reboot fastboot

fastboot --set-active=b

fastboot flash super super.img

(If your logo_a.img and logo_b.img are not LOGO_A.img and LOGO_B.img (i.e., if the images are lower-case), then use fastboot flash LOGO_A logo_a.img and fastboot flash LOGO_b logo_b.img; this has been corrected, and only matters if downloaded before corrected.)
[OnePlus 7T Pro 5G McLaren Guides, News etc.] DanDroidOS:
Thank you so much!!!! :good:
[OnePlus 7T Pro 5G McLaren Guides, News etc.] jhofseth:
added to previous
[OnePlus 7T Pro 5G McLaren Guides, News etc.] LLStarks:
I'm still confused as to how the super partition factors in and what it will take to get a backup of 10.0.0.16 and put it on slot a. Manually? Is that even desirable?
[OnePlus 7T Pro 5G McLaren Guides, News etc.] NEMES|S:
Wrong thread
[OnePlus 7T Pro 5G McLaren Guides, News etc.] jhofseth:
[MENTION=6692406]ntzrmtthihu777[/MENTION] said it took them back to that. I don't know why it worked for them, because that super.img only has data on system_a. I'm on slot b and on the November 1, 2019 Android security patch level. I'm still waiting to see if it worked for [MENTION=1920951]DanDroidOS[/MENTION].
[OnePlus 7T Pro 5G McLaren Guides, News etc.] DanDroidOS:
Worked perfectly!!! I can't thank you enough! The only issue is logo.img(a&b) failed. My fingerprint scanner won't register a fingerprint for some reason?
[OnePlus 7T Pro 5G McLaren Guides, News etc.] jhofseth:
Here is an attached app that may get wiped with if you chose to wipe userdata (not sure); it's zipped in a folder and should be installable as a normal app, if needed.

OnePlus McLaren Pack

/data/app/com.oneplus.iconpack.mclaren-XCe6jYwOACjDi3khyrhIbA==/base.apk

1_1.0.0.190912151920.aa4f1ca