Skip to content

Instantly share code, notes, and snippets.

@rumplestilzken
rumplestilzken / dm-verity on a Unihertz Titan
Last active March 30, 2023 14:59
dm-verity on a Unihertz Titan
If you end up with a dm-verity warning on your Titan, download your stock rom and use
SP Flash Tool v5.2152 to flash using FIRMWARE UPDATE method, this will clear the warning
and let you start fresh.
@rumplestilzken
rumplestilzken / Installing Ubuntu on WSL
Last active March 30, 2023 13:36
Installing Ubuntu on WSL
Download and install https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
wsl --install -d Ubuntu
wsl --set-default-version 2
Open Ubuntu
sudo apt update
@rumplestilzken
rumplestilzken / Rooting Your Unihertz Titan
Last active September 22, 2024 03:17
Rooting Your Titan
Unlock your Titan.
Obtain Magisk.apk [Magisk 25.2](https://github.com/topjohnwu/Magisk/releases/download/v25.2/Magisk-v25.2.apk)
Obtain Stock Rom
Extract Stock Rom and copy boot.img to your Titan.
Run Magisk on boot.img, make sure to include vbmeta patch. Do not check this for Titan Pocket and Titan Slim
Copy new Magisk boot.img to your computer
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
@rumplestilzken
rumplestilzken / Android.mk
Created March 1, 2022 23:39
Android.mk used to compile lua as a static library, tested compiling SDL android
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := lua
LOCAL_CFLAGS := -DLUA_ANSI
LOCAL_SRC_FILES := \
$(subst $(LOCAL_PATH)/,, \
$(wildcard $(LOCAL_PATH)/*.c))
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
@rumplestilzken
rumplestilzken / Android.mk
Created March 1, 2022 23:38
Android.mk used to build sqlite3 as a static library
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := sqlite3
LOCAL_SRC_FILES := \
$(subst $(LOCAL_PATH)/,, \
$(wildcard $(LOCAL_PATH)/*.c))
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
@rumplestilzken
rumplestilzken / Android.mk
Created February 27, 2022 11:08
Android.mk used to compile Protobuf for android as a static library, tested in SDL application.
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := protobuf
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
LOCAL_SRC_FILES := \
$(subst $(LOCAL_PATH)/,, \
$(wildcard $(LOCAL_PATH)/google/protobuf/*.cc) \