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

Commit 63888fb1 authored by Matt Gilbride's avatar Matt Gilbride Committed by Android (Google) Code Review
Browse files

Merge "@EnforcePermission migrations"

parents 2d671410 c4a45bd7
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -127,13 +127,16 @@ interface INotificationManager
    // INotificationListener method.
    @UnsupportedAppUsage
    StatusBarNotification[] getActiveNotifications(String callingPkg);
    @EnforcePermission("ACCESS_NOTIFICATIONS")
    StatusBarNotification[] getActiveNotificationsWithAttribution(String callingPkg,
            String callingAttributionTag);
    @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
    StatusBarNotification[] getHistoricalNotifications(String callingPkg, int count, boolean includeSnoozed);
    @EnforcePermission("ACCESS_NOTIFICATIONS")
    StatusBarNotification[] getHistoricalNotificationsWithAttribution(String callingPkg,
            String callingAttributionTag, int count, boolean includeSnoozed);

    @EnforcePermission("ACCESS_NOTIFICATIONS")
    NotificationHistory getNotificationHistory(String callingPkg, String callingAttributionTag);

    void registerListener(in INotificationListener listener, in ComponentName component, int userid);
+1 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ interface IAmbientContextManager {
    void registerObserverWithCallback(in AmbientContextEventRequest request,
        String packageName,
        in IAmbientContextObserver observer);
    @EnforcePermission("ACCESS_AMBIENT_CONTEXT_EVENT")
    void unregisterObserver(in String callingPackage);
    void queryServiceStatus(in int[] eventTypes, in String callingPackage,
        in RemoteCallback statusCallback);
+2 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ import android.content.IOnPrimaryClipChangedListener;
interface IClipboard {
    void setPrimaryClip(in ClipData clip, String callingPackage, String attributionTag, int userId,
            int deviceId);
    @EnforcePermission("SET_CLIP_SOURCE")
    void setPrimaryClipAsPackage(in ClipData clip, String callingPackage, String attributionTag,
            int userId, int deviceId, String sourcePackage);
    void clearPrimaryClip(String callingPackage, String attributionTag, int userId, int deviceId);
@@ -46,6 +47,7 @@ interface IClipboard {
    boolean hasClipboardText(String callingPackage, String attributionTag, int userId,
            int deviceId);

    @EnforcePermission("SET_CLIP_SOURCE")
    String getPrimaryClipSource(String callingPackage, String attributionTag, int userId,
            int deviceId);

+2 −0
Original line number Diff line number Diff line
@@ -160,6 +160,7 @@ interface IContentService {
     * @param cname component to identify sync service, must be null if account/providerName are
     * non-null.
     */
    @EnforcePermission("READ_SYNC_STATS")
    @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
    boolean isSyncActive(in Account account, String authority, in ComponentName cname);

@@ -183,6 +184,7 @@ interface IContentService {
     * non-null.
     */
    boolean isSyncPending(in Account account, String authority, in ComponentName cname);
    @EnforcePermission("READ_SYNC_STATS")
    boolean isSyncPendingAsUser(in Account account, String authority, in ComponentName cname,
            int userId);

+1 −0
Original line number Diff line number Diff line
@@ -59,6 +59,7 @@ interface IPackageInstaller {
    void installExistingPackage(String packageName, int installFlags, int installReason,
            in IntentSender statusReceiver, int userId, in List<String> whiteListedPermissions);

    @EnforcePermission("INSTALL_PACKAGES")
    void setPermissionsResult(int sessionId, boolean accepted);

    void bypassNextStagedInstallerCheck(boolean value);
Loading