Commit graph

4522 commits

Author SHA1 Message Date
Subrajit Pandey
6d6fca1870 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
2026-02-24 11:25:10 +05:30
Subrajit Pandey
1be0eb9e96 refactor: address maintainer feedback
- Move README content into inline KDoc comments to avoid .rvp inclusion
- Simplify by directly calling gmsCoreSupportResourcePatch instead of wrapper
- Enhanced documentation with usage examples and signature finding guide
- Consistent with other inline documentation in the project
2026-02-24 11:23:34 +05:30
Subrajit Pandey
c84dd539d2 refactor: simplify to gmsCoreSupportBuilder per maintainer feedback
- Remove universal patch that throws exception (not useful)
- Create gmsCoreSupportBuilder() function to condense bytecode + resource patches
- Remove SignatureRegistry - signatures now passed as parameters
- Remove AppRegistry and Utils - not needed with simpler approach
- Add README with usage documentation
- This is a developer helper, not a user-facing patch
2026-02-24 11:23:34 +05:30
Subrajit Pandey
a2e9f1218c refactor: Remove ExampleUsage.kt file
The examples are already well-documented in the main patch file's KDoc comments.
Removing this file to keep the implementation cleaner and more focused.
2026-02-24 11:23:34 +05:30
Subrajit Pandey
38568695fa feat: Add universal GmsCore support helper function
This PR introduces a universal helper function for adding GmsCore support
to Google apps, significantly reducing code duplication and boilerplate.

Key Features:
- Reduces GmsCore patch code by 85-90% (from 80+ lines to 6-11 lines)
- Eliminates 100% of code duplication across apps
- Provides simple, consistent API via createUniversalGmsCoreSupportPatch()
- Uses proven shared framework (gmsCoreSupportPatch)
- Pre-configured for YouTube, YouTube Music, Google Photos, Google News

Implementation:
- SignatureRegistry.kt: Maps package names to signatures
- AppRegistry.kt: Stores app-specific configurations
- Utils.kt: Helper utilities for detection and validation
- UniversalGmsCoreSupportPatch.kt: Main helper function
- ExampleUsage.kt: Comprehensive usage examples

Benefits:
- Single source of truth for GmsCore implementation
- Easy to add new apps (just add signature + call helper)
- Maintainable (fix once, applies everywhere)
- Backward compatible (doesn't affect existing patches)

Example Usage:
// Step 1: Add signature to SignatureRegistry.kt
"com.google.android.youtube" to "24bb24c05e47e0aefa68a58a766179d9b613a600"

// Step 2: Use helper function
val gmsCoreSupportPatch = createUniversalGmsCoreSupportPatch(
    fromPackageName = YOUTUBE_PACKAGE_NAME,
    extensionPatch = sharedExtensionPatch,
    additionalDependencies = setOf(hidePlayerOverlayButtonsPatch),
)

Closes: https://app.opire.dev/issues/01JPA7XMYJCAXV83EF0GEKTTZH
2026-02-24 11:23:34 +05:30
semantic-release-bot
2f72ae5bf6 chore: Release v5.50.3-dev.4 [skip ci]
## [5.50.3-dev.4](https://github.com/ReVanced/revanced-patches/compare/v5.50.3-dev.3...v5.50.3-dev.4) (2026-02-23)

### Bug Fixes

* **GmsCore support:** Insert check after another missing necessary context hook ([3c0c5a8](3c0c5a86d8))
2026-02-23 22:32:31 +00:00
oSumAtrIX
3c0c5a86d8
fix(GmsCore support): Insert check after another missing necessary context hook 2026-02-23 23:29:29 +01:00
semantic-release-bot
2bd3778459 chore: Release v5.50.3-dev.3 [skip ci]
## [5.50.3-dev.3](https://github.com/ReVanced/revanced-patches/compare/v5.50.3-dev.2...v5.50.3-dev.3) (2026-02-20)

### Bug Fixes

* **GmsCore support:** Insert check after necessary context hook ([03e8e3d](03e8e3d75c))
2026-02-20 21:04:13 +00:00
oSumAtrIX
03e8e3d75c
fix(GmsCore support): Insert check after necessary context hook 2026-02-20 22:01:14 +01:00
semantic-release-bot
784bcdace4 chore: Release v5.50.3-dev.2 [skip ci]
## [5.50.3-dev.2](https://github.com/ReVanced/revanced-patches/compare/v5.50.3-dev.1...v5.50.3-dev.2) (2026-02-16)

### Bug Fixes

* **GmsCore support:** Handle GmsCore flavors when checking for updates ([2aa19f5](2aa19f5995))
* Use positional substitutes in strings where multiple are present ([aa8c87f](aa8c87f865))
2026-02-16 18:05:22 +00:00
oSumAtrIX
aa8c87f865
fix: Use positional substitutes in strings where multiple are present 2026-02-16 19:01:26 +01:00
oSumAtrIX
2aa19f5995
fix(GmsCore support): Handle GmsCore flavors when checking for updates 2026-02-16 19:01:25 +01:00
semantic-release-bot
9f3a16005a chore: Release v5.50.3-dev.1 [skip ci]
## [5.50.3-dev.1](https://github.com/ReVanced/revanced-patches/compare/v5.50.2...v5.50.3-dev.1) (2026-02-16)

### Bug Fixes

* **GmsCore support:** Rename MicroG GmsCore specific strings as well and rename app specific strings correctly ([c2ac1f0](c2ac1f04a0))
2026-02-16 01:50:41 +00:00
oSumAtrIX
131ee4f707
ci: Fix string processing command 2026-02-16 02:09:00 +01:00
oSumAtrIX
c2ac1f04a0
fix(GmsCore support): Rename MicroG GmsCore specific strings as well and rename app specific strings correctly 2026-02-16 02:08:19 +01:00
oSumAtrIX
450454019d
chore: Process strings from Crowdin correctly 2026-02-16 01:52:59 +01:00
semantic-release-bot
6b06b9d132 chore: Release v5.50.2 [skip ci]
## [5.50.2](https://github.com/ReVanced/revanced-patches/compare/v5.50.1...v5.50.2) (2026-02-15)

### Bug Fixes

* Add missing patch option descriptions ([16e42a7](16e42a75ec))
2026-02-15 22:54:54 +00:00
oSumAtrIX
cb143b13f7
chore: Merge branch dev to main (#6588) 2026-02-15 23:52:27 +01:00
oSumAtrIX
16e42a75ec
fix: Add missing patch option descriptions 2026-02-15 23:51:33 +01:00
semantic-release-bot
4f5b93d71a chore: Release v5.50.1 [skip ci]
## [5.50.1](https://github.com/ReVanced/revanced-patches/compare/v5.50.0...v5.50.1) (2026-02-15)

### Bug Fixes

* Fix broken release by bumping to v5.50.1 ([d416609](d416609257))
2026-02-15 19:38:46 +00:00
oSumAtrIX
bb45805b40
chore: Merge branch dev to main (#6585) 2026-02-15 20:34:12 +01:00
semantic-release-bot
55fc1b04e1 chore: Release v5.50.1-dev.1 [skip ci]
## [5.50.1-dev.1](https://github.com/ReVanced/revanced-patches/compare/v5.50.0...v5.50.1-dev.1) (2026-02-15)

### Bug Fixes

* Fix broken release by bumping to v5.50.1 ([d416609](d416609257))
2026-02-15 19:32:28 +00:00
oSumAtrIX
d416609257
fix: Fix broken release by bumping to v5.50.1 2026-02-15 20:28:31 +01:00
semantic-release-bot
413b4312ff chore: Release v5.49.0 [skip ci]
# [5.49.0](https://github.com/ReVanced/revanced-patches/compare/v5.48.0...v5.49.0) (2026-02-15)

### Bug Fixes

* Disable `Prevent screenshot detection` by default ([#6511](https://github.com/ReVanced/revanced-patches/issues/6511)) ([5b5c502](5b5c50254d))
* **Instagram - Open links externally:** Fix patch by handling >4-bit register ([#6538](https://github.com/ReVanced/revanced-patches/issues/6538)) ([f681a6f](f681a6ffd4))
* **Instagram:** Make `Change link sharing domain` and `Sanitize sharing links` work with latest versions again ([#6518](https://github.com/ReVanced/revanced-patches/issues/6518)) ([85a9079](85a9079c25))
* **Letterboxd - Hide ads:** Fix patch by returning the correct return type ([#6527](https://github.com/ReVanced/revanced-patches/issues/6527)) ([80c34b9](80c34b9d74))
* Process strings from Crowdin to strip the app/patch prefixes again ([e566efc](e566efc51f))
* **Strava:** Fix `Add media download` patch ([#6526](https://github.com/ReVanced/revanced-patches/issues/6526)) ([dc9e68b](dc9e68ba57))

### Features

* **FotMob:** Add `Hide ads` patch ([#6566](https://github.com/ReVanced/revanced-patches/issues/6566)) ([4b0b737](4b0b7374f2))
* **GmsCore support:** Reduce amount of necessary changes and add update check ([#6582](https://github.com/ReVanced/revanced-patches/issues/6582)) ([650e6a2](650e6a2710))
* **Instagram:** Add `Disable analytics` patch ([#6531](https://github.com/ReVanced/revanced-patches/issues/6531)) ([ad92864](ad92864483))
* **Kleinanzeigen:** Add `Hide ads` patch ([#6533](https://github.com/ReVanced/revanced-patches/issues/6533)) ([bd6e544](bd6e544007))
* **Kleinanzeigen:** Add `Hide PUR` patch  ([#6558](https://github.com/ReVanced/revanced-patches/issues/6558)) ([4958ecf](4958ecf10c))
* **Microsoft Lens:** Remove migration to OneDrive ([#6551](https://github.com/ReVanced/revanced-patches/issues/6551)) ([e389632](e389632afd))
* **Nothing X:** Add `Show K1 token(s)` patch ([#6490](https://github.com/ReVanced/revanced-patches/issues/6490)) ([421cb28](421cb2899e))
* **Strava:** Add `Hide distractions` patch ([#6479](https://github.com/ReVanced/revanced-patches/issues/6479)) ([66b0852](66b0852f8f))
* **YouTube Music:** Add `Hide layout components` patch ([#6365](https://github.com/ReVanced/revanced-patches/issues/6365)) ([71ce823](71ce8230a9))
* **YouTube Music:** Add `Unlock Android Auto Media Browser` patch ([#6477](https://github.com/ReVanced/revanced-patches/issues/6477)) ([5edd9dc](5edd9dccae))
2026-02-15 18:49:09 +00:00
oSumAtrIX
86328331c4
chore: Merge branch dev to main (#6512) 2026-02-15 19:45:32 +01:00
semantic-release-bot
8b6ff851a4 chore: Release v5.50.0-dev.8 [skip ci]
# [5.50.0-dev.8](https://github.com/ReVanced/revanced-patches/compare/v5.50.0-dev.7...v5.50.0-dev.8) (2026-02-15)

### Features

* **GmsCore support:** Reduce amount of necessary changes and add update check ([#6582](https://github.com/ReVanced/revanced-patches/issues/6582)) ([650e6a2](650e6a2710))
2026-02-15 18:45:16 +00:00
github-actions[bot]
161a89a056
chore: Sync translations (#6517)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2026-02-15 19:40:56 +01:00
oSumAtrIX
650e6a2710
feat(GmsCore support): Reduce amount of necessary changes and add update check (#6582) 2026-02-15 19:37:38 +01:00
Tobias
6f70167369
ci: Add input to choose PR when dispatching Build pull request workflow (#6572) 2026-02-15 19:26:16 +01:00
semantic-release-bot
652b904a71 chore: Release v5.50.0-dev.7 [skip ci]
# [5.50.0-dev.7](https://github.com/ReVanced/revanced-patches/compare/v5.50.0-dev.6...v5.50.0-dev.7) (2026-02-12)

### Bug Fixes

* **Instagram:** Make `Change link sharing domain` and `Sanitize sharing links` work with latest versions again ([#6518](https://github.com/ReVanced/revanced-patches/issues/6518)) ([85a9079](85a9079c25))

### Features

* **Instagram:** Add `Disable analytics` patch ([#6531](https://github.com/ReVanced/revanced-patches/issues/6531)) ([ad92864](ad92864483))
* **Kleinanzeigen:** Add `Hide PUR` patch  ([#6558](https://github.com/ReVanced/revanced-patches/issues/6558)) ([4958ecf](4958ecf10c))
* **Microsoft Lens:** Remove migration to OneDrive ([#6551](https://github.com/ReVanced/revanced-patches/issues/6551)) ([e389632](e389632afd))
2026-02-12 20:53:16 +00:00
Johannes Obermeier
4958ecf10c
feat(Kleinanzeigen): Add Hide PUR patch (#6558) 2026-02-12 21:49:26 +01:00
Jamie
e389632afd
feat(Microsoft Lens): Remove migration to OneDrive (#6551)
Co-authored-by: Jamie Stumme <3059647+StummeJ@users.noreply.github.com>
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
2026-02-12 21:48:45 +01:00
Swakshan
ad92864483
feat(Instagram): Add Disable analytics patch (#6531)
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
2026-02-12 21:48:22 +01:00
Swakshan
85a9079c25
fix(Instagram): Make Change link sharing domain and Sanitize sharing links work with latest versions again (#6518) 2026-02-12 21:48:09 +01:00
semantic-release-bot
95c2d5fd6c chore: Release v5.50.0-dev.6 [skip ci]
# [5.50.0-dev.6](https://github.com/ReVanced/revanced-patches/compare/v5.50.0-dev.5...v5.50.0-dev.6) (2026-02-06)

### Features

* **FotMob:** Add `Hide ads` patch ([#6566](https://github.com/ReVanced/revanced-patches/issues/6566)) ([4b0b737](4b0b7374f2))
2026-02-06 19:57:17 +00:00
Sayanth
4b0b7374f2
feat(FotMob): Add Hide ads patch (#6566) 2026-02-06 20:51:43 +01:00
semantic-release-bot
d17a1ba9d7 chore: Release v5.50.0-dev.5 [skip ci]
# [5.50.0-dev.5](https://github.com/ReVanced/revanced-patches/compare/v5.50.0-dev.4...v5.50.0-dev.5) (2026-02-01)

### Bug Fixes

* Process strings from Crowdin to strip the app/patch prefixes again ([e566efc](e566efc51f))
2026-02-01 21:03:45 +00:00
oSumAtrIX
e566efc51f
fix: Process strings from Crowdin to strip the app/patch prefixes again 2026-02-01 21:59:18 +01:00
semantic-release-bot
2c0e81ee17 chore: Release v5.50.0-dev.4 [skip ci]
# [5.50.0-dev.4](https://github.com/ReVanced/revanced-patches/compare/v5.50.0-dev.3...v5.50.0-dev.4) (2026-01-27)

### Bug Fixes

* **Instagram - Open links externally:** Fix patch by handling >4-bit register ([#6538](https://github.com/ReVanced/revanced-patches/issues/6538)) ([f681a6f](f681a6ffd4))
2026-01-27 18:47:27 +00:00
xehpuk
f681a6ffd4
fix(Instagram - Open links externally): Fix patch by handling >4-bit register (#6538) 2026-01-27 19:42:25 +01:00
semantic-release-bot
59f9e4328f chore: Release v5.50.0-dev.3 [skip ci]
# [5.50.0-dev.3](https://github.com/ReVanced/revanced-patches/compare/v5.50.0-dev.2...v5.50.0-dev.3) (2026-01-26)

### Features

* **Kleinanzeigen:** Add `Hide ads` patch ([#6533](https://github.com/ReVanced/revanced-patches/issues/6533)) ([bd6e544](bd6e544007))
2026-01-26 14:24:11 +00:00
xehpuk
bd6e544007
feat(Kleinanzeigen): Add Hide ads patch (#6533)
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
2026-01-26 15:20:59 +01:00
semantic-release-bot
dbdd2a67ff chore: Release v5.50.0-dev.2 [skip ci]
# [5.50.0-dev.2](https://github.com/ReVanced/revanced-patches/compare/v5.50.0-dev.1...v5.50.0-dev.2) (2026-01-25)

### Bug Fixes

* **Letterboxd - Hide ads:** Fix patch by returning the correct return type ([#6527](https://github.com/ReVanced/revanced-patches/issues/6527)) ([80c34b9](80c34b9d74))
2026-01-25 10:08:33 +00:00
xehpuk
80c34b9d74
fix(Letterboxd - Hide ads): Fix patch by returning the correct return type (#6527) 2026-01-25 11:03:06 +01:00
semantic-release-bot
debf297d9e chore: Release v5.50.0-dev.1 [skip ci]
# [5.50.0-dev.1](https://github.com/ReVanced/revanced-patches/compare/v5.49.0-dev.1...v5.50.0-dev.1) (2026-01-25)

### Bug Fixes

* **Strava:** Fix `Add media download` patch ([#6526](https://github.com/ReVanced/revanced-patches/issues/6526)) ([dc9e68b](dc9e68ba57))

### Features

* **Nothing X:** Add `Show K1 token(s)` patch ([#6490](https://github.com/ReVanced/revanced-patches/issues/6490)) ([421cb28](421cb2899e))
* **Strava:** Add `Hide distractions` patch ([#6479](https://github.com/ReVanced/revanced-patches/issues/6479)) ([66b0852](66b0852f8f))
* **YouTube Music:** Add `Unlock Android Auto Media Browser` patch ([#6477](https://github.com/ReVanced/revanced-patches/issues/6477)) ([5edd9dc](5edd9dccae))
2026-01-25 00:53:06 +00:00
xehpuk
dc9e68ba57
fix(Strava): Fix Add media download patch (#6526) 2026-01-25 01:49:33 +01:00
semantic-release-bot
ebea32fe87 chore: Release v5.50.0-dev.1 [skip ci]
# [5.50.0-dev.1](https://github.com/ReVanced/revanced-patches/compare/v5.49.0-dev.1...v5.50.0-dev.1) (2026-01-22)

### Features

* **Nothing X:** Add `Show K1 token(s)` patch ([#6490](https://github.com/ReVanced/revanced-patches/issues/6490)) ([421cb28](421cb2899e))
* **Strava:** Add `Hide distractions` patch ([#6479](https://github.com/ReVanced/revanced-patches/issues/6479)) ([66b0852](66b0852f8f))
* **YouTube Music:** Add `Unlock Android Auto Media Browser` patch ([#6477](https://github.com/ReVanced/revanced-patches/issues/6477)) ([5edd9dc](5edd9dccae))
2026-01-22 19:21:45 +00:00
xehpuk
66b0852f8f
feat(Strava): Add Hide distractions patch (#6479)
Co-authored-by: Pun Butrach <pun.butrach@gmail.com>
Co-authored-by: ekaunt <62402760+ekaunt@users.noreply.github.com>
Co-authored-by: bengross <bengross@vecta.com>
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
2026-01-22 19:56:27 +01:00
Pa1NarK
421cb2899e
feat(Nothing X): Add Show K1 token(s) patch (#6490)
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
2026-01-22 19:17:45 +01:00
semantic-release-bot
97e74157fa
chore: Release v5.50.0-dev.1 [skip ci]
# [5.50.0-dev.1](https://github.com/ReVanced/revanced-patches/compare/v5.48.0...v5.50.0-dev.1) (2026-01-22)

### Features

* **YouTube Music:** Add `Unlock Android Auto Media Browser` patch ([#6477](https://github.com/ReVanced/revanced-patches/issues/6477)) ([89645dc](89645dcc2e))
2026-01-22 19:10:39 +01:00