mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2026-01-23 02:31:03 +00:00
Compare commits
6 Commits
v4.8.0-dev
...
v4.8.0-dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
99888044de | ||
|
|
5ba63e1d7d | ||
|
|
c2624a10a4 | ||
|
|
7655619e02 | ||
|
|
245c2ad536 | ||
|
|
d859b15950 |
21
CHANGELOG.md
21
CHANGELOG.md
@@ -1,3 +1,24 @@
|
|||||||
|
# [4.8.0-dev.20](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.19...v4.8.0-dev.20) (2024-05-16)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **YT Music:** Add support for `7.01.52` ([#3177](https://github.com/ReVanced/revanced-patches/issues/3177)) ([e9bfb25](https://github.com/ReVanced/revanced-patches/commit/e9bfb25dfe85754fd7fa5c9db934bb4fc52e4694))
|
||||||
|
|
||||||
|
# [4.8.0-dev.19](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.18...v4.8.0-dev.19) (2024-05-16)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **YouTube - Hide Shorts components:** Hide 'Buy super thanks' button ([#3176](https://github.com/ReVanced/revanced-patches/issues/3176)) ([89c1548](https://github.com/ReVanced/revanced-patches/commit/89c154861c8b3afa665542e97ff201c3e84410b2))
|
||||||
|
|
||||||
|
# [4.8.0-dev.18](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.17...v4.8.0-dev.18) (2024-05-14)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **YouTube Music:** Make `Hide 'Get Music Premium' label` and `Remove upgrade button` compatible with latest version ([#3164](https://github.com/ReVanced/revanced-patches/issues/3164)) ([3ff20de](https://github.com/ReVanced/revanced-patches/commit/3ff20dee4aea49ca77dcd3fbe148287b55a2b5e3))
|
||||||
|
|
||||||
# [4.8.0-dev.17](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.16...v4.8.0-dev.17) (2024-05-12)
|
# [4.8.0-dev.17](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.16...v4.8.0-dev.17) (2024-05-12)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
org.gradle.parallel = true
|
org.gradle.parallel = true
|
||||||
org.gradle.caching = true
|
org.gradle.caching = true
|
||||||
kotlin.code.style = official
|
kotlin.code.style = official
|
||||||
version = 4.8.0-dev.17
|
version = 4.8.0-dev.20
|
||||||
|
|||||||
@@ -12,8 +12,6 @@ internal object HideGetPremiumFingerprint : MethodFingerprint(
|
|||||||
listOf(
|
listOf(
|
||||||
Opcode.IF_NEZ,
|
Opcode.IF_NEZ,
|
||||||
Opcode.CONST_16,
|
Opcode.CONST_16,
|
||||||
Opcode.GOTO,
|
|
||||||
Opcode.NOP,
|
|
||||||
Opcode.INVOKE_VIRTUAL,
|
Opcode.INVOKE_VIRTUAL,
|
||||||
),
|
),
|
||||||
listOf("FEmusic_history", "FEmusic_offline"),
|
listOf("FEmusic_history", "FEmusic_offline"),
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ internal object PivotBarConstructorFingerprint : MethodFingerprint(
|
|||||||
Opcode.CHECK_CAST,
|
Opcode.CHECK_CAST,
|
||||||
Opcode.INVOKE_INTERFACE,
|
Opcode.INVOKE_INTERFACE,
|
||||||
Opcode.GOTO,
|
Opcode.GOTO,
|
||||||
Opcode.NOP,
|
|
||||||
Opcode.IPUT_OBJECT,
|
Opcode.IPUT_OBJECT,
|
||||||
Opcode.RETURN_VOID,
|
Opcode.RETURN_VOID,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -1,19 +1,10 @@
|
|||||||
package app.revanced.patches.music.misc.integrations.fingerprints
|
package app.revanced.patches.music.misc.integrations.fingerprints
|
||||||
|
|
||||||
import app.revanced.patches.shared.misc.integrations.BaseIntegrationsPatch.IntegrationsFingerprint
|
import app.revanced.patches.shared.misc.integrations.BaseIntegrationsPatch.IntegrationsFingerprint
|
||||||
import com.android.tools.smali.dexlib2.Opcode
|
|
||||||
|
|
||||||
internal object ApplicationInitFingerprint : IntegrationsFingerprint(
|
internal object ApplicationInitFingerprint : IntegrationsFingerprint(
|
||||||
returnType = "V",
|
returnType = "V",
|
||||||
parameters = emptyList(),
|
parameters = emptyList(),
|
||||||
opcodes = listOf(
|
|
||||||
Opcode.NEW_INSTANCE,
|
|
||||||
Opcode.INVOKE_DIRECT,
|
|
||||||
Opcode.INVOKE_STATIC,
|
|
||||||
Opcode.NEW_INSTANCE,
|
|
||||||
Opcode.INVOKE_DIRECT,
|
|
||||||
Opcode.INVOKE_VIRTUAL
|
|
||||||
),
|
|
||||||
strings = listOf("activity"),
|
strings = listOf("activity"),
|
||||||
customFingerprint = { methodDef, _ -> methodDef.name == "onCreate" },
|
customFingerprint = { methodDef, _ -> methodDef.name == "onCreate" },
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import app.revanced.patcher.patch.BytecodePatch
|
|||||||
import app.revanced.patcher.patch.PatchException
|
import app.revanced.patcher.patch.PatchException
|
||||||
import app.revanced.patches.shared.misc.integrations.BaseIntegrationsPatch.IntegrationsFingerprint.IRegisterResolver
|
import app.revanced.patches.shared.misc.integrations.BaseIntegrationsPatch.IntegrationsFingerprint.IRegisterResolver
|
||||||
import app.revanced.patches.shared.misc.integrations.fingerprints.ReVancedUtilsPatchesVersionFingerprint
|
import app.revanced.patches.shared.misc.integrations.fingerprints.ReVancedUtilsPatchesVersionFingerprint
|
||||||
|
import app.revanced.util.exception
|
||||||
import app.revanced.util.resultOrThrow
|
import app.revanced.util.resultOrThrow
|
||||||
import com.android.tools.smali.dexlib2.Opcode
|
import com.android.tools.smali.dexlib2.Opcode
|
||||||
import com.android.tools.smali.dexlib2.iface.ClassDef
|
import com.android.tools.smali.dexlib2.iface.ClassDef
|
||||||
@@ -139,7 +140,7 @@ abstract class BaseIntegrationsPatch(
|
|||||||
"invoke-static/range { v$contextRegister .. v$contextRegister }, " +
|
"invoke-static/range { v$contextRegister .. v$contextRegister }, " +
|
||||||
"$integrationsDescriptor->setContext(Landroid/content/Context;)V",
|
"$integrationsDescriptor->setContext(Landroid/content/Context;)V",
|
||||||
)
|
)
|
||||||
} ?: throw PatchException("Could not find hook target fingerprint.")
|
} ?: throw this.exception
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IHookInsertIndexResolver : (Method) -> Int {
|
interface IHookInsertIndexResolver : (Method) -> Int {
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ object HideShortsComponentsResourcePatch : ResourcePatch() {
|
|||||||
SwitchPreference("revanced_hide_shorts_shop_button"),
|
SwitchPreference("revanced_hide_shorts_shop_button"),
|
||||||
SwitchPreference("revanced_hide_shorts_tagged_products"),
|
SwitchPreference("revanced_hide_shorts_tagged_products"),
|
||||||
SwitchPreference("revanced_hide_shorts_search_suggestions"),
|
SwitchPreference("revanced_hide_shorts_search_suggestions"),
|
||||||
|
SwitchPreference("revanced_hide_shorts_super_thanks_button"),
|
||||||
SwitchPreference("revanced_hide_shorts_location_label"),
|
SwitchPreference("revanced_hide_shorts_location_label"),
|
||||||
SwitchPreference("revanced_hide_shorts_channel_bar"),
|
SwitchPreference("revanced_hide_shorts_channel_bar"),
|
||||||
SwitchPreference("revanced_hide_shorts_info_panel"),
|
SwitchPreference("revanced_hide_shorts_info_panel"),
|
||||||
|
|||||||
@@ -583,6 +583,9 @@
|
|||||||
<string name="revanced_hide_shorts_shop_button_title">Hide shop button</string>
|
<string name="revanced_hide_shorts_shop_button_title">Hide shop button</string>
|
||||||
<string name="revanced_hide_shorts_shop_button_summary_on">Shop button is hidden</string>
|
<string name="revanced_hide_shorts_shop_button_summary_on">Shop button is hidden</string>
|
||||||
<string name="revanced_hide_shorts_shop_button_summary_off">Shop button is shown</string>
|
<string name="revanced_hide_shorts_shop_button_summary_off">Shop button is shown</string>
|
||||||
|
<string name="revanced_hide_shorts_super_thanks_button_title">Hide super thanks button</string>
|
||||||
|
<string name="revanced_hide_shorts_super_thanks_button_summary_on">Super thanks button is hidden</string>
|
||||||
|
<string name="revanced_hide_shorts_super_thanks_button_summary_off">Super thanks button is shown</string>
|
||||||
<string name="revanced_hide_shorts_tagged_products_title">Hide tagged products</string>
|
<string name="revanced_hide_shorts_tagged_products_title">Hide tagged products</string>
|
||||||
<string name="revanced_hide_shorts_tagged_products_summary_on">Tagged products are hidden</string>
|
<string name="revanced_hide_shorts_tagged_products_summary_on">Tagged products are hidden</string>
|
||||||
<string name="revanced_hide_shorts_tagged_products_summary_off">Tagged products are shown</string>
|
<string name="revanced_hide_shorts_tagged_products_summary_off">Tagged products are shown</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user