Permalink
Browse files

Show a more descriptive message when vendor.img is out of date

Change-Id: I1bf2f7357fc80c0f4b400e94bb1c8bc8edc82e9d
  • Loading branch information...
beanstown106 authored and xlxfoxxlx committed Nov 13, 2015
1 parent 0c78680 commit 5ac1599ea33ec28fe515447a0af7a4a3bc72db4b
@@ -51,4 +51,7 @@
<string name="permlab_resetBatteryStats">reset battery statistics</string>
<!-- [CHAR LIMIT=NONE] Description of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
<string name="permdesc_resetBatteryStats">Allows an application to reset the current low-level battery use data.</string>
<!-- Vendor mismatched fingerprint warning [CHAR LIMIT=NONE] -->
<string name="system_error_vendorprint">It appears your vendor image may be out of date. Please flash the latest vendor image for your device.</string>
</resources>
@@ -103,4 +103,7 @@
<java-symbol type="anim" name="recent_screen_enter" />
<java-symbol type="anim" name="recent_screen_enter_left" />
<java-symbol type="anim" name="recent_screen_fade_out" />
<!-- Vendor warning -->
<java-symbol type="string" name="system_error_vendorprint" />
</resources>
@@ -1718,7 +1718,7 @@ public void handleMessage(Message msg) {
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.setMessage(mContext.getText(R.string.system_error_vendorprint));
d.setButton(DialogInterface.BUTTON_POSITIVE, mContext.getText(R.string.ok),
obtainMessage(DISMISS_DIALOG_UI_MSG, d));
d.show();

0 comments on commit 5ac1599

Please sign in to comment.