andriod 12 user版本打开debug uart

diff --git a/build/make/core/main.mk b/build/make/core/main.mk
index d325835c5e9..a0da21f2849 100755
--- a/build/make/core/main.mk
+++ b/build/make/core/main.mk
@@ -372,11 +372,11 @@ enable_target_debugging := true
 tags_to_install :=
 ifneq (,$(user_variant))
   # Target is secure in user builds.
-  ADDITIONAL_SYSTEM_PROPERTIES += ro.secure=1
+  ADDITIONAL_SYSTEM_PROPERTIES += ro.secure=0
   ADDITIONAL_SYSTEM_PROPERTIES += security.perf_harden=1
 
   ifeq ($(user_variant),user)
-    ADDITIONAL_SYSTEM_PROPERTIES += ro.adb.secure=1
+    ADDITIONAL_SYSTEM_PROPERTIES += ro.adb.secure=0
   endif
 
   ifeq ($(user_variant),userdebug)
diff --git a/device/qcom/common/rootdir/etc/init.qcom.post_boot.sh b/device/qcom/common/rootdir/etc/init.qcom.post_boot.sh
index 798498a98f0..9faa037eb8a 100644
--- a/device/qcom/common/rootdir/etc/init.qcom.post_boot.sh
+++ b/device/qcom/common/rootdir/etc/init.qcom.post_boot.sh
@@ -5760,7 +5760,7 @@ console_config=`getprop persist.vendor.console.silent.config`
 case "$console_config" in
     "1")
         echo "Enable console config to $console_config"
-        echo 0 > /proc/sys/kernel/printk
+        #echo 0 > /proc/sys/kernel/printk
         ;;
     *)
         echo "Enable console config to $console_config"
diff --git a/device/qcom/taro/taro.mk b/device/qcom/taro/taro.mk
index e1e744d0790..0cf37b3f69f 100644
--- a/device/qcom/taro/taro.mk
+++ b/device/qcom/taro/taro.mk
@@ -20,7 +20,7 @@ TARGET_ENABLE_VM_SUPPORT := true
 # true: earlycon and console enabled
 # false: console explicitly disabled
 # <empty>: default from kernel
-TARGET_CONSOLE_ENABLED ?=
+TARGET_CONSOLE_ENABLED ?= true
 
 $(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
 
diff --git a/kernel_platform/msm-kernel/arch/arm64/configs/vendor/waipio_GKI.config b/kernel_platform/msm-kernel/arch/arm64/configs/vendor/waipio_GKI.config
index 793865ea214..4ac260e8312 100644
--- a/kernel_platform/msm-kernel/arch/arm64/configs/vendor/waipio_GKI.config
+++ b/kernel_platform/msm-kernel/arch/arm64/configs/vendor/waipio_GKI.config
@@ -340,7 +340,7 @@ CONFIG_SENSORS_QTI_AMOLED_ECM=m
 CONFIG_SENSORS_SSC=m
 CONFIG_SERIAL_MSM_GENI=m
 CONFIG_SERIAL_MSM_GENI_CONSOLE=m
-# CONFIG_SERIAL_MSM_GENI_CONSOLE_DEFAULT_ENABLED is not set
+CONFIG_SERIAL_MSM_GENI_CONSOLE_DEFAULT_ENABLED=y
 CONFIG_SERIAL_MSM_GENI_HALF_SAMPLING=y
 CONFIG_SHOW_SUSPEND_EPOCH=m
 #CONFIG_SLIMBUS=m
diff --git a/system/core/rootdir/init.rc b/system/core/rootdir/init.rc
index e0f19acc0f2..6b7fe49d2aa 100644
--- a/system/core/rootdir/init.rc
+++ b/system/core/rootdir/init.rc
@@ -1236,7 +1236,6 @@ service ueventd /system/bin/ueventd
 service console /system/bin/sh
     class core
     console
-    disabled
     user shell
     group shell log readproc
     seclabel u:r:shell:s0
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值