Skip to content

Commit 6536317

Browse files
authored
chore: Merge branch dev to main (#2982)
2 parents e86e3d8 + 2587508 commit 6536317

File tree

133 files changed

+1857
-747
lines changed

Some content is hidden

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

133 files changed

+1857
-747
lines changed

.github/workflows/pull_strings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Pull strings
33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: 0 * 1 * *
6+
- cron: 0 0 1 * *
77

88
jobs:
99
pull:

CHANGELOG.md

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,138 @@
1+
# [4.7.0-dev.16](https://github.com/ReVanced/revanced-patches/compare/v4.7.0-dev.15...v4.7.0-dev.16) (2024-04-21)
2+
3+
4+
### Features
5+
6+
* **YouTube - Swipe controls:** Save and restore brightness and add auto-brightness toggle ([#2996](https://github.com/ReVanced/revanced-patches/issues/2996)) ([f6c3bc4](https://github.com/ReVanced/revanced-patches/commit/f6c3bc43190d33e06f49b74fc056d26da1bb014a))
7+
8+
# [4.7.0-dev.15](https://github.com/ReVanced/revanced-patches/compare/v4.7.0-dev.14...v4.7.0-dev.15) (2024-04-20)
9+
10+
11+
### Features
12+
13+
* **YouTube:** Support version `19.09.38`, `19.10.39` and `19.11.43` ([#2971](https://github.com/ReVanced/revanced-patches/issues/2971)) ([730f3e3](https://github.com/ReVanced/revanced-patches/commit/730f3e3a7e058b60f9a8130980ecb0a747fa0a8a))
14+
15+
# [4.7.0-dev.14](https://github.com/ReVanced/revanced-patches/compare/v4.7.0-dev.13...v4.7.0-dev.14) (2024-04-20)
16+
17+
18+
### Features
19+
20+
* **YT Music - Hide 'Get Music Premium' label:** Remove occurences of label in settings ([#3046](https://github.com/ReVanced/revanced-patches/issues/3046)) ([10e170a](https://github.com/ReVanced/revanced-patches/commit/10e170a7302fdb585efee663ca13c814aea46c54))
21+
22+
# [4.7.0-dev.13](https://github.com/ReVanced/revanced-patches/compare/v4.7.0-dev.12...v4.7.0-dev.13) (2024-04-18)
23+
24+
25+
### Bug Fixes
26+
27+
* **YouTube Music - Remove upgrade button:** Fix compatibility with latest versions ([#3045](https://github.com/ReVanced/revanced-patches/issues/3045)) ([80de996](https://github.com/ReVanced/revanced-patches/commit/80de99666555694670529bbfe2e0be7a14d66555))
28+
29+
# [4.7.0-dev.12](https://github.com/ReVanced/revanced-patches/compare/v4.7.0-dev.11...v4.7.0-dev.12) (2024-04-18)
30+
31+
32+
### Features
33+
34+
* Add `Hex` patch ([#3034](https://github.com/ReVanced/revanced-patches/issues/3034)) ([3c95aac](https://github.com/ReVanced/revanced-patches/commit/3c95aac838693b354d3a7b0e3dc57c6da5adfa9e))
35+
36+
# [4.7.0-dev.11](https://github.com/ReVanced/revanced-patches/compare/v4.7.0-dev.10...v4.7.0-dev.11) (2024-04-18)
37+
38+
39+
### Bug Fixes
40+
41+
* **YouTube - Spoof device dimensions:** Warn about potential performance issues ([#3039](https://github.com/ReVanced/revanced-patches/issues/3039)) ([9d6f305](https://github.com/ReVanced/revanced-patches/commit/9d6f305b7c923e62b89581d221fedbe1e3f81835))
42+
43+
# [4.7.0-dev.10](https://github.com/ReVanced/revanced-patches/compare/v4.7.0-dev.9...v4.7.0-dev.10) (2024-04-17)
44+
45+
46+
### Features
47+
48+
* **YouTube:** Add 'About' preference to settings menu ([#2981](https://github.com/ReVanced/revanced-patches/issues/2981)) ([5abf894](https://github.com/ReVanced/revanced-patches/commit/5abf89444a3e6a211ec03c242eb9a7847542b08c))
49+
* **YouTube:** Match overlay icons style to YouTube ([#3023](https://github.com/ReVanced/revanced-patches/issues/3023)) ([6849393](https://github.com/ReVanced/revanced-patches/commit/684939314be3d0d43482f229b2adb033e7aa492a))
50+
51+
# [4.7.0-dev.9](https://github.com/ReVanced/revanced-patches/compare/v4.7.0-dev.8...v4.7.0-dev.9) (2024-04-15)
52+
53+
54+
### Bug Fixes
55+
56+
* **YouTube - Hide ads:** rename `Hide paid content` to `Hide paid promotion label` ([#3026](https://github.com/ReVanced/revanced-patches/issues/3026)) ([17e4ac9](https://github.com/ReVanced/revanced-patches/commit/17e4ac978a2f109fd62469a3163b636cd63c55ae))
57+
58+
# [4.7.0-dev.8](https://github.com/ReVanced/revanced-patches/compare/v4.7.0-dev.7...v4.7.0-dev.8) (2024-04-14)
59+
60+
61+
### Features
62+
63+
* **YouTube - Hide Shorts components:** Hide tagged products, hide search suggestions ([#3019](https://github.com/ReVanced/revanced-patches/issues/3019)) ([e0d2fe5](https://github.com/ReVanced/revanced-patches/commit/e0d2fe5bd2e681b9a5252a8e4ad582cc019b1606))
64+
65+
# [4.7.0-dev.7](https://github.com/ReVanced/revanced-patches/compare/v4.7.0-dev.6...v4.7.0-dev.7) (2024-04-14)
66+
67+
68+
### Features
69+
70+
* **YouTube - Hide layout components:** Hide playables ([8423515](https://github.com/ReVanced/revanced-patches/commit/842351548baa33737db09be1cbca9f87c1951341))
71+
72+
# [4.7.0-dev.6](https://github.com/ReVanced/revanced-patches/compare/v4.7.0-dev.5...v4.7.0-dev.6) (2024-04-12)
73+
74+
75+
### Features
76+
77+
* **YouTube - Hide Shorts components:** Hide `Shop`, `Location` and `Save sound to playlist` buttons ([#3018](https://github.com/ReVanced/revanced-patches/issues/3018)) ([5210ac4](https://github.com/ReVanced/revanced-patches/commit/5210ac431c191987264865bf8e789ea9f3fdd360))
78+
79+
# [4.7.0-dev.5](https://github.com/ReVanced/revanced-patches/compare/v4.7.0-dev.4...v4.7.0-dev.5) (2024-04-10)
80+
81+
82+
### Bug Fixes
83+
84+
* **YouTube - Hide Shorts components:** Correctly hide Shorts if navigation tab is changed using device back button ([#3007](https://github.com/ReVanced/revanced-patches/issues/3007)) ([e5848e9](https://github.com/ReVanced/revanced-patches/commit/e5848e99c4cc838595164ef673a77fe60d28086b))
85+
86+
# [4.7.0-dev.4](https://github.com/ReVanced/revanced-patches/compare/v4.7.0-dev.3...v4.7.0-dev.4) (2024-04-09)
87+
88+
89+
### Features
90+
91+
* **Amazon:** Add `Always allow deep-linking` patch ([#3000](https://github.com/ReVanced/revanced-patches/issues/3000)) ([a92b7fb](https://github.com/ReVanced/revanced-patches/commit/a92b7fb43c8b1b45577360cdc6d883fe2815c2f2))
92+
* **Twitter:** Add `Sanitize sharing links` patch ([#3003](https://github.com/ReVanced/revanced-patches/issues/3003)) ([186b887](https://github.com/ReVanced/revanced-patches/commit/186b8874157eef1b882b05d491ba1d4ca2809535))
93+
94+
# [4.7.0-dev.3](https://github.com/ReVanced/revanced-patches/compare/v4.7.0-dev.2...v4.7.0-dev.3) (2024-04-09)
95+
96+
97+
### Bug Fixes
98+
99+
* **Tumblr - Fix old versions:** Improve reliability by removing remnances of Tumblr Live ([#2988](https://github.com/ReVanced/revanced-patches/issues/2988)) ([897b4db](https://github.com/ReVanced/revanced-patches/commit/897b4dbce984270ae1fd7de5bd30bd05153e45f2))
100+
101+
# [4.7.0-dev.2](https://github.com/ReVanced/revanced-patches/compare/v4.7.0-dev.1...v4.7.0-dev.2) (2024-04-06)
102+
103+
104+
### Features
105+
106+
* **Strava - Unlock subscription:** Remove compatible version constraint ([80a5599](https://github.com/ReVanced/revanced-patches/commit/80a55991683d7b22626224fa2935a5bf9bfcbfee))
107+
108+
# [4.7.0-dev.1](https://github.com/ReVanced/revanced-patches/compare/v4.6.1-dev.3...v4.7.0-dev.1) (2024-04-06)
109+
110+
111+
### Features
112+
113+
* **YouTube - Hide layout components:** Add option to hide horizontal shelves ([#2951](https://github.com/ReVanced/revanced-patches/issues/2951)) ([9ae0650](https://github.com/ReVanced/revanced-patches/commit/9ae0650c0005d882299996aa442410bab4261395))
114+
115+
## [4.6.1-dev.3](https://github.com/ReVanced/revanced-patches/compare/v4.6.1-dev.2...v4.6.1-dev.3) (2024-04-06)
116+
117+
118+
### Bug Fixes
119+
120+
* **YouTube - GmsCore support:** Prompt to disable battery optimizations, if not done already ([#2958](https://github.com/ReVanced/revanced-patches/issues/2958)) ([82acb84](https://github.com/ReVanced/revanced-patches/commit/82acb84b5f6ff0722a2eb080b53da9dd3622502f))
121+
122+
## [4.6.1-dev.2](https://github.com/ReVanced/revanced-patches/compare/v4.6.1-dev.1...v4.6.1-dev.2) (2024-04-04)
123+
124+
125+
### Bug Fixes
126+
127+
* **YouTube - Hide load more button:** Include patch with `Hide layout components`, and hide button only in search feed ([#2959](https://github.com/ReVanced/revanced-patches/issues/2959)) ([b007e8e](https://github.com/ReVanced/revanced-patches/commit/b007e8e06a3afad79b40bec1c6a14604f059049c))
128+
129+
## [4.6.1-dev.1](https://github.com/ReVanced/revanced-patches/compare/v4.6.0...v4.6.1-dev.1) (2024-04-04)
130+
131+
132+
### Bug Fixes
133+
134+
* **YouTube - Player flyout menu:** Add hide Lock screen menu ([#2985](https://github.com/ReVanced/revanced-patches/issues/2985)) ([308de4a](https://github.com/ReVanced/revanced-patches/commit/308de4a63ca99b8d30d6b3242f98d6f0e2aefb37))
135+
1136
# [4.6.0](https://github.com/ReVanced/revanced-patches/compare/v4.5.0...v4.6.0) (2024-04-02)
2137

3138

api/revanced-patches.api

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ public final class app/revanced/patches/all/misc/debugging/EnableAndroidDebuggin
2828
public fun execute (Lapp/revanced/patcher/data/ResourceContext;)V
2929
}
3030

31+
public final class app/revanced/patches/all/misc/hex/HexPatch : app/revanced/patches/shared/misc/hex/BaseHexPatch {
32+
public fun <init> ()V
33+
}
34+
3135
public final class app/revanced/patches/all/misc/network/OverrideCertificatePinningPatch : app/revanced/patcher/patch/ResourcePatch {
3236
public static final field INSTANCE Lapp/revanced/patches/all/misc/network/OverrideCertificatePinningPatch;
3337
public synthetic fun execute (Lapp/revanced/patcher/data/Context;)V
@@ -152,6 +156,12 @@ public final class app/revanced/patches/all/telephony/sim/spoof/SpoofSimCountryP
152156
public fun transform (Lapp/revanced/patcher/util/proxy/mutableTypes/MutableMethod;Lkotlin/Pair;)V
153157
}
154158

159+
public final class app/revanced/patches/amazon/deeplinking/DeepLinkingPatch : app/revanced/patcher/patch/BytecodePatch {
160+
public static final field INSTANCE Lapp/revanced/patches/amazon/deeplinking/DeepLinkingPatch;
161+
public fun execute (Lapp/revanced/patcher/data/BytecodeContext;)V
162+
public synthetic fun execute (Lapp/revanced/patcher/data/Context;)V
163+
}
164+
155165
public final class app/revanced/patches/backdrops/misc/pro/ProUnlockPatch : app/revanced/patcher/patch/BytecodePatch {
156166
public static final field INSTANCE Lapp/revanced/patches/backdrops/misc/pro/ProUnlockPatch;
157167
public fun execute (Lapp/revanced/patcher/data/BytecodeContext;)V
@@ -663,6 +673,21 @@ public abstract class app/revanced/patches/shared/misc/gms/BaseGmsCoreSupportRes
663673
protected final fun getGmsCoreVendorGroupId ()Ljava/lang/String;
664674
}
665675

676+
public abstract class app/revanced/patches/shared/misc/hex/BaseHexPatch : app/revanced/patcher/patch/RawResourcePatch {
677+
public fun <init> ()V
678+
public synthetic fun execute (Lapp/revanced/patcher/data/Context;)V
679+
public fun execute (Lapp/revanced/patcher/data/ResourceContext;)V
680+
}
681+
682+
public final class app/revanced/patches/shared/misc/hex/BaseHexPatch$Replacement {
683+
public static final field Companion Lapp/revanced/patches/shared/misc/hex/BaseHexPatch$Replacement$Companion;
684+
public fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
685+
public final fun replacePattern ([B)V
686+
}
687+
688+
public final class app/revanced/patches/shared/misc/hex/BaseHexPatch$Replacement$Companion {
689+
}
690+
666691
public abstract class app/revanced/patches/shared/misc/integrations/BaseIntegrationsPatch : app/revanced/patcher/patch/BytecodePatch {
667692
public fun <init> (Ljava/lang/String;Ljava/util/Set;)V
668693
public fun <init> (Ljava/util/Set;)V
@@ -699,6 +724,7 @@ public final class app/revanced/patches/shared/misc/mapping/ResourceMappingPatch
699724
public static final field INSTANCE Lapp/revanced/patches/shared/misc/mapping/ResourceMappingPatch;
700725
public synthetic fun execute (Lapp/revanced/patcher/data/Context;)V
701726
public fun execute (Lapp/revanced/patcher/data/ResourceContext;)V
727+
public final fun get (Ljava/lang/String;Ljava/lang/String;)J
702728
}
703729

704730
public final class app/revanced/patches/shared/misc/mapping/ResourceMappingPatch$ResourceElement {
@@ -838,6 +864,8 @@ public final class app/revanced/patches/shared/misc/settings/preference/ListPref
838864
}
839865

840866
public final class app/revanced/patches/shared/misc/settings/preference/NonInteractivePreference : app/revanced/patches/shared/misc/settings/preference/BasePreference {
867+
public fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
868+
public synthetic fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZILkotlin/jvm/internal/DefaultConstructorMarker;)V
841869
public fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
842870
public synthetic fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZILkotlin/jvm/internal/DefaultConstructorMarker;)V
843871
public final fun getSelectable ()Z
@@ -1062,10 +1090,6 @@ public final class app/revanced/patches/tumblr/fixes/FixOldVersionsPatch : app/r
10621090
public synthetic fun execute (Lapp/revanced/patcher/data/Context;)V
10631091
}
10641092

1065-
public final class app/revanced/patches/tumblr/fixes/fingerprints/HttpPathParserFingerprint : app/revanced/patcher/fingerprint/MethodFingerprint {
1066-
public static final field INSTANCE Lapp/revanced/patches/tumblr/fixes/fingerprints/HttpPathParserFingerprint;
1067-
}
1068-
10691093
public final class app/revanced/patches/tumblr/live/DisableTumblrLivePatch : app/revanced/patcher/patch/BytecodePatch {
10701094
public static final field INSTANCE Lapp/revanced/patches/tumblr/live/DisableTumblrLivePatch;
10711095
public fun execute (Lapp/revanced/patcher/data/BytecodeContext;)V
@@ -1200,6 +1224,12 @@ public final class app/revanced/patches/twitter/misc/links/OpenLinksWithAppChoos
12001224
public synthetic fun execute (Lapp/revanced/patcher/data/Context;)V
12011225
}
12021226

1227+
public final class app/revanced/patches/twitter/misc/links/SanitizeSharingLinksPatch : app/revanced/patcher/patch/BytecodePatch {
1228+
public static final field INSTANCE Lapp/revanced/patches/twitter/misc/links/SanitizeSharingLinksPatch;
1229+
public fun execute (Lapp/revanced/patcher/data/BytecodeContext;)V
1230+
public synthetic fun execute (Lapp/revanced/patcher/data/Context;)V
1231+
}
1232+
12031233
public final class app/revanced/patches/vsco/misc/pro/UnlockProPatch : app/revanced/patcher/patch/BytecodePatch {
12041234
public static final field INSTANCE Lapp/revanced/patches/vsco/misc/pro/UnlockProPatch;
12051235
public fun execute (Lapp/revanced/patcher/data/BytecodeContext;)V
@@ -1817,11 +1847,12 @@ public final class app/revanced/patches/yuka/misc/unlockpremium/UnlockPremiumPat
18171847

18181848
public final class app/revanced/util/BytecodeUtilsKt {
18191849
public static final fun containsWideLiteralInstructionValue (Lcom/android/tools/smali/dexlib2/iface/Method;J)Z
1820-
public static final fun findIndexForIdResource (Lcom/android/tools/smali/dexlib2/iface/Method;Ljava/lang/String;)I
18211850
public static final fun findMutableMethodOf (Lapp/revanced/patcher/util/proxy/mutableTypes/MutableClass;Lcom/android/tools/smali/dexlib2/iface/Method;)Lapp/revanced/patcher/util/proxy/mutableTypes/MutableMethod;
18221851
public static final fun getException (Lapp/revanced/patcher/fingerprint/MethodFingerprint;)Lapp/revanced/patcher/patch/PatchException;
18231852
public static final fun indexOfFirstInstruction (Lcom/android/tools/smali/dexlib2/iface/Method;Lkotlin/jvm/functions/Function1;)I
18241853
public static final fun indexOfFirstWideLiteralInstructionValue (Lcom/android/tools/smali/dexlib2/iface/Method;J)I
1854+
public static final fun indexOfIdResource (Lcom/android/tools/smali/dexlib2/iface/Method;Ljava/lang/String;)I
1855+
public static final fun indexOfIdResourceOrThrow (Lcom/android/tools/smali/dexlib2/iface/Method;Ljava/lang/String;)I
18251856
public static final fun injectHideViewCall (Lapp/revanced/patcher/util/proxy/mutableTypes/MutableMethod;IILjava/lang/String;Ljava/lang/String;)V
18261857
public static final fun resultOrThrow (Lapp/revanced/patcher/fingerprint/MethodFingerprint;)Lapp/revanced/patcher/fingerprint/MethodFingerprintResult;
18271858
public static final fun returnEarly (Ljava/util/List;Z)V

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repositories {
1515
mavenLocal()
1616
google()
1717
maven {
18-
// A repository must be speficied for some reason. "registry" is a dummy.
18+
// A repository must be specified for some reason. "registry" is a dummy.
1919
url = uri("https://maven.pkg.github.com/revanced/registry")
2020
credentials {
2121
username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_ACTOR")

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
org.gradle.parallel = true
22
org.gradle.caching = true
33
kotlin.code.style = official
4-
version = 4.6.0
4+
version = 4.7.0-dev.16
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
package app.revanced.patches.all.misc.hex
2+
3+
import app.revanced.patcher.patch.PatchException
4+
import app.revanced.patcher.patch.annotation.Patch
5+
import app.revanced.patcher.patch.options.PatchOption.PatchExtensions.registerNewPatchOption
6+
import app.revanced.patches.shared.misc.hex.BaseHexPatch
7+
import app.revanced.util.Utils.trimIndentMultiline
8+
import app.revanced.patcher.patch.Patch as PatchClass
9+
10+
@Patch(
11+
name = "Hex",
12+
description = "Replaces a hexadecimal patterns of bytes of files in an APK.",
13+
use = false,
14+
)
15+
@Suppress("unused")
16+
class HexPatch : BaseHexPatch() {
17+
// TODO: Instead of stringArrayOption, use a custom option type to work around
18+
// https://github.com/ReVanced/revanced-library/issues/48.
19+
// Replace the custom option type with a stringArrayOption once the issue is resolved.
20+
private val replacementsOption by registerNewPatchOption<PatchClass<*>, List<String>>(
21+
key = "replacements",
22+
title = "replacements",
23+
description = """
24+
Hexadecimal patterns to search for and replace with another in a target file.
25+
26+
A pattern is a sequence of case insensitive strings, each representing hexadecimal bytes, separated by spaces.
27+
An example pattern is 'aa 01 02 FF'.
28+
29+
Every pattern must be followed by a pipe ('|'), the replacement pattern,
30+
another pipe ('|'), and the path to the file to make the changes in relative to the APK root.
31+
The replacement pattern must have the same length as the original pattern.
32+
33+
Full example of a valid input:
34+
'aa 01 02 FF|00 00 00 00|path/to/file'
35+
""".trimIndentMultiline(),
36+
required = true,
37+
valueType = "StringArray",
38+
)
39+
40+
override val replacements
41+
get() = replacementsOption!!.map { from ->
42+
val (pattern, replacementPattern, targetFilePath) = try {
43+
from.split("|", limit = 3)
44+
} catch (e: Exception) {
45+
throw PatchException(
46+
"Invalid input: $from.\n" +
47+
"Every pattern must be followed by a pipe ('|'), " +
48+
"the replacement pattern, another pipe ('|'), " +
49+
"and the path to the file to make the changes in relative to the APK root. ",
50+
)
51+
}
52+
53+
Replacement(pattern, replacementPattern, targetFilePath)
54+
}
55+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package app.revanced.patches.amazon.deeplinking
2+
3+
import app.revanced.patcher.fingerprint.MethodFingerprint
4+
import com.android.tools.smali.dexlib2.AccessFlags
5+
6+
internal object DeepLinkingFingerprint : MethodFingerprint(
7+
"Z",
8+
parameters = listOf("L"),
9+
accessFlags = AccessFlags.PRIVATE.value,
10+
strings = listOf("https://www.", "android.intent.action.VIEW")
11+
)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package app.revanced.patches.amazon.deeplinking
2+
3+
import app.revanced.patcher.data.BytecodeContext
4+
import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
5+
import app.revanced.patcher.patch.BytecodePatch
6+
import app.revanced.patcher.patch.annotation.CompatiblePackage
7+
import app.revanced.patcher.patch.annotation.Patch
8+
import app.revanced.util.exception
9+
10+
@Patch(
11+
name = "Always allow deep-linking",
12+
description = "Open Amazon links, even if the app is not set to handle Amazon links.",
13+
compatiblePackages = [CompatiblePackage("com.amazon.mShop.android.shopping")]
14+
)
15+
@Suppress("unused")
16+
object DeepLinkingPatch : BytecodePatch(
17+
setOf(DeepLinkingFingerprint)
18+
) {
19+
override fun execute(context: BytecodeContext) {
20+
DeepLinkingFingerprint.result?.mutableMethod?.addInstructions(
21+
0,
22+
"""
23+
const/4 v0, 0x1
24+
return v0
25+
"""
26+
) ?: throw DeepLinkingFingerprint.exception
27+
}
28+
}

0 commit comments

Comments
 (0)