GKI device support tweaks#5
Open
JamiKettunen wants to merge 5 commits into
Open
Conversation
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.
eefc9cb to
44b71a7
Compare
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 -
}
44b71a7 to
a83bb5d
Compare
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.
a83bb5d to
a07f6dc
Compare
Member
|
Thanks!! It makes sense to me, but I pushed it in one feature branch so that it can be easily tested |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
halium recovery
v5.4+ kernels have
bootconfigin/proc/cmdlineand androidboot stuff moved over to/proc/bootconfig; see also b5aa632android 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-systemmount) 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-hookson Zinwa Q25 (MediaTek Helio G99) without resorting tomodules.loadtweaks:non-halium_panic edge-case
Previously booting without a rootfs around for example didn't call
halium_paniccausing the above added hook for e.g. setting up USB to not be rundropbear ssh
I've also fixed the seemingly longstanding issue of halium recovery
ssh root@192.168.2.15not letting you connect (onlytelnet 192.168.2.15) by simply setting an empty password forroot