Skip to content

feat: Update to patcher v22 #4409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 246 commits into
base: dev
Choose a base branch
from

Conversation

LisoUseInAIKyrios
Copy link
Contributor

@LisoUseInAIKyrios LisoUseInAIKyrios commented Feb 3, 2025

Initial usage of Patcher v22 method instruction filters.

ReVanced/revanced-patcher#329

…tion_filters

# Conflicts:
#	patches/src/main/kotlin/app/revanced/patches/youtube/video/speed/custom/CustomPlaybackSpeedPatch.kt
…tion_filters

# Conflicts:
#	patches/src/main/kotlin/app/revanced/patches/youtube/misc/fix/cairo/DisableCairoSettingsPatch.kt
#	patches/src/main/kotlin/app/revanced/patches/youtube/misc/fix/cairo/Fingerprints.kt
@LisoUseInAIKyrios LisoUseInAIKyrios force-pushed the feat/patcher_instruction_filters branch from 9c1b33d to f445a44 Compare June 8, 2025 12:05
@Nuckyz
Copy link
Member

Nuckyz commented Jun 8, 2025

@LisoUseInAIKyrios Is there a reason Remove player controls background does not add an option to toggle the functionality and thus is the only patch to hide something which is use = false?

@LisoUseInAIKyrios
Copy link
Contributor Author

The patch modifies a layout file, so it can't use a runtime setting.

But I'm pretty sure a bytecode patch could be made to apply the same change after the layout is loaded.

@0xrxL
Copy link

0xrxL commented Jun 11, 2025

@LisoUseInAIKyrios I found the missing piece. This flag prevents windows from remaining transparent and overlapping during new animations transitions:

45371931L

@MarcaDian
Copy link
Contributor

MarcaDian commented Jun 11, 2025

if enable slide and seek then 2x speed and it's overlay is not blocked.
It works fine here (https://github.com/anddea/revanced-patches/blob/dev/patches/src/main/kotlin/app/revanced/patches/youtube/player/components/PlayerComponentsPatch.kt)
Also, the custom tap and hold overlay speed is correctly displayed there, not 2x as it is now.

…tion_filters

# Conflicts:
#	patches/src/main/kotlin/app/revanced/patches/nunl/firebase/SpoofCertificatePatch.kt
#	patches/src/main/kotlin/app/revanced/patches/reddit/customclients/sync/syncforreddit/api/SpoofClientPatch.kt
#	patches/src/main/kotlin/app/revanced/patches/shared/misc/extension/SharedExtensionPatch.kt
#	patches/src/main/kotlin/app/revanced/patches/shared/misc/settings/SettingsPatch.kt
#	patches/src/main/kotlin/app/revanced/patches/spotify/misc/privacy/Fingerprints.kt
#	patches/src/main/kotlin/app/revanced/patches/youtube/interaction/downloads/DownloadsPatch.kt
#	patches/src/main/kotlin/app/revanced/patches/youtube/interaction/swipecontrols/SwipeControlsPatch.kt
#	patches/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/overlay/Fingerprints.kt
#	patches/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/overlay/HidePlayerOverlayButtonsPatch.kt
#	patches/src/main/kotlin/app/revanced/patches/youtube/layout/shortsplayer/OpenShortsInRegularPlayerPatch.kt
#	patches/src/main/kotlin/app/revanced/patches/youtube/layout/theme/Fingerprints.kt
#	patches/src/main/kotlin/app/revanced/patches/youtube/misc/fix/backtoexitgesture/Fingerprints.kt
#	patches/src/main/kotlin/app/revanced/patches/youtube/misc/fix/backtoexitgesture/FixBackToExitGesturePatch.kt
#	patches/src/main/kotlin/app/revanced/patches/youtube/misc/navigation/Fingerprints.kt
#	patches/src/main/kotlin/app/revanced/patches/youtube/misc/navigation/NavigationBarHookPatch.kt
#	patches/src/main/kotlin/app/revanced/patches/youtube/misc/settings/Fingerprints.kt
#	patches/src/main/kotlin/app/revanced/patches/youtube/misc/settings/SettingsPatch.kt
#	patches/src/main/kotlin/app/revanced/patches/youtube/shared/Fingerprints.kt
@LisoUseInAIKyrios
Copy link
Contributor Author

Changing the 2x overlay text requires major refactoring because different patches need to behave differently depending on which is enabled/disabled.

@cyberboh

This comment was marked as resolved.

@LisoUseInAIKyrios

This comment was marked as resolved.

…tion_filters

# Conflicts:
#	patches/src/main/kotlin/app/revanced/patches/instagram/ads/HideAdsPatch.kt
#	patches/src/main/kotlin/app/revanced/patches/pandora/shared/Fingerprints.kt
#	patches/src/main/kotlin/app/revanced/patches/youtube/misc/playservice/VersionCheckPatch.kt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants