Skip to content

Commit ae69aca

Browse files
committed
Merge branch 'dev' into revanced-extended
2 parents 8d84304 + fd11821 commit ae69aca

File tree

121 files changed

+3494
-1288
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+3494
-1288
lines changed

Diff for: README.md

+45-43
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ See the [documentation](https://github.com/inotia00/revanced-documentation#readm
1515
| `Ambient mode control` | Adds options to disable Ambient mode and to bypass Ambient mode restrictions. | 18.29.38 ~ 19.44.39 |
1616
| `Bypass URL redirects` | Adds an option to bypass URL redirects and open the original URL directly. | 18.29.38 ~ 19.44.39 |
1717
| `Bypass image region restrictions` | Adds an option to use a different host for static images, so that images blocked in some countries can be received. | 18.29.38 ~ 19.44.39 |
18-
| `Change layout` | Adds an option to change the dp in order to use a tablet or phone layout. | 18.29.38 ~ 19.44.39 |
18+
| `Change form factor` | Adds an option to change the UI appearance to a phone, tablet, or automotive device. | 18.29.38 ~ 19.44.39 |
1919
| `Change live ring click action` | Adds an option to open the channel instead of the live stream when clicking on the live ring. | 18.29.38 ~ 19.44.39 |
2020
| `Change player flyout menu toggles` | Adds an option to use text toggles instead of switch toggles within the additional settings menu. | 18.29.38 ~ 19.44.39 |
2121
| `Change share sheet` | Adds an option to change the in-app share sheet to the system share sheet. | 18.29.38 ~ 19.44.39 |
@@ -84,48 +84,49 @@ See the [documentation](https://github.com/inotia00/revanced-documentation#readm
8484

8585
| 💊 Patch | 📜 Description | 🏹 Target Version |
8686
|:--------:|:--------------:|:-----------------:|
87-
| `Bitrate default value` | Sets the audio quality to 'Always High' when you first install the app. | 6.20.51 ~ 8.05.51 |
88-
| `Bypass image region restrictions` | Adds an option to use a different host for static images, so that images blocked in some countries can be received. | 6.20.51 ~ 8.05.51 |
89-
| `Certificate spoof` | Enables YouTube Music to work with Android Auto by spoofing the YouTube Music certificate. | 6.20.51 ~ 8.05.51 |
90-
| `Change share sheet` | Adds an option to change the in-app share sheet to the system share sheet. | 6.20.51 ~ 8.05.51 |
91-
| `Change start page` | Adds an option to set which page the app opens in instead of the homepage. | 6.20.51 ~ 8.05.51 |
92-
| `Custom branding icon for YouTube Music` | Changes the YouTube Music app icon to the icon specified in patch options. | 6.20.51 ~ 8.05.51 |
93-
| `Custom branding name for YouTube Music` | Changes the YouTube Music app name to the name specified in patch options. | 6.20.51 ~ 8.05.51 |
94-
| `Custom header for YouTube Music` | Applies a custom header in the top left corner within the app. | 6.20.51 ~ 8.05.51 |
95-
| `Dark theme` | Changes the app's dark theme to the values specified in patch options. | 6.20.51 ~ 8.05.51 |
96-
| `Disable Cairo splash animation` | Adds an option to disable Cairo splash animation. | 7.06.54 ~ 8.05.51 |
97-
| `Disable DRC audio` | Adds an option to disable DRC (Dynamic Range Compression) audio. | 6.20.51 ~ 8.05.51 |
98-
| `Disable QUIC protocol` | Adds an option to disable CronetEngine's QUIC protocol. | 6.20.51 ~ 8.05.51 |
99-
| `Disable dislike redirection` | Adds an option to disable redirection to the next track when clicking the Dislike button. | 6.20.51 ~ 8.05.51 |
100-
| `Disable forced auto captions` | Adds an option to disable captions from being automatically enabled. | 6.20.51 ~ 8.05.51 |
101-
| `Disable music video in album` | Adds option to redirect music videos from albums for non-premium users. | 6.20.51 ~ 8.05.51 |
102-
| `Enable OPUS codec` | Adds an option to enable the OPUS audio codec if the player response includes it. | 6.20.51 ~ 8.05.51 |
103-
| `Enable debug logging` | Adds an option to enable debug logging. | 6.20.51 ~ 8.05.51 |
104-
| `Enable landscape mode` | Adds an option to enable landscape mode when rotating the screen on phones. | 6.20.51 ~ 8.05.51 |
105-
| `Flyout menu components` | Adds options to hide or change flyout menu components. | 6.20.51 ~ 8.05.51 |
106-
| `GmsCore support` | Allows patched Google apps to run without root and under a different package name by using GmsCore instead of Google Play Services. | 6.20.51 ~ 8.05.51 |
107-
| `Hide account components` | Adds options to hide components related to the account menu. | 6.20.51 ~ 8.05.51 |
108-
| `Hide action bar components` | Adds options to hide action bar components and replace the offline download button with an external download button. | 6.20.51 ~ 8.05.51 |
109-
| `Hide ads` | Adds options to hide ads. | 6.20.51 ~ 8.05.51 |
110-
| `Hide layout components` | Adds options to hide general layout components. | 6.20.51 ~ 8.05.51 |
111-
| `Hide overlay filter` | Removes, at compile time, the dark overlay that appears when player flyout menus are open. | 6.20.51 ~ 8.05.51 |
112-
| `Hide player overlay filter` | Removes, at compile time, the dark overlay that appears when single-tapping in the player. | 6.20.51 ~ 8.05.51 |
113-
| `Navigation bar components` | Adds options to hide or change components related to the navigation bar. | 6.20.51 ~ 8.05.51 |
114-
| `Player components` | Adds options to hide or change components related to the player. | 6.20.51 ~ 8.05.51 |
115-
| `Remove background playback restrictions` | Removes restrictions on background playback, including for kids videos. | 6.20.51 ~ 8.05.51 |
116-
| `Remove viewer discretion dialog` | Adds an option to remove the dialog that appears when opening a video that has been age-restricted by accepting it automatically. This does not bypass the age restriction. | 6.20.51 ~ 8.05.51 |
117-
| `Restore old style library shelf` | Adds an option to return the Library tab to the old style. | 6.20.51 ~ 8.05.51 |
118-
| `Return YouTube Dislike` | Adds an option to show the dislike count of songs using the Return YouTube Dislike API. | 6.20.51 ~ 8.05.51 |
119-
| `Return YouTube Username` | Adds an option to replace YouTube handles with usernames in comments using YouTube Data API v3. | 6.20.51 ~ 8.05.51 |
120-
| `Sanitize sharing links` | Adds an option to sanitize sharing links by removing tracking query parameters. | 6.20.51 ~ 8.05.51 |
121-
| `Settings for YouTube Music` | Applies mandatory patches to implement ReVanced Extended settings into the application. | 6.20.51 ~ 8.05.51 |
122-
| `SponsorBlock` | Adds options to enable and configure SponsorBlock, which can skip undesired video segments, such as non-music sections. | 6.20.51 ~ 8.05.51 |
87+
| `Bitrate default value` | Sets the audio quality to 'Always High' when you first install the app. | 6.20.51 ~ 8.10.51 |
88+
| `Bypass image region restrictions` | Adds an option to use a different host for static images, so that images blocked in some countries can be received. | 6.20.51 ~ 8.10.51 |
89+
| `Certificate spoof` | Enables YouTube Music to work with Android Auto by spoofing the YouTube Music certificate. | 6.20.51 ~ 8.10.51 |
90+
| `Change share sheet` | Adds an option to change the in-app share sheet to the system share sheet. | 6.20.51 ~ 8.10.51 |
91+
| `Change start page` | Adds an option to set which page the app opens in instead of the homepage. | 6.20.51 ~ 8.10.51 |
92+
| `Custom branding icon for YouTube Music` | Changes the YouTube Music app icon to the icon specified in patch options. | 6.20.51 ~ 8.10.51 |
93+
| `Custom branding name for YouTube Music` | Changes the YouTube Music app name to the name specified in patch options. | 6.20.51 ~ 8.10.51 |
94+
| `Custom header for YouTube Music` | Applies a custom header in the top left corner within the app. | 6.20.51 ~ 8.10.51 |
95+
| `Dark theme` | Changes the app's dark theme to the values specified in patch options. | 6.20.51 ~ 8.10.51 |
96+
| `Disable Cairo splash animation` | Adds an option to disable Cairo splash animation. | 7.06.54 ~ 8.10.51 |
97+
| `Disable DRC audio` | Adds an option to disable DRC (Dynamic Range Compression) audio. | 6.20.51 ~ 8.10.51 |
98+
| `Disable QUIC protocol` | Adds an option to disable CronetEngine's QUIC protocol. | 6.20.51 ~ 8.10.51 |
99+
| `Disable dislike redirection` | Adds an option to disable redirection to the next track when clicking the Dislike button. | 6.20.51 ~ 8.10.51 |
100+
| `Disable forced auto captions` | Adds an option to disable captions from being automatically enabled. | 6.20.51 ~ 8.10.51 |
101+
| `Disable music video in album` | Adds option to redirect music videos from albums for non-premium users. | 6.20.51 ~ 8.10.51 |
102+
| `Enable OPUS codec` | Adds an option to enable the OPUS audio codec if the player response includes it. | 6.20.51 ~ 8.10.51 |
103+
| `Enable debug logging` | Adds an option to enable debug logging. | 6.20.51 ~ 8.10.51 |
104+
| `Enable landscape mode` | Adds an option to enable landscape mode when rotating the screen on phones. | 6.20.51 ~ 8.10.51 |
105+
| `Flyout menu components` | Adds options to hide or change flyout menu components. | 6.20.51 ~ 8.10.51 |
106+
| `GmsCore support` | Allows patched Google apps to run without root and under a different package name by using GmsCore instead of Google Play Services. | 6.20.51 ~ 8.10.51 |
107+
| `Hide account components` | Adds options to hide components related to the account menu. | 6.20.51 ~ 8.10.51 |
108+
| `Hide action bar components` | Adds options to hide action bar components and replace the offline download button with an external download button. | 6.20.51 ~ 8.10.51 |
109+
| `Hide ads` | Adds options to hide ads. | 6.20.51 ~ 8.10.51 |
110+
| `Hide layout components` | Adds options to hide general layout components. | 6.20.51 ~ 8.10.51 |
111+
| `Hide overlay filter` | Removes, at compile time, the dark overlay that appears when player flyout menus are open. | 6.20.51 ~ 8.10.51 |
112+
| `Hide player overlay filter` | Removes, at compile time, the dark overlay that appears when single-tapping in the player. | 6.20.51 ~ 8.10.51 |
113+
| `Navigation bar components` | Adds options to hide or change components related to the navigation bar. | 6.20.51 ~ 8.10.51 |
114+
| `Player components` | Adds options to hide or change components related to the player. | 6.20.51 ~ 8.10.51 |
115+
| `Remove background playback restrictions` | Removes restrictions on background playback, including for kids videos. | 6.20.51 ~ 8.10.51 |
116+
| `Remove viewer discretion dialog` | Adds an option to remove the dialog that appears when opening a video that has been age-restricted by accepting it automatically. This does not bypass the age restriction. | 6.20.51 ~ 8.10.51 |
117+
| `Restore old style library shelf` | Adds an option to return the Library tab to the old style. | 6.20.51 ~ 8.10.51 |
118+
| `Return YouTube Dislike` | Adds an option to show the dislike count of songs using the Return YouTube Dislike API. | 6.20.51 ~ 8.10.51 |
119+
| `Return YouTube Username` | Adds an option to replace YouTube handles with usernames in comments using YouTube Data API v3. | 6.20.51 ~ 8.10.51 |
120+
| `Sanitize sharing links` | Adds an option to sanitize sharing links by removing tracking query parameters. | 6.20.51 ~ 8.10.51 |
121+
| `Settings for YouTube Music` | Applies mandatory patches to implement ReVanced Extended settings into the application. | 6.20.51 ~ 8.10.51 |
122+
| `SponsorBlock` | Adds options to enable and configure SponsorBlock, which can skip undesired video segments, such as non-music sections. | 6.20.51 ~ 8.10.51 |
123123
| `Spoof app version` | Adds options to spoof the YouTube Music client version. This can be used to restore old UI elements and features. | 6.51.53 ~ 7.16.53 |
124-
| `Spoof client` | Adds options to spoof the client to allow playback. | 6.20.51 ~ 8.05.51 |
125-
| `Translations for YouTube Music` | Add translations or remove string resources. | 6.20.51 ~ 8.05.51 |
126-
| `Video playback` | Adds options to customize settings related to video playback, such as default video quality and playback speed. | 6.20.51 ~ 8.05.51 |
127-
| `Visual preferences icons for YouTube Music` | Adds icons to specific preferences in the settings. | 6.20.51 ~ 8.05.51 |
128-
| `Watch history` | Adds an option to change the domain of the watch history or check its status. | 6.20.51 ~ 8.05.51 |
124+
| `Spoof client` | Adds options to spoof the client to allow playback. | 6.20.51 ~ 8.10.51 |
125+
| `Spoof player parameter` | Adds options to spoof player parameter to allow playback. | 6.20.51 ~ 8.10.51 |
126+
| `Translations for YouTube Music` | Add translations or remove string resources. | 6.20.51 ~ 8.10.51 |
127+
| `Video playback` | Adds options to customize settings related to video playback, such as default video quality and playback speed. | 6.20.51 ~ 8.10.51 |
128+
| `Visual preferences icons for YouTube Music` | Adds icons to specific preferences in the settings. | 6.20.51 ~ 8.10.51 |
129+
| `Watch history` | Adds an option to change the domain of the watch history or check its status. | 6.20.51 ~ 8.10.51 |
129130
</details>
130131

131132
### [📦 `com.reddit.frontpage`](https://play.google.com/store/apps/details?id=com.reddit.frontpage)
@@ -187,7 +188,8 @@ Example:
187188
"6.51.53",
188189
"7.16.53",
189190
"7.25.53",
190-
"8.05.51"
191+
"8.05.51",
192+
"8.10.51"
191193
]
192194
},
193195
"options": []

Diff for: extensions/shared/src/main/java/app/revanced/extension/music/patches/general/ChangeStartPagePatch.java

+9-31
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import org.apache.commons.lang3.StringUtils;
99

1010
import app.revanced.extension.music.settings.Settings;
11+
import app.revanced.extension.music.utils.ExtendedUtils;
1112
import app.revanced.extension.shared.utils.Logger;
1213
import app.revanced.extension.shared.utils.ResourceUtils;
1314

@@ -40,27 +41,17 @@ public enum StartPage {
4041
/**
4142
* Intent extra.
4243
*/
43-
SEARCH("", 1, "Eh4IBRDTnQEYmgMiEwiZn+H0r5WLAxVV5OcDHcHRBmPqpd25AQA=");
44+
SEARCH("");
4445

4546
@NonNull
4647
final String browseId;
4748

48-
final int shortcutType;
49-
50-
/**
51-
* Unique identifier for shortcut (Base64).
52-
*/
53-
@NonNull
54-
final String shortcutId;
55-
5649
StartPage(@NonNull String browseId) {
57-
this(browseId, 0, "");
50+
this.browseId = browseId;
5851
}
5952

60-
StartPage(@NonNull String browseId, int shortcutType, @NonNull String shortcutId) {
61-
this.browseId = browseId;
62-
this.shortcutType = shortcutType;
63-
this.shortcutId = shortcutId;
53+
public final String getBrowseId() {
54+
return this.browseId;
6455
}
6556
}
6657

@@ -69,12 +60,6 @@ public enum StartPage {
6960
*/
7061
private static final String ACTION_MAIN = "android.intent.action.MAIN";
7162

72-
private static final String SHORTCUT_ACTION = "com.google.android.youtube.music.action.shortcut";
73-
74-
private static final String SHORTCUT_CLASS_DESCRIPTOR = "com.google.android.apps.youtube.music.activities.InternalMusicActivity";
75-
76-
private static final String SHORTCUT_TYPE = "com.google.android.youtube.music.action.shortcut_type";
77-
7863
private static final StartPage START_PAGE = Settings.CHANGE_START_PAGE.get();
7964

8065
public static String overrideBrowseId(@NonNull String browseId) {
@@ -96,20 +81,13 @@ public static void overrideIntent(@NonNull Intent intent) {
9681
" as the current activity is not the entry point of the application");
9782
return;
9883
}
99-
final String overrideShortcutId = START_PAGE.shortcutId;
100-
if (overrideShortcutId.isEmpty()) {
84+
if (START_PAGE != StartPage.SEARCH) {
10185
return;
10286
}
10387
Activity mActivity = ResourceUtils.getActivity();
104-
if (mActivity == null) {
105-
return;
88+
if (mActivity != null) {
89+
Logger.printDebug(() -> "Changing intent action to " + START_PAGE.name());
90+
ExtendedUtils.setSearchIntent(mActivity, intent);
10691
}
107-
108-
Logger.printDebug(() -> "Changing intent action to " + START_PAGE.name());
109-
intent.setAction(SHORTCUT_ACTION);
110-
intent.setClassName(mActivity, SHORTCUT_CLASS_DESCRIPTOR);
111-
intent.setPackage(mActivity.getPackageName());
112-
intent.putExtra(SHORTCUT_TYPE, START_PAGE.shortcutType);
113-
intent.putExtra(SHORTCUT_ACTION, overrideShortcutId);
11492
}
11593
}

Diff for: extensions/shared/src/main/java/app/revanced/extension/music/patches/misc/AlbumMusicVideoPatch.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private static void openMusic(@NonNull String songId) {
159159
VideoUtils.openInYouTubeMusic(songId);
160160
}, 1000);
161161

162-
VideoUtils.runOnMainThreadDelayed(() -> isVideoLaunched.compareAndSet(true, false), 1500);
162+
VideoUtils.runOnMainThreadDelayed(() -> isVideoLaunched.compareAndSet(true, false), 2500);
163163
} catch (Exception ex) {
164164
Logger.printException(() -> "openMusic failure", ex);
165165
}

Diff for: extensions/shared/src/main/java/app/revanced/extension/music/patches/misc/DrcAudioPatch.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44

55
@SuppressWarnings("unused")
66
public class DrcAudioPatch {
7+
private static final boolean DISABLE_DRC_AUDIO = Settings.DISABLE_DRC_AUDIO.get();
78

89
public static float disableDrcAudio(float original) {
9-
if (!Settings.DISABLE_DRC_AUDIO.get()) {
10-
return original;
10+
if (DISABLE_DRC_AUDIO) {
11+
return 0f;
1112
}
12-
return 0f;
13+
return original;
1314
}
1415
}

0 commit comments

Comments
 (0)