Wasn’t so simple to remove the watermark. I definitely needed the help of ChatGPT. Here were my steps:
- Fresh LunarOS factory reset
- Download Magisk .apk on PC
- Use “adb” interface to copy Magisk .apk from PC to LunarOS Downloads (“adb push Magisk.apk /storage/emulated/0/Downloads”)
- Click on the file on the phone files app to install the APK.
- Copy “init-boot.img” from the LunarOS installation package to LunarOS Downloads
- In Magisk install using a file and point to the copied “init-boot.img”. This creates a “magisk-patched.img”. This image will “root” your phone. Copy it back to pc with “adb pull /storage/emulated/0/Downloads/<file_name> .”
- Reboot phone to fastboot “adb reboot bootloader”
- (Forgot to mention make sure OEM unlocking is on) Run “fastboot flashing unlock” and if it’s not locked run “fastboot flashing lock_critical”. One of these 2 commands might re-factory reset your phone so you may need to repeat all steps again to here.
- Root your phone with the command “fastboot init_boot_a magisk_patched.img”
- reboot with “fastboot reboot”
- Now again you have a factory reset OS but it’s “rooted”. Copy over and install the Magisk apk
- Magisk should be up and running now. On your PC get the zip file from here: Releases · Magisk-Modules-Repo/MagiskHidePropsConf · GitHub and copy it over to your Downloads on LunarOS
- In Magisk click Module and add from files, select the zip file you just transfered over
- Now back on the PC start a adb shell. Run: “adb shell” then “su”
- Now this is the step where you actually remove the “userdebug” watermark: run “props”, then “5”, “n”, “ro.build.type”, “y”, “user”, “y” and reboot
- Done