just to do a summary... lord can you call
"start poweron_modem"
instead of directly calling the ".sh" script when bringing up the radio?
and, btw, do you think that calling "poweroff_modem.sh" when entering airplaine mode could be useful on battery life? Since it kills some ril related services and unloads some modules that are known for keeping kernel wake locks
edit:
Code:
# grep -r poweron_modem system/*
Binary file system/lib/libhtc_ril.so matches
it calls it...
so.. what if
/system/bin/poweron_modem_fls.sh gets renamed to something like
/system/bin/poweron_modem_fls_real.sh and /system/bin/poweron_modem_fls.sh contains just a simple
Code:
#!/system/bin/sh
start poweron_modem
and maybe it'd need suid bit to run a "start" command? (or put "su" before the start command)
of course you have to change
service poweron_modem /system/bin/poweron_modem_fls.sh /data/modem_work/
to
service poweron_modem /system/bin/poweron_modem_fls_real.sh /data/modem_work/
in this way HTC ril calls the sh script that calls the "start" method and should override the 4.2 partitions thing
edit2:
Code:
strings libhtc_ril.so | grep poweron_modem
%s():run poweron_modem_fls.sh
./system/bin/poweron_modem_fls.sh
they're directly calling it... and it fails because of that 4.2 thing that requires the new init binary (i smacked my head for a couple of days on amlogic tablets to sort this out while building 4.2)... doing that "binary bounce" could work imho
what's interesting is what has changed from 2.1? because it didn't care until that build!
edit3:
or in a more elegant way try to adopt
this route that is for /storage but make the same thing for /rfs and /rca
i hope i have you some hints