Use the R checkAndNoteWriteSettingsOperation method.

In S, there is a new overload that takes an attribution tag as
well. Don't use this method yet, and add a TODO to call it via
a shim.

Bug: 167645754
Test: m com.android.tethering
Ignore-AOSP-First: needed to sync mainline-prod with AOSP
Change-Id: Ib49a73aa28d3abfc1b8f1cdad84abb022c49efe8
Merged-In: Ib0ac49609e444a53a6fee4575f5078e15f364eef
This commit is contained in:
Lorenzo Colitti
2021-02-25 14:43:21 +09:00
parent 50caf56267
commit 33b3e53faa

View File

@@ -302,8 +302,10 @@ public class TetheringService extends Service {
boolean checkAndNoteWriteSettingsOperation(@NonNull Context context, int uid,
@NonNull String callingPackage, @Nullable String callingAttributionTag,
boolean throwException) {
// TODO: on S and above, pass the attribution tag to Settings instead of throwing it away.
// This will likely require a SettingsShim class.
return Settings.checkAndNoteWriteSettingsOperation(context, uid, callingPackage,
callingAttributionTag, throwException);
throwException);
}
/**