Skip to content

Commit

Permalink
support Digitales Amt/ID Austria app "at.gv.oe.app"
Browse files Browse the repository at this point in the history
  • Loading branch information
BotoX committed Oct 20, 2022
1 parent a2267d1 commit 4fb09a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class ProxyKeyStoreSpi private constructor(
// android.os.Binder.execTransact(Binder.java:1143)
logDebug("Stack trace element: $it")
it.className.contains("DroidGuard", ignoreCase = true)
it.methodName.equals("performCapabilityAndIntegrityCheck")
}

override fun engineGetCertificateChain(alias: String?): Array<Certificate>? {
Expand Down
1 change: 1 addition & 0 deletions magisk/post-fs-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
# Remove Play Services from the Magisk Denylist when set to enforcing.
if magisk --denylist status; then
magisk --denylist rm com.google.android.gms
magisk --denylist rm at.gv.oe.app
fi
4 changes: 2 additions & 2 deletions zygisk/module/jni/module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class SafetyNetFixModule : public zygisk::ModuleBase {

void preSpecialize(const std::string& process) {
// Only touch GMS
if (process.rfind("com.google.android.gms", 0) != 0) {
if (process.rfind("com.google.android.gms", 0) != 0 && process != "at.gv.oe.app") {
api->setOption(zygisk::DLCLOSE_MODULE_LIBRARY);
return;
}
Expand All @@ -97,7 +97,7 @@ class SafetyNetFixModule : public zygisk::ModuleBase {
// spoof the model in that process. Leaving other processes alone fixes various issues
// caused by model detection and flag provisioning, such as broken weather with the new
// smartspace on Android 12.
if (process == "com.google.android.gms.unstable") {
if (process == "com.google.android.gms.unstable" || process == "at.gv.oe.app") {
// Load the payload, but don't inject it yet until after specialization
// Otherwise, specialization fails if any code from the payload still happens to be
// running
Expand Down

0 comments on commit 4fb09a2

Please sign in to comment.