正在查看: 万能钥匙 v1.1.23 应用的 StartApp.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 万能钥匙 v1.1.23 应用的 StartApp.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.wifitutu.link.foundation.sdk.service;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import android.os.Process;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.wifitutu.link.foundation.sdk.service.StartApp;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.n;
import lg0.C3065t;
import os.C2647f2;
import tj0.t;
import uj0.a;
import uj0.c;
import uj0.d;
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u0000 \u000e2\u00020\u0001:\u0001\u000eB\u0007¢\u0006\u0004\b\u0002\u0010\u0003J'\u0010\t\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\u00062\u0006\u0010\b\u001a\u00020\u0006H\u0016¢\u0006\u0004\b\t\u0010\nJ\u001b\u0010\f\u001a\u0004\u0018\u00010\u000b2\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004H\u0016¢\u0006\u0004\b\f\u0010\r¨\u0006\u000f"}, d2 = {"Lcom/wifitutu/link/foundation/sdk/service/StartApp;", "Landroid/app/Service;", "<init>", "()V", "Landroid/content/Intent;", "intent", "", "flags", "startId", "onStartCommand", "(Landroid/content/Intent;II)I", "Landroid/os/IBinder;", "onBind", "(Landroid/content/Intent;)Landroid/os/IBinder;", "a", "foundation-sdk_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class StartApp extends Service {
public static final Companion INSTANCE = new Companion(null);
public static final String b = "::foundation::svc::startapp::delay";
public static final String c = "::foundation::svc::startapp::pkgname";
public static ChangeQuickRedirect changeQuickRedirect;
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\u0004\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J\u001d\u0010\u0007\u001a\u00020\u00062\b\b\u0002\u0010\u0005\u001a\u00020\u0004ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\u0007\u0010\bJ\r\u0010\t\u001a\u00020\u0006¢\u0006\u0004\b\t\u0010\u0003R\u0014\u0010\u000b\u001a\u00020\n8\u0002X\u0082D¢\u0006\u0006\n\u0004\b\u000b\u0010\fR\u0014\u0010\r\u001a\u00020\n8\u0002X\u0082D¢\u0006\u0006\n\u0004\b\r\u0010\f\u0082\u0002\u000b\n\u0005\b¡\u001e0\u0001\n\u0002\b\u0019¨\u0006\u000e"}, d2 = {"Lcom/wifitutu/link/foundation/sdk/service/StartApp$a;", "", "<init>", "()V", "Luj0/a;", "delay", "Llg0/e0;", "b", "(J)V", "a", "", "KEY_DELAY", "Ljava/lang/String;", "KEY_PACKAGENAME", "foundation-sdk_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public static final class Companion {
public static ChangeQuickRedirect changeQuickRedirect;
public Companion() {
}
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public static void c(Companion companion, long j, int i, Object obj) {
if (PatchProxy.proxy(new Object[]{companion, new Long(j), new Integer(i), obj}, (Object) null, changeQuickRedirect, true, 15648, new Class[]{Companion.class, Long.TYPE, Integer.TYPE, Object.class}, Void.TYPE).isSupported) {
return;
}
if ((i & 1) != 0) {
a.a aVar = a.b;
j = c.o(0.1d, d.e);
}
companion.b(j);
}
public final void a() {
if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 15649, new Class[0], Void.TYPE).isSupported) {
return;
}
Context c = C2647f2.c(C2647f2.d());
Intent launchIntentForPackage = C2647f2.c(C2647f2.d()).getPackageManager().getLaunchIntentForPackage(C2647f2.d().c().getPackageName());
n.f(launchIntentForPackage);
launchIntentForPackage.addFlags(67108864);
c.startActivity(launchIntentForPackage);
Process.killProcess(Process.myPid());
}
public final void b(long delay) {
if (PatchProxy.proxy(new Object[]{new Long(delay)}, this, changeQuickRedirect, false, 15647, new Class[]{Long.TYPE}, Void.TYPE).isSupported) {
return;
}
a();
}
}
public static final void b(StartApp startApp, String str) {
if (PatchProxy.proxy(new Object[]{startApp, str}, (Object) null, changeQuickRedirect, true, 15646, new Class[]{StartApp.class, String.class}, Void.TYPE).isSupported) {
return;
}
startApp.startActivity(startApp.getPackageManager().getLaunchIntentForPackage(str));
startApp.stopSelf();
}
@Override
public IBinder onBind(Intent intent) {
return null;
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
Object[] objArr = {intent, new Integer(flags), new Integer(startId)};
ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect;
Class cls = Integer.TYPE;
PatchProxyResult proxy = PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 15645, new Class[]{Intent.class, cls, cls}, cls);
if (proxy.isSupported) {
return ((Integer) proxy.result).intValue();
}
long longExtra = intent.getLongExtra(b, 100L);
final String stringExtra = intent.getStringExtra(c);
if (stringExtra == null || t.y(stringExtra)) {
stopSelf();
} else {
C3065t.e().postDelayed(new Runnable() {
@Override
public final void run() {
StartApp.b(StartApp.this, stringExtra);
}
}, longExtra);
}
return super.onStartCommand(intent, flags, startId);
}
}