A:背光设置
1: # cd /sys/devices/platform/m805_892x-backlight.0/leds/lcd-backlight
2:# ls
brightness
device
max_brightness
power
subsystem
trigger
uevent
3:用cat可以查看相关信息,如果要设置背光亮度可以用echo数值到brightness,比如:echo 30 > brightness
B: 耳机和喇叭声音相反
1: 修改drivers/switch/switch_gpio_tcc.c耳机检查状态判断
-- if (state) switch_data->state_val = TCC_BIT_HEADSET_NO_MIC;
-- else switch_data->state_val = 0;
++ if (state) switch_data->state_val = 0;
++ else switch_data->state_val = TCC_BIT_HEADSET_NO_MIC;
C:dpi修改
1:lvds 1024×768,修改文件ics/device/telechips/m805_892x/device_base.make,将ro.sf.lcd_density=120改为ro.sf.lcd_density=160
D:制作SD系统升级文件
1:make otapackage出现如下错误
Could not create the Java virtual machine.
ERROR: signapk.jar failed: return code 1
由于虚拟机空间不够需要修改小些修改build/tools/releasetools/common.py文件
cmd = ["java", "-Xmx2048m", "-jar",
os.path.join(OPTIONS.search_path, "framework", "signapk.jar")]
其中的-Xmx2048m 改为-Xmx1024m