CrackMe.apk
Download file
package androidx.autofill.inline;
import android.os.Bundle;
import androidx.autofill.inline.UiVersions;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public final class VersionUtils {
private static final String KEY_INLINE_UI_VERSIONS = "androidx.autofill.inline.ui.version:key";
public static boolean isVersionSupported(String str) {
return UiVersions.getUiVersions().contains(str);
}
public static List<String> getSupportedVersions(Bundle bundle) {
ArrayList arrayList = new ArrayList();
ArrayList<String> stringArrayList = bundle.getStringArrayList(KEY_INLINE_UI_VERSIONS);
if (stringArrayList != null) {
Iterator<String> it = stringArrayList.iterator();
while (it.hasNext()) {
String next = it.next();
if (isVersionSupported(next)) {
arrayList.add(next);
}
}
}
return arrayList;
}
public static void writeSupportedVersions(Bundle bundle) {
bundle.putStringArrayList(KEY_INLINE_UI_VERSIONS, new ArrayList(UiVersions.getUiVersions()));
}
public static void writeStylesToBundle(List<UiVersions.Style> list, Bundle bundle) {
ArrayList arrayList = new ArrayList();
for (UiVersions.Style next : list) {
String version = next.getVersion();
arrayList.add(next.getVersion());
bundle.putBundle(version, next.getBundle());
}
bundle.putStringArrayList(KEY_INLINE_UI_VERSIONS, arrayList);
}
public static Bundle readStyleByVersion(Bundle bundle, String str) {
return bundle.getBundle(str);
}
private VersionUtils() {
}
}
Download file