Skip to content

GKI device support tweaks#5

Open
JamiKettunen wants to merge 5 commits into
droidian:droidianfrom
JamiKettunen:gki-halium-recovery
Open

GKI device support tweaks#5
JamiKettunen wants to merge 5 commits into
droidian:droidianfrom
JamiKettunen:gki-halium-recovery

Conversation

@JamiKettunen

@JamiKettunen JamiKettunen commented Jan 8, 2026

Copy link
Copy Markdown

halium recovery

v5.4+ kernels have bootconfig in /proc/cmdline and androidboot stuff moved over to /proc/bootconfig; see also b5aa632

android boot mode

We might as well avoid it on GKI too since it still seems to behave oddly and provides no real benefit compared to just booting normally.

Additionally do it unconditionally (drop dependency on /android-system mount) to reboot before FDE unlock to make it less jank feeling.

panic hook

This can be used to e.g. setup USB via /scripts/halium-hooks on Zinwa Q25 (MediaTek Helio G99) without resorting to modules.load tweaks:

halium_hook_panic() {
    cd /lib/modules
    modprobe tcpci_late_sync.ko
    cd -
}

non-halium_panic edge-case

Previously booting without a rootfs around for example didn't call halium_panic causing the above added hook for e.g. setting up USB to not be run

dropbear ssh

I've also fixed the seemingly longstanding issue of halium recovery ssh root@192.168.2.15 not letting you connect (only telnet 192.168.2.15) by simply setting an empty password for root

@JamiKettunen JamiKettunen changed the title [scripts] halium: support halium recovery on modern GKI kernels GKI: Support "halium recovery" and avoid "android" boot mode Jan 8, 2026
v5.4+ kernels have "bootconfig" in /proc/cmdline and androidboot stuff
moved over to /proc/bootconfig; see also b5aa632
We might as well since it still seems to behave oddly and provides no
real benefit compared to just booting normally.

Additionally do it unconditionally (drop dependency on /android-system
mount) to reboot before FDE unlock to make it less jank feeling.
@JamiKettunen JamiKettunen changed the title GKI: Support "halium recovery" and avoid "android" boot mode GKI device support tweaks Jan 11, 2026
This can be used to e.g. setup USB via /scripts/halium-hooks on Zinwa
Q25 (MediaTek Helio G99) without resorting to modules.load tweaks etc:

halium_hook_panic() {
    cd /lib/modules
    modprobe tcpci_late_sync.ko
    cd -
}
Not quoting it will make the return value always true no matter what
causing e.g. halium_panic along with its hook to NOT be called from just
before local-bottom at the end despite scripts/panic/telnet still
executing.
@g7

g7 commented Jan 26, 2026

Copy link
Copy Markdown
Member

Thanks!! It makes sense to me, but I pushed it in one feature branch so that it can be easily tested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants