land: Set FP vendor through boardid

Signed-off-by: Darshan Manjrekar <darshanmanjrekar1205@gmail.com>
This commit is contained in:
Darshan Manjrekar 2017-07-23 08:48:56 +02:00
parent 4518d68489
commit 101241fd31
2 changed files with 27 additions and 6 deletions

View file

@ -105,4 +105,15 @@ void vendor_load_properties()
} else {
property_set("ro.product.model", "Redmi 3S");
}
if (buf.find("S88537AA1") != std::string::npos) {
property_set("persist.sys.fp.goodix", "1");
property_set("persist.sys.fp.onstart", "1");
property_set("persist.sys.fp.vendor", "goodix");
property_set("ro.boot.fpsensor", "gdx");
} else {
property_set("persist.sys.fp.goodix", "0");
property_set("persist.sys.fp.onstart", "1");
property_set("persist.sys.fp.vendor", "searchf");
property_set("ro.boot.fpsensor", "fpc");
}
}

View file

@ -348,6 +348,9 @@ on boot
# bond0 used by FST Manager
chown wifi wifi /sys/class/net/bond0/bonding/queue_id
# Goodix Fingerprint
chown system system /dev/goodix_fp
chmod 0644 /dev/goodix_fp
chown root system /sys/class/leds/red/blink
chown root system /sys/class/leds/green/blink
@ -743,12 +746,19 @@ service fingerprintd /system/bin/fingerprintd
group system sdcard_rw
disabled
setprop persist.sys.fp.vendor searchf
start fingerprintd
setprop ro.boot.fpsensor fpc
service gx_fpd /system/bin/gx_fpd
class core
user root
group system system
disabled
on property:persist.sys.fp.onstart=1
start fingerprintd
on property:persist.sys.fp.vendor=goodix
stop fingerprintd
start gx_fpd
on property:persist.sys.fp.vendor=searchf
stop gx_fpd
start fingerprintd
# Start camera server as daemon
service qcamerasvr /system/bin/mm-qcamera-daemon