Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ac32fc5 authored by Nate Myren's avatar Nate Myren
Browse files

Add warning log when failing UpdateUserSensitive

If we fail and retry onUpdateUserSensitivePermissionFlags, log the
failure, and for what user/uid the failure happened for, and what
attempt we are on.

Bug: 11493300
Test: none
Change-Id: I585c4e30aa3753c764ec5be67fff369f58c35080
parent 3220af70
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -587,6 +587,10 @@ public final class PermissionControllerServiceImpl extends PermissionControllerL
        } catch (Exception e) {
            // We specifically want to catch DeadSystemExceptions, but cannot explicitly request
            // them, as it results in a compiler error
            String idString = uid == Process.INVALID_UID
                    ? "user " + Process.myUserHandle().getIdentifier() : "uid " + uid;
            Log.w(LOG_TAG, "Failed to complete user sensitive update for " + idString
                    + ", attempt number " + (numAttempts + 1) + " of " + MAX_RETRY_ATTEMPTS, e);
            if (numAttempts == MAX_RETRY_ATTEMPTS) {
                throw e;
            } else {