CheetahGram v8.5.4版本的 MD5 值为:3d14e79cc242c314d3933620ff3ab030
以下内容为反编译后的 mh8.java 源代码,内容仅作参考
package org.telegram.messenger.p110;
import com.google.android.gms.common.api.Status;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
public final class mh8 implements Runnable {
private static final kc2 c = new kc2("RevokeAccessOperation", new String[0]);
private final String a;
private final y35 b = new y35(null);
public mh8(String str) {
this.a = f54.g(str);
}
public static nv3<Status> a(String str) {
if (str == null) {
return pv3.a(new Status(4), null);
}
mh8 mh8Var = new mh8(str);
new Thread(mh8Var).start();
return mh8Var.b;
}
@Override
public final void run() {
Status status = Status.h;
try {
String valueOf = String.valueOf(this.a);
HttpURLConnection httpURLConnection = (HttpURLConnection) 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=")).openConnection();
httpURLConnection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
int responseCode = httpURLConnection.getResponseCode();
if (responseCode == 200) {
status = Status.f;
} else {
c.b("Unable to revoke access!", new Object[0]);
}
kc2 kc2Var = c;
StringBuilder sb = new StringBuilder(26);
sb.append("Response Code: ");
sb.append(responseCode);
kc2Var.a(sb.toString(), new Object[0]);
} catch (IOException e) {
kc2 kc2Var2 = c;
String valueOf2 = String.valueOf(e.toString());
kc2Var2.b(valueOf2.length() != 0 ? "IOException when revoking access: ".concat(valueOf2) : new String("IOException when revoking access: "), new Object[0]);
} catch (Exception e2) {
kc2 kc2Var3 = c;
String valueOf3 = String.valueOf(e2.toString());
kc2Var3.b(valueOf3.length() != 0 ? "Exception when revoking access: ".concat(valueOf3) : new String("Exception when revoking access: "), new Object[0]);
}
this.b.j(status);
}
}