SD Maid v5.6.3版本的 MD5 值为:b283f6effbd880c54f4e4da72852de99
以下内容为反编译后的 c.java 源代码,内容仅作参考
package x5;
import a1.z;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.os.Build;
import android.widget.Toast;
import e.s;
import eu.thedarken.sdm.App;
import eu.thedarken.sdm.R;
import eu.thedarken.sdm.SDMContext;
import eu.thedarken.sdm.appcleaner.ui.settings.AppCleanerSettingsFragment;
import eu.thedarken.sdm.appcontrol.ui.AppControlFragment;
import eu.thedarken.sdm.appcontrol.ui.details.main.MainDetailsFragment;
import eu.thedarken.sdm.appcontrol.ui.settings.AppControlSettingsFragment;
import eu.thedarken.sdm.biggest.ui.settings.BiggestPreferencesFragment;
import eu.thedarken.sdm.corpsefinder.ui.settings.CorpseFinderSettingsFragment;
import eu.thedarken.sdm.databases.ui.settings.DatabasesSettingsFragment;
import eu.thedarken.sdm.duplicates.ui.settings.DuplicatesSettingsFragment;
import eu.thedarken.sdm.exclusions.ui.ExclusionManagerFragment;
import eu.thedarken.sdm.explorer.ui.ExplorerFragment;
import eu.thedarken.sdm.explorer.ui.settings.ExplorerSettingsFragment;
import eu.thedarken.sdm.main.ui.settings.GeneralPreferencesFragment;
import eu.thedarken.sdm.scheduler.ui.settings.SchedulerSettingsFragment;
import eu.thedarken.sdm.statistics.ui.StatisticsPreferencesFragment;
import eu.thedarken.sdm.systemcleaner.ui.filter.user.UserFilterFragment;
import eu.thedarken.sdm.tools.forensics.Location;
import h3.n;
import io.reactivex.rxjava3.core.m;
import io.reactivex.rxjava3.internal.operators.observable.h0;
import java.util.Collection;
import java.util.Locale;
import l5.p1;
import ta.p;
import z7.l;
import z7.r;
public final class c implements DialogInterface.OnClickListener {
public final int h;
public final Object f10745i;
public c(int i10, Object obj) {
this.h = i10;
this.f10745i = obj;
}
@Override
public final void onClick(DialogInterface dialogInterface, int i10) {
switch (this.h) {
case 0:
d dVar = (d) this.f10745i;
int i11 = d.f10746n0;
qd.c.f("this$0", dVar);
Context A3 = dVar.A3();
Intent intent = new Intent("android.settings.ACCESSIBILITY_SETTINGS");
intent.addFlags(268435456);
try {
A3.startActivity(intent);
} catch (ActivityNotFoundException e10) {
Toast.makeText(A3, e10.toString(), 1).show();
}
ed.f fVar = ed.f.f3946a;
return;
case 1:
z5.e eVar = (z5.e) this.f10745i;
String str = z5.e.f11098p0;
qd.c.f("this$0", eVar);
Context A32 = eVar.A3();
Intent intent2 = new Intent("android.settings.ACCESSIBILITY_SETTINGS");
intent2.addFlags(268435456);
try {
A32.startActivity(intent2);
} catch (ActivityNotFoundException e11) {
Toast.makeText(A32, e11.toString(), 1).show();
}
ed.f fVar2 = ed.f.f3946a;
return;
case 2:
AppCleanerSettingsFragment appCleanerSettingsFragment = (AppCleanerSettingsFragment) this.f10745i;
int i12 = AppCleanerSettingsFragment.f4031o0;
qd.c.f("this$0", appCleanerSettingsFragment);
appCleanerSettingsFragment.T3().f8850b.edit().clear().apply();
ne.a.d(p5.a.d).g("Defaults restored", new Object[0]);
appCleanerSettingsFragment.R3();
return;
case 3:
AppControlFragment appControlFragment = (AppControlFragment) this.f10745i;
int i13 = AppControlFragment.f4101q0;
qd.c.f("this$0", appControlFragment);
new Thread(new n(2, appControlFragment.c4())).start();
return;
case 4:
MainDetailsFragment mainDetailsFragment = (MainDetailsFragment) this.f10745i;
int i14 = MainDetailsFragment.f4129j0;
qd.c.f("this$0", mainDetailsFragment);
new Thread(new n(3, mainDetailsFragment.P3())).start();
return;
case 5:
AppControlSettingsFragment appControlSettingsFragment = (AppControlSettingsFragment) this.f10745i;
int i15 = AppControlSettingsFragment.f4163n0;
qd.c.f("this$0", appControlSettingsFragment);
appControlSettingsFragment.T3().f208b.edit().clear().apply();
ne.a.d(a6.a.f206c).g("Defaults restored", new Object[0]);
appControlSettingsFragment.R3();
appControlSettingsFragment.U3();
return;
case 6:
BiggestPreferencesFragment biggestPreferencesFragment = (BiggestPreferencesFragment) this.f10745i;
biggestPreferencesFragment.f4187l0.f10478a.edit().clear().apply();
ne.a.d(v6.a.f10477b).g("Defaults restored", new Object[0]);
biggestPreferencesFragment.R3();
return;
case 7:
CorpseFinderSettingsFragment corpseFinderSettingsFragment = (CorpseFinderSettingsFragment) this.f10745i;
int i16 = CorpseFinderSettingsFragment.f4216n0;
qd.c.f("this$0", corpseFinderSettingsFragment);
y6.b bVar = corpseFinderSettingsFragment.f4217l0;
if (bVar == null) {
qd.c.k("settings");
throw null;
}
bVar.f10877c.edit().clear().apply();
bVar.e();
ne.a.d(y6.b.f10874e).g("Defaults restored", new Object[0]);
corpseFinderSettingsFragment.R3();
return;
case 8:
DatabasesSettingsFragment databasesSettingsFragment = (DatabasesSettingsFragment) this.f10745i;
databasesSettingsFragment.f4249l0.f3816b.edit().clear().apply();
ne.a.d(e7.d.d).g("Defaults restored", new Object[0]);
databasesSettingsFragment.R3();
z.e0(databasesSettingsFragment.V("databases.searchpaths"), databasesSettingsFragment.f4249l0.e());
return;
case 9:
DuplicatesSettingsFragment duplicatesSettingsFragment = (DuplicatesSettingsFragment) this.f10745i;
int i17 = DuplicatesSettingsFragment.f4316m0;
qd.c.f("this$0", duplicatesSettingsFragment);
duplicatesSettingsFragment.T3().f5599c.edit().clear().apply();
ne.a.d(g7.e.f5596e).g("Defaults restored", new Object[0]);
duplicatesSettingsFragment.R3();
return;
case 10:
ExclusionManagerFragment exclusionManagerFragment = (ExclusionManagerFragment) this.f10745i;
int i18 = ExclusionManagerFragment.f4371k0;
exclusionManagerFragment.getClass();
p.d d = new p(exclusionManagerFragment.K2()).d("https://github.com/d4rken/sdmaid-public/wiki/Exclusions");
d.d = exclusionManagerFragment.I2();
d.f9767e = true;
d.c();
return;
case 11:
z7.l lVar = (z7.l) this.f10745i;
String trim = lVar.s0.getText().toString().trim();
l.c cVar = l.c.Directory;
if (lVar.f11169t0.isChecked()) {
cVar = l.c.File;
}
((l.b) lVar.T2()).z(trim, cVar);
return;
case 12:
r rVar = (r) this.f10745i;
r.b bVar2 = rVar.f11181t0;
String obj = rVar.s0.getText().toString();
ExplorerFragment explorerFragment = (ExplorerFragment) ((x6.a) bVar2).f10769i;
String str2 = ExplorerFragment.s0;
qd.c.f("this$0", explorerFragment);
z7.h X3 = explorerFragment.X3();
qd.c.e("it", obj);
new io.reactivex.rxjava3.internal.operators.single.k(new io.reactivex.rxjava3.internal.operators.single.i(1, new z7.g(0, X3, obj)), new z7.e(X3, 2)).c(new io.reactivex.rxjava3.internal.observers.h(new q6.b(26), new q6.b(27)));
return;
case 13:
ExplorerSettingsFragment explorerSettingsFragment = (ExplorerSettingsFragment) this.f10745i;
int i19 = ExplorerSettingsFragment.f4440m0;
qd.c.f("this$0", explorerSettingsFragment);
o7.d dVar2 = explorerSettingsFragment.f4441l0;
if (dVar2 == null) {
qd.c.k("explorerSettings");
throw null;
}
dVar2.f8719a.edit().clear().apply();
ne.a.d(o7.d.f8718c).g("Defaults restored", new Object[0]);
explorerSettingsFragment.R3();
return;
case 14:
GeneralPreferencesFragment generalPreferencesFragment = (GeneralPreferencesFragment) this.f10745i;
int i20 = GeneralPreferencesFragment.f4553m0;
qd.c.f("this$0", generalPreferencesFragment);
generalPreferencesFragment.T3().c(null);
dialogInterface.dismiss();
Toast.makeText(generalPreferencesFragment.y3(), (int) R.string.please_restart_sdmaid, 0).show();
return;
case 15:
SchedulerSettingsFragment schedulerSettingsFragment = (SchedulerSettingsFragment) this.f10745i;
int i21 = SchedulerSettingsFragment.f4646m0;
qd.c.f("this$0", schedulerSettingsFragment);
c9.d dVar3 = schedulerSettingsFragment.f4647l0;
if (dVar3 == null) {
qd.c.k("settings");
throw null;
}
dVar3.f2636a.edit().clear().apply();
ne.a.d(c9.d.f2635c).g("Defaults restored", new Object[0]);
schedulerSettingsFragment.R3();
return;
case 16:
StatisticsPreferencesFragment statisticsPreferencesFragment = (StatisticsPreferencesFragment) this.f10745i;
ea.b bVar3 = statisticsPreferencesFragment.f4728m0;
synchronized (bVar3) {
bVar3.f3872a.recreate();
}
statisticsPreferencesFragment.U3();
return;
case 17:
UserFilterFragment userFilterFragment = (UserFilterFragment) this.f10745i;
String str3 = UserFilterFragment.f4810g0;
qd.c.f("this$0", userFilterFragment);
UserFilterFragment.a.a(userFilterFragment, null);
return;
case 18:
s sVar = (s) this.f10745i;
qd.c.f("this$0", sVar);
Activity activity = (Activity) sVar.h;
p.d d10 = new p(activity).d("https://sdmaid.darken.eu/privacy");
d10.d = activity;
d10.f9767e = true;
d10.c();
return;
case 19:
vc.c cVar2 = (vc.c) this.f10745i;
int i22 = vc.c.s0;
qd.c.f("this$0", cVar2);
p.d d11 = new p(cVar2.y3()).d("https://play.google.com/store/apps/details?id=eu.darken.sdmse");
d11.d = cVar2.y3();
d11.f9767e = true;
d11.c();
return;
default:
vc.d dVar4 = (vc.d) this.f10745i;
int i23 = vc.d.f10555t0;
dVar4.getClass();
p.e c10 = new p(dVar4.K2()).c();
c10.h.add("support@darken.eu");
SDMContext sDMContext = App.f3954s;
e8.h upgradeControl = sDMContext.getUpgradeControl();
StringBuilder sb2 = new StringBuilder("[SD Maid]");
upgradeControl.getClass();
io.reactivex.rxjava3.internal.schedulers.f fVar3 = io.reactivex.rxjava3.schedulers.a.f7050c;
m<e8.b> mVar = upgradeControl.h;
if (((Collection) new h0(mVar.q(fVar3).n(fVar3), new i5.f(10)).e()).containsAll(e8.c.f3842u)) {
sb2.append("[PRO]");
}
sb2.append("Question/Suggestion/Request");
c10.f9771f = sb2.toString();
StringBuilder sb3 = new StringBuilder("\n\n=== Device info ===\n");
sb3.append(String.format("Install ID: %s\n", dVar4.s0.a()));
sb3.append(String.format("ROM: %s/%s\n", Build.FINGERPRINT, Locale.getDefault().toString()));
String str4 = p1.f7798a;
PackageInfo a10 = p1.a(sDMContext.getContext());
sb3.append(String.format("SD Maid: %s[%s]\n", a10.versionName, Integer.valueOf(a10.versionCode)));
sb3.append(String.format("Pro: %s\n", mVar.e().a(dVar4.K2())));
if (sDMContext.getRootManager().f9719f != null) {
sb3.append(String.format("Root: %s\n", Boolean.valueOf(sDMContext.getRootManager().a().a())));
}
for (eu.thedarken.sdm.tools.storage.e eVar2 : sDMContext.getStorageManager().e(Location.SDCARD, Location.PORTABLE)) {
Object[] objArr = new Object[2];
objArr[0] = eVar2.h;
objArr[1] = Boolean.valueOf(eVar2.n != null);
sb3.append(String.format("Storage: %s (SAF-match=%b)\n", objArr));
}
c10.f9772g = sb3.toString();
c10.f9769c = true;
c10.d = c10.f9761b.getString(R.string.button_send);
c10.c();
return;
}
}
}