mirror of
https://github.com/revanced/revanced-patches
synced 2025-01-31 18:17:32 +01:00
fix(Google Photos - GmsCore support): Fix by checking first if a method exists before trying to patch it
This commit is contained in:
parent
ebbcac74fd
commit
acf38cafae
@ -100,7 +100,13 @@ abstract class BaseGmsCoreSupportPatch(
|
|||||||
primeMethodFingerprint?.let { transformPrimeMethod(packageName) }
|
primeMethodFingerprint?.let { transformPrimeMethod(packageName) }
|
||||||
|
|
||||||
// Return these methods early to prevent the app from crashing.
|
// Return these methods early to prevent the app from crashing.
|
||||||
(earlyReturnFingerprints + ServiceCheckFingerprint + CastDynamiteModuleFingerprint).returnEarly()
|
earlyReturnFingerprints.returnEarly()
|
||||||
|
ServiceCheckFingerprint.returnEarly()
|
||||||
|
// Not all apps have CastDynamiteModule, so we need to check if it's present.
|
||||||
|
if (CastDynamiteModuleFingerprint.result != null) {
|
||||||
|
CastDynamiteModuleFingerprint.returnEarly()
|
||||||
|
}
|
||||||
|
// Google Play Utility is not present in all apps, so we need to check if it's present.
|
||||||
if (GooglePlayUtilityFingerprint.result != null) {
|
if (GooglePlayUtilityFingerprint.result != null) {
|
||||||
GooglePlayUtilityFingerprint.returnEarly()
|
GooglePlayUtilityFingerprint.returnEarly()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user