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

Commit f48d794e authored by mattgilbride's avatar mattgilbride
Browse files

@EnforcePermission migrations - services.core

Immediate calls to Context.enforceCallingPermission.  Fixes
applied by Android Lint (ag/18432857).

Bug: 232058525
Test: N/A
Change-Id: Id9bdeb71e84962d55fd1657e91856d84e1c3d11b
parent b37c41d3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -235,5 +235,6 @@ interface INotificationManager
    void setListenerFilter(in ComponentName cn, int userId, in NotificationListenerFilter nlf);
    void migrateNotificationFilter(in INotificationListener token, int defaultTypes, in List<String> disallowedPkgs);

    @EnforcePermission("MANAGE_TOAST_RATE_LIMITING")
    void setToastRateLimitingEnabled(boolean enable);
}
+1 −0
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ interface ITrustManager {
    void setDeviceLockedForUser(int userId, boolean locked);
    boolean isDeviceLocked(int userId, int displayId);
    boolean isDeviceSecure(int userId, int displayId);
    @EnforcePermission("TRUST_LISTENER")
    boolean isTrustUsuallyManaged(int userId);
    void unlockedByBiometricForUser(int userId, in BiometricSourceType source);
    void clearAllBiometricRecognized(in BiometricSourceType target, int unlockedUser);
+3 −0
Original line number Diff line number Diff line
@@ -23,9 +23,12 @@ interface IColorDisplayManager {
    boolean isDeviceColorManaged();

    boolean setSaturationLevel(int saturationLevel);
    @EnforcePermission("CONTROL_DISPLAY_COLOR_TRANSFORMS")
    boolean setAppSaturationLevel(String packageName, int saturationLevel);
    @EnforcePermission("CONTROL_DISPLAY_COLOR_TRANSFORMS")
    boolean isSaturationActivated();

    @EnforcePermission("CONTROL_DISPLAY_COLOR_TRANSFORMS")
    int getTransformCapabilities();

    boolean isNightDisplayActivated();
+1 −0
Original line number Diff line number Diff line
@@ -80,6 +80,7 @@ interface IPermissionManager {
            long revokeAfterKilledDelay, int importanceToResetTimer,
            int importanceToKeepSessionAlive);

    @EnforcePermission("MANAGE_ONE_TIME_PERMISSION_SESSIONS")
    void stopOneTimePermissionSession(String packageName, int userId);

    List<String> getAutoRevokeExemptionRequestedPackages(int userId);
+1 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ import java.util.List;
 * @hide
 */
interface IFontManager {
    @EnforcePermission("UPDATE_FONTS")
    FontConfig getFontConfig();

    int updateFontFamily(in List<FontUpdateRequest> request, int baseVersion);
Loading