1import init.${ro.hardware}.usb.rc 2 3on early-init 4# copy from goldfish 5 write /proc/sys/vm/min_free_kbytes 10240 6 7on init 8 # mount debugfs 9 mount debugfs /sys/kernel/debug /sys/kernel/debug mode=755 10 11 # switch USB to peripheral 12 write /sys/kernel/debug/hisi_inno_phy/role "peripheral" 13 14on fs 15 #mount_all /vendor/etc/fstab.Hi3559A 16 mount_all /vendor/etc/fstab.Hi3516DV300 17 swapon_all /vendor/etc/fstab.Hi3516DV300 18 19 # hos partition 20 #chown root root /hos 21 #chmod 777 /hos 22 #restorecon_recursive /hos 23 24 # insmod hisi ko 25 insmod /vendor/modules/hi_securec.ko 26 insmod /vendor/modules/hi_osal.ko anony=1 mmz_allocator=hisi mmz=anonymous,0,0xA8000000,384M || report_error 27 insmod /vendor/modules/hi_irq.ko 28 insmod /vendor/modules/hi_proc.ko 29 30 insmod /vendor/modules/sys_config.ko chip=hi3516dv300 sensors=sns0=imx335,sns1=NULL,g_cmos_yuv_flag=0 31 insmod /vendor/modules/hi3516cv500_base.ko 32 insmod /vendor/modules/hi3516cv500_sys.ko 33 insmod /vendor/modules/hi3516cv500_tde.ko 34 insmod /vendor/modules/hi3516cv500_vo_dev.ko 35 insmod /vendor/modules/hifb.ko video="hifb:vram0_size:16200" 36 37 insmod /vendor/modules/hi3516cv500_hdmi.ko 38 insmod /vendor/modules/hi_mipi_rx.ko 39 insmod /vendor/modules/hi3516cv500_drm.ko 40 41on boot 42 chmod 777 /dev/ttyAMA2 43 chmod 775 /sys/class/rfkill/rfkill0/state 44 chmod 777 /dev/rtkbt_dev 45 46 chmod 0440 /proc/interrupts 47 chmod 0440 /proc/stat 48 49 chmod 0640 /dev/xt_qtaguid 50 chmod 0660 /proc/net/xt_qtaguid/ctrl 51 chmod 0440 /proc/net/xt_qtaguid/stats 52 chmod 666 /dev/mali0 53 chown system graphics /dev/mali0 54 chown system graphics /dev/graphics/fb0 55 chmod 666 /dev/ion 56 chown system system /dev/ion 57 # FIXME temp modify for nonencrypted 58 class_start main 59 class_start late_start 60 61 62# zygote need to be started after otapreopt which will be done on post-fs-data 63on zygote-start 64 # zygote is started in common init.rc 65 # and now we can continue initialize /data/ 66 67 # Create the directories used by the Wireless subsystem 68 mkdir /data/vendor/wifi 0771 wifi wifi 69 mkdir /data/vendor/wifi/wpa 0770 wifi wifi 70 mkdir /data/vendor/wifi/wpa/sockets 0770 wifi wifi 71 72#on property:sys.boot_completed=1 && property:sys.logbootcomplete=1 73# chmod 0666 /dev/hal_ion_vb_server 74 75 76#service hi_server_msghdr /vendor/bin/server_msghdr 77# class main 78# user root 79# group root system audio graphics 80# oneshot 81