Gota (fota), a version of Chrome bookmarks that has never been pre-made, is upgraded online to the version of pre-made Chrome bookmarks. Open Chrome and click on the bookmark. The "Chrome keeps stopping" permission error appears on the interface .
The reason is that the partnerbookmarks project of preset bookmarks uses mk files and adopts the platform signature, and declares the authority to refer to the relevant interface. Since there is no signature of the platform before the Gota upgrade, it will report a permission error.
As a workaround, if the interface is not obtained, manually catch the exception and do not perform bookmark preset operation.
It should be noted that with this method, the Gota upgraded software version will not have Chrome bookmark presets.
packages/providers/PartnerBookmarksProvider/src/com/android/providers/partnerbookmarks/PartnerBookmarksProvider.java
CarrierConfigManager configManager = (CarrierConfigManager) getContext().getSystemService(
Context.CARRIER_CONFIG_SERVICE);
int subId = SubscriptionManager.getDefaultDataSubscriptionId();
if (configManager != null) {
//+PAN-20766, add, catch GOTA update SecurityException
try {
PersistableBundle pb = configManager.getConfigForSubId(subId);
if (pb != null) {
carrierConfigBookMarksFolderName = pb.getString(CarrierConfigManager.KEY_BOOK_MARK_FOLDER_NAME);
carrierConfigBookMarks = pb.getStringArray(CarrierConfigManager.KEY_BOOK_MARK_DATAS);
Log.d(TAG, "chentest [prepareForConfiguration] KEY_BOOK_MARK_FOLDER_NAME="
+carrierConfigBookMarksFolderName+" KEY_BOOK_MARK_DATAS="+carrierConfigBookMarks);
}
} catch (SecurityException e) {
Log.d(TAG, "chentest [prepareForConfiguration] SecurityException");
e.printStackTrace ();
}
//-PAN-20766, add, catch GOTA update SecurityException
}