Flashing .ops files on macOS

LoganDark

Senior Member
Dec 27, 2014
133
34
58
I purchased a T-Mobile OnePlus 7 Pro from Back Market and it wants an unlock token.

Code:
0 LoganDark ~/Downloads/refind-bin-0.12.0 fastboot oem unlock
                                                   FAILED (remote: 'Please flash unlock token first.')
fastboot: error: Command failed
Instead of waiting a week for T-Mobile to send me one, I was considering following a pair of tutorials to revert the phone to international firmware. Honestly I'd prefer to be without the T-Mobile branding anyway, so I probably would have done that anyway.

But... I'm using macOS. MSM Download Tool is Windows-only. I have fastboot and adb and all the android platform commands, and the device is recognized and I can do things with it. I have the .ops file from the first tutorial, but I'm not sure how to flash it. Help?

I tried this at first but it looked like something really scary was happening so I stopped it:

Code:
1 LoganDark ~/Downloads fastboot flash system guacamole_21.O.09_190516/guacamole_21.O.09_190516.ops
Invalid sparse file format at header magic
error: write_sparse_skip_chunk: don't care size 4319178240 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 3513921024 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 2707578368 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 1901366784 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 987450880 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 175947264 is not a multiple of the block size 4096
Sending sparse 'system_a' 1/7 (744546 KB)          error: write_sparse_skip_chunk: don't care size 4319178240 is not a multiple of the block size 4096
^C
 

LoganDark

Senior Member
Dec 27, 2014
133
34
58
Ended up just using a virtual machine to do it. 7 hours from stock to full root with TWRP, Magisk and latest EU OxygenOS. No T-Mobile bloat, no key required from them, all is good. This phone is awesome <3