Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import init.harmony.usb.rc
- on early-init
- mount debugfs debugfs /sys/kernel/debug
- export SECONDARY_STORAGE /storage/microsd
- export EXTERNAL_STORAGE /storage/sdcard0
- mkdir /storage 0775 system sdcard_rw
- mkdir /storage/sdcard0 0000 system system
- mkdir /storage/microsd 0000 system system
- mkdir /mnt/usbdisk 0666 system system
- # for backwards compatibility
- symlink /storage/sdcard0 /sdcard
- symlink /storage/sdcard0 /mnt/sdcard
- symlink /mnt/usbdisk /usbdisk
- symlink /storage/microsd /microsd
- on fs
- # Mount /system rw first to give the filesystem a chance to save a checkpoint
- mount yaffs2 mtd@system /system
- mount yaffs2 mtd@system /system ro remount
- setprop ro.crypto.tmpfs_options size=128m,mode=0771,uid=1000,gid=1000
- mount ext4 /dev/block/mmcblk0p2 /data wait noatime nodiratime noauto_da_alloc nosuid nodev
- mount yaffs2 mtd@cache /cache wait noatime nosuid nodev
- on post-fs-data
- mkdir /data/misc/wifi 0770 wifi wifi
- mkdir /data/misc/wifi/sockets 0770 wifi wifi
- mkdir /data/misc/dhcp 0770 dhcp dhcp
- chown dhcp dhcp /data/misc/dhcp
- # Set indication (checked by vold) that we have finished this action
- setprop vold.post_fs_data_done 1
- on boot
- # bluetooth permissions
- chmod 0660 /dev/ttyHS2
- chown bluetooth bluetooth /dev/ttyHS2
- chmod 0660 /sys/class/rfkill/rfkill0/state
- chmod 0660 /sys/class/rfkill/rfkill0/type
- chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
- chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
- write /sys/class/rfkill/rfkill0/state 0
- symlink /system/lib/hw/wlan/bcm4329B1.hcd /data/BCM4329B1.hcd
- symlink /system/lib/hw/wlan/bcm4329B1.hcd /data/bcm4329B1.hcd
- chmod 0777 /data/bcm4329B1.hcd
- # backlight
- chown system system /sys/class/backlight/pwm-backlight/brightness
- # Sensor
- chmod 666 /dev/tegra_mediaserver
- chmod 666 /dev/tegra_dc_0
- chmod 666 /dev/tegra_dc_1
- chmod 666 /dev/nvhost-ctrl
- chmod 666 /dev/nvhost-display
- chmod 666 /dev/nvhost-dsi
- chmod 666 /dev/nvhost-gr2d
- chmod 666 /dev/nvhost-gr3d
- chmod 666 /dev/nvhost-isp
- chmod 666 /dev/nvhost-mpe
- chmod 666 /dev/nvhost-vi
- chmod 664 /sys/bus/iio/devices/device0/lux
- chmod 664 /sys/bus/iio/devices/device0/proxim_ir
- # Power management settings
- write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 216000
- write /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 1000000
- write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive
- write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 216000
- write /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq 1000000
- write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor interactive
- write /sys/devices/system/cpu/cpufreq/interactive/go_maxspeed_load 80
- # Default Read Ahead value for sdcards
- write /sys/block/mmcblk0/queue/read_ahead_kb 2048
- write /sys/block/mmcblk1/queue/read_ahead_kb 2048
- # GPS
- mkdir /data/gps
- chown system system /data/gps
- chmod 770 /data/gps
- # Swap
- # mkswap /dev/block/zram0
- # swapon /dev/block/zram0
- service wpa_supplicant /system/bin/wpa_supplicant \
- -Dnl80211 -iwlan0 -puse_p2p_group_interface=1 -c/data/misc/wifi/wpa_supplicant.conf -e/data/misc/wifi/entropy.bin
- class main
- socket wpa_wlan0 dgram 660 wifi wifi
- disabled
- oneshot
- service p2p_supplicant /system/bin/wpa_supplicant \
- -Dnl80211 -iwlan0 -puse_p2p_group_interface=1 -c/data/misc/wifi/wpa_supplicant.conf
- class main
- socket wpa_wlan0 dgram 660 wifi wifi
- disabled
- oneshot
- service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL
- class main
- disabled
- oneshot
- service dhcpcd_p2p /system/bin/dhcpcd -aABKL
- class main
- disabled
- oneshot
- service dhcpcd_eth0 /system/bin/dhcpcd -ABKL -f/system/etc/dhcpcd/dhcpcd.conf
- class main
- disabled
- oneshot
- # bluetooth
- service dhcpcd_bnep0 /system/bin/dhcpcd -ABKL
- disabled
- oneshot
- service iprenew_wlan0 /system/bin/dhcpcd -n
- disabled
- oneshot
- service iprenew_p2p /system/bin/dhcpcd -n
- class main
- disabled
- oneshot
- service iprenew_eth0 /system/bin/dhcpcd -n
- class main
- disabled
- oneshot
- #BCM
- service hciattach /system/bin/brcm_patchram_plus --enable_hci \
- --baudrate 921600 --use_baudrate_for_download --patchram /system/etc/firmware/bcm4329.hcd --tosleep 50000 \
- --i2s=1,1,0,1 --enable_lpm /dev/ttyHS2
- class main
- user root
- group system bluetooth net_bt_admin misc
- oneshot
- disabled
- # Enable tcpdump-service
- #service netdump-service /system/xbin/tcpdump -i any -C 5 -p -s 0 -w /sdcard/netdump.cap
- # user root
- # disabled
- #on property:net.netdump.enable=1
- # start netdump-service
- #on property:net.netdump.enable=0
- # stop netdump-service
Add Comment
Please, Sign In to add comment