yashsingh1/xdaforums huggingface dataset:
[OnePlus 7T Guides, News, & Discussion] grandpajiver:
Bah. I've had no luck getting payload_dumper.py to work. failing on extracting logo, of all things.

Using windows 10 pro... python is installed, all requirements met... just cannot extract the .bin. Android Image Kitchen isn't for OTA bins either.. that wasn't helpful, unfortunately. Grr. I'm sure its either a stupid Windows thing or a stupid python thing... I installed 3.8 vs 3.6. Dunno. I prefer Perl ;)

I'm not giving up though. I'll probably install Linux for Windows and run through that. Dunno.
[OnePlus 7T Guides, News, & Discussion] Lossyx:
Try with python 2.7
[OnePlus 7T Guides, News, & Discussion] grandpajiver:
This isn't fun to work on through a locked down Windows 10 pc. gonna try again on my chromebook after I get the 1.0.0.6 build.
[OnePlus 7T Guides, News, & Discussion] every_one:
here unsecure_adb_recovery 10.0.6 AB

to delete module

rm -rf /data/adb/modules/name of modules
[OnePlus 7T Guides, News, & Discussion] grandpajiver:
You are awesome.

Found out 1.0.0.6 is Indian only. I guess I best make some coffee and try to work on US unlocked 1.0.0.5.
[OnePlus 7T Guides, News, & Discussion] grandpajiver:
I got updated to 1.0.0.6.. I went from the '0' version to 'I'. Shrug.

fastboot boot recovery.img nor fastboot boot recovery recovery.img works... sigh.

I do have the full OTA. OnePlus7TOxygen_14.I.08_OTA_008_all_1911061912_10a180d3.zip. Dunno if anyone needs it.
[OnePlus 7T Guides, News, & Discussion] nostradomis:
I am on Linux. I used mktool to unpack and repack. I set all the flags properly between entered fastboot and Flash the new image to recovery as specified. device immediately hangs. I hold the keys to enter fastboot mode again and of course I can't run shell as ADB is not available in fastboot.
[OnePlus 7T Guides, News, & Discussion] morback:
Hi, I'm stuck, I can't apply this tutorial to get a unsecure recovery. I'm on 10.0.6 international and when I try to boot to the file you provide, phone is stuck on "Fastboot Mode" screen. Is it from Indian variant? Could someone share the modified file from International 10.0.6 variant by any chance?

Or is it safe to flash this one? I don't want to try as I doesn't work with "fastboot boot unsecure_adb_recovery10.0.6.img".

I feel so dumb as I could flash back stock fastboot.img and my phone boots normally but then I don't have root access so can't delete the faulty module. If I boot a magisk patched boot.img then the phone doesn't boot, as the module is still there and activated....

Thanks :)
[OnePlus 7T Guides, News, & Discussion] Lossyx:
You have to flash the recovery in order to boot into it.

If the recovery doesn't work you can just flash the stock one and you should be fine.
[OnePlus 7T Guides, News, & Discussion] morback:
Well, that worked! Thanks for your help :)

I've never really used adb until now so I was a bit lost as the shell window doesn't send any command confirmation when we enter the folder then delete the files, I felt a bit blind. But it worked.

Is there a place I can find the stock recovery from 10.0.6 international to avoid downloading the full rom? I should be able to extract the recovery.img from fastboot full ROM should I?
[OnePlus 7T Guides, News, & Discussion] Lossyx:
I have not fiddled around with fastboot ROMs. But you should be able to download your OOS rom with Oxygen Updater.

If someone else haven't uploaded the stock recovery, you'll need to use a tool like this to extract the payload bin inside the zip. The recovery is named recovery.img

https://github.com/cyxx/extract_android_ota_payload
[OnePlus 7T Guides, News, & Discussion] grandpajiver:
This is totally working for me. Still trying to get V4A to work.. at least I can rollback from a boot loop ;)
[OnePlus 7T Guides, News, & Discussion] v.konvict:
Its the only thing actually missing on this device.
[OnePlus 7T Guides, News, & Discussion] morback:
I could extract the recovery.img file from the fastboot rom on my computer. Thanks for the help :)
[OnePlus 7T Guides, News, & Discussion] Lossyx:
After installing the module, go into viper module folder and remove post-fs-data and boot. Change SELinux to permissive and reboot again.

*** You need to boot into the recovery and run adb shell with phone connected to computer

This helped me get viper working. (Version 2.7.1.0)
[OnePlus 7T Guides, News, & Discussion] grandpajiver:
Ah. Every time I rename/remove post-fs-data from the viper folder, I'm prompted to install the drivers again. Reboot, file is back. Remove via recovery. Install drivers. Reboot.

I did just install the se Linux switch... Seems like it boots permissive, not sure when it's changed. Unless I change to permissive in recovery?

I'm missing one step... I know it.
[OnePlus 7T Guides, News, & Discussion] Lossyx:
See if you can follow this guide:

https://xdaforums.com/7t-pro/themes/installing-viper4android-t4001045
[OnePlus 7T Guides, News, & Discussion] grandpajiver:
I can and I did ;) The main requirement seemed to be the SE Linux Switcher app, vs the Magisk Module that switches SELinux to Enforcing. Must depend on the timing in each modification is ran.

So, it took two tries:

1. Install module, run, install drivers reboot.

a. Drops me to fastboot, reboot to recovery.

b. adb shell, rm /data/adb/modules/ViPER4AndroidFX/post-fs-data.sh

c. Reboot to fastboot. Start a normal boot.

2. Viper4AndroidFX notification was not showing.

a. Long pressed app, gave permission to storage.

b. Requested to install driver again. Installed driver.

c. Dropped me to fastboot.

d. Reboot to recovery

e. adb shell, rm /data/adb/modules/ViPER4AndroidFX/post-fs-data.sh

f. Reboot to fastboot. Start a normal boot.

3. Viper4AndroidFX notification is showing.

a. Driver: 2.5.0.4; Neon enabled: Yes; Status: Normal; Audio Format: Supported; Sampling Rate: 48000

ERMEGAWD.

Now to just copy IRS/VDC/Profiles over... and jam!

Thank you!!!!
[OnePlus 7T Guides, News, & Discussion] reendy:
Does Viper broke inbuild Dolby ?

Thanks
[OnePlus 7T Guides, News, & Discussion] grandpajiver:
Nope, works just fine. Didn't need AML. Actually, Dolby Atmos is more pronounced now.

Plus my profiles to reduce speaker volume work fine. Good for nighttime.

I love this phone.
[OnePlus 7T Guides, News, & Discussion] reendy:
[/QUOTE]

Great, will try later. Thanks for the info.
[OnePlus 7T Guides, News, & Discussion] jazzy ╰_╯:
Is there any problem if I flash unsecure recovery and leave it as it is
[OnePlus 7T Guides, News, & Discussion] jazzy ╰_╯:
I tried removing module using adb tried multiple times with different module but I am not able to do it also is there a way to find the name of the module installed

---------- Post added at 06:02 AM ---------- Previous post was at 06:01 AM ----------

https://drive.google.com/file/d/1-DWIm8bG1PMu816jTiX8TQtqj37KTexg/view?usp=drivesdk
[OnePlus 7T Guides, News, & Discussion] Lossyx:
'adb shell'

'cd data/adb/modules' , and type 'ls'. This will list you list the folders/files in your directory.

Now just type 'rm -rf foldernameHere'

If you're unsure which module causes the bootloop, remove all of them.
[OnePlus 7T Guides, News, & Discussion] jazzy ╰_╯:
Got it I actually typed IS instead of ls thank you
[OnePlus 7T Guides, News, & Discussion] grandpajiver:
Hate to quote myself, but I am having audio issues with notifications/assistant/ringtones.

So I'll probably add ACP, then AML.

When that's verified working, I'll probably flash back to stock recovery and keep the insecure recovery on my phone, just in case there is an OS update and it fails due to the tampered-with recovery partition.

---------- Post added at 11:41 AM ---------- Previous post was at 11:36 AM ----------

If you want to be non-destructive, you could also:

adb shell

cd /data/adb/modules/

cd modulename

touch disable

This creates a 0-byte file named 'disable' in the module's directory. This is equivalent to uncheckmarking a module in Magisk Manager. It won't load on startup, and if you wish to re-enable the module, you dont have to download and reinstall.

This is also the best way for troubleshooting unity-based magisk modules, as they usually want you to flash the magisk zip again to completely and cleanly uninstall it.
[OnePlus 7T Guides, News, & Discussion] mapleshadow:
Mod edit - Translated by Google Translate:

Leave a footprint, very good tutorial!

*********************

留个脚印，非常不错的教程！
[OnePlus 7T Guides, News, & Discussion] osm0sis:
Nice job [MENTION=5155342]s3axel[/MENTION] and [MENTION=3633567]FreezyExp[/MENTION]! Genius idea now that OnePlus has added a recovery partition back! :highfive:

Now I'd suggest one of you automate it as an AnyKernel3 zip to patch the existing recovery in-place. ;)

I also wonder whether you could get adb sideload working at least with testkeys zips by messing with the included key store. :cowboy:
[OnePlus 7T Guides, News, & Discussion] sohansonu:
I flashed patched_boot.img in the end and my device booted up. But now when I go to Magisk Manager I don't see direct install option anymore.
[OnePlus 7T Guides, News, & Discussion] Timmmmaaahh!:
Your message:

Please always include an English translation when you post in another language as per Forum Rules.

Thanks!
[OnePlus 7T Guides, News, & Discussion] osm0sis:
Oh, for the record ro.debuggable=1 enables adbd, ro.secure=0 enables adb shell as root by default, and ro.adb.secure=0 disables adb authentication.

So you could leave the last one as 1 if you've already authenticated your computer while booted, which is something modern TWRP requires too. It's a bit more safe. :)

Edit: Looks like stock recovery also requires that USB Debugging be enabled in Developer Options to work with ro.adb.secure=1, but honestly, without a working TWRP right now we should all probably have that too. :p

Edit 2: Unfortunately it seems that the sideload feature is fully disabled. It's possible that replacing the adbd binary could get it working, but that could lead down a dependency rabbit hole... I'll see.

Edit 3: Nah, still boots to recovery okay with TWRP's static adbd, but no change on the sideloading feature. :(
[OnePlus 7T Guides, News, & Discussion] mapleshadow:
Leave a footprint, very good tutorial!
[OnePlus 7T Guides, News, & Discussion] jzjzjjz:
1|OnePlus7T:/ $ cd data

cd data

OnePlus7T:/data $ cd adb

cd adb

/system/bin/sh: cd: /data/adb: Permission denied

2|OnePlus7T:/data $ ls

ls

ls: .: Permission denied

1|OnePlus7T:/data $

now that I'm in adb shell, cannot go to folder /data/ adb/modules,

says permission denied
[OnePlus 7T Guides, News, & Discussion] osm0sis:
You're not booted to recovery and/or you're not root shell ($ is user shell, # is root)
[OnePlus 7T Guides, News, & Discussion] jzjzjjz:
Thanks a lot.

yes booting to recovery is what i was missing in step 5 "5. get into the adb shell"
[OnePlus 7T Guides, News, & Discussion] gorei23:
Okay so I've done all this and got to ADB, however my /data folder seems to be completely empty!

# ls
acct default.prop odm_file_contexts product storage
apex dev odm_property_contexts product_file_contexts sys
bin dsp oem product_property_contexts system
bt_firmware etc oneplus product_services tmp
bugreports firmware op1 prop.default ueventd.qcom.rc
cache init op2 res ueventd.rc
charger_log init.rc persist root vendor
config init.recovery.qcom.rc plat_file_contexts sbin vendor_file_contexts
d metadata plat_property_contexts sdcard vendor_property_contexts
data mnt postinstall sepolicy
debug_ramdisk odm proc sideload
# ls /data
# cd /data/adb
/system/bin/sh: cd: /data/adb: No such file or directory
#
[OnePlus 7T Guides, News, & Discussion] KostisTTT:
Hello, guys...

At first, thanks for this awesome guide.

I have a noob question.

After step 4. flash usecure recovery

Code:

fastboot flash recovery unsecure_adb_recovery.img

how should I proceed to step 5 get into the adb shell

Code:

adb shell

Should I reboot my phone and use adb, or this command is applied into fastboot ??

Or I apply the command booting into the unsecure_adb_recovery??

Thanks in advance...
[OnePlus 7T Guides, News, & Discussion] Lossyx:
Flash the modded recovery, boot into recovery from fastboot, enter pin. Now type "adb shell" and proceed.
[OnePlus 7T Guides, News, & Discussion] bynarie:
Its simply

fastboot boot boot.img

when "booting" no partition name is needed in the command, because recovery and boot.img are both kernels with a ramdisk.
[OnePlus 7T Guides, News, & Discussion] KostisTTT:
Hello, guys...

Thanks again for the help...

Yesterday, I installed riru-core module, reboot, everything OK.

When installing riru-edxposed (YAHFA) and reboot the phone booted to fastboot menu.

Then I followed this guide and deleted the YAHFA module...finally everything back to normal...

Probably the problem is that I use the "stock" Magisk.

What is the best custom Magisk that I should use (I have found Solohsu and Meocat from these sites

https://xdaforums.com/oneplus-7t/help/edxposed-tai-chi-pixel-display-module-t3988935/amp/

http://edxp.meowcat.org

but I don't know which is safer to use.

And finally (most noob question), how I update or install custom Magisk???

If I get in bootloop what should I do next? Exp. install the patched_boot.img that I extracted from ROM??

thanks again....
[OnePlus 7T Guides, News, & Discussion] Lossyx:
You're question are not really related to this thread.

Maybe ask in that thread which custom magisk is best.

Updating custom magisk is exactly the same as regular magisk.

>If I get in bootloop what should I do next? Exp. install the patched_boot.img that I extracted from ROM??

? Just do what you did before to remove the module?
[OnePlus 7T Guides, News, & Discussion] weyou:
Thanks! you saved my phone
[OnePlus 7T Guides, News, & Discussion] 1729:
I made a core-only release of Magisk. You can install it by changing the update channel to

https://raw.githubusercontent.com/314eter/magisk_files/master/stable.json
[OnePlus 7T Guides, News, & Discussion] suhel28:
my data directory is empty. Please help
[OnePlus 7T Guides, News, & Discussion] pjottrr:
Hi guys,

I was hoping someone here on the oneplus forum could help me out. or make me help understand what's going wrong

first of all, i'm not using a one plus but a moto g8 power

it is running android 10, and i used a patched boot image to get root access

i've been running magisk fine, but i tried to install viper4android and after the driver was installed it wouldn't boot anymore

so flashing back the original boot image and my device is up and running,(without root) but sadly I'm not successful in running this guide to fix the viper4android driver

the reason I'm not successful is because after editing the build.prop, and re flashing the recovery, i can't get into the recovery.

It just gives me a black screen and no adb posibilities

so I'm wondering, am i doing something wrong here?

even with just unpacking, repacking ( without changes) and then re flashing the recovery image, i just get a black screen when trying to get into the recovery ... flashing the original recovery back , and it works fine again ....

anyway, i would like to understand what's going wrong

i hope you guys can help me out

i made a zip package that contains the work folders ( only extracted, not modified) , it contains a modded repacked version and the original boot image which is working fine . i put the package on my own server under this link

what i directly can see is that the repacked file is only 20 megs, in stead of the 65 of the original, maybe that's the problem ... or maybe it is just a configuration thing.

i hope anyone has some suggestions

edit: i posted a thread in the proper location for the device here

but since you guys have more experience with the whole editing the boot image / recovery image, i expect more from this thread
[OnePlus 7T Guides, News, & Discussion] lil_kujo:
The way i remove my modules with out installing any custom recovery is just by turning off the phone, connect to pc, go to command prompt, type the path of the folder where fastboot and adb is, type the following command: adb wait-for-device shell magisk --remove-modules,(while phone is off) turn phone on wait for it to get to the boot screen it will reboot, once it reboots modules will be uninstalled.
[OnePlus 7T Guides, News, & Discussion] pjottrr:
thnx for this post, i hadn't found this yet, so i'll try this after work today, but i found some more suggestions on how to build a custom magisk in core-only mode which should do the trick as well, it look slike , thanks to your post i can try again.
[OnePlus 7T Guides, News, & Discussion] osm0sis:
So I went ahead and made an AK3 zip to automatically do the patch to the current recovery partition. I left ro.adb.secure=1 per the above, so just remember to authenticate your PC, and enable USB Debugging before anything dangerous so you'll have adb access via the patched recovery.

You can flash it via Franco Kernel Manager to install, and after each OTA to repatch the new recovery. :good:

I work on these projects in my limited time off, so if you like the progress I'm making, or enjoy anything else I've done on xda, please consider sponsoring my ongoing work using my GitHub Sponsors profile. For a one-time donation you can hit the donate link from my profile. Thanks for your support!

Edit

: More instructions from follow-up questions quoted below:

Edit 2

: Reuploaded as 2 zips, one with authentication and one with no authentication, since OOS 11 has broken booted authorized devices from carrying over into recovery on the OP8x Series, so I imagine that will happen here too. Authentication is still safer, but if it doesn't work anymore because OnePlus broke it then it doesn't work. (y)
[OnePlus 7T Guides, News, & Discussion] :
Delete
[OnePlus 7T Guides, News, & Discussion] lucfig:
Thank you so much.

Just flashed with FKM and boot went without any surprises. Not at PC right now, will check if adb is working in a couple of hours.

Enviado de meu HD1903 usando o Tapatalk
[OnePlus 7T Guides, News, & Discussion] lucfig:
I just tried in recovery right now. ADB is indeed working!

But my PC is unauthorized. Copied the adbkey to data/misc/adb/adb_keys but still unauthorized.

If I boot the system, adb works fine.

Any suggestions?

Thanks

Enviado de meu HD1903 usando o Tapatalk
[OnePlus 7T Guides, News, & Discussion] osm0sis:
You must authorize your PC while booted to Android and USB Debugging enabled in Developer Options. Try to `adb shell` with your PC to trigger the prompt. You might want to revoke keys in Developer Options to start fresh.

Then you may also need to `adb kill-server` and try again after the first command when you try to use adb in the patched recovery so that it authorizes correctly.
[OnePlus 7T Guides, News, & Discussion] lucfig:
That did it, thanks. Strangely I had it authorized in system but not in recovery mode.

Now it's working with permissions and all. Tested mm (magisk manager for recovery) and it is working fine.

The only thing I'm missing is the ability to mount the partitions and manage my storage. Could not find sdcard partition. But I guess this is due to changes inandroid 10, right?

Enviado de meu HD1903 usando o Tapatalk
[OnePlus 7T Guides, News, & Discussion] osm0sis:
It just doesn't bind mount it as /sdcard, it's still all there and decrypted under /data/media/0. :good:

Not sure what else you can get it to do from the command-line, but hey, it's a recovery. ;)
[OnePlus 7T Guides, News, & Discussion] lucfig:
Awesome!

I just wanted to be able to copy my files, disable magisk modules and sideload in case anything goes wrong, recovery after all. So with your help, everything is set right now in case I need.

Thank you!

Your zip can be used with any version as it patches the existing image, right?

Enviado de meu HD1903 usando o Tapatalk
[OnePlus 7T Guides, News, & Discussion] osm0sis:
Yep! No sideloading on stock OnePlus recovery unfortunately, but otherwise it's definitely handy. :good:
[OnePlus 7T Guides, News, & Discussion] Aswin08:
Good news from Magisk dev, Safe Mode detection is being introduced in Magisk to get out of rogue modules by booting with modules disabled.

https://twitter.com/topjohnwu/status/1258665731182325760?s=19
[OnePlus 7T Guides, News, & Discussion] adeelsmatrix:
10.0.11 Global - ADB Enabled - Insecure Recovery

I've tested it on my OP7T, worked for me.

https://drive.google.com/file/d/1FgngmAJQ-GKc0nIjngcspkU_xzwb-Y7T/view?usp=sharing
[OnePlus 7T Guides, News, & Discussion] grandpajiver:
Thanks, just built my own for 10.0.11.

So, yeah, 10.0.9 insecure recovery didn't mount /data when flashed on 10.0.11. The more you know. :)
[OnePlus 7T Guides, News, & Discussion] Eddiemc:
Care to share..??
[OnePlus 7T Guides, News, & Discussion] osm0sis:
Guys, use my AK3 zip after rebooting from the OTA, then it automatically uses the latest recovery partition and you don't have these problems. It's one page back.
[OnePlus 7T Guides, News, & Discussion] lucfig:
[MENTION=3633567]FreezyExp[/MENTION]

Do you mind adding the file from this osm0sis post to the OP?

Enviado de meu HD1903 usando o Tapatalk
[OnePlus 7T Guides, News, & Discussion] osm0sis:
Actually he should link to my post, since it's my file and I've created and provided both it and instructions.
[OnePlus 7T Guides, News, & Discussion] lucfig:
Even better. [emoji6]

Enviado de meu HD1903 usando o Tapatalk
[OnePlus 7T Guides, News, & Discussion] Eddiemc:
Dude, amazing. I missed this one. That's awesome work mate!
[OnePlus 7T Guides, News, & Discussion] samrattt:
How did u authenticate usb debugging while booting?can you explain that please!?
[OnePlus 7T Guides, News, & Discussion] lucfig:
Not while booting. While booted.

Enviado de meu HD1903 usando o Tapatalk
[OnePlus 7T Guides, News, & Discussion] vickynaik:
I m getting an error, for cd /data/adb/modules

No directory found
[OnePlus 7T Guides, News, & Discussion] jzjzjjz:
same here.

anyone?
[OnePlus 7T Guides, News, & Discussion] Fishawy:
Means you're not rooted properly. Reflash the Magisk image then reboot to recovery and try again.
[OnePlus 7T Guides, News, & Discussion] lucfig:
Hi,

Do you mind creating one that disables ro.adb.secure ?
[OnePlus 7T Guides, News, & Discussion] Lossyx:
I think you can just edit anykernel.sh inside the zip and uncomment "#patch_prop prop.default ro.adb.secure 0"
[OnePlus 7T Guides, News, & Discussion] lucfig:
Thanks. Will try that

Enviado de meu HD1903 usando o Tapatalk
[OnePlus 7T Guides, News, & Discussion] osm0sis:
Just edit the zip if you want it. It's dead easy. I made it a line you can un-comment out. (y)
[OnePlus 7T Guides, News, & Discussion] xDanVitox:
osm0sis - I'm trying this over on the 8T where others have had success but I am not coming up so lucky. I'm getting the black screen with no UI/way to decrypt. ADB comes up like stock but obviously doesn't work. I'm using my own img that I pulled through the broken TWRP for this device and have ruled out AIK being the issue by simply unpacking and repacking, resulting in everything working fine when reflashing. So changing the prop itself must be breaking something. Do you have any advice on what to try?

Thanks in advance either way!

Edit: Nevermind! I found out through the help of the OP on the 8T thread that it was macOS causing the issue. I did everything in a Windows VM and all is well. Thanks for AIK though and everything else you do!
[OnePlus 7T Guides, News, & Discussion] closedcircuit:
I came across the same issues on my Oneplus 7T after installing a magisk module and upon reboot it would only bootloop. I had attempted to adb into the device to uninstall the borked magisk modules manually, but kept on running into the situation where it said my adb devices was unauthorized. My solution was to:

1. Fastboot boot the stock boot.img

2. Start the device

3. Reboot device in safe mode

4. Uninstall problem causing magisk module using adb. In my case I just decided to uninstall all magisk modules at the bootscreen with adb and reinstall the working modules.

Hope this helps someone else that runs into the same issues I had.