正在查看: Uptodown App Store v6.80 应用的 AppFilesActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Uptodown App Store v6.80 应用的 AppFilesActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.uptodown.activities;
import M1.C0446a;
import N1.k;
import W1.C0534f;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import android.view.View;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
import androidx.lifecycle.LifecycleCoroutineScope;
import androidx.lifecycle.LifecycleOwnerKt;
import androidx.recyclerview.widget.DefaultItemAnimator;
import androidx.recyclerview.widget.LinearLayoutManager;
import c2.C0579f;
import com.uptodown.UptodownApp;
import com.uptodown.activities.AppFilesActivity;
import f2.InterfaceC0920c;
import g2.C0948I;
import g2.C0953d;
import g2.C0969u;
import java.io.File;
import java.util.ArrayList;
import u2.C1233m;
public final class AppFilesActivity extends AbstractC0740a {
private C0953d L;
private final LifecycleCoroutineScope J = LifecycleOwnerKt.getLifecycleScope(this);
private final R2.g K = R2.h.a(new d3.a() {
@Override
public final Object invoke() {
C0579f j32;
j32 = AppFilesActivity.j3(AppFilesActivity.this);
return j32;
}
});
private a M = new a();
public static final class a implements InterfaceC0920c {
a() {
}
@Override
public void a(C0969u fileInfo) {
kotlin.jvm.internal.m.e(fileInfo, "fileInfo");
if (!UptodownApp.F.a0() || fileInfo.c() == null || AppFilesActivity.this.isFinishing()) {
return;
}
AppFilesActivity.this.o3(fileInfo);
}
}
static final class b extends kotlin.coroutines.jvm.internal.d {
Object a;
Object b;
Object c;
int e;
b(V2.d dVar) {
super(dVar);
}
@Override
public final Object invokeSuspend(Object obj) {
this.c = obj;
this.e |= Integer.MIN_VALUE;
return AppFilesActivity.this.l3(this);
}
}
static final class c extends kotlin.coroutines.jvm.internal.l implements d3.p {
int a;
c(V2.d dVar) {
super(2, dVar);
}
@Override
public final V2.d create(Object obj, V2.d dVar) {
return AppFilesActivity.this.new c(dVar);
}
@Override
public final Object invokeSuspend(Object obj) {
W2.b.c();
if (this.a != 0) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
R2.n.b(obj);
AppFilesActivity.this.k3().c.setVisibility(0);
return R2.s.a;
}
@Override
public final Object invoke(o3.J j, V2.d dVar) {
return ((c) create(j, dVar)).invokeSuspend(R2.s.a);
}
}
static final class d extends kotlin.coroutines.jvm.internal.l implements d3.p {
int a;
final ArrayList c;
d(ArrayList arrayList, V2.d dVar) {
super(2, dVar);
this.c = arrayList;
}
@Override
public final V2.d create(Object obj, V2.d dVar) {
return AppFilesActivity.this.new d(this.c, dVar);
}
@Override
public final Object invokeSuspend(Object obj) {
ApplicationInfo applicationInfo;
W2.b.c();
if (this.a != 0) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
R2.n.b(obj);
try {
PackageManager packageManager = AppFilesActivity.this.getPackageManager();
kotlin.jvm.internal.m.d(packageManager, "getPackageManager(...)");
C0953d c0953d = AppFilesActivity.this.L;
kotlin.jvm.internal.m.b(c0953d);
String o = c0953d.o();
kotlin.jvm.internal.m.b(o);
applicationInfo = W1.s.a(packageManager, o, 0);
} catch (PackageManager.NameNotFoundException unused) {
applicationInfo = null;
}
if (applicationInfo != null) {
File file = new File(applicationInfo.sourceDir);
C0969u c0969u = new C0969u();
c0969u.e(applicationInfo.sourceDir);
c0969u.f(C0534f.a.e(applicationInfo.sourceDir));
c0969u.g(file.length());
this.c.add(c0969u);
u2.v a = u2.v.v.a(AppFilesActivity.this);
a.a();
C0953d c0953d2 = AppFilesActivity.this.L;
kotlin.jvm.internal.m.b(c0953d2);
c0953d2.J(applicationInfo, a);
C0953d c0953d3 = AppFilesActivity.this.L;
kotlin.jvm.internal.m.b(c0953d3);
if (c0953d3.v() != null) {
ArrayList arrayList = this.c;
C0953d c0953d4 = AppFilesActivity.this.L;
kotlin.jvm.internal.m.b(c0953d4);
ArrayList v = c0953d4.v();
kotlin.jvm.internal.m.b(v);
arrayList.addAll(v);
}
C0953d c0953d5 = AppFilesActivity.this.L;
kotlin.jvm.internal.m.b(c0953d5);
c0953d5.I(a);
C0953d c0953d6 = AppFilesActivity.this.L;
kotlin.jvm.internal.m.b(c0953d6);
if (c0953d6.n() != null) {
ArrayList arrayList2 = this.c;
C0953d c0953d7 = AppFilesActivity.this.L;
kotlin.jvm.internal.m.b(c0953d7);
ArrayList n = c0953d7.n();
kotlin.jvm.internal.m.b(n);
arrayList2.addAll(n);
}
a.i();
}
return R2.s.a;
}
@Override
public final Object invoke(o3.J j, V2.d dVar) {
return ((d) create(j, dVar)).invokeSuspend(R2.s.a);
}
}
static final class e extends kotlin.coroutines.jvm.internal.l implements d3.p {
int a;
final ArrayList c;
e(ArrayList arrayList, V2.d dVar) {
super(2, dVar);
this.c = arrayList;
}
@Override
public final V2.d create(Object obj, V2.d dVar) {
return AppFilesActivity.this.new e(this.c, dVar);
}
@Override
public final Object invokeSuspend(Object obj) {
W2.b.c();
if (this.a != 0) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
R2.n.b(obj);
AppFilesActivity.this.k3().e.setAdapter(new C0446a(this.c, AppFilesActivity.this.M));
AppFilesActivity.this.k3().c.setVisibility(8);
return R2.s.a;
}
@Override
public final Object invoke(o3.J j, V2.d dVar) {
return ((e) create(j, dVar)).invokeSuspend(R2.s.a);
}
}
static final class f extends kotlin.coroutines.jvm.internal.l implements d3.p {
int a;
f(V2.d dVar) {
super(2, dVar);
}
@Override
public final V2.d create(Object obj, V2.d dVar) {
return AppFilesActivity.this.new f(dVar);
}
@Override
public final Object invokeSuspend(Object obj) {
Object c = W2.b.c();
int i = this.a;
if (i == 0) {
R2.n.b(obj);
AppFilesActivity appFilesActivity = AppFilesActivity.this;
this.a = 1;
if (appFilesActivity.l3(this) == c) {
return c;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
R2.n.b(obj);
}
return R2.s.a;
}
@Override
public final Object invoke(o3.J j, V2.d dVar) {
return ((f) create(j, dVar)).invokeSuspend(R2.s.a);
}
}
public static final class g implements f2.V {
final C0969u b;
g(C0969u c0969u) {
this.b = c0969u;
}
@Override
public void a(C0948I reportVT) {
kotlin.jvm.internal.m.e(reportVT, "reportVT");
Intent intent = new Intent((Context) AppFilesActivity.this, (Class<?>) VirusTotalReport.class);
intent.putExtra("app_selected", AppFilesActivity.this.L);
intent.putExtra("appReportVT", reportVT);
AppCompatActivity appCompatActivity = AppFilesActivity.this;
appCompatActivity.startActivity(intent, UptodownApp.F.a(appCompatActivity));
}
@Override
public void b() {
if (this.b.c() == null || AppFilesActivity.this.isFinishing()) {
return;
}
u2.p pVar = new u2.p();
AppCompatActivity appCompatActivity = AppFilesActivity.this;
C1233m c1233m = new C1233m();
String c = this.b.c();
kotlin.jvm.internal.m.b(c);
pVar.p(appCompatActivity, c1233m.u(c), AppFilesActivity.this.getString(2131952841));
}
}
public static final C0579f j3(AppFilesActivity appFilesActivity) {
return C0579f.c(appFilesActivity.getLayoutInflater());
}
public final C0579f k3() {
return (C0579f) this.K.getValue();
}
public final java.lang.Object l3(V2.d r9) {
throw new UnsupportedOperationException("Method not decompiled: com.uptodown.activities.AppFilesActivity.l3(V2.d):java.lang.Object");
}
public static final void m3(AppFilesActivity appFilesActivity, View view) {
if (UptodownApp.F.a0()) {
appFilesActivity.getOnBackPressedDispatcher().onBackPressed();
}
}
public static final void n3(View view) {
}
public final void o3(C0969u c0969u) {
new b2.m(this, null, c0969u.c(), new g(c0969u), LifecycleOwnerKt.getLifecycleScope(this));
}
private final void p3() {
u2.I i = u2.I.a;
C0953d c0953d = this.L;
kotlin.jvm.internal.m.b(c0953d);
k3().b.setImageDrawable(i.k(this, c0953d.o()));
TextView textView = k3().g;
C0953d c0953d2 = this.L;
kotlin.jvm.internal.m.b(c0953d2);
textView.setText(c0953d2.m());
TextView textView2 = k3().g;
k.a aVar = N1.k.g;
textView2.setTypeface(aVar.w());
TextView textView3 = k3().h;
C0953d c0953d3 = this.L;
kotlin.jvm.internal.m.b(c0953d3);
textView3.setText(c0953d3.B());
k3().h.setTypeface(aVar.x());
}
@Override
protected void onCreate(Bundle bundle) {
Bundle extras;
Parcelable parcelable;
Object parcelable2;
super.onCreate(bundle);
try {
setContentView(k3().getRoot());
Intent intent = getIntent();
if (intent != null && (extras = intent.getExtras()) != null && extras.containsKey("appInstalled")) {
if (Build.VERSION.SDK_INT >= 33) {
parcelable2 = extras.getParcelable("appInstalled", C0953d.class);
parcelable = (Parcelable) parcelable2;
} else {
parcelable = extras.getParcelable("appInstalled");
}
this.L = (C0953d) parcelable;
}
C0579f k32 = k3();
Drawable drawable = ContextCompat.getDrawable(this, N1.e.c);
if (drawable != null) {
k32.f.setNavigationIcon(drawable);
k32.f.setNavigationContentDescription(getString(2131951721));
}
k32.f.setNavigationOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
AppFilesActivity.m3(AppFilesActivity.this, view);
}
});
k32.i.setTypeface(N1.k.g.x());
k32.c.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
AppFilesActivity.n3(view);
}
});
k32.e.setLayoutManager(new LinearLayoutManager(this, 1, false));
k32.e.setItemAnimator(new DefaultItemAnimator());
k32.e.addItemDecoration(new W1.u((int) getResources().getDimension(2131166020)));
if (this.L != null) {
p3();
o3.g.d(this.J, (V2.g) null, (o3.L) null, new f(null), 3, (Object) null);
}
} catch (Exception e4) {
e4.printStackTrace();
}
}
}