RK3288[android 7.1]解决“您的设备内部出现了问题,请联系您的设备制造商了解详情。”

实际上除了开机有这样的提示外,手机并没有异常。开机过程中系统会检测/system/build.prop 和 /vendor/build.prop,如果发现不一致的地方,就会提示报错,实际不影响使用,如果您一定要去除这个的话,可以参考以下方法:

在路径为/frameworks/base/services/core/java/com/android/server/am/ActivityManagerService.java这个文件中屏蔽以下几句代码

diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/androi
index 9fbd87d..250c824 100755
--- a/services/core/java/com/android/server/am/ActivityManagerService.java
+++ b/services/core/java/com/android/server/am/ActivityManagerService.java
@@ -1715,14 +1715,14 @@ public final class ActivityManagerService extends ActivityManagerNative
             } break;
             case SHOW_FINGERPRINT_ERROR_UI_MSG: {
                 if (mShowDialogs) {
-                    AlertDialog d = new BaseErrorDialog(mContext);
-                    d.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ERROR);
-                    d.setCancelable(false);
-                    d.setTitle(mContext.getText(R.string.android_system_label));
-                    d.setMessage(mContext.getText(R.string.system_error_manufacturer));
-                    d.setButton(DialogInterface.BUTTON_POSITIVE, mContext.getText(R.string.ok),
-                            obtainMessage(DISMISS_DIALOG_UI_MSG, d));
-                    d.show();
+                    // AlertDialog d = new BaseErrorDialog(mContext);
+                    // d.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ERROR);
+                    // d.setCancelable(false);
+                    // d.setTitle(mContext.getText(R.string.android_system_label));
+                    // d.setMessage(mContext.getText(R.string.system_error_manufacturer));//system_error_manufacture这个字符串布局就是“您的设备内部出现了问题,请联系您的设备制造商了解详情。”所以屏蔽就不会有这个提示
+                    // d.setButton(DialogInterface.BUTTON_POSITIVE, mContext.getText(R.string.ok),
+                    //         obtainMessage(DISMISS_DIALOG_UI_MSG, d));
+                    // d.show();
                 }
             } break;

在路径为/frameworks/base/core/res/res/values-zh-rCN/strings.xml中可以看到中文这句话的布局

 <string name="system_error_manufacturer" msgid="8086872414744210668">"您的设备内部出现了问题。请联系您的设备制造商了解详情。"</string>

在路径为/frameworks/base/core/res/res/values-en-rIN/strings.xml中可以看到英文这句话的布局

<string name="system_error_manufacturer" msgid="8086872414744210668">"There's an internal problem with your device. Contact your manufacturer for details."</string>

Leave a Reply

Your email address will not be published. Required fields are marked *

曠怡亭口占

流轉知何世,江山尚此亭。

登臨皆曠士,喪亂有遺經。

已識乾坤大,猶憐草木青。

長空送鳥印,留幻與人靈。

Featured Posts