android12 解决user版本无法开机,以及开机弹出错误提示框问题

— a/android12/device/mediateksample/tb8791p1_64/vnd_tb8791p1_64.mk
+++ b/android12/device/mediateksample/tb8791p1_64/vnd_tb8791p1_64.mk
@@ -29,7 +29,7 @@ ifeq ( ( T A R G E T B U I L D V A R I A N T ) , e n g ) K E R N E L D E F C O N F I G ? = t b 8791 p 1 6 4 d e b u g d e f c o n f i g e n d i f i f e q ( (TARGET_BUILD_VARIANT), eng) KERNEL_DEFCONFIG ?= tb8791p1_64_debug_defconfig endif ifeq ( (TARGETBUILDVARIANT),eng)KERNELDEFCONFIG?=tb8791p164debugdefconfigendififeq((TARGET_BUILD_VARIANT), user)
-KERNEL_DEFCONFIG ?= tb8791p1_64_defconfig
+KERNEL_DEFCONFIG ?= tb8791p1_64_defconfig userdebug.config
endif
ifeq ($(TARGET_BUILD_VARIANT), userdebug)
KERNEL_DEFCONFIG ?= tb8791p1_64_defconfig userdebug.config
diff --git a/android13/frameworks/base/services/core/java/com/android/server/wm/ActivityTaskManagerService.java b/android13/frameworks/base/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
old mode 100644
new mode 100755
index 165f25d89ce…1b424725f6a
— a/android13/frameworks/base/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
+++ b/android13/frameworks/base/services/core/java/com/android/server/wm/ActivityTaskManagerService.java
@@ -5707,19 +5707,19 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {

             if (!Build.isBuildConsistent()) {
                 Slog.e(TAG, "Build fingerprint is not consistent, warning user");
  •                mUiHandler.post(() -> {
    
  •                    if (mShowDialogs) {
    
  •                        AlertDialog d = new BaseErrorDialog(mUiContext);
    
  •                        d.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ERROR);
    
  •                        d.setCancelable(false);
    
  •                        d.setTitle(mUiContext.getText(R.string.android_system_label));
    
  •                        d.setMessage(mUiContext.getText(R.string.system_error_manufacturer));
    
  •                        d.setButton(DialogInterface.BUTTON_POSITIVE,
    
  •                                mUiContext.getText(R.string.ok),
    
  •                                mUiHandler.obtainMessage(DISMISS_DIALOG_UI_MSG, d));
    
  •                        d.show();
    
  •                    }
    
  •                });
    

+// mUiHandler.post(() -> {
+// if (mShowDialogs) {
+// AlertDialog d = new BaseErrorDialog(mUiContext);
+// d.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ERROR);
+// d.setCancelable(false);
+// d.setTitle(mUiContext.getText(R.string.android_system_label));
+// d.setMessage(mUiContext.getText(R.string.system_error_manufacturer));
+// d.setButton(DialogInterface.BUTTON_POSITIVE,
+// mUiContext.getText(R.string.ok),
+// mUiHandler.obtainMessage(DISMISS_DIALOG_UI_MSG, d));
+// d.show();
+// }
+// });
}
}
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值