summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoyster <oysterized@gmail.com>2016-11-06 19:36:59 +0100
committerMoyster <oysterized@gmail.com>2016-11-06 23:46:52 +0100
commitfda5412c40a5d9d45d03ab8314ad00e47315e345 (patch)
tree79754b143b0140e57407f6352419785742ad3195
parentd00cf37b296b59cea4c66be4016e6d7316f21116 (diff)
cleanup init.mt6735.rc
-rw-r--r--rootdir/init.mt6735.rc43
1 files changed, 31 insertions, 12 deletions
diff --git a/rootdir/init.mt6735.rc b/rootdir/init.mt6735.rc
index c59c986..d8da625 100644
--- a/rootdir/init.mt6735.rc
+++ b/rootdir/init.mt6735.rc
@@ -6,19 +6,30 @@ import init.xlog.rc
import init.ssd.rc
import init.modem.rc
+on early-boot
+ # damn this is so easily overlooked
+ mount debugfs debugfs /sys/kernel/debug
+ chmod 0755 /sys/kernel/debug
+
+
on init
+
+ # BATTERY proc
+ chown shell system /proc/mtk_battery_cmd/current_cmd
+ chown shell system /proc/mtk_battery_cmd/discharging_cmd
+
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
mount tmpfs tmpfs /storage/usbotg mode=0755,uid=1000,gid=1000
chmod 0666 /dev/kmsg
-# Temp Backward compatibility
+ # Temp Backward compatibility
mkdir /protect_f 0771 system system
mkdir /protect_s 0771 system system
#create mountpoint for persist partition
mkdir /persist 0771 system system
-#Create nvdata mount point
+ #Create nvdata mount point
mkdir /nvdata 0771 system system
# Temp Backward compatibility
@@ -45,6 +56,9 @@ on init
chown root system /proc/lk_env
chmod 0660 /proc/lk_env
+#usbotg
+ mkdir /mnt/media_rw/usbotg 0700 media_rw media_rw
+ mkdir /storage/usbotg 0700 root root
# mount different fs start
on charger
@@ -71,7 +85,7 @@ on fs
exec /system/bin/chown root:system /dev/block/platform/mtk-msdc.0/by-name/proinfo
exec /system/bin/chmod 0660 /dev/block/platform/mtk-msdc.0/by-name/otp
exec /system/bin/chown root:system /dev/block/platform/mtk-msdc.0/by-name/otp
- exec /system/bin/chmod 0771 /dev/block/platform/mtk-msdc.0/by-name/nvram
+ exec /system/bin/chmod 0660 /dev/block/platform/mtk-msdc.0/by-name/nvram
exec /system/bin/chown root:system /dev/block/platform/mtk-msdc.0/by-name/nvram
exec /system/bin/chmod 0660 /dev/block/platform/mtk-msdc.0/by-name/para
exec /system/bin/chown root:system /dev/block/platform/mtk-msdc.0/by-name/para
@@ -86,8 +100,10 @@ on post-fs
chown root media /proc/clkmgr/mipi_test
#change permission for engineer mode
+ chown radio system /proc/clkmgr/clk_test
chown radio system /proc/clkmgr/pll_test
chown radio system /proc/clkmgr/pll_fsel
+ chown radio system /proc/clkmgr/subsys_test
chmod 0664 /proc/clkmgr/pll_test
chmod 0664 /proc/clkmgr/pll_fsel
#change permission for engineer mode
@@ -194,6 +210,8 @@ on post-fs-data
# RTC
mkdir /data/misc/rtc 0770 system system
+ chown system system /dev/rtc0
+ chmod 0660 /dev/rtc0
# M4U
chmod 0444 /dev/m4u
@@ -273,7 +291,7 @@ on post-fs-data
chown system system /sys/class/misc/m_batch_misc/batchbatch
chown system system /sys/class/misc/m_batch_misc/batchflush
- chmod 0660 /sys/class/misc/m_gyro_misc/gyroenablenodata
+ chmod 0660 /sys/class/misc/m_gyro_misc/gyroenablenodata
chmod 0660 /sys/class/misc/m_gyro_misc/gyroactive
chmod 0660 /sys/class/misc/m_gyro_misc/gyrodelay
chmod 0660 /sys/class/misc/m_gyro_misc/gyrobatch
@@ -348,7 +366,7 @@ on post-fs-data
chown system /sys/devices/platform/msensor/driver/cpsreptz
chown system /sys/devices/platform/gsensor/driver/cpsopmode
chown system /sys/devices/platform/gsensor/driver/cpsrange
- mkdir /data/data/mcube 0664 system system
+ mkdir /data/data/mcube 0664 system system
chown system /sys/class/input/input1/enable
chown system /sys/class/input/input1/delay
@@ -471,6 +489,7 @@ on post-fs-data
#HDMI
chmod 0664 /dev/hdmitx
+ chmod 0660 /dev/hdmitx
# JPEG
#chmod 0444 /dev/mtk_jpeg
@@ -765,7 +784,7 @@ service bugreport /system/bin/dumpstate -d -p -B \
service netdiag /system/bin/netdiag
class main
- socket netdiag stream 0664 root inet
+ socket netdiag stream 0660 root inet
service nvram_daemon /system/bin/nvram_daemon
@@ -786,7 +805,7 @@ service atcid-daemon-u /system/bin/atcid
class main
socket adb_atci_socket stream 660 radio system
user system
- group radio system media
+ group radio system media inet wifi net_admin
disabled
oneshot
@@ -977,11 +996,11 @@ service bluetoothd /system/bin/bluetoothd -n
service mtkbt /system/bin/mtkbt
class late_start
- socket bt.int.adp dgram 660 bluetooth net_bt
- socket bt.a2dp.stream dgram 660 bluetooth net_bt
- user bluetooth
- group system vpn net_admin inet net_raw net_bt bluetooth net_bt_admin net_bt_stack sdcard_r
- oneshot
+ socket bt.int.adp dgram 660 bluetooth net_bt
+ socket bt.a2dp.stream dgram 660 bluetooth net_bt
+ user bluetooth
+ group system vpn net_admin inet net_raw net_bt bluetooth net_bt_admin net_bt_stack sdcard_r
+ oneshot
#