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:
2025-12-04 13:59:54 +01:00
parent f2fd1c3bf5
commit e0133d2ca2
10432 changed files with 1019085 additions and 1 deletions

View File

@@ -0,0 +1,43 @@
package n1;
import com.adif.elcanomovil.domain.usecases.recentSearch.GetRecentSearchesUseCase;
import java.util.Collection;
import java.util.Iterator;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.ContinuationImpl;
import kotlin.jvm.internal.IntCompanionObject;
/* loaded from: classes.dex */
public final class a extends ContinuationImpl {
/* renamed from: a, reason: collision with root package name */
public GetRecentSearchesUseCase f7843a;
/* renamed from: b, reason: collision with root package name */
public Collection f7844b;
/* renamed from: c, reason: collision with root package name */
public Iterator f7845c;
/* renamed from: d, reason: collision with root package name */
public /* synthetic */ Object f7846d;
/* renamed from: e, reason: collision with root package name */
public final /* synthetic */ GetRecentSearchesUseCase f7847e;
/* renamed from: f, reason: collision with root package name */
public int f7848f;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public a(GetRecentSearchesUseCase getRecentSearchesUseCase, Continuation continuation) {
super(continuation);
this.f7847e = getRecentSearchesUseCase;
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Object invokeSuspend(Object obj) {
this.f7846d = obj;
this.f7848f |= IntCompanionObject.MIN_VALUE;
return this.f7847e.invoke(this);
}
}

View File

@@ -0,0 +1,56 @@
package n1;
import com.adif.elcanomovil.domain.repositories.searches.SearchesRepository;
import com.adif.elcanomovil.domain.usecases.recentSearch.GetRecentTrainSearchesUseCase;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.intrinsics.IntrinsicsKt;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.jvm.functions.Function2;
import kotlinx.coroutines.CoroutineScope;
/* loaded from: classes.dex */
public final class b extends SuspendLambda implements Function2 {
/* renamed from: a, reason: collision with root package name */
public int f7849a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ GetRecentTrainSearchesUseCase f7850b;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public b(GetRecentTrainSearchesUseCase getRecentTrainSearchesUseCase, Continuation continuation) {
super(2, continuation);
this.f7850b = getRecentTrainSearchesUseCase;
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Continuation create(Object obj, Continuation continuation) {
return new b(this.f7850b, continuation);
}
@Override // kotlin.jvm.functions.Function2
public final Object invoke(Object obj, Object obj2) {
return ((b) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Object invokeSuspend(Object obj) {
SearchesRepository searchesRepository;
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
int i = this.f7849a;
if (i != 0) {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
ResultKt.throwOnFailure(obj);
return obj;
}
ResultKt.throwOnFailure(obj);
searchesRepository = this.f7850b.searchesRepository;
this.f7849a = 1;
Object fetchTrainsSelected = searchesRepository.fetchTrainsSelected(this);
return fetchTrainsSelected == coroutine_suspended ? coroutine_suspended : fetchTrainsSelected;
}
}

View File

@@ -0,0 +1,75 @@
package n1;
import com.adif.elcanomovil.domain.entities.StorableStation;
import com.adif.elcanomovil.domain.repositories.searches.SearchesRepository;
import com.adif.elcanomovil.domain.usecases.recentSearch.SaveRecentSearchUseCase;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.collections.CollectionsKt__IterablesKt;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.intrinsics.IntrinsicsKt;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.jvm.functions.Function2;
import kotlinx.coroutines.CoroutineScope;
/* loaded from: classes.dex */
public final class c extends SuspendLambda implements Function2 {
/* renamed from: a, reason: collision with root package name */
public int f7851a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ SaveRecentSearchUseCase f7852b;
/* renamed from: c, reason: collision with root package name */
public final /* synthetic */ List f7853c;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public c(SaveRecentSearchUseCase saveRecentSearchUseCase, List list, Continuation continuation) {
super(2, continuation);
this.f7852b = saveRecentSearchUseCase;
this.f7853c = list;
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Continuation create(Object obj, Continuation continuation) {
return new c(this.f7852b, this.f7853c, continuation);
}
@Override // kotlin.jvm.functions.Function2
public final Object invoke(Object obj, Object obj2) {
return ((c) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Object invokeSuspend(Object obj) {
SearchesRepository searchesRepository;
int collectionSizeOrDefault;
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
int i = this.f7851a;
if (i == 0) {
ResultKt.throwOnFailure(obj);
searchesRepository = this.f7852b.searchesRepository;
List list = this.f7853c;
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
Iterator it = list.iterator();
while (it.hasNext()) {
arrayList.add(new StorableStation((String) it.next()));
}
this.f7851a = 1;
if (searchesRepository.saveSearch(arrayList, this) == coroutine_suspended) {
return coroutine_suspended;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
ResultKt.throwOnFailure(obj);
}
return Unit.INSTANCE;
}
}

View File

@@ -0,0 +1,88 @@
package n1;
import com.adif.elcanomovil.domain.entities.StorableTrain;
import com.adif.elcanomovil.domain.repositories.searches.SearchesRepository;
import com.adif.elcanomovil.domain.usecases.recentSearch.SaveRecentTrainSearchUseCase;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.intrinsics.IntrinsicsKt;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.jvm.functions.Function2;
import kotlinx.coroutines.CoroutineScope;
/* loaded from: classes.dex */
public final class d extends SuspendLambda implements Function2 {
/* renamed from: a, reason: collision with root package name */
public int f7854a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ SaveRecentTrainSearchUseCase f7855b;
/* renamed from: c, reason: collision with root package name */
public final /* synthetic */ String f7856c;
/* renamed from: d, reason: collision with root package name */
public final /* synthetic */ String f7857d;
/* renamed from: e, reason: collision with root package name */
public final /* synthetic */ String f7858e;
/* renamed from: f, reason: collision with root package name */
public final /* synthetic */ String f7859f;
/* renamed from: g, reason: collision with root package name */
public final /* synthetic */ String f7860g;
public final /* synthetic */ long h;
public final /* synthetic */ long i;
/* renamed from: j, reason: collision with root package name */
public final /* synthetic */ String f7861j;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public d(SaveRecentTrainSearchUseCase saveRecentTrainSearchUseCase, String str, String str2, String str3, String str4, String str5, long j4, long j5, String str6, Continuation continuation) {
super(2, continuation);
this.f7855b = saveRecentTrainSearchUseCase;
this.f7856c = str;
this.f7857d = str2;
this.f7858e = str3;
this.f7859f = str4;
this.f7860g = str5;
this.h = j4;
this.i = j5;
this.f7861j = str6;
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Continuation create(Object obj, Continuation continuation) {
return new d(this.f7855b, this.f7856c, this.f7857d, this.f7858e, this.f7859f, this.f7860g, this.h, this.i, this.f7861j, continuation);
}
@Override // kotlin.jvm.functions.Function2
public final Object invoke(Object obj, Object obj2) {
return ((d) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Object invokeSuspend(Object obj) {
SearchesRepository searchesRepository;
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
int i = this.f7854a;
if (i == 0) {
ResultKt.throwOnFailure(obj);
searchesRepository = this.f7855b.searchesRepository;
StorableTrain storableTrain = new StorableTrain(this.f7856c, this.f7857d, this.f7858e, this.f7859f, this.f7860g, this.h, this.i, this.f7861j);
this.f7854a = 1;
if (searchesRepository.saveTrainSelected(storableTrain, this) == coroutine_suspended) {
return coroutine_suspended;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
ResultKt.throwOnFailure(obj);
}
return Unit.INSTANCE;
}
}