[OnePlus 6T  Guides, News, & Discussion] wtop24:
Hello,

This is a guide to install Kali NetHunter over LineageOS 18 on the OnePlus 6T. My instructions start by assuming you have a locked T-Mobile OnePlus 6T, but they should work perfectly fine on the international version as well.

This is the product of 28 hours of trial and error on my own device, so I hope it is able to help someone get set up quicker.

I have tried to make the guide as reproducible as possible even into the future by specifying the exact versions of software used.

None of the instructions are based off what I think "should" happen. I have walked through the guide completely with all instructions followed verbatim with no deviations and have achieved success.

Note: Frame injection on the internal wireless adapter of the OnePlus 6/6T is not possible due to hardware limitations.

Warning: After the installation, any sort of screen-lock such as a PIN, pattern, or password cannot be set on the device.

1. Convert device to international version

1.01. Follow instructions in https://xdaforums.com/t/t-mobile-6t...thout-unlocked-bootloader-sim-unlock.3888307/

1.02. Boot and set up device

2. Update firmware to version required by Lineage (without this, installation will fail)

2.01. Download the app 'Oxygen Updater' (alternatively, the OTAs can be downloaded manually and installed via 'Local upgrade')

2.02. Open it, select 'OnePlus 6T' and 'Stable (incremental)'

2.03. Install OxygenOS 9.0.17; reboot

2.04. Install OxygenOS 11 - in my installation, I used 11.1.2.2; reboot

3. Install LineageOS

3.01. Follow the instructions in https://wiki.lineageos.org/devices/fajita/install - don't skip any steps, and remember to download lineage os 18, not 19! In my installation, I used 'lineage-18.1-20220421-nightly-fajita-signed.zip'

3.02. Boot and set up device, enable usb debugging

4. Disable filesystem encryption (required for nethunter chroot to function)

4.01. Reboot to recovery

4.02. 'Apply update' -> 'Apply from ADB'

4.03. Sideload Disable_DM-Verity_ForceEncrypt_11.02.2020.zip (https://zackptg5.com/android.php#disverfe) - you will be prompted to select options with volume button. Don't disable disk quota. Do disable force encryption.

4.04. 'Factory reset'

4.05. Boot and set up device, enable usb debugging

4.06. Verify in Settings -> Security that under 'Encryption & credentials' there is the text 'Phone not encrypted'.

5. Root device

5.01. Reboot to recovery

5.02. Download latest version of Magisk (https://github.com/topjohnwu/Magisk) -- in my installation, I used v24.3

5.03. Rename Magisk .apk extension to .zip

5.04. Sideload Magisk .zip

5.05. Reboot system

5.06. Connect to the internet

5.07. Open Magisk app

5.08. 'Upgrade to full Magisk'

5.09. Open app and verify that beside the text 'Installed' is the Magisk version number

6. Install NetHunter

6.01. Reboot to recovery

6.02. Download the latest NetHunter image for OnePlus 6(T) (OxygenOS 11) from https://kali.download/nethunter-images/current/ -- in my installation, I used 'nethunter-2022.2b-oneplus6-oos-eleven-kalifs-full.zip'

6.03. Sideload the .zip

6.04. Reboot system

6.05. Update NetHunter through the NetHunter store

7. Install a LineageOS-compatible NetHunter kernel (May not be necessary, I am unsure)

7.01. Download kernel at https://github.com/mcdachpappe/android_kernel_oneplus_sdm845/releases/tag/r16 (if this fails, a later release might work)

7.02. Transfer the kernel to the device SD card (this is required because for some reason, the NetHunter .zip installed in step 6 breaks ADB in LineageOS recovery)

7.03. Reboot to recovery

7.04. 'Apply update' the kernel from internal storage (mcd_op6x_r16.zip)

8. You are done