generated from ReVanced/revanced-patches-template
-
-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(YouTube - Remove tracking query parameter): Sanitize shared URLs …
…in remaining places
- Loading branch information
Showing
3 changed files
with
63 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...lin/app/revanced/patches/youtube/misc/privacy/fingerprints/SystemShareSheetFingerprint.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package app.revanced.patches.youtube.misc.privacy.fingerprints | ||
|
||
import app.revanced.patcher.fingerprint.MethodFingerprint | ||
import com.android.tools.smali.dexlib2.Opcode | ||
|
||
object SystemShareSheetFingerprint : MethodFingerprint( | ||
returnType = "V", | ||
parameters = listOf("L", "Ljava/util/Map;"), | ||
opcodes = listOf( | ||
Opcode.CHECK_CAST, | ||
Opcode.GOTO | ||
), | ||
strings = listOf("YTShare_Logging_Share_Intent_Endpoint_Byte_Array") | ||
) |
18 changes: 18 additions & 0 deletions
18
...in/app/revanced/patches/youtube/misc/privacy/fingerprints/YouTubeShareSheetFingerprint.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package app.revanced.patches.youtube.misc.privacy.fingerprints | ||
|
||
import app.revanced.patcher.extensions.or | ||
import app.revanced.patcher.fingerprint.MethodFingerprint | ||
import com.android.tools.smali.dexlib2.AccessFlags | ||
import com.android.tools.smali.dexlib2.Opcode | ||
|
||
object YouTubeShareSheetFingerprint : MethodFingerprint( | ||
returnType = "V", | ||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL, | ||
parameters = listOf("L", "Ljava/util/Map;"), | ||
opcodes = listOf( | ||
Opcode.CHECK_CAST, | ||
Opcode.GOTO, | ||
Opcode.MOVE_OBJECT, | ||
Opcode.INVOKE_VIRTUAL, | ||
) | ||
) |