generated from ReVanced/revanced-patches-template
-
-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(YouTube): Support version
19.43.41
(#3854)
- Loading branch information
1 parent
b7b97eb
commit 0cad269
Showing
59 changed files
with
249 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...ons/shared/src/main/java/app/revanced/extension/youtube/patches/EnableDebuggingPatch.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package app.revanced.extension.youtube.patches; | ||
|
||
import java.util.concurrent.ConcurrentHashMap; | ||
import java.util.concurrent.ConcurrentMap; | ||
|
||
import app.revanced.extension.shared.Logger; | ||
import app.revanced.extension.shared.settings.BaseSettings; | ||
|
||
@SuppressWarnings("unused") | ||
public final class EnableDebuggingPatch { | ||
|
||
private static final ConcurrentMap<Long, Boolean> featureFlags | ||
= new ConcurrentHashMap<>(150, 0.75f, 1); | ||
|
||
public static boolean isFeatureFlagEnabled(long flag, boolean value) { | ||
if (value && BaseSettings.DEBUG.get()) { | ||
if (featureFlags.putIfAbsent(flag, true) == null) { | ||
Logger.printDebug(() -> "feature is enabled: " + flag); | ||
} | ||
} | ||
|
||
return value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,6 +74,7 @@ val hideAdsPatch = bytecodePatch( | |
"19.16.39", | ||
"19.25.37", | ||
"19.34.42", | ||
"19.43.41", | ||
), | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ val hideGetPremiumPatch = bytecodePatch( | |
"19.16.39", | ||
"19.25.37", | ||
"19.34.42", | ||
"19.43.41", | ||
), | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ val videoAdsPatch = bytecodePatch( | |
"19.16.39", | ||
"19.25.37", | ||
"19.34.42", | ||
"19.43.41", | ||
), | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,6 +58,7 @@ val copyVideoUrlPatch = bytecodePatch( | |
"19.16.39", | ||
"19.25.37", | ||
"19.34.42", | ||
"19.43.41", | ||
), | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,7 @@ val downloadsPatch = bytecodePatch( | |
"19.16.39", | ||
"19.25.37", | ||
"19.34.42", | ||
"19.43.41", | ||
), | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ val enableSeekbarTappingPatch = bytecodePatch( | |
"19.16.39", | ||
"19.25.37", | ||
"19.34.42", | ||
"19.43.41", | ||
), | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,7 @@ val enableSlideToSeekPatch = bytecodePatch( | |
"19.16.39", | ||
"19.25.37", | ||
"19.34.42", | ||
"19.43.41", | ||
), | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,7 @@ val swipeControlsPatch = bytecodePatch( | |
"19.16.39", | ||
"19.25.37", | ||
"19.34.42", | ||
"19.43.41", | ||
), | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ val autoCaptionsPatch = bytecodePatch( | |
"19.16.39", | ||
"19.25.37", | ||
"19.34.42", | ||
"19.43.41", | ||
), | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ val hideButtonsPatch = resourcePatch( | |
"19.16.39", | ||
"19.25.37", | ||
"19.34.42", | ||
"19.43.41", | ||
), | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,7 @@ val navigationButtonsPatch = bytecodePatch( | |
"19.16.39", | ||
"19.25.37", | ||
"19.34.42", | ||
"19.43.41", | ||
), | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,6 +61,7 @@ val hideEndscreenCardsPatch = bytecodePatch( | |
"19.16.39", | ||
"19.25.37", | ||
"19.34.42", | ||
"19.43.41", | ||
), | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 8 additions & 7 deletions
15
...ain/kotlin/app/revanced/patches/youtube/layout/hide/fullscreenambientmode/Fingerprints.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
package app.revanced.patches.youtube.layout.hide.fullscreenambientmode | ||
|
||
import app.revanced.util.literal | ||
import com.android.tools.smali.dexlib2.Opcode | ||
import com.android.tools.smali.dexlib2.AccessFlags | ||
import app.revanced.patcher.fingerprint | ||
import com.android.tools.smali.dexlib2.AccessFlags | ||
|
||
internal val initializeAmbientModeFingerprint = fingerprint { | ||
internal val setFullScreenBackgroundColorFingerprint = fingerprint { | ||
returns("V") | ||
accessFlags(AccessFlags.CONSTRUCTOR, AccessFlags.PUBLIC) | ||
opcodes(Opcode.MOVE_RESULT) | ||
literal { 45389368 } | ||
accessFlags(AccessFlags.PROTECTED, AccessFlags.FINAL) | ||
parameters("Z", "I", "I", "I", "I") | ||
custom { method, classDef -> | ||
classDef.type.endsWith("/YouTubePlayerViewNotForReflection;") | ||
&& method.name == "onLayout" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,7 @@ val hideInfoCardsPatch = bytecodePatch( | |
"19.16.39", | ||
"19.25.37", | ||
"19.34.42", | ||
"19.43.41", | ||
), | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ val hidePlayerFlyoutMenuPatch = bytecodePatch( | |
"19.16.39", | ||
"19.25.37", | ||
"19.34.42", | ||
"19.43.41", | ||
), | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ val hideSeekbarPatch = bytecodePatch( | |
"19.16.39", | ||
"19.25.37", | ||
"19.34.42", | ||
"19.43.41", | ||
), | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ val hideTimestampPatch = bytecodePatch( | |
"19.16.39", | ||
"19.25.37", | ||
"19.34.42", | ||
"19.43.41", | ||
), | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.