First you must unlock your titan:

Tap on "Build number" in the settings until it unlocks developer mode

In the developer mode settings enable OEM unlocking

In the developer mode settings enable USB debugging

Authorize your computer running ADB (If needed run adb devices to start the adb service and click the checkbox and accept in the popup)

adb reboot bootloader

fastboot flashing unlock




Install magisk to the boot img of the factory rom:

Obtain Magisk.apk [Magisk 25.2](https://github.com/topjohnwu/Magisk/releases/download/v25.2/Magisk-v25.2.apk)

Obtain Stock Rom (EEA is european union, TEE is anything else) (Obtain here: https://github.com/rumplestilzken/mksuper)

Extract Stock Rom and copy boot.img to your Titan.

You can run magisk on any device on any boot image. You just need to install the apk, and adb push the boot image to /sdcard/Download.

Run Magisk on boot.img, make sure to include vbmeta patch. Do not check this for Titan Pocket and Titan Slim.




Flash patched magisk image:

Copy new Magisk boot.img to your computer (adb pull /sdcard/Download/magisk.img.)

Boot into bootloader mode (adb reboot fastboot or Power + Volume Up while booting, once booted into recovery, if you get 
a No Command screen, hold power and tap volume up, boot to bootloader)

fastboot flash boot magisk-boot.img




Titan Pocket, Titan Slim, Tank:

Additional steps are needed to keep the Titan Pocket and Titan Slim booting. These images can be found in the stock rom zip. ()

fastboot flash --disable-verity --disable-verification vbmeta <vbmeta.img>
fastboot flash --disable-verity --disable-verification vbmeta_system <vbmeta_system.img>
fastboot flash --disable-verity --disable-verification vbmeta_vendor <vbmeta_vendor.img>




Flash your gargoyle image:

adb reboot fastboot
fastboot erase system 
fastboot erase cache
fastboot erase userdata # Skip this step if you are not coming from stock rom
fastboot flash system <gargoyle.img> 
fastboot reboot




Finalize:

Boot into system and open Magisk while connected to the internet.

Finalize settings and reboot

adb root
adb remount # Not required on vndklite images
adb reboot # Not required on vndklite images
adb root # Not required on vndklite images
adb remount # Not required on vndklite images
adb shell touch /system/titan-test

Open Settings->Phh Treble Settings->Misc features->Use alternate ay to detect headset <-- Check this and reboot to get Headphone jack/USB C Audio Jack working.

adb reboot

If you get errors, there is something wrong. If the file is created in system, you are good to go.




Optional configuration:

Kika keyboard (no autocorrect): 

Install: https://drive.google.com/file/d/1kF2TeQoWGVGNJTi3wL3EHX7PruQJ5D8f/view?usp=share_link

Then ensure it is selected as the input method

-Install Google Play Store and Google Services (bvn image)-

Google Play Store can be installed with wacko's Magisk module (https://github.com/wacko1805/MagiskGapps) on the bvn version if wanted. If you get a "Not Certified" warning register with google (https://www.google.com/android/uncertified/) and within a few minutes your Google Play will work.

-Install MicroG (bvn image)-

MicroG is a FOSS Google Play Services alternative. While it does still communicate with google's servers, it does so with an attempt to maintain a level of privacy. Not all applications will work with MicroG, but it does allow a significant amount to function.

To install it you can use nift4's revived MicroG Magisk installer module (https://github.com/nift4/microg_installer_revived)

After installation, reboot the device and then go into the system settings MicroG page to give it permissions.

You may want to install a location services module after MicroG is properly installed, you can find Mozilla's NLP backend on the fdroid store, and other privacy friendly options such as Local LNP Backend.

Credits

@33YN2

Unihertz/Notes/33YN2Installation (last edited 2023-04-26 13:25:23 by rumplestilzken)