...: nabster :...


contents

An adventure in installing Magisk on OnePlus 7T HD1903 - successful with lineageOS

 

 

 

The following led to a boot loop on 12/12/2024, I then flashed boot.img and other files from lineage and had a working lineageOS with Magisk.

  1. Enabled developer mode.
  2. Installed Magisk .APK from GitHub.
  3. Opened Magisk and saw that the phone uses a RAMdisk.
  4. Downloading HD1903_11.F.17 firmware from getdroidtips (>3Gb file).  Must virus check this because it is not from an official source.  The reason for this is that official firmware packages are a source of boot.img or init_boot.img.
  5. Meanwhile, exploring if we can get boot.img out of the phone itself.
    1. Connected phone and it asked for charging only, transferring files or photos.  I chose files.
    2. adb.exe devices lists one unauthorised device
    3. Pressed accept on the phone's popus
    4. adb.exe devices now lists a device
    5. adb.exe shell ls lists a lot of files but no boot.img or init_boot.img 
    6. trying adb.exe shell ls -la, still no boot.img or init_boot.img 
    7. adb.exe shell gives a linux shell and the find command is present.  find . -name boot.img - whole lot of Permission denied and no file found
  6. By this time, the firmware zip has downloaded.  I run Microsoft Bitdefender and it checks out OK.  It doesn't have boot.img in it.
  7. Let's reboot into the bootloader.  I typed reboot bootloader in the adb shell.  Then fastboot.exe oem unlock.  Agree to unlock on the phone's screen.  It then rebooted, showing a screen with Chinese text in-between.
  8. Now it's at first start  :-(
  9. Reinstalled magisk apk.  Install button does not work.  I am risking the magisk-patched OOS 10.0.12 linked at https://github.com/Raymo111/oneplus-7t-root?tab=readme-ov-file. Scans OK with Microsoft Bitdefender.
  10.  Enabled developer mode again. Disconnect and reconnect USB.  adb.exe devices connected again.  
  11. adb reboot bootloader
  12. DO NOT DO THIS: I am presuming this command boots the file on the pc without copying it to the phone fastboot.exe boot "Magisk-patched OOS_10_0_12.img".  The phone is now showing 1+ Fastboot Mode.  It then goes into a boot loop. :-((

Repairing with lineageos https://wiki.lineageos.org/devices/hotdogb/install/#installing-lineageos-from-recovery

Download files are at https://download.lineageos.org/devices/hotdogb/builds

fastboot boot boot.img (not in instructions, but do because I know the bootloader and system are mismatched).

fastboot flash dtbo dtbo.img

fastboot flash vbmeta vbmeta.img

fastboot flash recovery recovery.img

reboot into recovery using the menu.  Follow instructions to arrive at ADB sideload.

adb.exe -d sideload lineage-21.0-20241206-nightly-hotdogb-signed.zip

adb.exe -d sideload MindTheGapps...

adb.exe -d sideload Magisk-v28.1.zip 

Reboot system now...



No comments:

Post a Comment