Quote:
Originally Posted by natemcnutty
So maybe we can ADB our device before we flash, then "echo 50 >/sys/class/leds/lcd-backlight/brightness" and then flash and it works? I tried changing brightness after the flash, and that didn't work for me.
As for lcd density, it's all handled by this tiny bit of code from init in rootfs:
LCDDENSITY=`/bin/grep -o "lcd.density=.*" /proc/cmdline | /bin/sed -e "s/.*lcd.density=//g" -e "s/ .*//g"`
if [ "$LCDDENSITY" != "" ] ; then
echo "ro.sf.lcd_density=$LCDDENSITY" >> /etc/default.prop
echo Setting ro.sf.lcd_density=$LCDDENSITY
fi
I guess we could have it grab something from the sdcard, but I'm not sure if there would be a way to make it configurable within Android. I don't mind playing around with this, but I won't be able to do anything with it until tomorrow 
|
Have we tried injecting another config on sdcard based on the rcconfig?
if [ -f "$card/conf/$RCCONFIG.user.conf" ]; then
/bin/userinit.sh -c "$card/conf/$RCCONFIG.user.conf"
else
echo "No user config files ($RCCONFIG) found on sdcard"
fi
Lookks like we can have a user.conf file and might be able to a modd the default.prop file which i think will handle what we need. The bottom section of this conf file executes shell params. So all we need to do is include
echo "ro.sf.lcd_density = 240" >> /etc/default.prop
Right now we dont have the desity set on tinboot so this should work.