Skip to content
Snippets Groups Projects
Commit ddf8261a authored by Sumedh Sen's avatar Sumedh Sen Committed by Android (Google) Code Review
Browse files

Merge "Show failure dialog when app can't be installed due to secureFRP" into main

parents 817de880 2e041bef
No related branches found
No related tags found
No related merge requests found
......@@ -290,7 +290,14 @@ public class InstallInstalling extends AlertActivity {
broadcastIntent,
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_MUTABLE);
session.commit(pendingIntent.getIntentSender());
try {
session.commit(pendingIntent.getIntentSender());
} catch (Exception e) {
Log.e(LOG_TAG, "Cannot install package: ", e);
launchFailure(PackageInstaller.STATUS_FAILURE,
PackageManager.INSTALL_FAILED_INTERNAL_ERROR, null);
return;
}
mCancelButton.setEnabled(false);
setFinishOnTouchOutside(false);
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment