forked from lgics/cm_device_lge_p500
-
Notifications
You must be signed in to change notification settings - Fork 2
/
init.p500.rc
37 lines (28 loc) · 910 Bytes
/
init.p500.rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# inherit qcom init
import init.qcom.rc
on boot
## VIBRATOR
chmod 0660 /sys/class/timed_output/vibrator/amp
## SENSOR
mkdir /data/amit 0777 ami304d ami304d
chmod 0666 /data/amit/AMI306_Config.ini
chmod 0666 /data/amit/AMI306_Config2.ini
## PROXIMITY SENSOR
chown compass system /sys/bus/i2c/drivers/proximity_gp2ap/4-0044/enable
chmod 0660 /sys/bus/i2c/drivers/proximity_gp2ap/4-0044/enable
# BACKLIGHT
chmod 0664 /sys/class/leds/lcd-backlight/alc
chown system system /sys/devices/platform/mddi_hitachi_hvga.10/lcd_onoff
chmod 0664 /sys/devices/platform/mddi_hitachi_hvga.10/lcd_onoff
service ami304d /system/bin/ami304d
class main
user compass
group system
## CHARGER ##
service charger /sbin/checkbootreason
class charger
user root
group root
oneshot
on property:init.svc.charger=running
setprop sys.usb.config adb