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

Commit ff1e9a9b authored by Mark Chien's avatar Mark Chien Committed by android-build-merger
Browse files

Merge "Expose check write setting operation as system API"

am: 6978df2c

Change-Id: I24398e1a246fe9638c73b4c0a4675c79f1f37257
parents 3e8731d0 6978df2c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6771,6 +6771,7 @@ package android.provider {
  }
  public final class Settings {
    method public static boolean checkAndNoteWriteSettingsOperation(@NonNull android.content.Context, int, @NonNull String, boolean);
    field public static final String ACTION_ACCESSIBILITY_DETAILS_SETTINGS = "android.settings.ACCESSIBILITY_DETAILS_SETTINGS";
    field public static final String ACTION_ENTERPRISE_PRIVACY_SETTINGS = "android.settings.ENTERPRISE_PRIVACY_SETTINGS";
    field public static final String ACTION_LOCATION_CONTROLLER_EXTRA_PACKAGE_SETTINGS = "android.settings.LOCATION_CONTROLLER_EXTRA_PACKAGE_SETTINGS";
+3 −2
Original line number Diff line number Diff line
@@ -15268,8 +15268,9 @@ public final class Settings {
     * current time.
     * @hide
     */
    public static boolean checkAndNoteWriteSettingsOperation(Context context, int uid,
            String callingPackage, boolean throwException) {
    @SystemApi
    public static boolean checkAndNoteWriteSettingsOperation(@NonNull Context context, int uid,
            @NonNull String callingPackage, boolean throwException) {
        return isCallingPackageAllowedToPerformAppOpsProtectedOperation(context, uid,
                callingPackage, throwException, AppOpsManager.OP_WRITE_SETTINGS,
                PM_WRITE_SETTINGS, true);