Skip to content

Commit 7f48d6c

Browse files
committed
Fix enable-minimized-playback patch and bump version (closes #3)
1 parent 46ed3cf commit 7f48d6c

File tree

5 files changed

+4
-16
lines changed

5 files changed

+4
-16
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Currently only a minimal set of patches work (`microg-support`, `protobuf-spoof`
1414

1515
- Patch with the following command (file names changed for brevity):
1616
```
17-
java -jar revanced-cli.jar -a YouTube_16.40.36.apk -o YouTube_ReVanced_16.40.36.apk -b revanced-patches-2.160.5.jar -m revanced-integrations-0.96.4.apk -i microg-support -i protobuf-spoof -i client-spoof -i hide-video-ads --exclusive
17+
java -jar revanced-cli.jar -a YouTube_16.40.36.apk -o YouTube_ReVanced_16.40.36.apk -b revanced-patches-2.160.6.jar -m revanced-integrations-0.96.4.apk -i microg-support -i protobuf-spoof -i client-spoof -i hide-video-ads -i enable-minimized-playback --exclusive
1818
```
1919

2020
Refer to the original [repository](https://github.com/kitadai31/revanced-patches-android6-7) for more info.

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
kotlin.code.style = official
2-
version = 2.160.5
2+
version = 2.160.6

src/main/kotlin/app/revanced/patches/youtube/misc/minimizedplayback/bytecode/patch/MinimizedPlaybackBytecodePatch.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,13 @@ class MinimizedPlaybackBytecodePatch : BytecodePatch(
3434
override fun execute(context: BytecodeContext): PatchResult {
3535
val methods = arrayOf(
3636
KidsMinimizedPlaybackPolicyControllerFingerprint,
37-
MinimizedPlaybackManagerFingerprint,
38-
MinimizedPlaybackSettingsFingerprint
37+
MinimizedPlaybackManagerFingerprint
3938
).map {
4039
it.result?.mutableMethod?: return it.toErrorResult()
4140
}
4241

4342
methods[0].hookPlaybackController()
4443
methods[1].hookPlayback()
45-
methods[2].walkMutable(context)
4644

4745
return PatchResultSuccess()
4846
}

src/main/kotlin/app/revanced/patches/youtube/misc/minimizedplayback/resource/patch/MinimizedPlaybackPatch.kt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,6 @@ import app.revanced.shared.util.resources.ResourceHelper
2828
class MinimizedPlaybackPatch : ResourcePatch {
2929
override fun execute(context: ResourceContext): PatchResult {
3030

31-
/*
32-
add settings
33-
*/
34-
ResourceHelper.addSettings(
35-
context,
36-
"PREFERENCE_CATEGORY: REVANCED_SETTINGS",
37-
"PREFERENCE: MISC_SETTINGS",
38-
"SETTINGS: ENABLE_MINIMIZED_PLAYBACK"
39-
)
40-
4131
ResourceHelper.patchSuccess(
4232
context,
4333
"enable-minimized-playback"

src/main/resources/youtube/settings/xml/revanced_prefs.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@
363363
<Preference android:title=" " android:selectable="false" android:summary="@string/pref_about_category" />
364364
<PreferenceScreen android:title="@string/revanced_patches_information" android:summary="@string/revanced_patches_information_summary" >
365365
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_tool_used" />
366-
<Preference android:title="revanced-patches" android:selectable="false" android:summary="2.160.5" />
366+
<Preference android:title="revanced-patches" android:selectable="false" android:summary="2.160.6" />
367367
<Preference android:title="revanced-integrations" android:key="revanced-integrations" android:selectable="false"/>
368368
369369
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_video_ads_removal_title" />

0 commit comments

Comments
 (0)