You've already forked PlayIntegrityFork
mirror of
https://github.com/osm0sis/PlayIntegrityFork.git
synced 2025-09-06 06:37:06 +00:00
Release v13.4
This commit is contained in:
@@ -3,33 +3,26 @@ package es.chiteroman.playintegrityfix;
|
||||
import android.os.Build;
|
||||
import android.util.Log;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileReader;
|
||||
import java.io.IOException;
|
||||
import java.io.Reader;
|
||||
import java.lang.reflect.Field;
|
||||
import java.security.KeyStore;
|
||||
import java.security.KeyStoreException;
|
||||
import java.security.KeyStoreSpi;
|
||||
import java.security.Provider;
|
||||
import java.security.Security;
|
||||
import java.util.Properties;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public final class EntryPoint {
|
||||
private static final Properties props = new Properties();
|
||||
private static final File file = new File("/data/data/com.google.android.gms/cache/pif.prop");
|
||||
private static final Map<String, String> map = new HashMap<>();
|
||||
|
||||
public static void init() {
|
||||
|
||||
try (Reader reader = new FileReader(file)) {
|
||||
props.load(reader);
|
||||
LOG("Loaded " + props.size() + " fields!");
|
||||
} catch (IOException e) {
|
||||
LOG("Couldn't load pif.prop file: " + e);
|
||||
}
|
||||
|
||||
spoofDevice();
|
||||
spoofProvider();
|
||||
spoofDevice();
|
||||
}
|
||||
|
||||
public static void addProp(String key, String value) {
|
||||
map.put(key, value);
|
||||
LOG(String.format("Received from Zygisk lib: [%s] -> '%s'", key, value));
|
||||
}
|
||||
|
||||
private static void spoofProvider() {
|
||||
@@ -60,13 +53,13 @@ public final class EntryPoint {
|
||||
}
|
||||
|
||||
public static void spoofDevice() {
|
||||
setProp("PRODUCT", props.getProperty("PRODUCT", "bullhead"));
|
||||
setProp("DEVICE", props.getProperty("DEVICE", "bullhead"));
|
||||
setProp("MANUFACTURER", props.getProperty("MANUFACTURER", "LGE"));
|
||||
setProp("BRAND", props.getProperty("BRAND", "google"));
|
||||
setProp("MODEL", props.getProperty("MODEL", "Nexus 5X"));
|
||||
setProp("FINGERPRINT", props.getProperty("FINGERPRINT", "google/bullhead/bullhead:8.0.0/OPR6.170623.013/4283548:user/release-keys"));
|
||||
setVersionProp("SECURITY_PATCH", props.getProperty("SECURITY_PATCH", "2017-08-05"));
|
||||
setProp("PRODUCT", map.get("PRODUCT"));
|
||||
setProp("DEVICE", map.get("DEVICE"));
|
||||
setProp("MANUFACTURER", map.get("MANUFACTURER"));
|
||||
setProp("BRAND", map.get("BRAND"));
|
||||
setProp("MODEL", map.get("MODEL"));
|
||||
setProp("FINGERPRINT", map.get("FINGERPRINT"));
|
||||
setVersionProp("SECURITY_PATCH", map.get("SECURITY_PATCH"));
|
||||
}
|
||||
|
||||
private static void setProp(String name, String value) {
|
||||
|
||||
Reference in New Issue
Block a user