Skip to content

Instantly share code, notes, and snippets.

View A2L5E0X1's full-sized avatar
📞
Busy with my devices

Alexander Ederer A2L5E0X1

📞
Busy with my devices
  • Austria
  • 04:59 (UTC +02:00)
View GitHub Profile
@A2L5E0X1
A2L5E0X1 / build_kernel.sh
Created June 11, 2022 16:01
Android kernel buildscript
#!/bin/bash
#
# Copyright (C) 2022 A2L5E0X1
#
# Simple script for building Android kernels with multiple arch support and custom toolchain option
#
#
# Changelog:
@A2L5E0X1
A2L5E0X1 / kirin-aosp-helper.md
Last active March 28, 2024 13:35
Helpful Kirin AOSP development cheat sheet

Kirin AOSP helper

A helpful cheat sheet for people interested in Huawei Kirin AOSP development
This thing is WIP right now, so please have some patience, thank you!

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).
  • Huawei likes to "backport" features which aren't even existing on AOSP yet, there are alot of good examples: vendor partition on EMUI 5 (on AOSP since Android 8.0), odm partition on EMUI 8/9 (on AOSP since Android 10), AVB2 with vbmeta partitions (disabled until EMUI 10) on EMUI 8 (on AOSP since Android 9), (pretty unrelate
@A2L5E0X1
A2L5E0X1 / unpack_dts.sh
Last active March 28, 2024 13:39
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 June 1, 2024 08:00
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/emailAddress=android@android.com'

C: Country shortform