Skip to content

Instantly share code, notes, and snippets.

View A2L5E0X1's full-sized avatar

Alexander Ederer A2L5E0X1

  • Austria
  • 02:50 (UTC +01:00)
View GitHub Profile
@A2L5E0X1
A2L5E0X1 / build_kernel.sh
Last active December 29, 2025 13:34
Android kernel buildscript
#!/bin/bash
#
# Copyright (C) 2022-2025 A2L5E0X1
#
# Simple script for building Android kernels with multiple arch support and custom toolchain option
#
#
# Changelog:
@A2L5E0X1
A2L5E0X1 / kirin-aosp-helper.md
Last active December 29, 2025 13:32
Helpful Kirin AOSP development cheat sheet

Kirin AOSP helper

A helpful cheat sheet for people interested in Huawei Kirin AOSP development

NOTE: This thing is pretty much EOL from my side, so feel free to fork and continue if you want to.

Important things to know

  • You have to be aware of that all EMUI versions are pretty different in almost all things (kernel, blobs, partition table, dtbs, etc.). Huawei OTAs are also resizing the ptable, so because of that, for example, all EMUI 8 devices (launched or upgraded) got Treble support (In fact EMUI 5 had a vendor partition already but that was smaller than on EMUI 8).
@A2L5E0X1
A2L5E0X1 / unpack_dts.sh
Last active January 27, 2025 15:08
Unpack Huawei DTS.img
#!/bin/bash
#
# Copyright (C) 2022 A2L5E0X1
#
#
# Simple script for unpacking DTS.img from HUAWEI kirin devices
#
@A2L5E0X1
A2L5E0X1 / chromium-default-flags.md
Created February 18, 2022 10:56
My chromium default flags

My Chromium Flags

Arch Linux

~/.config/chromium-flags.conf:

--oauth2-client-id=77185425430.apps.googleusercontent.com
--oauth2-client-secret=OTJgUOQcT7lO7GsGZq2G4IlT
--use-gl=egl
--force-dark-mode
--enable-features=WebUIDarkMode,VaapiVideoDecoder,VaapiVideoEncoder
@A2L5E0X1
A2L5E0X1 / arch-linux-fonts.md
Last active March 25, 2022 19:12
Fix cursed fonts in Arch Linux

Arch Linux Fonts

Install those packages to fix weird fonts like this:
weirdfonts

sudo pacman -S ttf-bitstream-vera ttf-roboto ttf-roboto-mono ttf-ubuntu-font-family noto-fonts noto-fonts-emoji noto-fonts-cjk noto-fonts-extra gnu-free-fonts

Fix google sync on chromium on Arch Linux

Add this to .config/chromium-flags.conf:

--oauth2-client-id=77185425430.apps.googleusercontent.com
--oauth2-client-secret=OTJgUOQcT7lO7GsGZq2G4IlT
@A2L5E0X1
A2L5E0X1 / lineage-signing-builds.md
Last active January 11, 2026 23:59
Signing LineageOS builds with your own dev-keys

Generating dev-keys to sign android builds

All you need is an Android buildsystem (LineageOS is recommended)
NOTE: For Lineage 21 and newer, different steps are required.

PART 1: GENERATING KEYS

  1. Export your infos (replace examples with your infos)
subject='/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/[email protected]'

C: Country shortform