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

Commit 3237779f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Verbose Logging: Add maxTargetSdk"

parents 2bed6dfd 740e68c2
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@ import android.net.wifi.hotspot2.OsuProvider;
import android.net.wifi.hotspot2.PasspointConfiguration;
import android.net.wifi.hotspot2.ProvisioningCallback;
import android.os.Binder;
import android.os.Build;
import android.os.Handler;
import android.os.HandlerExecutor;
import android.os.IBinder;
@@ -4920,7 +4921,10 @@ public class WifiManager {
    }

    /** @hide */
    @UnsupportedAppUsage
    @UnsupportedAppUsage(
            maxTargetSdk = Build.VERSION_CODES.Q,
            publicAlternatives = "Use {@code #setVerboseLoggingEnabled(boolean)} instead."
    )
    @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS)
    public void enableVerboseLogging (int verbose) {
        try {
@@ -4948,7 +4952,10 @@ public class WifiManager {

    /** @hide */
    // TODO(b/145484145): remove once SUW stops calling this via reflection
    @UnsupportedAppUsage
    @UnsupportedAppUsage(
            maxTargetSdk = Build.VERSION_CODES.Q,
            publicAlternatives = "Use {@code #isVerboseLoggingEnabled()} instead."
    )
    public int getVerboseLoggingLevel() {
        try {
            return mService.getVerboseLoggingLevel();