granularity level: instruction

		.class public final Landroidx/core/app/AppOpsManagerCompat;
.super Ljava/lang/Object;
.source "AppOpsManagerCompat.java"


.field public static final MODE_ALLOWED:I = 0x0
.field public static final MODE_DEFAULT:I = 0x3
.field public static final MODE_ERRORED:I = 0x2
.field public static final MODE_IGNORED:I = 0x1


.method private constructor <init>()V
	.locals 0

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	return-void
.end method

.method public static noteOp(Landroid/content/Context;Ljava/lang/String;ILjava/lang/String;)I
	.locals 2

	sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
	const/16 v1, 0x13
	if-lt v0, v1, :cond_0
	const-string v0, "appops"
	invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
	move-result-object p0
	check-cast p0, Landroid/app/AppOpsManager;
	invoke-virtual {p0, p1, p2, p3}, Landroid/app/AppOpsManager;->noteOp(Ljava/lang/String;ILjava/lang/String;)I
	move-result p0
	return p0
	:cond_0
	const/4 p0, 0x1
	return p0
.end method

.method public static noteOpNoThrow(Landroid/content/Context;Ljava/lang/String;ILjava/lang/String;)I
	.locals 2

	sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
	const/16 v1, 0x13
	if-lt v0, v1, :cond_0
	const-string v0, "appops"
	invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
	move-result-object p0
	check-cast p0, Landroid/app/AppOpsManager;
	invoke-virtual {p0, p1, p2, p3}, Landroid/app/AppOpsManager;->noteOpNoThrow(Ljava/lang/String;ILjava/lang/String;)I
	move-result p0
	return p0
	:cond_0
	const/4 p0, 0x1
	return p0
.end method

.method public static noteProxyOp(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)I
	.locals 2

	sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
	const/16 v1, 0x17
	if-lt v0, v1, :cond_0
	const-class v0, Landroid/app/AppOpsManager;
	invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/Class;)Ljava/lang/Object;
	move-result-object p0
	check-cast p0, Landroid/app/AppOpsManager;
	invoke-virtual {p0, p1, p2}, Landroid/app/AppOpsManager;->noteProxyOp(Ljava/lang/String;Ljava/lang/String;)I
	move-result p0
	return p0
	:cond_0
	const/4 p0, 0x1
	return p0
.end method

.method public static noteProxyOpNoThrow(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)I
	.locals 2

	sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
	const/16 v1, 0x17
	if-lt v0, v1, :cond_0
	const-class v0, Landroid/app/AppOpsManager;
	invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/Class;)Ljava/lang/Object;
	move-result-object p0
	check-cast p0, Landroid/app/AppOpsManager;
	invoke-virtual {p0, p1, p2}, Landroid/app/AppOpsManager;->noteProxyOpNoThrow(Ljava/lang/String;Ljava/lang/String;)I
	move-result p0
	return p0
	:cond_0
	const/4 p0, 0x1
	return p0
.end method

.method public static permissionToOp(Ljava/lang/String;)Ljava/lang/String;
	.locals 2

	sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
	const/16 v1, 0x17
	if-lt v0, v1, :cond_0
	invoke-static {p0}, Landroid/app/AppOpsManager;->permissionToOp(Ljava/lang/String;)Ljava/lang/String;
	move-result-object p0
	return-object p0
	:cond_0
	const/4 p0, 0x0
	return-object p0
.end method