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:
41
apk_decompiled/sources/dagger/internal/SetBuilder.java
Normal file
41
apk_decompiled/sources/dagger/internal/SetBuilder.java
Normal file
@@ -0,0 +1,41 @@
|
||||
package dagger.internal;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class SetBuilder<T> {
|
||||
private static final String SET_CONTRIBUTIONS_CANNOT_BE_NULL = "Set contributions cannot be null";
|
||||
private final List<T> contributions;
|
||||
|
||||
private SetBuilder(int i) {
|
||||
this.contributions = new ArrayList(i);
|
||||
}
|
||||
|
||||
public static <T> SetBuilder<T> newSetBuilder(int i) {
|
||||
return new SetBuilder<>(i);
|
||||
}
|
||||
|
||||
public SetBuilder<T> add(T t2) {
|
||||
this.contributions.add(Preconditions.checkNotNull(t2, SET_CONTRIBUTIONS_CANNOT_BE_NULL));
|
||||
return this;
|
||||
}
|
||||
|
||||
public SetBuilder<T> addAll(Collection<? extends T> collection) {
|
||||
Iterator<? extends T> it = collection.iterator();
|
||||
while (it.hasNext()) {
|
||||
Preconditions.checkNotNull(it.next(), SET_CONTRIBUTIONS_CANNOT_BE_NULL);
|
||||
}
|
||||
this.contributions.addAll(collection);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Set<T> build() {
|
||||
return this.contributions.isEmpty() ? Collections.EMPTY_SET : this.contributions.size() == 1 ? Collections.singleton(this.contributions.get(0)) : Collections.unmodifiableSet(new HashSet(this.contributions));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user