pax-pwn/firmware/tree/startup/init.D200_M22_P21_GPRS.rc

156 lines
4.7 KiB
Plaintext
Raw Normal View History

on early-init
insmod /startup/modules/bcm5892-rtc.ko
start ueventd
on init
insmod /startup/modules/devices_base.ko
insmod /startup/modules/pm_bcm5892.ko
insmod /startup/modules/D200_M22_P21_GPRS.ko
insmod /startup/modules/ioconfig.ko
write /sys/class/backlight/pwm-backlight/brightness 255
setprop ro.security_version 13.03.00
#USB support
insmod /startup/modules/bcm589x-dwccom.ko
insmod /startup/modules/bcm589x-otg.ko
insmod /startup/modules/tty-devices.ko
insmod /startup/modules/tty-host.ko
#base drivers
insmod /startup/modules/misc.ko
#enable i2c1 adapter for pmu
write /sys/devices/:amba:i2c1/enabled 1
insmod /startup/modules/pmu_rn5t614x.ko
#i2c-GPIO driver for touch key
insmod /startup/modules/i2c-gpio.ko
insmod /startup/modules/input_base.ko power_key=116 press_time=2
#touch_key driver
insmod /startup/modules/touch_key_cy8c20436a.ko
#power on gprs,must after the pmu driver
if property:ro.fac.radio!= write /sys/devices/platform/misc/gprs/cmd 0
#card drivers (sci msr pcd)
insmod /startup/modules/sci_bcm5892_ncn8025.ko
insmod /startup/modules/msr.ko
insmod /startup/modules/pcd_base.ko
insmod /startup/modules/pcd_rc663.ko
#security drivers (bbl, sec, verify)
insmod /startup/modules/bcm5892_bbl.ko
insmod /startup/modules/bcm589x-sec.ko
insmod /startup/modules/verify.ko
# bluetooth MFI for apple
if property:ro.fac.bt=WLT2564 insmod /startup/modules/mfi_encrypt.ko
if property:ro.fac.bt=01 insmod /startup/modules/mfi_encrypt.ko
#log server driver
insmod /startup/modules/logger.ko
chmod 666 /sys/power/state
chmod 666 /sys/class/backlight/pwm-backlight/brightness
chmod 666 /sys/devices/platform/keypad/backlight_on
chmod 666 /sys/devices/platform/keypad/buzzer_user_duration
chown root hwdev /sys/devices/platform/keypad/buzzer_user_duration
chmod 666 /sys/devices/platform/keypad/buzzer_user_freq
chown root hwdev /sys/devices/platform/keypad/buzzer_user_freq
chmod 222 /sys/devices/platform/keypad/buzzer_user_trigger
chown root hwdev /sys/devices/platform/keypad/buzzer_user_trigger
chmod 666 /sys/devices/platform/keypad/buzzer_user_volume
chown root hwdev /sys/devices/platform/keypad/buzzer_user_volume
chmod 222 /sys/devices/platform/keypad/buzzer_user_stop
chown root hwdev /sys/devices/platform/keypad/buzzer_user_stop
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_duration
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_duration
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_freq
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_freq
chmod 666 /sys/devices/platform/keypad/buzzer_keypad_enable
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_enable
chmod 660 /sys/devices/platform/keypad/buzzer_keypad_volume
chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_volume
#key_value of back_light
setprop ro.backlightkey 116
#time of back light auto active, unit:Second
setprop persist.sys.backlighttime 60
setprop persist.sys.sleeptime 0
setprop persist.sys.sleepwaittime 1
# usb ethernet driver
insmod /startup/modules/asix.ko
# create some symlinks
if property:ro.fac.bt!= symlink /dev/ttyAMA1 /dev/ttybt
if property:ro.fac.radio!= symlink /dev/ttyAMA3 /dev/ttywl
symlink /dev/input/event0 /dev/keypad
symlink /dev/input/event1 /dev/keypad_ped
symlink /dev/graphics/fb0 /dev/fb
symlink /dev/graphics/fb1 /dev/fb_ped
on post-fs
#LCD driver
symlink /startup/firmware/lcd_320x240.rle /startup/firmware/lcd.watermark
write /sys/class/backlight/pwm-backlight/brightness 0
insmod /startup/modules/lcd_fb.ko
insmod /startup/modules/lcd_hw_smc.ko
if property:ro.fac.videocard=TM023KDZ32 insmod /startup/modules/lcd_panel_TM023KDZ32.ko
if property:ro.fac.videocard=LCD_01 insmod /startup/modules/lcd_panel_LCD_01.ko
if property:ro.fac.videocard=01 insmod /startup/modules/lcd_panel_LCD_01.ko
service servicemanager /usr/bin/servicemanager
class core
user root
group root
critical
onrestart restart systemservice
onrestart restart ipservice
service ipservice /usr/bin/ipservice
disabled
user root
group root
service usbwifi /usr/bin/wpa_supplicant_ap6181 -Dwext -iwlan0 -c /startup/wifi_settings.cfg
disabled
user root
group root
service pedd /usr/bin/pedd
user root
group root
service keyman /usr/bin/keyman
disabled
user root
group root
service xcb /usr/bin/xcbd
disabled
user MAINAPP
group MAINAPP
service crashd /usr/bin/crashd
user MAINAPP
group MAINAPP
service systemservice /usr/bin/systemservice
user root
group root
on property:persist.sys.ipservice.enable=1
start ipservice
on property:persist.sys.ipservice.enable=0
stop ipservice
on property:persist.sys.xcb.enable=1
start xcb
on property:persist.sys.xcb.enable=0
stop xcb