- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
24 lines
834 B
Java
24 lines
834 B
Java
package com.google.firebase.crashlytics.internal.common;
|
|
|
|
import android.content.Context;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class InstallerPackageNameProvider {
|
|
public String installerPackageName;
|
|
|
|
public synchronized String getInstallerPackageName(Context context) {
|
|
try {
|
|
if (this.installerPackageName == null) {
|
|
this.installerPackageName = loadInstallerPackageName(context);
|
|
}
|
|
} finally {
|
|
}
|
|
return "".equals(this.installerPackageName) ? null : this.installerPackageName;
|
|
}
|
|
|
|
public static String loadInstallerPackageName(Context context) {
|
|
String installerPackageName = context.getPackageManager().getInstallerPackageName(context.getPackageName());
|
|
return installerPackageName == null ? "" : installerPackageName;
|
|
}
|
|
}
|