PlayIntegrityFix/app/src/main/java/es/chiteroman/playintegrityfix/CustomProvider.java

19 lines
541 B
Java
Raw Normal View History

2023-11-20 01:42:21 +02:00
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);
}
}