Remove pif.prop, broke some devices

This commit is contained in:
chiteroman
2023-11-24 11:52:57 +01:00
parent ed330ac37a
commit 35a735672d
3 changed files with 57 additions and 182 deletions
@@ -9,23 +9,14 @@ import java.security.KeyStoreException;
import java.security.KeyStoreSpi;
import java.security.Provider;
import java.security.Security;
import java.util.HashMap;
import java.util.Map;
public final class EntryPoint {
private static final Map<String, String> map = new HashMap<>();
public static void init() {
spoofProvider();
spoofDevice();
}
public static void addProp(String key, String value) {
if (key == null || value == null || key.isEmpty() || value.isEmpty()) return;
map.put(key, value);
LOG(String.format("Received from Zygisk lib: [%s] -> '%s'", key, value));
}
private static void spoofProvider() {
final String KEYSTORE = "AndroidKeyStore";
@@ -54,13 +45,13 @@ public final class EntryPoint {
}
public static void spoofDevice() {
setProp("PRODUCT", map.getOrDefault("PRODUCT", "bullhead"));
setProp("DEVICE", map.getOrDefault("DEVICE", "bullhead"));
setProp("MANUFACTURER", map.getOrDefault("MANUFACTURER", "LGE"));
setProp("BRAND", map.getOrDefault("BRAND", "google"));
setProp("MODEL", map.getOrDefault("MODEL", "Nexus 5X"));
setProp("FINGERPRINT", map.getOrDefault("FINGERPRINT", "google/bullhead/bullhead:8.0.0/OPR6.170623.013/4283548:user/release-keys"));
setVersionProp("SECURITY_PATCH", map.getOrDefault("SECURITY_PATCH", "2017-08-05"));
setProp("PRODUCT", "bullhead");
setProp("DEVICE", "bullhead");
setProp("MANUFACTURER", "LGE");
setProp("BRAND", "google");
setProp("MODEL", "Nexus 5X");
setProp("FINGERPRINT", "google/bullhead/bullhead:8.0.0/OPR6.170623.013/4283548:user/release-keys");
setVersionProp("SECURITY_PATCH", "2017-08-05");
}
private static void setProp(String name, String value) {