Skip to content

Instantly share code, notes, and snippets.

View ungeskriptet's full-sized avatar

David Wronek ungeskriptet

View GitHub Profile
@ungeskriptet
ungeskriptet / firmware.md
Created February 28, 2022 14:37
Firmware for Ubuntu Touch on surya/karna

Ubuntu Touch for surya/karna is based on Halium 10 and Android 10 Ubuntu Touch rootfs so it requires an Android 10 base firmware before it can be flashed on your phone. While custom ROMs like LineageOS 17.1 might work, they are untested and not recommended. Instead, use one of the MIUI Android 10 based firmware from below.

Pay attention to your device name before downloading the firmware below. Make sure you download the right firmware for your device, the correct region, the firmware type is fastboot, and the Android version is 10.0!

Poco X3 NFC (surya): LINK Note: For Poco X3 (karna) use the link above and download firmware for POCO X3 India

@ungeskriptet
ungeskriptet / tcl-beyondtv4.dts
Created July 21, 2022 07:47
TCL 55C725 "BeyondTV4" downstream DTS
/dts-v1/;
/ {
#address-cells = <0x02>;
#size-cells = <0x02>;
model = "realtek,rtd288o";
compatible = "rtk,rtd288o";
interrupt-parent = <0x01>;
chosen {
@ungeskriptet
ungeskriptet / motorola-falcon.dts
Created July 25, 2022 08:06
Motorola Moto G 2013 "falcon" downstream DTS
/dts-v1/;
/ {
interrupt-parent = <0x01>;
#address-cells = <0x01>;
#size-cells = <0x01>;
qcom,msm-id = <0x91 0x42 0x283c0>;
channel-id-map = "acg\0amxbr\0amxpr\0amxmx\0amxcl\0amxar\0amxla\0amxpe\0amxco\0tefbr\0tefmx\0tefar\0tefcl\0tefpe\0tefco\0perar\0entcl\0iusmx\0niibr\0niicl\0niimx\0niipe\0oibr\0timbr\0tigco\0retbr\0retar\0retla\0retcl\0tefla\0retla1st\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0reteu\0retgb\0retfr\0retes\0retie\0retde\0vfgb\0vfde\0vffr\0o2gb\0o2de\0orafr\0bouyfr\0eegb\0tescogb\0yoigo\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0u
@ungeskriptet
ungeskriptet / motorola-falcon_lk2nd.dts
Created July 25, 2022 16:56
Motorola Moto G 2013 "falcon" lk2nd DTS
/dts-v1/;
/memreserve/ 0x000000003eae0000 0x0000000000020000;
/memreserve/ 0x000000003eb00000 0x0000000000000800;
/ {
#address-cells = <0x01>;
#size-cells = <0x01>;
model = "Motorola QC-MSM8226 Falcon";
compatible = "qcom,msm8226-falcon\0qcom,msm8226-moto\0qcom,msm8226";
interrupt-parent = <0x01>;
@ungeskriptet
ungeskriptet / motorola-cedric.dts
Created July 26, 2022 16:43
Motorola Moto G5 "cedric" downstream DTS
/dts-v1/;
/ {
#address-cells = <0x02>;
#size-cells = <0x02>;
model = "cedric";
compatible = "qcom,msm8937-cedric\0qcom,msm8937-moto\0qcom,msm8937";
qcom,msm-id = <0x126 0x00>;
interrupt-parent = <0x01>;
channel-id-map = "acg\0amxbr\0amxpr\0amxmx\0amxcl\0amxar\0amxla\0amxpe\0amxco\0tefbr\0tefmx\0tefar\0tefcl\0tefpe\0tefco\0perar\0entcl\0iusmx\0niibr\0niicl\0niimx\0niipe\0oibr\0timbr\0tigco\0retbr\0retar\0retla\0retcl\0tefla\0retla1st\0tefunl\0tigca\0tigca1st\0retmx\0attmx\0womcl\0avaco\0retpe\0openla\0opencl\0openmx\0altmx\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0undefined\0reteu\0retgb\0retfr\0retes\0retie\0retde\0vfgb\0vfde\0vffr\0o2gb\0o2de\0orafr\0bouyfr\0eegb\0tescogb\0yoigo\0oraes\0retapac\0retmea\0vfit\0vfes\0vfeu\03gb\0tescoie\0altfr\03ie\0altpt\0timit\0retma\0windit\0vfhu\0vfro\0telhu\0playpl\0oraeu\0dteu\0teleu\0plu
@ungeskriptet
ungeskriptet / regulator-name-generator.py
Created October 2, 2022 11:53
Generate the name of a regulator
#!/usr/bin/env python
print('Input the first letter of your regulator type. E.g. "smpf1" has type "s"')
REG_TYPE = input('Regulator type: ')
print('\nInput your PMIC ID. The PMIC ID is the letter after "ldo". E.g. "ldoc5" has ID "c".')
PMIC_ID = input('PMIC ID: ')
print('\nNow input your regulator number and microvolt value. The script will run in a loop here.')
while True:
@ungeskriptet
ungeskriptet / tcl-debloater.sh
Last active January 15, 2025 22:48
TCL TV debloater
#!/usr/bin/sh
# WARNING: Might brick your TV
set -e
TEMP_DIR=tmp-tcl-debloater
KODI_URL=https://mirrors.kodi.tv/releases/android/arm/kodi-20.1-Nexus-armeabi-v7a.apk
FLAUNCHER_URL=https://gitlab.com/flauncher/flauncher/-/releases/0.18.0/downloads/flauncher-0.18.0.apk
MATERIALFILES_URL=https://f-droid.org/repo/me.zhanghai.android.files_31.apk
BLOAT=$(cat <<EOF
com.tcl.partnercustomizer
com.tcl.smartalexa
@ungeskriptet
ungeskriptet / dmesg.txt
Created November 7, 2022 12:32
Samsung Galaxy Tab 3 10.1 dmesg
[ 0.000000] C0 [ swapper] Initializing cgroup subsys cpuset
[ 0.000000] C0 [ swapper] Initializing cgroup subsys cpu
[ 0.000000] C0 [ swapper] Linux version 3.4.34-lineage-01570-g463c91c87b07 (build@android) (gcc version 4.9 20150123 (prerelease) (GCC) ) #2 SMP PREEMPT Mon Apr 26 11:00:56 CEST 2021
[ 0.000000] C0 [ swapper] BIOS-provided physical RAM map:
[ 0.000000] C0 [ swapper] BIOS-e820: 0000000000000000 - 0000000000098000 (usable)
[ 0.000000] C0 [ swapper] BIOS-e820: 0000000000100000 - 0000000001000000 (reserved)
[ 0.000000] C0 [ swapper] BIOS-e820: 0000000001000000 - 0000000036ff0000 (usable)
[ 0.000000] C0 [ swapper] BIOS-e820: 0000000036ff0000 - 00000000378fd000 (reserved)
[ 0.000000] C0 [ swapper] BIOS-e820: 00000000378fd400 - 00000000379fd400 (reserved)
[ 0.000000] C0 [ swapper] BIOS-e820: 00000000379fd400 - 0000000039fff400 (usable)
@ungeskriptet
ungeskriptet / mantis-bootlog.txt
Created November 13, 2022 18:27
Amazon Fire TV Stick 4K UART boot log
[pmic6393_init] Preloader Start..................
[pmic6393_init] Set vproc to 1.1V..................
[pmic6393_init] Done...................
[PLFM] Init PMIC: OK(0)
[PLFM] chip_ver[0]
[BLDR] Build Time: 20191106-000631
==== Dump RGU Reg ========
RGU MODE: 4D
RGU LENGTH: FFE0
@ungeskriptet
ungeskriptet / wiiu-pin-generator.py
Created December 7, 2022 13:55
Nintendo Wii U GamePad pin generator with timer
#!/usr/bin/env python
import threading
from time import sleep
from itertools import product
def generator():
print("Press enter to continue the list")
for i in product(["♠", "♦", "♥", "♣"], repeat=4):
print(i)
input()