what-the-bank/sources/com/huawei/hms/hwid/a.java

27 lines
1.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.huawei.hms.hwid;
import android.app.Activity;
import android.content.Context;
import com.huawei.hms.adapter.AvailableAdapter;
/* loaded from: classes2.dex */
public class a {
public static int a() {
return 40004000;
}
public static void a(Activity activity, AvailableAdapter.AvailableCallBack availableCallBack) {
as.b("HmsAccountKitVersionCheckUtil", "====== HMSSDK version: 61100301 ======", true);
Context applicationContext = activity.getApplicationContext();
int a = a();
as.b("HmsAccountKitVersionCheckUtil", "check minVersion:".concat(String.valueOf(a)), true);
AvailableAdapter availableAdapter = new AvailableAdapter(a);
int isHuaweiMobileServicesAvailable = availableAdapter.isHuaweiMobileServicesAvailable(applicationContext);
if (isHuaweiMobileServicesAvailable != 0 && availableAdapter.isUserResolvableError(isHuaweiMobileServicesAvailable)) {
availableAdapter.startResolution(activity, availableCallBack);
} else {
availableCallBack.onComplete(isHuaweiMobileServicesAvailable);
}
}
}