蘑菇視頻 v1.3.4版本的 MD5 值为:b21956b74446eba74a6fe191899b35cf
以下内容为反编译后的 App.java 源代码,内容仅作参考
package com.asdfg.pfamobgn0329.main;
import Ooooo00.OooOO0O;
import Ooooo00.OooOOO0;
import android.app.Activity;
import android.app.ActivityManager;
import android.app.Application;
import android.os.Bundle;
import android.os.Process;
import com.asdfg.pfamobgn0329.api.ApiClient;
import com.kotlin.bbbasiclib.base.BaseApplicaiton;
import com.kotlin.bbbasiclib.base.oo0oOO;
import com.shuyu.gsyvideoplayer.player.oOo0oooO;
import com.umeng.commonsdk.UMConfigure;
import java.security.SecureRandom;
import java.security.cert.X509Certificate;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLContext;
import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import moe.codeest.enviews.ENPlayView;
import o000o0O0.oo0oOOOo;
import o000oo0o.o00Ooo;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0006\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\b\u0010\u0003\u001a\u00020\u0004H\u0002J\b\u0010\u0005\u001a\u00020\u0006H\u0002J\b\u0010\u0007\u001a\u00020\u0004H\u0002J\b\u0010\b\u001a\u00020\u0004H\u0002J\b\u0010\t\u001a\u00020\u0004H\u0002J\b\u0010\n\u001a\u00020\u0004H\u0016J\b\u0010\u000b\u001a\u00020\u0004H\u0002¨\u0006\f"}, d2 = {"Lcom/asdfg/pfamobgn0329/main/App;", "Lcom/kotlin/bbbasiclib/base/BaseApplicaiton;", "()V", "addActivityLife", "", "getCurrentProcessName", "", "initExoplay", "initLePin", "initUmeng", "onCreate", "trustAllHosts", "app_googleRelease"}, k = 1, mv = {1, 7, 1}, xi = 48)
public final class App extends BaseApplicaiton {
private final void addActivityLife() {
registerActivityLifecycleCallbacks(new Application.ActivityLifecycleCallbacks() {
@Override
public void onActivityCreated(@NotNull Activity p0, @Nullable Bundle bundle) {
Intrinsics.checkNotNullParameter(p0, "p0");
oo0oOO.ooOOOoOo().oo0oOOO0(p0);
}
@Override
public void onActivityDestroyed(@NotNull Activity p0) {
Intrinsics.checkNotNullParameter(p0, "p0");
oo0oOO.ooOOOoOo().oo0oOOOo(p0);
}
@Override
public void onActivityPaused(@NotNull Activity p0) {
Intrinsics.checkNotNullParameter(p0, "p0");
}
@Override
public void onActivityResumed(@NotNull Activity p0) {
Intrinsics.checkNotNullParameter(p0, "p0");
}
@Override
public void onActivitySaveInstanceState(@NotNull Activity p0, @NotNull Bundle p1) {
Intrinsics.checkNotNullParameter(p0, "p0");
Intrinsics.checkNotNullParameter(p1, "p1");
}
@Override
public void onActivityStarted(@NotNull Activity p0) {
Intrinsics.checkNotNullParameter(p0, "p0");
}
@Override
public void onActivityStopped(@NotNull Activity p0) {
Intrinsics.checkNotNullParameter(p0, "p0");
}
});
}
private final String getCurrentProcessName() {
int myPid = Process.myPid();
Object systemService = getApplicationContext().getSystemService("activity");
Intrinsics.checkNotNull(systemService, "null cannot be cast to non-null type android.app.ActivityManager");
String str = "";
for (ActivityManager.RunningAppProcessInfo runningAppProcessInfo : ((ActivityManager) systemService).getRunningAppProcesses()) {
if (runningAppProcessInfo.pid == myPid) {
str = runningAppProcessInfo.processName;
Intrinsics.checkNotNullExpressionValue(str, "process.processName");
}
}
return str;
}
private final void initExoplay() {
}
private final void initLePin() {
ENPlayView.f12230OooOOO = 1;
ENPlayView.f12231OooOOO0 = 1;
}
private final void initUmeng() {
UMConfigure.setLogEnabled(true);
UMConfigure.preInit(this, "635ea60488ccdf4b7e57cefd", "google");
UMConfigure.init(this, "635ea60488ccdf4b7e57cefd", "google", 1, "");
}
private final void trustAllHosts() {
X509TrustManager x509TrustManager = new X509TrustManager() {
@Override
public void checkClientTrusted(@Nullable X509Certificate[] x509CertificateArr, @Nullable String str) {
}
@Override
public void checkServerTrusted(@Nullable X509Certificate[] x509CertificateArr, @Nullable String str) {
}
@Override
@NotNull
public X509Certificate[] getAcceptedIssuers() {
return new X509Certificate[0];
}
};
try {
SSLContext sSLContext = SSLContext.getInstance("TLS");
sSLContext.init(null, new TrustManager[]{x509TrustManager}, new SecureRandom());
HttpsURLConnection.setDefaultSSLSocketFactory(sSLContext.getSocketFactory());
} catch (Exception unused) {
}
}
@Override
public void onCreate() {
super.onCreate();
ActivityAliasUtils activityAliasUtils = ActivityAliasUtils.INSTANCE;
activityAliasUtils.setNowActivityAlias(getPackageName() + ".ui.defalut");
ApiClient.INSTANCE.setRetrofit("https://api.mgsp.ltd");
o00Ooo.oo0oOO(this);
initUmeng();
initLePin();
oOo0oooO.oo0oOOO0(OooOOO0.class);
oo0oOOOo.oo0oOOO0(OooOO0O.class);
initExoplay();
addActivityLife();
trustAllHosts();
}
}