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

27 lines
1.1 KiB
Java
Raw Permalink 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 q {
public static int a() {
return 30000000;
}
public static void a(Activity activity, AvailableAdapter.AvailableCallBack availableCallBack) {
as.b("HmsAPKVersionCheckUtil", "====== HMSSDK version: 61100301 ======", true);
Context applicationContext = activity.getApplicationContext();
int a = a();
as.b("HmsAPKVersionCheckUtil", "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);
}
}
}