#Justin Porting End
# network
#insmod /system/vendor/modules/usbnet.ko
#insmod /system/vendor/modules/asix.ko
#insmod /system/vendor/modules/qf9700.ko
#insmod /system/vendor/modules/mcs7830.ko
#insmod /system/vendor/modules/rtl8150.ko
#insmod /system/vendor/modules/cdc_ether.ko
#insmod /system/vendor/modules/smsc75xx.ko
#insmod /system/vendor/modules/smsc95xx.ko
#Justin Porting Start
insmod /system/vendor/modules/bcmdhd.ko
insmod /system/vendor/modules/bcm_btlpm.ko
#Justin Porting End
#bluesleep
#insmod /system/vendor/modules/rtl_btlpm.ko
# bluetooth
# UART device
chmod 0660 /dev/ttyS1
chown bluetooth net_bt_stack /dev/ttyS1
# power up/down interface
chmod 0660 /sys/class/rfkill/rfkill0/state
chmod 0660 /sys/class/rfkill/rfkill0/type
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/type
#Justin Porting Start
# bluetooth MAC address programming
chown bluetooth net_bt_stack ro.bt.bdaddr_path
chown bluetooth net_bt_stack /system/etc/bluetooth
chown bluetooth net_bt_stack /data/misc/bluetooth
setprop ro.bt.bdaddr_path "/data/misc/bluetooth/bdaddr"
#Justin Porting End
# bluetooth LPM
chmod 0220 /proc/bluetooth/sleep/lpm
chmod 0220 /proc/bluetooth/sleep/btwrite
chown bluetooth net_bt_stack /proc/bluetooth/sleep/lpm
chown bluetooth net_bt_stack /proc/bluetooth/sleep/btwrite
#write /proc/bluetooth/sleep/lpm 1
# to observe dnsmasq.leases file for dhcp information of soft ap.
chown dhcp system /data/misc/dhcp
on property:sys.boot_completed=1
chown system system /sys/devices/soc.0/1c2ac00.twi/i2c-0/0-0040/runtime_suspend
chmod 0660 /sys/devices/soc.0/1c2ac00.twi/i2c-0/0-0040/runtime_suspend
#start engsetmacaddr
#start engsetbtmacaddr
#Justin 20160817 Porting for BPI-M64-Root Start
setenforce 0
#Justin 20160817 Porting for BPI-M64-Root End
on post-fs-data
mkdir /data/media 0770 media_rw media_rw
# bluetooth MAC address programming
chown bluetooth net_bt_stack ro.bt.bdaddr_path
chown bluetooth net_bt_stack /system/etc/bluetooth
chown bluetooth net_bt_stack /data/misc/bluetooth
setprop ro.bt.bdaddr_path "/data/misc/bluetooth/bdaddr"
# Set indication (checked by vold) that we have finished this action
setprop vold.post_fs_data_done 1
# to force to start sdcard
#class_start late_start
# This module write data to /data should insmod in post-fs-data
# due to encryption
on boot
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chown system system /sys/kernel/debug/tracing
chmod 0755 /sys/kernel/debug/tracing
chown system system /sys/kernel/autohotplug/enable
chmod 0660 /sys/kernel/autohotplug/enable
chown system system /sys/devices/system/cpu/cpu0/cpufreq/boot_lock
chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/boot_lock
chown system system /sys/devices/soc.0/cpu_budget_cool.17/roomage
chmod 0660 /sys/devices/soc.0/cpu_budget_cool.17/roomage
chown system system /sys/class/devfreq/dramfreq/adaptive/pause
chmod 0660 /sys/class/devfreq/dramfreq/adaptive/pause
on charger
insmod nand.ko
mount_all /fstab.sun50iw1p1
insmod /system/vendor/modules/disp.ko
class_start charger
write /sys/module/printk/parameters/console_suspend N
write /proc/sys/kernel/printk 0
ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL), 1)
service optee /system/bin/tee_supplicant
class core
user root
group root
endif
# broadcom wifi service
# 1 broadcom wifi sta service
service wpa_supplicant /system/bin/wpa_supplicant \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-I/system/etc/wifi/wpa_supplicant_overlay.conf \
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
# 2 broadcom wifi sta p2p concurrent service
service p2p_supplicant /system/bin/wpa_supplicant \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-I/system/etc/wifi/p2p_supplicant_overlay.conf \
-puse_p2p_group_interface=1p2p_device=1use_multi_chan_concurrent=1 \
-m/data/misc/wifi/p2p_supplicant.conf \
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
↧
[BPI-M64] New image: Android 6.0 (Vsersion:V2)
↧