package X; import com.bytedance.covode.number.Covode; import com.google.android.gms.common.api.Status; import java.io.IOException; import java.net.HttpURLConnection; import java.net.URL; import java.net.URLConnection; import javax.net.ssl.HttpsURLConnection; /* renamed from: X.F8a reason: case insensitive filesystem */ public final class RunnableC38447F8a implements Runnable { public static final C191257fO LIZIZ = new C191257fO("RevokeAccessOperation"); public final F90 LIZ = new F90(null); public final String LIZJ; static { Covode.recordClassIndex(36025); } public RunnableC38447F8a(String str) { this.LIZJ = F6B.LIZ(str); } /* JADX WARNING: Removed duplicated region for block: B:29:0x008a A[Catch:{ IOException -> 0x00b0, Exception -> 0x0095 }] */ public final void run() { R r; HttpURLConnection httpURLConnection; URLConnection uRLConnection; Status status = Status.LIZJ; try { String valueOf = String.valueOf(this.LIZJ); URL url = new URL(valueOf.length() != 0 ? "https://accounts.google.com/o/oauth2/revoke?token=".concat(valueOf) : new String("https://accounts.google.com/o/oauth2/revoke?token=")); C17990nc<URL, URLConnection> LJIIL = AnonymousClass1NM.LJ.LJIIL(new C17990nc<>(url, null, null, EnumC17980nb.CONTINUE)); if (LJIIL.LJFF == EnumC17980nb.INTERCEPT && LJIIL.LIZIZ != null) { r = LJIIL.LIZIZ; if (r instanceof HttpsURLConnection) { uRLConnection = new C17930nW(r); } else { if (r instanceof HttpURLConnection) { uRLConnection = new C17920nV(r); } httpURLConnection = (HttpURLConnection) r; httpURLConnection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); if (httpURLConnection.getResponseCode() == 200) { } LIZIZ.LIZ(); this.LIZ.LIZ((F9P) status); } } else if (LJIIL.LJFF != EnumC17980nb.EXCEPTION || LJIIL.LJ == null) { r = url.openConnection(); if (r instanceof HttpsURLConnection) { uRLConnection = new C17930nW((HttpsURLConnection) r); } else { if (r instanceof HttpURLConnection) { uRLConnection = new C17920nV((HttpURLConnection) r); } httpURLConnection = (HttpURLConnection) r; httpURLConnection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); if (httpURLConnection.getResponseCode() == 200) { status = Status.LIZ; } LIZIZ.LIZ(); this.LIZ.LIZ((F9P) status); } } else { throw LJIIL.LJ; } r = uRLConnection; httpURLConnection = (HttpURLConnection) r; httpURLConnection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); if (httpURLConnection.getResponseCode() == 200) { } LIZIZ.LIZ(); } catch (IOException e) { String valueOf2 = String.valueOf(e.toString()); if (valueOf2.length() != 0) { "IOException when revoking access: ".concat(valueOf2); } else { new String("IOException when revoking access: "); } } catch (Exception e2) { String valueOf3 = String.valueOf(e2.toString()); if (valueOf3.length() != 0) { "Exception when revoking access: ".concat(valueOf3); } else { new String("Exception when revoking access: "); } } this.LIZ.LIZ((F9P) status); } }