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

Commit 6978df2c authored by Mark Chien's avatar Mark Chien Committed by Gerrit Code Review
Browse files

Merge "Expose check write setting operation as system API"

parents b5d04cb6 e64a7991
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);