granularity level: instruction

		.class public Lcom/google/android/gms/common/util/ProcessUtils;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-basement@@18.1.0"


.field private static zza:Ljava/lang/String;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field private static zzb:I


.method static constructor <clinit>()V
	.locals 0

	return-void
.end method

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

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

.method public static getMyProcessName()Ljava/lang/String;
	.locals 5

	sget-object v0, Lcom/google/android/gms/common/util/ProcessUtils;->zza:Ljava/lang/String;
	if-nez v0, :cond_2
	sget v0, Lcom/google/android/gms/common/util/ProcessUtils;->zzb:I
	if-nez v0, :cond_0
	invoke-static {}, Landroid/os/Process;->myPid()I
	move-result v0
	sput v0, Lcom/google/android/gms/common/util/ProcessUtils;->zzb:I
	:cond_0
	const/4 v1, 0x0
	if-gtz v0, :cond_1
	goto :goto_2
	:try_start_0
	:cond_1
	new-instance v2, Ljava/lang/StringBuilder;
	invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
	const-string v3, "/proc/"
	invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
	const-string v0, "/cmdline"
	invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v0
	invoke-static {}, Landroid/os/StrictMode;->allowThreadDiskReads()Landroid/os/StrictMode$ThreadPolicy;
	move-result-object v2
	:try_end_0
	.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_2
	:try_start_1
	new-instance v3, Ljava/io/BufferedReader;
	new-instance v4, Ljava/io/FileReader;
	invoke-direct {v4, v0}, Ljava/io/FileReader;-><init>(Ljava/lang/String;)V
	invoke-direct {v3, v4}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V
	:try_end_1
	.catchall {:try_start_1 .. :try_end_1} :catchall_1
	:try_start_2
	invoke-static {v2}, Landroid/os/StrictMode;->setThreadPolicy(Landroid/os/StrictMode$ThreadPolicy;)V
	:try_end_2
	.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
	.catchall {:try_start_2 .. :try_end_2} :catchall_2
	:try_start_3
	invoke-virtual {v3}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;
	move-result-object v0
	invoke-static {v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
	invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;
	move-result-object v1
	:try_end_3
	.catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_1
	.catchall {:try_start_3 .. :try_end_3} :catchall_0
	goto :goto_1
	:catchall_0
	move-exception v0
	move-object v1, v3
	goto :goto_0
	:catchall_1
	move-exception v0
	:try_start_4
	invoke-static {v2}, Landroid/os/StrictMode;->setThreadPolicy(Landroid/os/StrictMode$ThreadPolicy;)V
	throw v0
	:try_end_4
	.catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_0
	.catchall {:try_start_4 .. :try_end_4} :catchall_2
	:catchall_2
	move-exception v0
	:goto_0
	invoke-static {v1}, Lcom/google/android/gms/common/util/IOUtils;->closeQuietly(Ljava/io/Closeable;)V
	throw v0
	:catch_0
	move-object v3, v1
	:goto_1
	:catch_1
	invoke-static {v3}, Lcom/google/android/gms/common/util/IOUtils;->closeQuietly(Ljava/io/Closeable;)V
	:goto_2
	sput-object v1, Lcom/google/android/gms/common/util/ProcessUtils;->zza:Ljava/lang/String;
	:cond_2
	sget-object v0, Lcom/google/android/gms/common/util/ProcessUtils;->zza:Ljava/lang/String;
	return-object v0
.end method