123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213 |
- on early-init
- insmod /startup/modules/bcm5892-rtc.ko
- start ueventd
- on init
- insmod /startup/modules/devices_base.ko
- insmod /startup/modules/S900_M30_P30_GPRS_BT.ko
- insmod /startup/modules/ioconfig.ko
- write /sys/class/backlight/pwm-backlight/brightness 100
- insmod /startup/modules/pm_bcm5892.ko
- setprop ro.security_version "Prolin 21.301.110.100.101"
- #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
- insmod /startup/modules/bcm589x-usb-host.ko
-
- #base drivers
- # battery, must before than power on gprs
- insmod /startup/modules/bm_bq24133.ko
- insmod /startup/modules/pmu_dummy.ko
- insmod /startup/modules/misc.ko
- insmod /startup/modules/input_base.ko power_key=223 press_time=2
- insmod /startup/modules/keypad_matrix.ko
- #power on gprs
- if property:ro.fac.radio!= write /sys/devices/platform/misc/gprs/cmd 0
- #switch wifi power.NOTE othis position must before the WIFI driver and after the PUM driver!
- #if property:ro.fac.wifi!= write /sys/devices/platform/misc/wifi/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
- #crypto drivers
- if property:ro.fac.cipher_chip=01 insmod /startup/modules/thk88.ko
- #sound driver
- if property:ro.fac.audiocard=CS4344-CZZR insmod /startup/modules/bcm589x_i2s.ko
- if property:ro.fac.audiocard=BCM589X_DAC insmod /startup/modules/bcm589x_dac.ko
-
- #touchscreen driver
- insmod /startup/modules/ads7846.ko
- #log server driver
- insmod /startup/modules/logger.ko
-
- #printer driver
- if property:ro.fac.printer=LTPJ245G insmod /startup/modules/sii_printer.ko
- if property:ro.fac.printer=PRT-48F insmod /startup/modules/prt_printer.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
- write /sys/devices/platform/keypad/buzzer_keypad_duration 150
- write /sys/devices/platform/keypad/buzzer_user_duration 150
- #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.radio!= symlink /dev/ttyAMA3 /dev/ttywl
- if property:ro.fac.radio!= symlink /dev/ttyUSB0 /dev/ttywl
- if property:ro.fac.radio!= symlink /dev/ttyUSB2 /dev/mux1
- if property:ro.fac.bt!= symlink /dev/ttyAMA1 /dev/ttybt
- if property:ro.fac.modem!= symlink /dev/ttyAMA0 /dev/ttymodem
- if property:ro.fac.barcode!= symlink /dev/ttyAMA0 /dev/tty_barcode
- symlink /dev/input/event0 /dev/keypad
- symlink /dev/input/event1 /dev/keypad_ped
- symlink /dev/input/event2 /dev/tp
- symlink /dev/input/event3 /dev/tp_ped
- symlink /dev/graphics/fb0 /dev/fb
- symlink /dev/graphics/fb1 /dev/fb_ped
- on fs
- export TSLIB_CONSOLEDEVICE none
- export TSLIB_FBDEVICE /dev/fb
- export TSLIB_TSDEVICE /dev/tp
- export TSLIB_CALIBFILE /etc/ts/pointercal
- export TSLIB_CONFFILE /etc/ts/ts.conf
- export TSLIB_PLUGINDIR /usr/lib/ts
- on post-fs
- #LCD driver
- symlink /startup/firmware/lcd_240x320_r90.rle /startup/firmware/lcd.watermark
- write /sys/class/backlight/pwm-backlight/brightness 0
- insmod /startup/modules/lcd_fb.ko
- insmod /startup/modules/lcd_hw_ctrl.ko
- if property:ro.fac.videocard=TM035KBH08-36 insmod /startup/modules/lcd_panel_TM035KBH08_36.ko
- if property:ro.fac.videocard=08 insmod /startup/modules/lcd_panel_TM035KBH08_36.ko
- on early-boot
- chmod 755 /usr/bin/wpa_supplicant_ap6181
-
- #wifi
- wait /sys/class/mmc_host/mmc0/mmc0:0001
- if property:ro.fac.wifi=03 insmod /startup/modules/bcmdhd.ko firmware_path=/startup/firmware/bcm_ap6181/fw_bcm40181a2.bin nvram_path=/startup/firmware/bcm_ap6181/nvram_ap6181.txt iface_name=wlan0 config_path=/startup/firmware/bcm_ap6181/config.txt PAX_INT_GPIO=48
- if property:ro.fac.wifi=04 insmod /startup/modules/bcmdhd.ko firmware_path=/startup/firmware/bcm_ap6181/fw_bcm43438a0.bin nvram_path=/startup/firmware/bcm_ap6181/nvram_ap6212.txt iface_name=wlan0 config_path=/startup/firmware/bcm_ap6181/config.txt PAX_INT_GPIO=48
- on boot
- if property:ro.fac.wifi!= start wpa_supplicant
-
- service servicemanager /usr/bin/servicemanager
- class core
- user root
- group root
- critical
- onrestart restart systemservice
- onrestart restart ipservice
-
- service wpa_supplicant /usr/bin/logwrapper /usr/bin/wpa_supplicant_ap6181 -Dnl80211 -iwlan0 -c /startup/wpa_supplicant_ap6181.conf
- 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 bsa_server /data/opt/bin/bsa_server -lpm -d /dev/ttybt -p const -u /tmp/ -k /data/var/bluetooth/ap6212_ble_local_keys
- disabled
- user root
- group root
-
- service ipservice /usr/bin/ipservice
- disabled
- user root
- group root
- service pedd /usr/bin/pedd
- user root
- group root
- service modemd /usr/bin/modemd
- disabled
- 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.modemd.enable=1
- start modemd
- on property:persist.sys.modemd.enable=0
- stop modemd
- on property:persist.sys.xcb.enable=1
- start xcb
- on property:persist.sys.xcb.enable=0
- stop xcb
- on property:rt.app.bsa_server.enable=1
- start bsa_server
- on property:rt.app.bsa_server.enable=0
- stop bsa_server
|