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:
42
apk_decompiled/sources/y2/AbstractC0662a.java
Normal file
42
apk_decompiled/sources/y2/AbstractC0662a.java
Normal file
@@ -0,0 +1,42 @@
|
||||
package y2;
|
||||
|
||||
import a.AbstractC0106b;
|
||||
import android.animation.TimeInterpolator;
|
||||
import android.content.Context;
|
||||
import android.view.View;
|
||||
import b.C0253b;
|
||||
import com.adif.elcanomovil.R;
|
||||
import com.adif.elcanomovil.repositories.circulation.CirculationMapper;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
|
||||
/* renamed from: y2.a, reason: case insensitive filesystem */
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class AbstractC0662a {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final TimeInterpolator f8983a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final View f8984b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final int f8985c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final int f8986d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final int f8987e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public C0253b f8988f;
|
||||
|
||||
public AbstractC0662a(View view) {
|
||||
this.f8984b = view;
|
||||
Context context = view.getContext();
|
||||
this.f8983a = AbstractC0106b.F(context, R.attr.motionEasingStandardDecelerateInterpolator, Q.a.b(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, 1.0f));
|
||||
this.f8985c = AbstractC0106b.E(context, R.attr.motionDurationMedium2, CirculationMapper.TIME_TO_WARNING);
|
||||
this.f8986d = AbstractC0106b.E(context, R.attr.motionDurationShort3, 150);
|
||||
this.f8987e = AbstractC0106b.E(context, R.attr.motionDurationShort2, 100);
|
||||
}
|
||||
}
|
||||
64
apk_decompiled/sources/y2/C0664c.java
Normal file
64
apk_decompiled/sources/y2/C0664c.java
Normal file
@@ -0,0 +1,64 @@
|
||||
package y2;
|
||||
|
||||
import android.view.View;
|
||||
import android.window.OnBackInvokedCallback;
|
||||
import android.window.OnBackInvokedDispatcher;
|
||||
import b.u;
|
||||
import java.util.Objects;
|
||||
|
||||
/* renamed from: y2.c, reason: case insensitive filesystem */
|
||||
/* loaded from: classes3.dex */
|
||||
public class C0664c {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public OnBackInvokedCallback f8989a;
|
||||
|
||||
public OnBackInvokedCallback a(InterfaceC0663b interfaceC0663b) {
|
||||
Objects.requireNonNull(interfaceC0663b);
|
||||
return new u(interfaceC0663b, 3);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:3:0x0005, code lost:
|
||||
|
||||
r3 = r3.findOnBackInvokedDispatcher();
|
||||
*/
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public void b(y2.InterfaceC0663b r2, android.view.View r3, boolean r4) {
|
||||
/*
|
||||
r1 = this;
|
||||
android.window.OnBackInvokedCallback r0 = r1.f8989a
|
||||
if (r0 == 0) goto L5
|
||||
goto Lb
|
||||
L5:
|
||||
android.window.OnBackInvokedDispatcher r3 = P.e.d(r3)
|
||||
if (r3 != 0) goto Lc
|
||||
Lb:
|
||||
return
|
||||
Lc:
|
||||
android.window.OnBackInvokedCallback r2 = r1.a(r2)
|
||||
r1.f8989a = r2
|
||||
if (r4 == 0) goto L18
|
||||
r1 = 1000000(0xf4240, float:1.401298E-39)
|
||||
goto L19
|
||||
L18:
|
||||
r1 = 0
|
||||
L19:
|
||||
P.e.i(r3, r1, r2)
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: y2.C0664c.b(y2.b, android.view.View, boolean):void");
|
||||
}
|
||||
|
||||
public void c(View view) {
|
||||
OnBackInvokedDispatcher findOnBackInvokedDispatcher;
|
||||
findOnBackInvokedDispatcher = view.findOnBackInvokedDispatcher();
|
||||
if (findOnBackInvokedDispatcher == null) {
|
||||
return;
|
||||
}
|
||||
findOnBackInvokedDispatcher.unregisterOnBackInvokedCallback(this.f8989a);
|
||||
this.f8989a = null;
|
||||
}
|
||||
}
|
||||
15
apk_decompiled/sources/y2/InterfaceC0663b.java
Normal file
15
apk_decompiled/sources/y2/InterfaceC0663b.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package y2;
|
||||
|
||||
import b.C0253b;
|
||||
|
||||
/* renamed from: y2.b, reason: case insensitive filesystem */
|
||||
/* loaded from: classes3.dex */
|
||||
public interface InterfaceC0663b {
|
||||
void a();
|
||||
|
||||
void b(C0253b c0253b);
|
||||
|
||||
void c(C0253b c0253b);
|
||||
|
||||
void d();
|
||||
}
|
||||
42
apk_decompiled/sources/y2/d.java
Normal file
42
apk_decompiled/sources/y2/d.java
Normal file
@@ -0,0 +1,42 @@
|
||||
package y2;
|
||||
|
||||
import android.window.BackEvent;
|
||||
import android.window.OnBackAnimationCallback;
|
||||
import b.C0253b;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class d implements OnBackAnimationCallback {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ InterfaceC0663b f8990a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ e f8991b;
|
||||
|
||||
public d(e eVar, InterfaceC0663b interfaceC0663b) {
|
||||
this.f8991b = eVar;
|
||||
this.f8990a = interfaceC0663b;
|
||||
}
|
||||
|
||||
public final void onBackCancelled() {
|
||||
if (this.f8991b.f8989a != null) {
|
||||
this.f8990a.d();
|
||||
}
|
||||
}
|
||||
|
||||
public final void onBackInvoked() {
|
||||
this.f8990a.a();
|
||||
}
|
||||
|
||||
public final void onBackProgressed(BackEvent backEvent) {
|
||||
if (this.f8991b.f8989a != null) {
|
||||
this.f8990a.c(new C0253b(backEvent));
|
||||
}
|
||||
}
|
||||
|
||||
public final void onBackStarted(BackEvent backEvent) {
|
||||
if (this.f8991b.f8989a != null) {
|
||||
this.f8990a.b(new C0253b(backEvent));
|
||||
}
|
||||
}
|
||||
}
|
||||
11
apk_decompiled/sources/y2/e.java
Normal file
11
apk_decompiled/sources/y2/e.java
Normal file
@@ -0,0 +1,11 @@
|
||||
package y2;
|
||||
|
||||
import android.window.OnBackInvokedCallback;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class e extends C0664c {
|
||||
@Override // y2.C0664c
|
||||
public final OnBackInvokedCallback a(InterfaceC0663b interfaceC0663b) {
|
||||
return new d(this, interfaceC0663b);
|
||||
}
|
||||
}
|
||||
66
apk_decompiled/sources/y2/f.java
Normal file
66
apk_decompiled/sources/y2/f.java
Normal file
@@ -0,0 +1,66 @@
|
||||
package y2;
|
||||
|
||||
import android.animation.AnimatorSet;
|
||||
import android.animation.ObjectAnimator;
|
||||
import android.content.res.Resources;
|
||||
import android.util.Property;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import com.adif.elcanomovil.R;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import i2.AbstractC0396a;
|
||||
import j0.C0399a;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class f extends AbstractC0662a {
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final float f8992g;
|
||||
public final float h;
|
||||
|
||||
public f(View view) {
|
||||
super(view);
|
||||
Resources resources = view.getResources();
|
||||
this.f8992g = resources.getDimension(R.dimen.m3_back_progress_bottom_container_max_scale_x_distance);
|
||||
this.h = resources.getDimension(R.dimen.m3_back_progress_bottom_container_max_scale_y_distance);
|
||||
}
|
||||
|
||||
public final AnimatorSet a() {
|
||||
AnimatorSet animatorSet = new AnimatorSet();
|
||||
View view = this.f8984b;
|
||||
animatorSet.playTogether(ObjectAnimator.ofFloat(view, (Property<View, Float>) View.SCALE_X, 1.0f), ObjectAnimator.ofFloat(view, (Property<View, Float>) View.SCALE_Y, 1.0f));
|
||||
if (view instanceof ViewGroup) {
|
||||
ViewGroup viewGroup = (ViewGroup) view;
|
||||
for (int i = 0; i < viewGroup.getChildCount(); i++) {
|
||||
animatorSet.playTogether(ObjectAnimator.ofFloat(viewGroup.getChildAt(i), (Property<View, Float>) View.SCALE_Y, 1.0f));
|
||||
}
|
||||
}
|
||||
animatorSet.setInterpolator(new C0399a(1));
|
||||
return animatorSet;
|
||||
}
|
||||
|
||||
public final void b(float f2) {
|
||||
float interpolation = this.f8983a.getInterpolation(f2);
|
||||
View view = this.f8984b;
|
||||
float width = view.getWidth();
|
||||
float height = view.getHeight();
|
||||
if (width <= BitmapDescriptorFactory.HUE_RED || height <= BitmapDescriptorFactory.HUE_RED) {
|
||||
return;
|
||||
}
|
||||
float f4 = this.f8992g / width;
|
||||
float f5 = this.h / height;
|
||||
float a2 = 1.0f - AbstractC0396a.a(BitmapDescriptorFactory.HUE_RED, f4, interpolation);
|
||||
float a4 = 1.0f - AbstractC0396a.a(BitmapDescriptorFactory.HUE_RED, f5, interpolation);
|
||||
view.setScaleX(a2);
|
||||
view.setPivotY(height);
|
||||
view.setScaleY(a4);
|
||||
if (view instanceof ViewGroup) {
|
||||
ViewGroup viewGroup = (ViewGroup) view;
|
||||
for (int i = 0; i < viewGroup.getChildCount(); i++) {
|
||||
View childAt = viewGroup.getChildAt(i);
|
||||
childAt.setPivotY(-childAt.getTop());
|
||||
childAt.setScaleY(a4 != BitmapDescriptorFactory.HUE_RED ? a2 / a4 : 1.0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
31
apk_decompiled/sources/y2/g.java
Normal file
31
apk_decompiled/sources/y2/g.java
Normal file
@@ -0,0 +1,31 @@
|
||||
package y2;
|
||||
|
||||
import android.animation.Animator;
|
||||
import android.animation.AnimatorListenerAdapter;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class g extends AnimatorListenerAdapter {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ boolean f8993a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ int f8994b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ h f8995c;
|
||||
|
||||
public g(h hVar, boolean z3, int i) {
|
||||
this.f8995c = hVar;
|
||||
this.f8993a = z3;
|
||||
this.f8994b = i;
|
||||
}
|
||||
|
||||
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
||||
public final void onAnimationEnd(Animator animator) {
|
||||
h hVar = this.f8995c;
|
||||
hVar.f8984b.setTranslationX(BitmapDescriptorFactory.HUE_RED);
|
||||
hVar.a(BitmapDescriptorFactory.HUE_RED, this.f8993a, this.f8994b);
|
||||
}
|
||||
}
|
||||
72
apk_decompiled/sources/y2/h.java
Normal file
72
apk_decompiled/sources/y2/h.java
Normal file
@@ -0,0 +1,72 @@
|
||||
package y2;
|
||||
|
||||
import O.X;
|
||||
import android.content.res.Resources;
|
||||
import android.view.Gravity;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import com.adif.elcanomovil.R;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import i2.AbstractC0396a;
|
||||
import java.util.WeakHashMap;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class h extends AbstractC0662a {
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final float f8996g;
|
||||
public final float h;
|
||||
public final float i;
|
||||
|
||||
public h(View view) {
|
||||
super(view);
|
||||
Resources resources = view.getResources();
|
||||
this.f8996g = resources.getDimension(R.dimen.m3_back_progress_side_container_max_scale_x_distance_shrink);
|
||||
this.h = resources.getDimension(R.dimen.m3_back_progress_side_container_max_scale_x_distance_grow);
|
||||
this.i = resources.getDimension(R.dimen.m3_back_progress_side_container_max_scale_y_distance);
|
||||
}
|
||||
|
||||
public final void a(float f2, boolean z3, int i) {
|
||||
float interpolation = this.f8983a.getInterpolation(f2);
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
View view = this.f8984b;
|
||||
boolean z4 = (Gravity.getAbsoluteGravity(i, view.getLayoutDirection()) & 3) == 3;
|
||||
boolean z5 = z3 == z4;
|
||||
int width = view.getWidth();
|
||||
int height = view.getHeight();
|
||||
float f4 = width;
|
||||
if (f4 > BitmapDescriptorFactory.HUE_RED) {
|
||||
float f5 = height;
|
||||
if (f5 <= BitmapDescriptorFactory.HUE_RED) {
|
||||
return;
|
||||
}
|
||||
float f6 = this.f8996g / f4;
|
||||
float f7 = this.h / f4;
|
||||
float f8 = this.i / f5;
|
||||
if (z4) {
|
||||
f4 = 0.0f;
|
||||
}
|
||||
view.setPivotX(f4);
|
||||
if (!z5) {
|
||||
f7 = -f6;
|
||||
}
|
||||
float a2 = AbstractC0396a.a(BitmapDescriptorFactory.HUE_RED, f7, interpolation);
|
||||
float f9 = a2 + 1.0f;
|
||||
view.setScaleX(f9);
|
||||
float a4 = 1.0f - AbstractC0396a.a(BitmapDescriptorFactory.HUE_RED, f8, interpolation);
|
||||
view.setScaleY(a4);
|
||||
if (view instanceof ViewGroup) {
|
||||
ViewGroup viewGroup = (ViewGroup) view;
|
||||
for (int i4 = 0; i4 < viewGroup.getChildCount(); i4++) {
|
||||
View childAt = viewGroup.getChildAt(i4);
|
||||
childAt.setPivotX(z4 ? childAt.getWidth() + (width - childAt.getRight()) : -childAt.getLeft());
|
||||
childAt.setPivotY(-childAt.getTop());
|
||||
float f10 = z5 ? 1.0f - a2 : 1.0f;
|
||||
float f11 = a4 != BitmapDescriptorFactory.HUE_RED ? (f9 / a4) * f10 : 1.0f;
|
||||
childAt.setScaleX(f10);
|
||||
childAt.setScaleY(f11);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user