-
-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bdef429
commit 0dd66bf
Showing
12 changed files
with
227 additions
and
48 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
105 changes: 105 additions & 0 deletions
105
app/src/main/java/es/chiteroman/playintegrityfix/CustomKeyStoreSpi.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
package es.chiteroman.playintegrityfix; | ||
|
||
import java.io.IOException; | ||
import java.io.InputStream; | ||
import java.io.OutputStream; | ||
import java.security.Key; | ||
import java.security.KeyStoreException; | ||
import java.security.KeyStoreSpi; | ||
import java.security.NoSuchAlgorithmException; | ||
import java.security.UnrecoverableKeyException; | ||
import java.security.cert.Certificate; | ||
import java.security.cert.CertificateException; | ||
import java.util.Date; | ||
import java.util.Enumeration; | ||
import java.util.Locale; | ||
|
||
public final class CustomKeyStoreSpi extends KeyStoreSpi { | ||
public static volatile KeyStoreSpi keyStoreSpi; | ||
|
||
@Override | ||
public Key engineGetKey(String alias, char[] password) throws NoSuchAlgorithmException, UnrecoverableKeyException { | ||
return keyStoreSpi.engineGetKey(alias, password); | ||
} | ||
|
||
@Override | ||
public Certificate[] engineGetCertificateChain(String alias) { | ||
for (StackTraceElement stackTraceElement : Thread.currentThread().getStackTrace()) { | ||
if (stackTraceElement.getClassName().toLowerCase(Locale.US).contains("droidguard")) { | ||
EntryPoint.LOG("DroidGuard call certificate chain! Throw exception."); | ||
throw new UnsupportedOperationException(); | ||
} | ||
} | ||
return keyStoreSpi.engineGetCertificateChain(alias); | ||
} | ||
|
||
@Override | ||
public Certificate engineGetCertificate(String alias) { | ||
return keyStoreSpi.engineGetCertificate(alias); | ||
} | ||
|
||
@Override | ||
public Date engineGetCreationDate(String alias) { | ||
return keyStoreSpi.engineGetCreationDate(alias); | ||
} | ||
|
||
@Override | ||
public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) throws KeyStoreException { | ||
keyStoreSpi.engineSetKeyEntry(alias, key, password, chain); | ||
} | ||
|
||
@Override | ||
public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) throws KeyStoreException { | ||
keyStoreSpi.engineSetKeyEntry(alias, key, chain); | ||
} | ||
|
||
@Override | ||
public void engineSetCertificateEntry(String alias, Certificate cert) throws KeyStoreException { | ||
keyStoreSpi.engineSetCertificateEntry(alias, cert); | ||
} | ||
|
||
@Override | ||
public void engineDeleteEntry(String alias) throws KeyStoreException { | ||
keyStoreSpi.engineDeleteEntry(alias); | ||
} | ||
|
||
@Override | ||
public Enumeration<String> engineAliases() { | ||
return keyStoreSpi.engineAliases(); | ||
} | ||
|
||
@Override | ||
public boolean engineContainsAlias(String alias) { | ||
return keyStoreSpi.engineContainsAlias(alias); | ||
} | ||
|
||
@Override | ||
public int engineSize() { | ||
return keyStoreSpi.engineSize(); | ||
} | ||
|
||
@Override | ||
public boolean engineIsKeyEntry(String alias) { | ||
return keyStoreSpi.engineIsKeyEntry(alias); | ||
} | ||
|
||
@Override | ||
public boolean engineIsCertificateEntry(String alias) { | ||
return keyStoreSpi.engineIsCertificateEntry(alias); | ||
} | ||
|
||
@Override | ||
public String engineGetCertificateAlias(Certificate cert) { | ||
return keyStoreSpi.engineGetCertificateAlias(cert); | ||
} | ||
|
||
@Override | ||
public void engineStore(OutputStream stream, char[] password) throws CertificateException, IOException, NoSuchAlgorithmException { | ||
keyStoreSpi.engineStore(stream, password); | ||
} | ||
|
||
@Override | ||
public void engineLoad(InputStream stream, char[] password) throws CertificateException, IOException, NoSuchAlgorithmException { | ||
keyStoreSpi.engineLoad(stream, password); | ||
} | ||
} |
11 changes: 3 additions & 8 deletions
11
app/src/main/java/es/chiteroman/playintegrityfix/CustomProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
#Wed Feb 07 09:57:46 CET 2024 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionSha256Sum=9d926787066a081739e8200858338b4a69e837c3a821a33aca9db09dd4a41026 | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
#Wed Feb 07 18:13:12 CET 2024 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip | ||
networkTimeout=10000 | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
id=playintegrityfix | ||
name=Play Integrity Fix | ||
version=v15.7 | ||
versionCode=15700 | ||
version=v15.7.1 | ||
versionCode=15701 | ||
author=chiteroman | ||
description=Universal modular fix for Play Integrity (and SafetyNet) on devices running Android 8+. | ||
updateJson=https://raw.githubusercontent.com/chiteroman/PlayIntegrityFix/main/update.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"version": "v15.6", | ||
"versionCode": 15600, | ||
"zipUrl": "https://github.com/chiteroman/PlayIntegrityFix/releases/download/v15.6/PlayIntegrityFix_v15.6.zip", | ||
"version": "v15.7.1", | ||
"versionCode": 15701, | ||
"zipUrl": "https://github.com/chiteroman/PlayIntegrityFix/releases/download/v15.7/PlayIntegrityFix_v15.7.1.zip", | ||
"changelog": "https://raw.githubusercontent.com/chiteroman/PlayIntegrityFix/main/changelog.md" | ||
} |