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

Commit ed225f65 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't create system fixed, revoked permissions" into qt-dev

parents 5c9415dd 6a59bbe2
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -1173,6 +1173,14 @@ public class PermissionManagerService {
                                    }
                                    }
                                }
                                }


                                if (hardRestricted && !restrictionExempt
                                        && (flags & FLAG_PERMISSION_SYSTEM_FIXED) != 0) {
                                    // Applying a hard restriction implies revoking it. This might
                                    // lead to a system-fixed, revoked permission.
                                    flags &= ~FLAG_PERMISSION_SYSTEM_FIXED;
                                    wasChanged = true;
                                }

                                if (wasChanged) {
                                if (wasChanged) {
                                    updatedUserIds = ArrayUtils.appendInt(updatedUserIds, userId);
                                    updatedUserIds = ArrayUtils.appendInt(updatedUserIds, userId);
                                }
                                }