Permalink
3 comments
on commit
sign in to comment.
Browse files
u8815: add script for determining libcm to be used
This script thanks to a modification to fs/proc/app_info.c links the correct libcm.so to /system/lib/libcm.so based on which baseband is being used. This is possible as the baseband can be identified by what framebuffer memory has been allocated by the bootloader. This is being done because many people have been suffering from random reboots on any custom ROM on the 2030 baseband for some unknown reason, and 109808 works fine. Asking everyone to move back to the 109808 baseband would be unreasonable and having to maintain 2 builds for 1 lib is unreasonable too. :P Thanks kra1o5 for the libcm.so findings :D
- Loading branch information
Showing
with
29 additions
and 0 deletions.
- +21 −0 configs/baseband.sh
- +1 −0 device.mk
- +7 −0 ramdisk/init.huawei.rc
@@ -0,0 +1,21 @@ | ||
#!/system/bin/sh | ||
|
||
# Determined by arch/arm/mach-msm/hardware_self_adapt.c | ||
cat /proc/app_info | grep -A1 "baseband_version:" | grep -q "109808" | ||
baseband=$? | ||
|
||
mount -o remount,rw /system | ||
|
||
if [ -f /system/lib/libcm.so ]; then | ||
rm /system/lib/libcm.so | ||
fi | ||
|
||
# Link the correct libcm.so to /system/lib/libcm.so depending on baseband. | ||
if [ $baseband == 0 ]; then | ||
ln -s /system/lib/109808/libcm.so /system/lib/libcm.so | ||
mount -o remount,ro /system | ||
exit 0 | ||
fi | ||
|
||
ln -s /system/lib/2030/libcm.so /system/lib/libcm.so | ||
mount -o remount,ro /system |
This comment has been minimized.
Dazzozo repliedMar 12, 2013
Oops, it was fefifofum who discovered the libcm stuff.🌴
This comment has been minimized.
alanorth repliedMar 12, 2013
libcm?!
This comment has been minimized.
Dazzozo repliedMar 12, 2013
Not CM as in CyanogenMod :p