41 lines
1.4 KiB
Java
41 lines
1.4 KiB
Java
package com.huawei.hms.stats;
|
|
|
|
import com.huawei.hms.support.log.HMSLog;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class HianalyticsExist {
|
|
private static final Object a = new Object();
|
|
private static boolean b = false;
|
|
private static boolean c = false;
|
|
|
|
public static boolean isHianalyticsExist() {
|
|
boolean z;
|
|
synchronized (a) {
|
|
if (!b) {
|
|
boolean z2 = false;
|
|
try {
|
|
Class.forName("com.huawei.hianalytics.process.HiAnalyticsInstance");
|
|
z = true;
|
|
} catch (ClassNotFoundException unused) {
|
|
HMSLog.i("HianalyticsExist", "In isHianalyticsExist, Failed to find class HiAnalyticsConfig.");
|
|
z = false;
|
|
}
|
|
try {
|
|
Class.forName("com.huawei.hms.hatool.HmsHiAnalyticsUtils");
|
|
z2 = true;
|
|
} catch (ClassNotFoundException unused2) {
|
|
HMSLog.i("HianalyticsExist", "In isHianalyticsExist, Failed to find class HmsHiAnalyticsUtils.");
|
|
}
|
|
if (z && !z2) {
|
|
c = true;
|
|
}
|
|
b = true;
|
|
StringBuilder sb = new StringBuilder("hianalytics exist: ");
|
|
sb.append(c);
|
|
HMSLog.i("HianalyticsExist", sb.toString());
|
|
}
|
|
}
|
|
return c;
|
|
}
|
|
}
|