diff --git a/rootdir/init.mt8127.rc b/rootdir/init.mt8127.rc index f23a42e..58f0668 100755 --- a/rootdir/init.mt8127.rc +++ b/rootdir/init.mt8127.rc @@ -1,44 +1,22 @@ import init.mt8127.usb.rc on early-init - # mount debugfs for ftrace - mount debugfs none /sys/kernel/debug - - symlink /data/tombstones /tombstones + mount debugfs debugfs /sys/kernel/debug + chmod 0755 /sys/kernel/debug + wait /dev/.coldboot_done 10 on init - # See storage config details at http://source.android.com/tech/storage/ - # fix non-shell uid process can not access shared-sd - mkdir /mnt/shell 0700 shell shell - - chown shell sdcard_r /mnt/shell - mkdir /mnt/shell/emulated 0700 shell shell - mkdir /mnt/shell/emulated/0 0700 shell shell - mkdir /storage/emulated 0555 root root - - mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw - mkdir /storage/sdcard1 0700 root root - - export EXTERNAL_STORAGE /storage/emulated/legacy - - export EMULATED_STORAGE_SOURCE /mnt/shell/emulated - export EMULATED_STORAGE_TARGET /storage/emulated - - export SECONDARY_STORAGE /storage/sdcard1 - - # Support legacy paths - symlink /storage/emulated/legacy /sdcard - symlink /storage/emulated/legacy /mnt/sdcard - symlink /storage/emulated/legacy /storage/sdcard0 - symlink /mnt/shell/emulated/0 /storage/emulated/legacy - symlink /mnt/shell/emulated/0 /storage/emulated/0 - symlink /storage/sdcard1 /mnt/sdcard2 - export USBOTG_STORAGE /storage/usbotg mount tmpfs tmpfs /mnt/media_rw/ mode=0755,uid=1000,gid=1000 mkdir /mnt/media_rw/usbotg 0700 media_rw media_rw mkdir /storage/usbotg 0700 root root - mkdir /mnt/sqfs 0771 system system + mount tmpfs tmpfs /storage/usbotg mode=0755,uid=1000,gid=1000 + + symlink /sdcard /storage/sdcard0 + symlink /storage/usbdisk /mnt/usbdisk + + export EXTERNAL_STORAGE /sdcard + # Backward compatibility symlink /system/etc /etc @@ -101,16 +79,16 @@ on init chmod 0644 /dev/xt_qtaguid # HWComposer fb0 - chmod 0660 /dev/graphics/fb0 + chmod 0666 /dev/graphics/fb0 chown system graphics /dev/graphics/fb0 # HWComposer Vsync - chmod 0660 /dev/mtkfb_vsync + chmod 0666 /dev/mtkfb_vsync chown system graphics /dev/mtkfb_vsync # HWComposer fence - chmod 0660 /dev/sw_sync + chmod 0666 /dev/sw_sync chown system graphics /dev/sw_sync # Change ION driver permission @@ -209,6 +187,7 @@ on post-fs-data chown media_rw media_rw /data/media chmod 0660 /data/misc/wifi/p2p_supplicant.conf + # dhcp server mkdir /data/misc/dhcp 0770 dhcp wifi chown dhcp wifi /data/misc/dhcp @@ -519,64 +498,6 @@ service akmd09911 /system/bin/akmd09911 group system class main -service GoogleOtaAgent /system/bin/GoogleOtaBinder - class main - user system - group system - -service dhcpcd_bt-pan /system/bin/dhcpcd -BK -dd - class main - user dhcp - group net_admin net_raw - disabled - oneshot - -service dhcpcd_wlan0 /system/bin/dhcpcd -ABK -dd - class main - user dhcp - group net_admin net_raw - disabled - oneshot - -service dhcpcd_p2p /system/bin/dhcpcd -ABK -dd - class main - user dhcp - group net_admin net_raw - disabled - oneshot - -service iprenew_wlan0 /system/bin/dhcpcd -n - class main - user dhcp - group net_admin net_raw - disabled - oneshot - -service iprenew_p2p /system/bin/dhcpcd -n - class main - user dhcp - group net_admin net_raw - disabled - oneshot - -service dhcp6cDNS_wlan0 /system/bin/dhcp6c -c "/etc/wide-dhcpv6/dhcp6cDNS.conf" -Df wlan0 - disabled - oneshot - -service dhcp6c_wlan0 /system/bin/dhcp6c -c "/etc/wide-dhcpv6/dhcp6c.conf" -Df wlan0 - disabled - oneshot - -on property:service.dhcp6c_wlan0.enable=0 - stop dhcp6c_wlan0 - -on property:service.dhcp6c_wlan0.enable=1 - start dhcp6c_wlan0 - -service dhcp6c_PD /system/bin/dhcp6c -c "/etc/wide-dhcpv6/dhcp6cPD.conf" -Df - disabled - oneshot - # thermal service service thermal_manager /system/bin/thermal_manager class main diff --git a/rootdir/ueventd.mt8127.rc b/rootdir/ueventd.mt8127.rc index 34bfad9..1e374b9 100644 --- a/rootdir/ueventd.mt8127.rc +++ b/rootdir/ueventd.mt8127.rc @@ -11,14 +11,115 @@ /dev/sec_ro 0640 root system /dev/recovery 0640 root system /dev/seccfg 0660 root system -/dev/block/mmcblk0 0660 root root -/dev/block/platform/mtk-msdc.0/by-name/PRO_INFO 0660 root system +/dev/block/mmcblk0 0660 root system /dev/trustzone 0660 root drmrpc -/dev/devmap 0444 root media +/dev/devmap 0440 root system /dev/mali 0666 system graphics /dev/gps 0660 gps system -/dev/ttyGS2 0660 bluetooth radio -/dev/dvt-adc 0660 root camera +#change partition permission +/dev/preloader 0640 root system +/dev/bootimg 0640 root system +/dev/recovery 0660 root system +/dev/sec_ro 0640 root system +/dev/kb 0660 root system +/dev/dkb 0660 root system +/dev/seccfg 0660 root system +/dev/pro_info 0660 root system +/dev/otp 0660 root system +/dev/nvram 0660 root system +/dev/misc 0660 root system +/dev/misc2 0660 root system +/dev/block/platform/mtk-msdc.0/by-name/misc2 0660 root system +/dev/block/mmcblk0 0660 root system +/dev/block/mmcblk0boot0 0660 root system +/dev/misc-sd 0660 root system + +#connectivity +/dev/stpwmt 0660 system system +/dev/wmtdetect 0660 system system +/dev/stpbt 0660 bluetooth radio +/dev/stpgps 0660 gps gps +/dev/stpant 0660 system system + +# WIFI +/dev/wmtWifi 0660 system system + +# FMRadio +/dev/fm 0660 system media + +# add the read write right of ttyUSB* +/dev/bus/usb/* 0660 root usb +/dev/ttyUSB0 0660 radio radio +/dev/ttyUSB1 0660 radio radio +/dev/ttyUSB2 0660 radio radio +/dev/ttyUSB3 0660 radio radio +/dev/ttyUSB4 0660 radio radio + +# Anyone can read the logs, but if they're not in the "logs" +# group, then they'll only see log entries for their UID. +/dev/xLog 0600 root root +/dev/log/* 0666 root log +/dev/log/ksystem 0600 root log + +/dev/ccci* 0660 radio radio +/dev/ttyC* 0660 radio radio +/sys/kernel/ccci modem_info 0644 radio radio +/sys/kernel/ccci md1_postfix 0644 radio radio +/sys/kernel/ccci md2_postfix 0644 radio radio +/dev/eemcs* 0660 radio radio +/dev/ccci_pcm_rx 0660 media media +/dev/ccci_pcm_tx 0660 media media +/dev/ccci_aud 0660 media media +/dev/ccci2_aud 0660 media media +/dev/eemcs_aud 0660 media media + +# SGX device node +/dev/pvrsrvkm 0666 root root +/dev/pvr_sync 0666 root root + +# sysfs properties +/sys/devices/platform/leds-mt65xx/leds/green delay_on 0664 system system +/sys/devices/platform/leds-mt65xx/leds/green delay_off 0664 system system +/sys/devices/platform/leds-mt65xx/leds/red delay_on 0664 system system +/sys/devices/platform/leds-mt65xx/leds/red delay_off 0664 system system +/sys/devices/platform/leds-mt65xx/leds/blue delay_on 0664 system system +/sys/devices/platform/leds-mt65xx/leds/blue delay_off 0664 system system + +#GPIO +/dev/mtgpio 0600 radio root + +#MTK BTIF driver +/dev/btif 0600 system system + +#FOR VIA MODEM +/dev/ttySDIO* 0660 radio sdcard_rw +/dev/ttyRB* 0660 radio radio + +# Mali node +/dev/mali 0666 system graphics + +# Change ION driver permission +/dev/ion 0666 system graphics + +#touch +/dev/touch 0660 root system +/dev/hotknot 0660 root system + +#hang_detect +/dev/RT_Monitor 0600 system system +/dev/kick_powerkey 0600 system system + +#MTK In-House TEE +/dev/trustzone 0660 system drmrpc + +# Trusty driver +/dev/trusty-ipc-dev0 0660 system keystore + +/dev/ttyACM0 0660 radio radio + +# RPMB +/dev/block/mmcblk0rpmb 0660 root system + # sysfs properties