MT Manager v2.15.3版本的 MD5 值为:1cbd6ee7afdac97645dd3a8c4751ecf0
以下内容为反编译后的 C3849.java 源代码,内容仅作参考
package l;
import bin.mt.plus.R;
import com.alipay.sdk.m.p.e;
import java.io.IOException;
import java.text.Collator;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Locale;
import java.util.Map;
import java.util.concurrent.CountDownLatch;
import java.util.function.Function;
public final class C3849 {
public static void m10413(ArrayList arrayList, AbstractC11261 abstractC11261, C1323 c1323, C0731 c0731) {
boolean z = !abstractC11261.mo2213();
try {
m10415(arrayList, abstractC11261, c1323, c0731);
} catch (Throwable th) {
if (z) {
abstractC11261.mo2035();
} else {
abstractC11261.m25067("dex").mo2035();
}
if (th instanceof IOException) {
throw ((IOException) th);
}
if (th instanceof RuntimeException) {
throw ((RuntimeException) th);
}
throw ((Error) th);
}
}
public static void m10415(ArrayList arrayList, AbstractC11261 abstractC11261, C1323 c1323, C0731 c0731) {
AbstractC11261 abstractC112612;
AbstractC11261 abstractC112613;
AbstractC11261 abstractC112614;
HashSet hashSet;
HashMap hashMap;
Iterator it;
HashMap hashMap2;
boolean z;
final IOException iOException;
final boolean[] zArr;
Object obj;
HashSet hashSet2;
String str;
AbstractC11261 abstractC112615;
AbstractC11261 m25067 = abstractC11261.m25067("dex");
m25067.mo2035();
m25067.m25100();
AbstractC11261 m250672 = m25067.m25067("config");
m250672.m25100();
AbstractC11261 m250673 = m25067.m25067(e.m);
m250673.m25100();
final HashMap hashMap3 = new HashMap();
Collator collator = Collator.getInstance(Locale.ENGLISH);
Iterator it2 = arrayList.iterator();
while (it2.hasNext()) {
AbstractC11261 abstractC112616 = (AbstractC11261) it2.next();
hashMap3.put(abstractC112616, new C10898(collator, abstractC112616.getName()));
}
Collections.sort(arrayList, C4964.comparing(new Function() {
@Override
public final Function andThen(Function function) {
return C1812.$default$andThen(this, function);
}
@Override
public final Object apply(Object obj2) {
return (C10898) hashMap3.get((AbstractC11261) obj2);
}
@Override
public final Function compose(Function function) {
return C1812.$default$compose(this, function);
}
}));
HashSet hashSet3 = new HashSet();
HashSet hashSet4 = new HashSet();
HashMap hashMap4 = new HashMap();
HashMap hashMap5 = new HashMap();
Iterator it3 = arrayList.iterator();
HashMap hashMap6 = hashMap5;
boolean z2 = false;
HashMap hashMap7 = hashMap4;
HashSet hashSet5 = hashSet4;
HashSet hashSet6 = hashSet3;
while (it3.hasNext()) {
AbstractC11261 abstractC112617 = (AbstractC11261) it3.next();
HashSet hashSet7 = new HashSet(hashSet6);
HashSet hashSet8 = new HashSet(hashSet5);
HashMap hashMap8 = new HashMap(hashMap7);
HashMap hashMap9 = new HashMap(hashMap6);
HashSet hashSet9 = hashSet6;
try {
byte[] m25065 = abstractC112617.m25065();
hashSet = hashSet5;
try {
String name = abstractC112617.getName();
String m5394 = C1601.m5394(name);
if (!name.endsWith(".dex")) {
hashMap9.put(m5394, name);
}
m250673.m25067(m5394).m25083(m25065);
m25067.m25067("smali/" + m5394).m25100();
C12139 c12139 = new C12139();
?? r6 = C6012.m15010(m25065);
r6.m15022(m5394);
int m15042 = r6.m15042();
abstractC112613 = m25067;
int i = 0;
while (i < m15042) {
int i2 = m15042;
try {
int m15017 = r6.m15017(i);
hashMap2 = hashMap6;
try {
int m15045 = r6.m15045(i);
abstractC112614 = m250672;
try {
obj = r6;
hashMap = hashMap7;
} catch (Exception e) {
e = e;
hashMap = hashMap7;
}
try {
String substring = r6.m15041(m15017).substring(1, r4.length() - 1);
if (hashSet7.add(substring)) {
try {
int lastIndexOf = substring.lastIndexOf(47);
int i3 = lastIndexOf + 1;
hashSet2 = hashSet7;
String substring2 = substring.substring(i3);
it = it3;
z = z2;
if (lastIndexOf <= 130) {
try {
if (!m10414(substring)) {
if (substring2.length() > 100) {
String substring3 = substring.substring(0, i3);
StringBuilder sb = new StringBuilder();
sb.append(substring2.substring(0, 50));
sb.append("_too_long_");
r6 = abstractC112617;
try {
sb.append(Long.toHexString(substring2.hashCode() & 4294967295L));
str = substring3 + sb.toString();
hashMap8.put(substring, str);
abstractC112615 = r6;
substring = str;
r6 = abstractC112615;
c12139.m26543(substring);
if (m15045 != 0) {
c12139.writeInt(Integer.MIN_VALUE | m15017);
c12139.writeInt(m15045);
} else {
c12139.writeInt(m15017);
}
} catch (Exception e2) {
e = e2;
iOException = new IOException(C1578.m5291(R.string.MT_Protector_res_0x7f110280, r6.getName(), e.getMessage()), e);
if (!z) {
}
final ActivityC13415 activityC13415 = (ActivityC13415) c0731.f2456;
int i4 = ActivityC13415.f39416;
activityC13415.getClass();
zArr = new boolean[]{false};
final CountDownLatch countDownLatch = new CountDownLatch(1);
C1578.m5298(new Runnable() {
@Override
public final void run() {
int i5 = ActivityC13415.f39416;
ActivityC13415 activityC134152 = ActivityC13415.this;
C10547 mo2087 = activityC134152.mo2087();
mo2087.m23868(R.string.MT_Protector_res_0x7f110248);
Exception exc = iOException;
mo2087.m23858(exc.getMessage());
boolean[] zArr2 = zArr;
CountDownLatch countDownLatch2 = countDownLatch;
mo2087.m23849(R.string.MT_Protector_res_0x7f110316, new DialogInterfaceOnClickListenerC14304(0, zArr2, countDownLatch2));
mo2087.m23869(R.string.MT_Protector_res_0x7f110131, new DialogInterfaceOnClickListenerC15146(0, zArr2, countDownLatch2));
mo2087.m23866(R.string.MT_Protector_res_0x7f110246, null);
mo2087.m23867();
mo2087.m23865().m6381().setOnClickListener(new ViewOnClickListenerC13462(0, activityC134152, exc));
}
});
try {
countDownLatch.await();
if (zArr[0]) {
}
} catch (InterruptedException e3) {
throw new RuntimeException(e3);
}
}
} else {
r6 = abstractC112617;
c12139.m26543(substring);
if (m15045 != 0) {
}
}
}
} catch (Exception e4) {
e = e4;
r6 = abstractC112617;
iOException = new IOException(C1578.m5291(R.string.MT_Protector_res_0x7f110280, r6.getName(), e.getMessage()), e);
if (!z) {
}
final ActivityC13415 activityC134152 = (ActivityC13415) c0731.f2456;
int i42 = ActivityC13415.f39416;
activityC134152.getClass();
zArr = new boolean[]{false};
final CountDownLatch countDownLatch2 = new CountDownLatch(1);
C1578.m5298(new Runnable() {
@Override
public final void run() {
int i5 = ActivityC13415.f39416;
ActivityC13415 activityC1341522 = ActivityC13415.this;
C10547 mo2087 = activityC1341522.mo2087();
mo2087.m23868(R.string.MT_Protector_res_0x7f110248);
Exception exc = iOException;
mo2087.m23858(exc.getMessage());
boolean[] zArr2 = zArr;
CountDownLatch countDownLatch22 = countDownLatch2;
mo2087.m23849(R.string.MT_Protector_res_0x7f110316, new DialogInterfaceOnClickListenerC14304(0, zArr2, countDownLatch22));
mo2087.m23869(R.string.MT_Protector_res_0x7f110131, new DialogInterfaceOnClickListenerC15146(0, zArr2, countDownLatch22));
mo2087.m23866(R.string.MT_Protector_res_0x7f110246, null);
mo2087.m23867();
mo2087.m23865().m6381().setOnClickListener(new ViewOnClickListenerC13462(0, activityC1341522, exc));
}
});
countDownLatch2.await();
if (zArr[0]) {
}
}
}
abstractC112615 = abstractC112617;
if (substring2.length() > 100) {
substring2 = substring2.substring(0, 60) + "_" + Long.toHexString(substring2.hashCode() & 4294967295L);
}
if (hashSet8.contains(substring2)) {
int i5 = 1;
while (true) {
if (!hashSet8.contains(substring2 + i5)) {
break;
} else {
i5++;
}
}
substring2 = substring2 + i5;
}
hashSet8.add(substring2);
str = "# TOO_LONG_NAME/" + substring2;
hashMap8.put(substring, str);
substring = str;
r6 = abstractC112615;
c12139.m26543(substring);
if (m15045 != 0) {
}
} catch (Exception e5) {
e = e5;
it = it3;
z = z2;
r6 = abstractC112617;
iOException = new IOException(C1578.m5291(R.string.MT_Protector_res_0x7f110280, r6.getName(), e.getMessage()), e);
if (!z) {
}
final ActivityC13415 activityC1341522 = (ActivityC13415) c0731.f2456;
int i422 = ActivityC13415.f39416;
activityC1341522.getClass();
zArr = new boolean[]{false};
final CountDownLatch countDownLatch22 = new CountDownLatch(1);
C1578.m5298(new Runnable() {
@Override
public final void run() {
int i52 = ActivityC13415.f39416;
ActivityC13415 activityC13415222 = ActivityC13415.this;
C10547 mo2087 = activityC13415222.mo2087();
mo2087.m23868(R.string.MT_Protector_res_0x7f110248);
Exception exc = iOException;
mo2087.m23858(exc.getMessage());
boolean[] zArr2 = zArr;
CountDownLatch countDownLatch222 = countDownLatch22;
mo2087.m23849(R.string.MT_Protector_res_0x7f110316, new DialogInterfaceOnClickListenerC14304(0, zArr2, countDownLatch222));
mo2087.m23869(R.string.MT_Protector_res_0x7f110131, new DialogInterfaceOnClickListenerC15146(0, zArr2, countDownLatch222));
mo2087.m23866(R.string.MT_Protector_res_0x7f110246, null);
mo2087.m23867();
mo2087.m23865().m6381().setOnClickListener(new ViewOnClickListenerC13462(0, activityC13415222, exc));
}
});
countDownLatch22.await();
if (zArr[0]) {
}
}
} else {
hashSet2 = hashSet7;
it = it3;
z = z2;
r6 = abstractC112617;
try {
c1323.m4535(name, substring.replace('/', '.'));
} catch (Exception e6) {
e = e6;
iOException = new IOException(C1578.m5291(R.string.MT_Protector_res_0x7f110280, r6.getName(), e.getMessage()), e);
if (!z || it.hasNext()) {
final ActivityC13415 activityC13415222 = (ActivityC13415) c0731.f2456;
int i4222 = ActivityC13415.f39416;
activityC13415222.getClass();
zArr = new boolean[]{false};
final CountDownLatch countDownLatch222 = new CountDownLatch(1);
C1578.m5298(new Runnable() {
@Override
public final void run() {
int i52 = ActivityC13415.f39416;
ActivityC13415 activityC134152222 = ActivityC13415.this;
C10547 mo2087 = activityC134152222.mo2087();
mo2087.m23868(R.string.MT_Protector_res_0x7f110248);
Exception exc = iOException;
mo2087.m23858(exc.getMessage());
boolean[] zArr2 = zArr;
CountDownLatch countDownLatch2222 = countDownLatch222;
mo2087.m23849(R.string.MT_Protector_res_0x7f110316, new DialogInterfaceOnClickListenerC14304(0, zArr2, countDownLatch2222));
mo2087.m23869(R.string.MT_Protector_res_0x7f110131, new DialogInterfaceOnClickListenerC15146(0, zArr2, countDownLatch2222));
mo2087.m23866(R.string.MT_Protector_res_0x7f110246, null);
mo2087.m23867();
mo2087.m23865().m6381().setOnClickListener(new ViewOnClickListenerC13462(0, activityC134152222, exc));
}
});
countDownLatch222.await();
if (zArr[0]) {
throw new IOException();
}
hashSet6 = hashSet9;
hashSet5 = hashSet;
hashMap6 = hashMap2;
hashMap7 = hashMap;
z2 = z;
m25067 = abstractC112613;
m250672 = abstractC112614;
it3 = it;
} else {
throw iOException;
}
}
}
i++;
abstractC112617 = r6;
m15042 = i2;
hashMap6 = hashMap2;
m250672 = abstractC112614;
hashSet7 = hashSet2;
r6 = obj;
hashMap7 = hashMap;
it3 = it;
z2 = z;
} catch (Exception e7) {
e = e7;
it = it3;
z = z2;
r6 = abstractC112617;
iOException = new IOException(C1578.m5291(R.string.MT_Protector_res_0x7f110280, r6.getName(), e.getMessage()), e);
if (!z) {
}
final ActivityC13415 activityC134152222 = (ActivityC13415) c0731.f2456;
int i42222 = ActivityC13415.f39416;
activityC134152222.getClass();
zArr = new boolean[]{false};
final CountDownLatch countDownLatch2222 = new CountDownLatch(1);
C1578.m5298(new Runnable() {
@Override
public final void run() {
int i52 = ActivityC13415.f39416;
ActivityC13415 activityC1341522222 = ActivityC13415.this;
C10547 mo2087 = activityC1341522222.mo2087();
mo2087.m23868(R.string.MT_Protector_res_0x7f110248);
Exception exc = iOException;
mo2087.m23858(exc.getMessage());
boolean[] zArr2 = zArr;
CountDownLatch countDownLatch22222 = countDownLatch2222;
mo2087.m23849(R.string.MT_Protector_res_0x7f110316, new DialogInterfaceOnClickListenerC14304(0, zArr2, countDownLatch22222));
mo2087.m23869(R.string.MT_Protector_res_0x7f110131, new DialogInterfaceOnClickListenerC15146(0, zArr2, countDownLatch22222));
mo2087.m23866(R.string.MT_Protector_res_0x7f110246, null);
mo2087.m23867();
mo2087.m23865().m6381().setOnClickListener(new ViewOnClickListenerC13462(0, activityC1341522222, exc));
}
});
countDownLatch2222.await();
if (zArr[0]) {
}
}
} catch (Exception e8) {
e = e8;
abstractC112614 = m250672;
hashMap = hashMap7;
it = it3;
}
} catch (Exception e9) {
e = e9;
abstractC112614 = m250672;
hashMap = hashMap7;
it = it3;
hashMap2 = hashMap6;
z = z2;
r6 = abstractC112617;
iOException = new IOException(C1578.m5291(R.string.MT_Protector_res_0x7f110280, r6.getName(), e.getMessage()), e);
if (!z) {
}
final ActivityC13415 activityC1341522222 = (ActivityC13415) c0731.f2456;
int i422222 = ActivityC13415.f39416;
activityC1341522222.getClass();
zArr = new boolean[]{false};
final CountDownLatch countDownLatch22222 = new CountDownLatch(1);
C1578.m5298(new Runnable() {
@Override
public final void run() {
int i52 = ActivityC13415.f39416;
ActivityC13415 activityC13415222222 = ActivityC13415.this;
C10547 mo2087 = activityC13415222222.mo2087();
mo2087.m23868(R.string.MT_Protector_res_0x7f110248);
Exception exc = iOException;
mo2087.m23858(exc.getMessage());
boolean[] zArr2 = zArr;
CountDownLatch countDownLatch222222 = countDownLatch22222;
mo2087.m23849(R.string.MT_Protector_res_0x7f110316, new DialogInterfaceOnClickListenerC14304(0, zArr2, countDownLatch222222));
mo2087.m23869(R.string.MT_Protector_res_0x7f110131, new DialogInterfaceOnClickListenerC15146(0, zArr2, countDownLatch222222));
mo2087.m23866(R.string.MT_Protector_res_0x7f110246, null);
mo2087.m23867();
mo2087.m23865().m6381().setOnClickListener(new ViewOnClickListenerC13462(0, activityC13415222222, exc));
}
});
countDownLatch22222.await();
if (zArr[0]) {
}
}
}
HashSet hashSet10 = hashSet7;
abstractC112614 = m250672;
it = it3;
m250673.m25067(m5394 + "_list").m25082(c12139);
hashSet5 = hashSet8;
hashMap7 = hashMap8;
hashMap6 = hashMap9;
hashSet6 = hashSet10;
z2 = true;
} catch (Exception e10) {
e = e10;
abstractC112613 = m25067;
}
} catch (Exception e11) {
e = e11;
abstractC112613 = m25067;
abstractC112614 = m250672;
hashSet = hashSet5;
}
m25067 = abstractC112613;
m250672 = abstractC112614;
it3 = it;
}
AbstractC11261 abstractC112618 = m250672;
HashMap hashMap10 = hashMap7;
HashMap hashMap11 = hashMap6;
if (hashMap10.isEmpty()) {
abstractC112612 = abstractC112618;
} else {
C12139 c121392 = new C12139();
for (Map.Entry entry : hashMap10.entrySet()) {
c121392.m26543((String) entry.getKey());
c121392.m26543((String) entry.getValue());
}
abstractC112612 = abstractC112618;
abstractC112612.m25067("map").m25082(c121392);
}
if (!hashMap11.isEmpty()) {
C12139 c121393 = new C12139();
for (Map.Entry entry2 : hashMap11.entrySet()) {
c121393.m26543((String) entry2.getKey());
c121393.m26543((String) entry2.getValue());
}
abstractC112612.m25067("dex_name_map").m25082(c121393);
}
AbstractC11261 m25073 = ((AbstractC11261) arrayList.get(0)).m25073("resources.arsc");
if (m25073.mo2213()) {
AbstractC11261 m250674 = abstractC11261.m25067("data/resources.arsc");
m250674.mo25109();
m25073.m25080(m250674, (C1154) null, (InterfaceC4757) null);
}
}
public static boolean m10414(String str) {
int length = str.length();
int i = 0;
for (int i2 = 0; i2 < length; i2++) {
if (str.charAt(i2) == '/' && (i = i + 1) >= 12) {
return true;
}
}
return false;
}
}