引言
外接设备过多,腾出s0口用作外设通信
修改方案
diff --git a/device/mediatek/mt6771/factory_init.rc b/device/mediatek/mt6771/factory_init.rc
index a1b5d00589..30c54bd849 100755
--- a/device/mediatek/mt6771/factory_init.rc
+++ b/device/mediatek/mt6771/factory_init.rc
@@ -701,13 +701,6 @@ service ueventd /sbin/ueventd
critical
seclabel u:r:ueventd:s0
-service console /system/bin/sh
- class core
- console
- disabled
- user shell
- group shell log readproc
- seclabel u:r:shell:s0
on property:sys.powerctl=*
powerctl ${sys.powerctl}
@@ -720,7 +713,6 @@ on property:ro.debuggable=1
# Give writes to anyone for the trace folder on debug builds.
# The folder is used to store method traces.
chmod 0773 /data/misc/trace
- start console
# adbd is controlled via property triggers in init.<platform>.usb.rc
service adbd /system/bin/adbd --root_seclabel=u:r:su:s0
diff --git a/device/mediatek/mt6771/meta_init.rc b/device/mediatek/mt6771/meta_init.rc
index 52a3872efa..5c23eafd1a 100644
--- a/device/mediatek/mt6771/meta_init.rc
+++ b/device/mediatek/mt6771/meta_init.rc
@@ -590,14 +590,6 @@ service ueventd /sbin/ueventd
critical
seclabel u:r:ueventd:s0
-service console /system/bin/sh
- class core
- console
- disabled
- user shell
- group shell log readproc
- seclabel u:r:shell:s0
-
#Log too much setting
on property:ro.vendor.mtklog_internal=1
setprop vendor.logmuch.value 10000
@@ -606,7 +598,6 @@ on property:ro.debuggable=1
# Give writes to anyone for the trace folder on debug builds.
# The folder is used to store method traces.
chmod 0773 /data/misc/trace
- start console
# adbd is controlled via property triggers in init.<platform>.usb.rc
service adbd /system/bin/adbd --root_seclabel=u:r:su:s0
diff --git a/device/mediatek/mt6771/ueventd.mt6771.rc b/device/mediatek/mt6771/ueventd.mt6771.rc
index 813a1a3de5..8d6bbd4351 100755
--- a/device/mediatek/mt6771/ueventd.mt6771.rc
+++ b/device/mediatek/mt6771/ueventd.mt6771.rc
@@ -136,7 +136,8 @@
/dev/tkcoredrv 0666 root root
-/dev/ttyS1 0660 system root
+/dev/ttyS* 0660 system root
+/dev/ttyS0 0777 system root
/dev/ttyACM* 0666 system system
+++ b/device/mediatek/mt6771/ueventd.mt6771.rc
@@ -136,7 +136,8 @@
/dev/tkcoredrv 0666 root root
-/dev/ttyS1 0660 system root
+/dev/ttyS* 0660 system root
+/dev/ttyS0 0777 system root
/dev/ttyACM* 0666 system system
/dev/ttyUSB* 0666 system system
diff --git a/device/mediateksample/tb8788p1_64_bsp/mid/PS580UX/items.ini b/device/mediateksample/tb8788p1_64_bsp/mid/PS580UX/items.ini
index e5272bebf0..8528794bb3 100755
--- a/device/mediateksample/tb8788p1_64_bsp/mid/PS580UX/items.ini
+++ b/device/mediateksample/tb8788p1_64_bsp/mid/PS580UX/items.ini
@@ -31,8 +31,8 @@
items.start
#######################################################################
#adb.root 0 # 启用adb root功能
-uart.printk 1 #是否打印串口信息
-#persist.uartconsole.enable 1
+uart.printk 0 #是否打印串口信息
+persist.uartconsole.enable 0
#DDR.model 1
LCM ps580_at_icn6202_mipi_2_lvds #所使用屏驱动
#LCM.backlight.level 41 # 默认背光等级
diff --git a/system/core/rootdir/init.rc b/system/core/rootdir/init.rc
index 48d2cd212a..ac19b0e7fc 100755
--- a/system/core/rootdir/init.rc
+++ b/system/core/rootdir/init.rc
@@ -759,22 +759,12 @@ service ueventd /sbin/ueventd
seclabel u:r:ueventd:s0
shutdown critical
-service console /system/bin/sh
- class core
- console
- disabled
- user shell
- group shell log readproc
- seclabel u:r:shell:s0
- setenv HOSTNAME console
-
on property:ro.debuggable=1
# Give writes to anyone for the trace folder on debug builds.
# The folder is used to store method traces.
chmod 0773 /data/misc/trace
# Give reads to anyone for the window trace folder on debug builds.
chmod 0775 /data/misc/wmtrace
- start console
service flash_recovery /system/bin/install-recovery.sh
class main