From 886b4ebc131b6c4f97115b0aaead2e68813c0eb4 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Wed, 16 Oct 2024 01:39:59 +0200 Subject: [PATCH] remove unclear patch I noticed a log spam due to this patch. Returning null is unexpected by YouTube here --- .../app/revanced/patches/shared/misc/gms/Fingerprints.kt | 4 ---- .../revanced/patches/shared/misc/gms/GmsCoreSupportPatch.kt | 6 +----- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/patches/src/main/kotlin/app/revanced/patches/shared/misc/gms/Fingerprints.kt b/patches/src/main/kotlin/app/revanced/patches/shared/misc/gms/Fingerprints.kt index 441c748cd5..b5f613d541 100644 --- a/patches/src/main/kotlin/app/revanced/patches/shared/misc/gms/Fingerprints.kt +++ b/patches/src/main/kotlin/app/revanced/patches/shared/misc/gms/Fingerprints.kt @@ -11,10 +11,6 @@ internal val gmsCoreSupportFingerprint = fingerprint { } } -internal val castDynamiteModuleFingerprint = fingerprint { - strings("com.google.android.gms.cast.framework.internal.CastDynamiteModuleImpl") -} - internal val googlePlayUtilityFingerprint = fingerprint { accessFlags(AccessFlags.PUBLIC, AccessFlags.STATIC) returns("I") diff --git a/patches/src/main/kotlin/app/revanced/patches/shared/misc/gms/GmsCoreSupportPatch.kt b/patches/src/main/kotlin/app/revanced/patches/shared/misc/gms/GmsCoreSupportPatch.kt index f936aac53d..aa86c6f569 100644 --- a/patches/src/main/kotlin/app/revanced/patches/shared/misc/gms/GmsCoreSupportPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/shared/misc/gms/GmsCoreSupportPatch.kt @@ -84,7 +84,6 @@ fun gmsCoreSupportPatch( primeMethodFingerprint?.invoke() googlePlayUtilityFingerprint() serviceCheckFingerprint() - castDynamiteModuleFingerprint() earlyReturnFingerprints.forEach { it() } execute { context -> @@ -208,10 +207,7 @@ fun gmsCoreSupportPatch( // Return these methods early to prevent the app from crashing. earlyReturnFingerprints.returnEarly() serviceCheckFingerprint.returnEarly() - // Not all apps have CastDynamiteModule, so we need to check if it's present. - if (castDynamiteModuleFingerprint.match != null) { - castDynamiteModuleFingerprint.returnEarly() - } + // Google Play Utility is not present in all apps, so we need to check if it's present. if (googlePlayUtilityFingerprint.match != null) { googlePlayUtilityFingerprint.returnEarly()