Compare commits

..

11 Commits

Author SHA1 Message Date
semantic-release-bot
f25c8d2cd1 chore(release): 1.0.0-dev.8 [skip ci]
# [1.0.0-dev.8](https://github.com/revanced/revanced-patches/compare/v1.0.0-dev.7...v1.0.0-dev.8) (2022-05-13)

### Bug Fixes

* publish releases ([fa3f6e2](fa3f6e2f33))
2022-05-13 18:07:43 +00:00
Sculas
fa3f6e2f33 fix: publish releases 2022-05-13 20:06:34 +02:00
semantic-release-bot
c2aa3b8365 chore(release): 1.0.0-dev.7 [skip ci]
# [1.0.0-dev.7](https://github.com/revanced/revanced-patches/compare/v1.0.0-dev.6...v1.0.0-dev.7) (2022-05-07)

### Bug Fixes

* use the latest version of patcher dependency ([e09f25c](e09f25cb75))
2022-05-07 19:43:22 +00:00
oSumAtrIX
e09f25cb75 fix: use the latest version of patcher dependency
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-05-07 21:42:18 +02:00
oSumAtrIX
0207d08c17 chore: bump project JDK to JDK 17
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-05-07 21:37:05 +02:00
oSumAtrIX
ae1127c02d Merge remote-tracking branch 'origin/dev' into dev 2022-05-07 21:26:40 +02:00
oSumAtrIX
e49fb3c969 chore: bump java-version for action setup-java
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-05-07 21:26:33 +02:00
semantic-release-bot
80462bbe1c chore(release): 1.0.0-dev.6 [skip ci]
# [1.0.0-dev.6](https://github.com/revanced/revanced-patches/compare/v1.0.0-dev.5...v1.0.0-dev.6) (2022-05-07)

### Bug Fixes

* update patches ([e6f3b3c](e6f3b3cd21))
2022-05-07 16:10:49 +00:00
oSumAtrIX
8043396ee4 Merge pull request #13 from revanced/patch-update
Update YouTube patches to `17.17.34`
2022-05-07 18:09:26 +02:00
oSumAtrIX
70bfd792bf Merge branch 'dev' into patch-update 2022-05-07 18:01:39 +02:00
oSumAtrIX
e6f3b3cd21 fix: update patches
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-05-07 17:50:22 +02:00
17 changed files with 63 additions and 45 deletions

View File

@@ -20,7 +20,7 @@ jobs:
- name: Setup JDK - name: Setup JDK
uses: actions/setup-java@v2 uses: actions/setup-java@v2
with: with:
java-version: '8' java-version: '17'
distribution: 'adopt' distribution: 'adopt'
cache: gradle cache: gradle
- name: Setup Node.js - name: Setup Node.js

2
.idea/misc.xml generated
View File

@@ -4,5 +4,5 @@
<component name="FrameworkDetectionExcludesConfiguration"> <component name="FrameworkDetectionExcludesConfiguration">
<file type="web" url="file://$PROJECT_DIR$" /> <file type="web" url="file://$PROJECT_DIR$" />
</component> </component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK" /> <component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="azul-17" project-jdk-type="JavaSDK" />
</project> </project>

View File

@@ -20,6 +20,15 @@
] ]
} }
], ],
"@semantic-release/github" [
"@semantic-release/github",
{
"assets": [
{
"path": "build/libs/*.jar"
}
]
}
]
] ]
} }

View File

@@ -1,3 +1,24 @@
# [1.0.0-dev.8](https://github.com/revanced/revanced-patches/compare/v1.0.0-dev.7...v1.0.0-dev.8) (2022-05-13)
### Bug Fixes
* publish releases ([83916f9](https://github.com/revanced/revanced-patches/commit/83916f96d27989dcbb35c0ba6ef326a16b470501))
# [1.0.0-dev.7](https://github.com/revanced/revanced-patches/compare/v1.0.0-dev.6...v1.0.0-dev.7) (2022-05-07)
### Bug Fixes
* use the latest version of patcher dependency ([fe4a439](https://github.com/revanced/revanced-patches/commit/fe4a439cb2bc5e385ae13e8e155f25bb15e74633))
# [1.0.0-dev.6](https://github.com/revanced/revanced-patches/compare/v1.0.0-dev.5...v1.0.0-dev.6) (2022-05-07)
### Bug Fixes
* update patches ([91b8ec8](https://github.com/revanced/revanced-patches/commit/91b8ec81f33417798546c32db708fe09ada3930c))
# [1.0.0-dev.5](https://github.com/revanced/revanced-patches/compare/v1.0.0-dev.4...v1.0.0-dev.5) (2022-05-07) # [1.0.0-dev.5](https://github.com/revanced/revanced-patches/compare/v1.0.0-dev.4...v1.0.0-dev.5) (2022-05-07)

View File

@@ -26,7 +26,7 @@ dependencies {
implementation(kotlin("stdlib")) implementation(kotlin("stdlib"))
testImplementation(kotlin("test")) testImplementation(kotlin("test"))
implementation("app.revanced:revanced-patcher:1.0.0-dev.9") implementation("app.revanced:revanced-patcher:1.+")
} }
java { java {

View File

@@ -1,2 +1,2 @@
kotlin.code.style = official kotlin.code.style = official
version = 1.0.0-dev.5 version = 1.0.0-dev.8

View File

@@ -7,7 +7,6 @@ import app.revanced.patches.music.audio.EnableAudioOnlyPatch
import app.revanced.patches.music.layout.RemoveTasteBuilderPatch import app.revanced.patches.music.layout.RemoveTasteBuilderPatch
import app.revanced.patches.music.layout.RemoveUpgradeTabPatch import app.revanced.patches.music.layout.RemoveUpgradeTabPatch
import app.revanced.patches.music.premium.BackgroundPlayPatch import app.revanced.patches.music.premium.BackgroundPlayPatch
import app.revanced.patches.youtube.ad.HomeAdsPatch
import app.revanced.patches.youtube.ad.HomePromoPatch import app.revanced.patches.youtube.ad.HomePromoPatch
import app.revanced.patches.youtube.ad.VideoAdsPatch import app.revanced.patches.youtube.ad.VideoAdsPatch
import app.revanced.patches.youtube.interaction.EnableSeekbarTappingPatch import app.revanced.patches.youtube.interaction.EnableSeekbarTappingPatch
@@ -27,7 +26,7 @@ object Index {
val patches: List<() -> Patch<Data>> = listOf( val patches: List<() -> Patch<Data>> = listOf(
::IntegrationsPatch, ::IntegrationsPatch,
::FixLocaleConfigErrorPatch, ::FixLocaleConfigErrorPatch,
::HomeAdsPatch, //::HomeAdsPatch,
::VideoAdsPatch, ::VideoAdsPatch,
::HomePromoPatch, ::HomePromoPatch,
::MinimizedPlaybackPatch, ::MinimizedPlaybackPatch,

View File

@@ -22,7 +22,7 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction11x
private val compatiblePackages = listOf( private val compatiblePackages = listOf(
PackageMetadata( PackageMetadata(
"com.google.android.youtube", "com.google.android.youtube",
listOf("17.03.38", "17.14.35") listOf("17.03.38", "17.14.35", "17.17.34")
) )
) )
@@ -43,8 +43,8 @@ class HomePromoPatch : BytecodePatch(
MethodSignatureMetadata( MethodSignatureMetadata(
"promoted-discovery-app-parent-method", "promoted-discovery-app-parent-method",
MethodMetadata( MethodMetadata(
"Ljjl;", "Ljre;",
"lG", "lP",
), ),
PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value. PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value.
compatiblePackages, compatiblePackages,
@@ -94,8 +94,8 @@ class HomePromoPatch : BytecodePatch(
MethodSignatureMetadata( MethodSignatureMetadata(
"promoted-discovery-action-parent-method", "promoted-discovery-action-parent-method",
MethodMetadata( MethodMetadata(
"Ljjc;", "Ljqv;",
"lG", "lP",
), ),
PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value. PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value.
compatiblePackages, compatiblePackages,
@@ -150,7 +150,7 @@ class HomePromoPatch : BytecodePatch(
val requiredMethod = result.findParentMethod( val requiredMethod = result.findParentMethod(
MethodSignature( MethodSignature(
MethodSignatureMetadata( MethodSignatureMetadata(
"promoted-discovery-action-parent-method", "promoted-discovery-action-method",
methodMetadata, methodMetadata,
PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value. PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value.
compatiblePackages, compatiblePackages,

View File

@@ -20,7 +20,7 @@ import org.jf.dexlib2.Opcode
private val packageMetadata = listOf( private val packageMetadata = listOf(
PackageMetadata( PackageMetadata(
"com.google.android.youtube", "com.google.android.youtube",
listOf("17.14.35") listOf("17.14.35", "17.17.34")
) )
) )
@@ -39,7 +39,7 @@ class VideoAdsPatch : BytecodePatch(
MethodSignatureMetadata( MethodSignatureMetadata(
"show-video-ads-constructor", "show-video-ads-constructor",
MethodMetadata( MethodMetadata(
"zai", "Laadb",
"<init>", "<init>",
), ),
PatternScanMethod.Fuzzy(2),// FIXME: Test this threshold and find the best value. PatternScanMethod.Fuzzy(2),// FIXME: Test this threshold and find the best value.

View File

@@ -24,7 +24,7 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction35c
private val compatiblePackages = listOf( private val compatiblePackages = listOf(
PackageMetadata( PackageMetadata(
"com.google.android.youtube", "com.google.android.youtube",
listOf("17.14.35") listOf("17.17.34")
) )
) )
@@ -40,7 +40,7 @@ class EnableSeekbarTappingPatch : BytecodePatch(
MethodSignature( MethodSignature(
MethodSignatureMetadata( MethodSignatureMetadata(
"enable-seekbar-tapping-parent-signature", "enable-seekbar-tapping-parent-signature",
MethodMetadata("Lesa;", "<init>"), // unknown MethodMetadata("Lzhj;", "J"), // unknown
PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value. PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value.
compatiblePackages, compatiblePackages,
"Signature for a parent method, which is needed to find the actual method required to be patched.", "Signature for a parent method, which is needed to find the actual method required to be patched.",
@@ -85,7 +85,7 @@ class EnableSeekbarTappingPatch : BytecodePatch(
MethodSignature( MethodSignature(
MethodSignatureMetadata( MethodSignatureMetadata(
"enable-seekbar-tapping-signature", "enable-seekbar-tapping-signature",
MethodMetadata("Lesa;", "onTouchEvent"), // unknown MethodMetadata("Lfao;", "onTouchEvent"), // unknown
PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value. PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value.
compatiblePackages, compatiblePackages,
"Signature for the method required to be patched.", "Signature for the method required to be patched.",
@@ -97,7 +97,6 @@ class EnableSeekbarTappingPatch : BytecodePatch(
listOf( listOf(
Opcode.INVOKE_VIRTUAL, Opcode.INVOKE_VIRTUAL,
Opcode.MOVE_RESULT_WIDE, Opcode.MOVE_RESULT_WIDE,
Opcode.INT_TO_FLOAT,
Opcode.IGET, Opcode.IGET,
Opcode.IGET_OBJECT, Opcode.IGET_OBJECT,
Opcode.IGET, Opcode.IGET,
@@ -115,15 +114,6 @@ class EnableSeekbarTappingPatch : BytecodePatch(
Opcode.NEW_INSTANCE, Opcode.NEW_INSTANCE,
Opcode.INVOKE_DIRECT, Opcode.INVOKE_DIRECT,
Opcode.IPUT_OBJECT, Opcode.IPUT_OBJECT,
Opcode.NEW_INSTANCE,
Opcode.INVOKE_VIRTUAL,
Opcode.MOVE_RESULT,
Opcode.FLOAT_TO_INT,
Opcode.INVOKE_VIRTUAL,
Opcode.MOVE_RESULT,
Opcode.FLOAT_TO_INT,
Opcode.INVOKE_DIRECT,
Opcode.IPUT_OBJECT,
Opcode.INVOKE_VIRTUAL Opcode.INVOKE_VIRTUAL
) )
) )

View File

@@ -20,7 +20,7 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction35c
private val compatiblePackages = listOf( private val compatiblePackages = listOf(
PackageMetadata( PackageMetadata(
"com.google.android.youtube", "com.google.android.youtube",
listOf("17.14.35") listOf("17.14.35", "17.17.34")
) )
) )
@@ -36,7 +36,7 @@ class CreateButtonRemoverPatch : BytecodePatch(
MethodSignature( MethodSignature(
MethodSignatureMetadata( MethodSignatureMetadata(
"create-button-method", "create-button-method",
MethodMetadata(null, null), // unknown MethodMetadata("Lkne", "z"), // unknown
PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value. PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value.
compatiblePackages, compatiblePackages,
"Signature for the method required to be patched.", "Signature for the method required to be patched.",

View File

@@ -18,7 +18,7 @@ import org.jf.dexlib2.Opcode
private val compatiblePackages = listOf( private val compatiblePackages = listOf(
PackageMetadata( PackageMetadata(
"com.google.android.youtube", "com.google.android.youtube",
listOf("17.14.35") listOf("17.17.34")
) )
) )
@@ -34,7 +34,7 @@ class HideReelsPatch : BytecodePatch(
MethodSignature( MethodSignature(
MethodSignatureMetadata( MethodSignatureMetadata(
"hide-reels-signature", "hide-reels-signature",
MethodMetadata(null, null), // unknown MethodMetadata("Ljvy", "<init>"), // unknown
PatternScanMethod.Fuzzy(3), // FIXME: Test this threshold and find the best value. PatternScanMethod.Fuzzy(3), // FIXME: Test this threshold and find the best value.
compatiblePackages, compatiblePackages,
"Signature for the method required to be patched.", "Signature for the method required to be patched.",
@@ -59,7 +59,6 @@ class HideReelsPatch : BytecodePatch(
"[B", "[B",
"[B", "[B",
"[B", "[B",
"[B",
"[B" "[B"
), ),
listOf( listOf(

View File

@@ -19,7 +19,7 @@ import org.jf.dexlib2.Opcode
private val compatiblePackages = listOf( private val compatiblePackages = listOf(
PackageMetadata( PackageMetadata(
"com.google.android.youtube", "com.google.android.youtube",
listOf("17.14.35") listOf("17.14.35", "17.17.34")
) )
) )
@@ -35,7 +35,7 @@ class MinimizedPlaybackPatch : BytecodePatch(
MethodSignature( MethodSignature(
MethodSignatureMetadata( MethodSignatureMetadata(
"minimized-playback-manager", "minimized-playback-manager",
MethodMetadata(null, null), // unknown MethodMetadata("Lype", "j"), // unknown
PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value. PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value.
compatiblePackages, compatiblePackages,
"Signature for the method required to be patched.", "Signature for the method required to be patched.",

View File

@@ -21,7 +21,7 @@ import org.jf.dexlib2.builder.instruction.BuilderInstruction21t
private val compatiblePackages = listOf( private val compatiblePackages = listOf(
PackageMetadata( PackageMetadata(
"com.google.android.youtube", "com.google.android.youtube",
listOf("17.14.35") listOf("17.17.34")
) )
) )
@@ -37,7 +37,7 @@ class OldQualityLayoutPatch : BytecodePatch(
MethodSignature( MethodSignature(
MethodSignatureMetadata( MethodSignatureMetadata(
"old-quality-parent-method-signature", "old-quality-parent-method-signature",
MethodMetadata(null, null), // unknown MethodMetadata("Libh", "<init>"), // unknown
PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value. PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value.
compatiblePackages, compatiblePackages,
"Signature to find a parent method required by the Old Quality Layout patch.", "Signature to find a parent method required by the Old Quality Layout patch.",
@@ -45,7 +45,7 @@ class OldQualityLayoutPatch : BytecodePatch(
), ),
"V", "V",
AccessFlags.PUBLIC or AccessFlags.CONSTRUCTOR, AccessFlags.PUBLIC or AccessFlags.CONSTRUCTOR,
listOf("L", "L", "L", "L", "L", "L", "L", "[B"), listOf("L", "L", "L", "L", "L", "L", "L"),
listOf( listOf(
Opcode.INVOKE_DIRECT, Opcode.INVOKE_DIRECT,
Opcode.IPUT_OBJECT, Opcode.IPUT_OBJECT,
@@ -82,7 +82,7 @@ class OldQualityLayoutPatch : BytecodePatch(
MethodSignature( MethodSignature(
MethodSignatureMetadata( MethodSignatureMetadata(
"old-quality-method-signature", "old-quality-method-signature",
MethodMetadata(null, null), // unknown MethodMetadata("Libh", null), // unknown
PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value. PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value.
compatiblePackages, compatiblePackages,
"Signature to find the method required by the Old Quality Layout patch", "Signature to find the method required by the Old Quality Layout patch",

View File

@@ -19,7 +19,7 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction11x
private val compatiblePackages = listOf( private val compatiblePackages = listOf(
PackageMetadata( PackageMetadata(
"com.google.android.youtube", "com.google.android.youtube",
listOf("17.14.35") listOf("17.14.35", "17.17.34")
) )
) )
@@ -35,7 +35,7 @@ class ShortsButtonRemoverPatch : BytecodePatch(
MethodSignature( MethodSignature(
MethodSignatureMetadata( MethodSignatureMetadata(
"pivotbar-buttons-method-tabenum", "pivotbar-buttons-method-tabenum",
MethodMetadata(null, null), // unknown MethodMetadata("Lkne", "z"), // unknown
PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value. PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value.
compatiblePackages, compatiblePackages,
"Signature for the pivotbar method that creates all button views.", "Signature for the pivotbar method that creates all button views.",
@@ -69,7 +69,7 @@ class ShortsButtonRemoverPatch : BytecodePatch(
MethodSignature( MethodSignature(
MethodSignatureMetadata( MethodSignatureMetadata(
"pivotbar-buttons-method-view", "pivotbar-buttons-method-view",
MethodMetadata(null, null), // unknown MethodMetadata("Lkne", "z"), // unknown
PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value. PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value.
compatiblePackages, compatiblePackages,
"Signature for the pivotbar method that creates all button views.", "Signature for the pivotbar method that creates all button views.",

View File

@@ -11,7 +11,7 @@ import org.w3c.dom.Element
private val compatiblePackages = listOf( private val compatiblePackages = listOf(
PackageMetadata( PackageMetadata(
"com.google.android.youtube", "com.google.android.youtube",
listOf("17.14.35") listOf("17.14.35", "17.17.34")
) )
) )
class FixLocaleConfigErrorPatch : ResourcePatch( class FixLocaleConfigErrorPatch : ResourcePatch(

View File

@@ -22,7 +22,7 @@ import org.jf.dexlib2.immutable.ImmutableMethodImplementation
private val compatiblePackages = listOf( private val compatiblePackages = listOf(
PackageMetadata( PackageMetadata(
"com.google.android.youtube", "com.google.android.youtube",
listOf("17.03.38", "17.14.35") listOf("17.03.38", "17.14.35", "17.17.34")
) )
) )
@@ -38,7 +38,7 @@ class IntegrationsPatch : BytecodePatch(
MethodSignature( MethodSignature(
MethodSignatureMetadata( MethodSignatureMetadata(
"integrations-patch", "integrations-patch",
MethodMetadata(null, null), // unknown MethodMetadata("Lacnx", "onCreate"),
PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value. PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value.
compatiblePackages, compatiblePackages,
"Inject the integrations into the application with the method of this signature", "Inject the integrations into the application with the method of this signature",