MyRecorder v1.01.90.0219版本的 MD5 值为:c361f51174a0bf833abfa72929caf8d3
以下内容为反编译后的 b.java 源代码,内容仅作参考
package zd;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import com.google.android.gms.auth.api.signin.GoogleSignIn;
import com.google.android.gms.auth.api.signin.GoogleSignInAccount;
import com.google.android.gms.auth.api.signin.GoogleSignInOptions;
import com.google.android.gms.common.api.Scope;
import com.google.android.gms.tasks.OnFailureListener;
import com.google.android.gms.tasks.OnSuccessListener;
import com.google.firebase.crashlytics.FirebaseCrashlytics;
import myrecorder.voicerecorder.voicememos.audiorecorder.recordingapp.R;
import xe.u;
import xe.y;
public class b {
public class a implements OnFailureListener {
public final OnFailureListener f55941a;
public a(OnFailureListener onFailureListener) {
this.f55941a = onFailureListener;
}
@Override
public void onFailure(Exception exc) {
OnFailureListener onFailureListener = this.f55941a;
if (onFailureListener != null) {
onFailureListener.onFailure(exc);
}
StringBuilder sb2 = new StringBuilder();
sb2.append("handleSignInResult e = ");
sb2.append(exc);
he.a.d().e("backup_login_failed");
FirebaseCrashlytics.getInstance().recordException(exc);
}
}
public class C0762b implements OnSuccessListener<GoogleSignInAccount> {
public final Intent f55942a;
public final OnSuccessListener f55943b;
public C0762b(Intent intent, OnSuccessListener onSuccessListener) {
this.f55942a = intent;
this.f55943b = onSuccessListener;
}
@Override
public void onSuccess(GoogleSignInAccount googleSignInAccount) {
StringBuilder sb2 = new StringBuilder();
sb2.append("handleSignInResult result = ");
sb2.append(this.f55942a);
OnSuccessListener onSuccessListener = this.f55943b;
if (onSuccessListener != null) {
onSuccessListener.onSuccess(googleSignInAccount);
}
he.a.d().e("backup_login_success");
}
}
public static GoogleSignInAccount a(Context context) {
return GoogleSignIn.getLastSignedInAccount(context);
}
public static void b(int i10, Intent intent, OnSuccessListener<? super GoogleSignInAccount> onSuccessListener, OnFailureListener onFailureListener) {
if (i10 != 20011 || intent == null) {
return;
}
StringBuilder sb2 = new StringBuilder();
sb2.append("handleSignInResult result = ");
sb2.append(intent.toString());
GoogleSignIn.getSignedInAccountFromIntent(intent).addOnSuccessListener(new C0762b(intent, onSuccessListener)).addOnFailureListener(new a(onFailureListener));
}
public static boolean c(Context context) {
return a(context) != null;
}
public static void d(Context context) {
GoogleSignIn.getClient(context, new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN).requestEmail().requestScopes(new Scope("https://www.googleapis.com/auth/drive.file"), new Scope[0]).build()).signOut();
}
public static void e(Activity activity) {
if (activity == null || !u.c(activity)) {
y.j(activity, R.string.network_error_and_check);
} else {
activity.startActivityForResult(GoogleSignIn.getClient(activity, new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN).requestEmail().requestScopes(new Scope("https://www.googleapis.com/auth/drive.file"), new Scope[0]).build()).getSignInIntent(), 20011);
}
}
}