Quote:
Originally Posted by [ACL]
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.
|
I figured out how we can change the density for NAND. (For now...)
I also added the lcd-blacklight command from above. It works.
With this code you just need to place a file named "LCDDENSITY.240" or "LCDDENSITY.210" in the andboot folder of your SD Card.
Code:
echo 50 >/sys/class/leds/lcd-backlight/brightness
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
elif
[ -f $card/LCDDENSITY.240 ] ; then
echo "ro.sf.lcd_density=240" >> /etc/default.prop
echo Setting ro.sf.lcd_density=240
elif
[ -f $card/LCDDENSITY.210 ] ; then
echo "ro.sf.lcd_density=210" >> /etc/default.prop
echo Setting ro.sf.lcd_density=210
fi