Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

Commit

Permalink
remove unclear patch
Browse files Browse the repository at this point in the history
I noticed a log spam due to this patch. Returning null is unexpected by YouTube here
  • Loading branch information
oSumAtrIX committed Oct 15, 2024
1 parent 53383e1 commit 886b4eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ fun gmsCoreSupportPatch(
primeMethodFingerprint?.invoke()
googlePlayUtilityFingerprint()
serviceCheckFingerprint()
castDynamiteModuleFingerprint()
earlyReturnFingerprints.forEach { it() }

execute { context ->
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 886b4eb

Please sign in to comment.