fix: update parameter to mainActivityOnCreateFingerprintToInsertIndex
- Fix compilation error by using correct parameter name - Update to match current gmsCoreSupportPatch signature - Parameter is now Pair<Fingerprint, BytecodePatchContext.() -> Int> - Rebased on latest dev branch
This commit is contained in:
parent
1be0eb9e96
commit
6d6fca1870
1 changed files with 5 additions and 5 deletions
|
|
@ -24,7 +24,7 @@ import app.revanced.patches.shared.misc.gms.gmsCoreSupportResourcePatch
|
||||||
* fromPackageName = PHOTOS_PACKAGE_NAME,
|
* fromPackageName = PHOTOS_PACKAGE_NAME,
|
||||||
* toPackageName = REVANCED_PHOTOS_PACKAGE_NAME,
|
* toPackageName = REVANCED_PHOTOS_PACKAGE_NAME,
|
||||||
* spoofedPackageSignature = "24bb24c05e47e0aefa68a58a766179d9b613a600",
|
* spoofedPackageSignature = "24bb24c05e47e0aefa68a58a766179d9b613a600",
|
||||||
* mainActivityOnCreateFingerprint = homeActivityOnCreateFingerprint,
|
* mainActivityOnCreateFingerprintToInsertIndex = homeActivityOnCreateFingerprint to { 0 },
|
||||||
* extensionPatch = extensionPatch,
|
* extensionPatch = extensionPatch,
|
||||||
* ) {
|
* ) {
|
||||||
* compatibleWith(PHOTOS_PACKAGE_NAME)
|
* compatibleWith(PHOTOS_PACKAGE_NAME)
|
||||||
|
|
@ -53,7 +53,7 @@ import app.revanced.patches.shared.misc.gms.gmsCoreSupportResourcePatch
|
||||||
* fromPackageName = MY_APP_PACKAGE,
|
* fromPackageName = MY_APP_PACKAGE,
|
||||||
* toPackageName = REVANCED_MY_APP_PACKAGE,
|
* toPackageName = REVANCED_MY_APP_PACKAGE,
|
||||||
* spoofedPackageSignature = "your_app_signature_here",
|
* spoofedPackageSignature = "your_app_signature_here",
|
||||||
* mainActivityOnCreateFingerprint = mainActivityOnCreateFingerprint,
|
* mainActivityOnCreateFingerprintToInsertIndex = mainActivityOnCreateFingerprint to { 0 },
|
||||||
* extensionPatch = extensionPatch,
|
* extensionPatch = extensionPatch,
|
||||||
* ) {
|
* ) {
|
||||||
* compatibleWith(MY_APP_PACKAGE)
|
* compatibleWith(MY_APP_PACKAGE)
|
||||||
|
|
@ -63,7 +63,7 @@ import app.revanced.patches.shared.misc.gms.gmsCoreSupportResourcePatch
|
||||||
* @param fromPackageName The original package name (e.g., `com.google.android.apps.photos`)
|
* @param fromPackageName The original package name (e.g., `com.google.android.apps.photos`)
|
||||||
* @param toPackageName The ReVanced package name (e.g., `app.revanced.android.apps.photos`)
|
* @param toPackageName The ReVanced package name (e.g., `app.revanced.android.apps.photos`)
|
||||||
* @param spoofedPackageSignature The app's original signature for GmsCore authentication
|
* @param spoofedPackageSignature The app's original signature for GmsCore authentication
|
||||||
* @param mainActivityOnCreateFingerprint Fingerprint for the main activity's onCreate method
|
* @param mainActivityOnCreateFingerprintToInsertIndex Pair of fingerprint and function to get insert index
|
||||||
* @param extensionPatch The app's extension patch
|
* @param extensionPatch The app's extension patch
|
||||||
* @param primeMethodFingerprint (Optional) Fingerprint for the prime method
|
* @param primeMethodFingerprint (Optional) Fingerprint for the prime method
|
||||||
* @param earlyReturnFingerprints (Optional) Set of fingerprints for methods that need early returns
|
* @param earlyReturnFingerprints (Optional) Set of fingerprints for methods that need early returns
|
||||||
|
|
@ -76,7 +76,7 @@ fun gmsCoreSupportBuilder(
|
||||||
fromPackageName: String,
|
fromPackageName: String,
|
||||||
toPackageName: String,
|
toPackageName: String,
|
||||||
spoofedPackageSignature: String,
|
spoofedPackageSignature: String,
|
||||||
mainActivityOnCreateFingerprint: Fingerprint,
|
mainActivityOnCreateFingerprintToInsertIndex: Pair<Fingerprint, BytecodePatchContext.() -> Int>,
|
||||||
extensionPatch: Patch<*>,
|
extensionPatch: Patch<*>,
|
||||||
primeMethodFingerprint: Fingerprint? = null,
|
primeMethodFingerprint: Fingerprint? = null,
|
||||||
earlyReturnFingerprints: Set<Fingerprint> = emptySet(),
|
earlyReturnFingerprints: Set<Fingerprint> = emptySet(),
|
||||||
|
|
@ -87,7 +87,7 @@ fun gmsCoreSupportBuilder(
|
||||||
toPackageName = toPackageName,
|
toPackageName = toPackageName,
|
||||||
primeMethodFingerprint = primeMethodFingerprint,
|
primeMethodFingerprint = primeMethodFingerprint,
|
||||||
earlyReturnFingerprints = earlyReturnFingerprints,
|
earlyReturnFingerprints = earlyReturnFingerprints,
|
||||||
mainActivityOnCreateFingerprint = mainActivityOnCreateFingerprint,
|
mainActivityOnCreateFingerprintToInsertIndex = mainActivityOnCreateFingerprintToInsertIndex,
|
||||||
extensionPatch = extensionPatch,
|
extensionPatch = extensionPatch,
|
||||||
gmsCoreSupportResourcePatchFactory = { gmsCoreVendorGroupIdOption ->
|
gmsCoreSupportResourcePatchFactory = { gmsCoreVendorGroupIdOption ->
|
||||||
gmsCoreSupportResourcePatch(
|
gmsCoreSupportResourcePatch(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue