Add a different implementation of insmod.sh

Use soong namespace to branch a implementation of insmod.sh .
The newly added implementation is only added to PRODUCT_PACKAGE
for dev option enabled devices. The only change to the script is
skip loading kernel modules from vendor|system_dlkm when under 16K
mode.

Test: Dev option works
Bug: 319335586

This reverts commit 11eb02562d.

Change-Id: I5f5d4ee79be7f872ec321e93f58f6516974d0cad
This commit is contained in:
Kelvin Zhang 2024-05-09 16:45:02 +00:00
parent 5ca6b7496d
commit 99f848ed48
8 changed files with 162 additions and 7 deletions

View file

@ -1,10 +0,0 @@
on init
# Loading common kernel modules in background
start insmod_sh
service insmod_sh /vendor/bin/insmod.sh /vendor/etc/init.common.cfg
class main
user root
group root system
disabled
oneshot