Skip to content

Instantly share code, notes, and snippets.

@duckyduckG
duckyduckG / gist:cc6742406d10f5a65fd70ab84e151c1f
Last active July 2, 2025 09:01
How to sign Modules manually after compiling kernel

One needs to sign modules manually otherwise they do not load:

error

$ insmod: failed to load /vendor/lib/modules/wlan.ko: Required key not available

we need to sign these modules

Requirement

@duckyduckG
duckyduckG / guide.md
Created April 28, 2025 07:42 — forked from dmytrokyrychuk/guide.md
Enable zram on Ubuntu 20.04 on DigitalOcean

The Ubuntu 20.04 image appears to come without extra modules, so they need to be installed additionally:

$ sudo apt install linux-modules-extra-$(uname -r)

Then simply install zram-config

$ sudo apt install zram-config
@duckyduckG
duckyduckG / README.md
Created April 20, 2025 07:10 — forked from SebaUbuntu/README.md
Generate framework compatibility matrix from fqnames

Generate framework compatibility matrix from fqnames

  • Download these 2 files
  • Compile AOSP without fcm from stock and wait for check_vintf to error out
  • Delete Python prefix from all lines (e.g. checkvintf E 06-24 00:30:22 49120 49120 check_vintf.cpp:554])
  • Paste the result in fqnames.txt
  • Launch the script
@duckyduckG
duckyduckG / lineage-signing-builds.md
Last active April 14, 2025 17:01 — forked from A2L5E0X1/lineage-signing-builds.md
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