RK3288android 7.1 调试笔记 解决出现“There’s an internal problem with your device. Contact your manufacturer”

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

1.make clean 之后重新 编译android 源码。

 

2.修改 /frameworks/base/services/core/java/com/android/server/am/ActivityManagerService.java 源码


-                   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();


 

你可能感兴趣的:(Android)