Primer paso de la investigacion. Se aportan el .apk, las carpetas con el apk extraido y el apk descompilado. El archivo API_DOCUMENTATION.md es un archivo donde se anotaran los descubrimientos del funcionamiento de la API, y los .py son scripts para probar la funcionalidad de la API con los métodos que vayamos encontrando. Finalmente, los archivos .js son scripts de Frida para extraer informacion de la APP durante la ejecucion.
This commit is contained in:
44
apk_decompiled/sources/B2/a.java
Normal file
44
apk_decompiled/sources/B2/a.java
Normal file
@@ -0,0 +1,44 @@
|
||||
package B2;
|
||||
|
||||
import a.AbstractC0106b;
|
||||
import android.graphics.Typeface;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class a extends AbstractC0106b {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final Typeface f210a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final h3.d f211b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public boolean f212c;
|
||||
|
||||
public a(h3.d dVar, Typeface typeface) {
|
||||
this.f210a = typeface;
|
||||
this.f211b = dVar;
|
||||
}
|
||||
|
||||
@Override // a.AbstractC0106b
|
||||
public final void y(int i) {
|
||||
if (this.f212c) {
|
||||
return;
|
||||
}
|
||||
x2.b bVar = (x2.b) this.f211b.f6791b;
|
||||
if (bVar.j(this.f210a)) {
|
||||
bVar.h(false);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // a.AbstractC0106b
|
||||
public final void z(Typeface typeface, boolean z3) {
|
||||
if (this.f212c) {
|
||||
return;
|
||||
}
|
||||
x2.b bVar = (x2.b) this.f211b.f6791b;
|
||||
if (bVar.j(typeface)) {
|
||||
bVar.h(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
33
apk_decompiled/sources/B2/b.java
Normal file
33
apk_decompiled/sources/B2/b.java
Normal file
@@ -0,0 +1,33 @@
|
||||
package B2;
|
||||
|
||||
import a.AbstractC0106b;
|
||||
import android.graphics.Typeface;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class b extends F.b {
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final /* synthetic */ AbstractC0106b f213e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final /* synthetic */ d f214f;
|
||||
|
||||
public b(d dVar, AbstractC0106b abstractC0106b) {
|
||||
this.f214f = dVar;
|
||||
this.f213e = abstractC0106b;
|
||||
}
|
||||
|
||||
@Override // F.b
|
||||
public final void g(int i) {
|
||||
this.f214f.f229m = true;
|
||||
this.f213e.y(i);
|
||||
}
|
||||
|
||||
@Override // F.b
|
||||
public final void h(Typeface typeface) {
|
||||
d dVar = this.f214f;
|
||||
dVar.f230n = Typeface.create(typeface, dVar.f221c);
|
||||
dVar.f229m = true;
|
||||
this.f213e.z(dVar.f230n, false);
|
||||
}
|
||||
}
|
||||
40
apk_decompiled/sources/B2/c.java
Normal file
40
apk_decompiled/sources/B2/c.java
Normal file
@@ -0,0 +1,40 @@
|
||||
package B2;
|
||||
|
||||
import a.AbstractC0106b;
|
||||
import android.content.Context;
|
||||
import android.graphics.Typeface;
|
||||
import android.text.TextPaint;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class c extends AbstractC0106b {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ Context f215a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ TextPaint f216b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ AbstractC0106b f217c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ d f218d;
|
||||
|
||||
public c(d dVar, Context context, TextPaint textPaint, AbstractC0106b abstractC0106b) {
|
||||
this.f218d = dVar;
|
||||
this.f215a = context;
|
||||
this.f216b = textPaint;
|
||||
this.f217c = abstractC0106b;
|
||||
}
|
||||
|
||||
@Override // a.AbstractC0106b
|
||||
public final void y(int i) {
|
||||
this.f217c.y(i);
|
||||
}
|
||||
|
||||
@Override // a.AbstractC0106b
|
||||
public final void z(Typeface typeface, boolean z3) {
|
||||
this.f218d.g(this.f215a, this.f216b, typeface);
|
||||
this.f217c.z(typeface, z3);
|
||||
}
|
||||
}
|
||||
200
apk_decompiled/sources/B2/d.java
Normal file
200
apk_decompiled/sources/B2/d.java
Normal file
@@ -0,0 +1,200 @@
|
||||
package B2;
|
||||
|
||||
import F.q;
|
||||
import a.AbstractC0105a;
|
||||
import a.AbstractC0106b;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.content.res.Resources;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Typeface;
|
||||
import android.text.TextPaint;
|
||||
import android.util.Log;
|
||||
import android.util.TypedValue;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import h2.AbstractC0379a;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class d {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final ColorStateList f219a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final String f220b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final int f221c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final int f222d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final float f223e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final float f224f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final float f225g;
|
||||
public final boolean h;
|
||||
public final float i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public final ColorStateList f226j;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public float f227k;
|
||||
|
||||
/* renamed from: l, reason: collision with root package name */
|
||||
public final int f228l;
|
||||
|
||||
/* renamed from: m, reason: collision with root package name */
|
||||
public boolean f229m = false;
|
||||
|
||||
/* renamed from: n, reason: collision with root package name */
|
||||
public Typeface f230n;
|
||||
|
||||
public d(Context context, int i) {
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(i, AbstractC0379a.f6751E);
|
||||
this.f227k = obtainStyledAttributes.getDimension(0, BitmapDescriptorFactory.HUE_RED);
|
||||
this.f226j = AbstractC0105a.w(context, obtainStyledAttributes, 3);
|
||||
AbstractC0105a.w(context, obtainStyledAttributes, 4);
|
||||
AbstractC0105a.w(context, obtainStyledAttributes, 5);
|
||||
this.f221c = obtainStyledAttributes.getInt(2, 0);
|
||||
this.f222d = obtainStyledAttributes.getInt(1, 1);
|
||||
int i4 = obtainStyledAttributes.hasValue(12) ? 12 : 10;
|
||||
this.f228l = obtainStyledAttributes.getResourceId(i4, 0);
|
||||
this.f220b = obtainStyledAttributes.getString(i4);
|
||||
obtainStyledAttributes.getBoolean(14, false);
|
||||
this.f219a = AbstractC0105a.w(context, obtainStyledAttributes, 6);
|
||||
this.f223e = obtainStyledAttributes.getFloat(7, BitmapDescriptorFactory.HUE_RED);
|
||||
this.f224f = obtainStyledAttributes.getFloat(8, BitmapDescriptorFactory.HUE_RED);
|
||||
this.f225g = obtainStyledAttributes.getFloat(9, BitmapDescriptorFactory.HUE_RED);
|
||||
obtainStyledAttributes.recycle();
|
||||
TypedArray obtainStyledAttributes2 = context.obtainStyledAttributes(i, AbstractC0379a.f6770s);
|
||||
this.h = obtainStyledAttributes2.hasValue(0);
|
||||
this.i = obtainStyledAttributes2.getFloat(0, BitmapDescriptorFactory.HUE_RED);
|
||||
obtainStyledAttributes2.recycle();
|
||||
}
|
||||
|
||||
public final void a() {
|
||||
String str;
|
||||
Typeface typeface = this.f230n;
|
||||
int i = this.f221c;
|
||||
if (typeface == null && (str = this.f220b) != null) {
|
||||
this.f230n = Typeface.create(str, i);
|
||||
}
|
||||
if (this.f230n == null) {
|
||||
int i4 = this.f222d;
|
||||
if (i4 == 1) {
|
||||
this.f230n = Typeface.SANS_SERIF;
|
||||
} else if (i4 == 2) {
|
||||
this.f230n = Typeface.SERIF;
|
||||
} else if (i4 != 3) {
|
||||
this.f230n = Typeface.DEFAULT;
|
||||
} else {
|
||||
this.f230n = Typeface.MONOSPACE;
|
||||
}
|
||||
this.f230n = Typeface.create(this.f230n, i);
|
||||
}
|
||||
}
|
||||
|
||||
public final Typeface b(Context context) {
|
||||
if (this.f229m) {
|
||||
return this.f230n;
|
||||
}
|
||||
if (!context.isRestricted()) {
|
||||
try {
|
||||
Typeface a2 = q.a(context, this.f228l);
|
||||
this.f230n = a2;
|
||||
if (a2 != null) {
|
||||
this.f230n = Typeface.create(a2, this.f221c);
|
||||
}
|
||||
} catch (Resources.NotFoundException | UnsupportedOperationException unused) {
|
||||
} catch (Exception e4) {
|
||||
Log.d("TextAppearance", "Error loading font " + this.f220b, e4);
|
||||
}
|
||||
}
|
||||
a();
|
||||
this.f229m = true;
|
||||
return this.f230n;
|
||||
}
|
||||
|
||||
public final void c(Context context, AbstractC0106b abstractC0106b) {
|
||||
if (d(context)) {
|
||||
b(context);
|
||||
} else {
|
||||
a();
|
||||
}
|
||||
int i = this.f228l;
|
||||
if (i == 0) {
|
||||
this.f229m = true;
|
||||
}
|
||||
if (this.f229m) {
|
||||
abstractC0106b.z(this.f230n, true);
|
||||
return;
|
||||
}
|
||||
try {
|
||||
b bVar = new b(this, abstractC0106b);
|
||||
ThreadLocal threadLocal = q.f503a;
|
||||
if (context.isRestricted()) {
|
||||
bVar.a(-4);
|
||||
} else {
|
||||
q.b(context, i, new TypedValue(), 0, bVar, false, false);
|
||||
}
|
||||
} catch (Resources.NotFoundException unused) {
|
||||
this.f229m = true;
|
||||
abstractC0106b.y(1);
|
||||
} catch (Exception e4) {
|
||||
Log.d("TextAppearance", "Error loading font " + this.f220b, e4);
|
||||
this.f229m = true;
|
||||
abstractC0106b.y(-3);
|
||||
}
|
||||
}
|
||||
|
||||
public final boolean d(Context context) {
|
||||
Typeface typeface = null;
|
||||
int i = this.f228l;
|
||||
if (i != 0) {
|
||||
ThreadLocal threadLocal = q.f503a;
|
||||
if (!context.isRestricted()) {
|
||||
typeface = q.b(context, i, new TypedValue(), 0, null, false, true);
|
||||
}
|
||||
}
|
||||
return typeface != null;
|
||||
}
|
||||
|
||||
public final void e(Context context, TextPaint textPaint, AbstractC0106b abstractC0106b) {
|
||||
f(context, textPaint, abstractC0106b);
|
||||
ColorStateList colorStateList = this.f226j;
|
||||
textPaint.setColor(colorStateList != null ? colorStateList.getColorForState(textPaint.drawableState, colorStateList.getDefaultColor()) : -16777216);
|
||||
ColorStateList colorStateList2 = this.f219a;
|
||||
textPaint.setShadowLayer(this.f225g, this.f223e, this.f224f, colorStateList2 != null ? colorStateList2.getColorForState(textPaint.drawableState, colorStateList2.getDefaultColor()) : 0);
|
||||
}
|
||||
|
||||
public final void f(Context context, TextPaint textPaint, AbstractC0106b abstractC0106b) {
|
||||
if (d(context)) {
|
||||
g(context, textPaint, b(context));
|
||||
return;
|
||||
}
|
||||
a();
|
||||
g(context, textPaint, this.f230n);
|
||||
c(context, new c(this, context, textPaint, abstractC0106b));
|
||||
}
|
||||
|
||||
public final void g(Context context, TextPaint textPaint, Typeface typeface) {
|
||||
Typeface A3 = m3.d.A(context.getResources().getConfiguration(), typeface);
|
||||
if (A3 != null) {
|
||||
typeface = A3;
|
||||
}
|
||||
textPaint.setTypeface(typeface);
|
||||
int i = (~typeface.getStyle()) & this.f221c;
|
||||
textPaint.setFakeBoldText((i & 1) != 0);
|
||||
textPaint.setTextSkewX((i & 2) != 0 ? -0.25f : BitmapDescriptorFactory.HUE_RED);
|
||||
textPaint.setTextSize(this.f227k);
|
||||
if (this.h) {
|
||||
textPaint.setLetterSpacing(this.i);
|
||||
}
|
||||
}
|
||||
}
|
||||
15
apk_decompiled/sources/B2/e.java
Normal file
15
apk_decompiled/sources/B2/e.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package B2;
|
||||
|
||||
import android.content.ClipData;
|
||||
import android.view.ContentInfo;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract /* synthetic */ class e {
|
||||
public static /* synthetic */ ContentInfo.Builder f(ClipData clipData, int i) {
|
||||
return new ContentInfo.Builder(clipData, i);
|
||||
}
|
||||
|
||||
public static /* bridge */ /* synthetic */ ContentInfo h(Object obj) {
|
||||
return (ContentInfo) obj;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user