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

Commit 89f7de19 authored by Nikita Ioffe's avatar Nikita Ioffe
Browse files

Promote NO_ISOLATED_STORAGE app op to SystemApi(MODULE_LIBRARIES)

This app op was introduced to support --no-isolated-storage
instrumentation flag in MediaProvider mainline module. Because it was
very late in the release cycle, app op wasn't exposed as @SystemApi in
rvc-dev, even though there CTS tests written around it, and
MediaProvider module depends on it.

To make things fair, expose it as @SystemApi.

Test: atest CtsScopedStorageHostTest
Bug: 159708202
Change-Id: Ifddf2cb920285eda5f859972937b0f9084fc32a3
parent cef8db0c
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
// Signature format: 2.0
package android.app {

  public class AppOpsManager {
    field public static final String OPSTR_NO_ISOLATED_STORAGE = "android:no_isolated_storage";
  }

}

package android.content.rollback {

  public class RollbackManagerFrameworkInitializer {
+4 −0
Original line number Diff line number Diff line
@@ -1461,8 +1461,12 @@ public class AppOpsManager {
    /**
     * AppOp granted to apps that we are started via {@code am instrument -e --no-isolated-storage}
     *
     * <p>MediaProvider is the only component (outside of system server) that should care about this
     * app op, hence {@code SystemApi.Client.MODULE_LIBRARIES}.
     *
     * @hide
     */
    @SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
    public static final String OPSTR_NO_ISOLATED_STORAGE = "android:no_isolated_storage";

    /** {@link #sAppOpsToNote} not initialized yet for this op */
+8 −0
Original line number Diff line number Diff line
// Signature format: 2.0
package android.app {

  public class AppOpsManager {
    field public static final String OPSTR_NO_ISOLATED_STORAGE = "android:no_isolated_storage";
  }

}

package android.content.rollback {

  public class RollbackManagerFrameworkInitializer {