PlayIntegrityFix/app/src/main/java/es/chiteroman/playintegrityfix/CustomProvider.java
chiteroman bd55606e21 v13.1
2023-11-20 00:42:21 +01:00

19 lines
541 B
Java

package es.chiteroman.playintegrityfix;
import java.security.Provider;
public final class CustomProvider extends Provider {
CustomProvider(Provider provider) {
super(provider.getName(), provider.getVersion(), provider.getInfo());
putAll(provider);
this.put("KeyStore.AndroidKeyStore", CustomKeyStoreSpi.class.getName());
}
@Override
public synchronized Service getService(String type, String algorithm) {
EntryPoint.spoofDevice();
return super.getService(type, algorithm);
}
}