mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2026-01-30 22:21:02 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b4d7eca5fa | ||
|
|
c6125c071b | ||
|
|
478de297f9 | ||
|
|
ebc4a12cd7 | ||
|
|
b3c0291e70 |
14
CHANGELOG.md
14
CHANGELOG.md
@@ -1,3 +1,17 @@
|
|||||||
|
# [2.117.0](https://github.com/revanced/revanced-patches/compare/v2.116.0...v2.117.0) (2022-11-21)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **tiktok:** `tiktok-web-login` patch ([#593](https://github.com/revanced/revanced-patches/issues/593)) ([233e578](https://github.com/revanced/revanced-patches/commit/233e578b4d1cd5e783369e0c855e8246d158f8ed))
|
||||||
|
|
||||||
|
# [2.116.0](https://github.com/revanced/revanced-patches/compare/v2.115.0...v2.116.0) (2022-11-21)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **youtube/theme:** make amoled the default color for dark theme background" ([2b68ac7](https://github.com/revanced/revanced-patches/commit/2b68ac7796e54ed07c697909a84b3847f4ed7f01))
|
||||||
|
|
||||||
# [2.115.0](https://github.com/revanced/revanced-patches/compare/v2.114.2...v2.115.0) (2022-11-21)
|
# [2.115.0](https://github.com/revanced/revanced-patches/compare/v2.114.2...v2.115.0) (2022-11-21)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -21,8 +21,9 @@ The official Patch bundle provided by ReVanced and the community.
|
|||||||
| `tiktok-speed` | Enables the playback speed option for all videos. | all |
|
| `tiktok-speed` | Enables the playback speed option for all videos. | all |
|
||||||
| `tiktok-download` | Removes download restrictions and changes the default path to download to. | all |
|
| `tiktok-download` | Removes download restrictions and changes the default path to download to. | all |
|
||||||
| `tiktok-seekbar` | Show progress bar for all video. | all |
|
| `tiktok-seekbar` | Show progress bar for all video. | all |
|
||||||
| `settings` | Adds settings for ReVanced to TikTok. | all |
|
| `tiktok-settings` | Adds settings for ReVanced to TikTok. | all |
|
||||||
| `tiktok-force-login` | Do not force login. | all |
|
| `tiktok-force-login` | Do not force login. | all |
|
||||||
|
| `tiktok-web-login` | Allows logging in with a Google account. | all |
|
||||||
| `tiktok-feed-filter` | Filters tiktok videos: removing ads, removing livestreams. | all |
|
| `tiktok-feed-filter` | Filters tiktok videos: removing ads, removing livestreams. | all |
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
@@ -35,8 +36,9 @@ The official Patch bundle provided by ReVanced and the community.
|
|||||||
| `tiktok-speed` | Enables the playback speed option for all videos. | all |
|
| `tiktok-speed` | Enables the playback speed option for all videos. | all |
|
||||||
| `tiktok-download` | Removes download restrictions and changes the default path to download to. | all |
|
| `tiktok-download` | Removes download restrictions and changes the default path to download to. | all |
|
||||||
| `tiktok-seekbar` | Show progress bar for all video. | all |
|
| `tiktok-seekbar` | Show progress bar for all video. | all |
|
||||||
| `settings` | Adds settings for ReVanced to TikTok. | all |
|
| `tiktok-settings` | Adds settings for ReVanced to TikTok. | all |
|
||||||
| `tiktok-force-login` | Do not force login. | all |
|
| `tiktok-force-login` | Do not force login. | all |
|
||||||
|
| `tiktok-web-login` | Allows logging in with a Google account. | all |
|
||||||
| `tiktok-feed-filter` | Filters tiktok videos: removing ads, removing livestreams. | all |
|
| `tiktok-feed-filter` | Filters tiktok videos: removing ads, removing livestreams. | all |
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
kotlin.code.style = official
|
kotlin.code.style = official
|
||||||
version = 2.115.0
|
version = 2.117.0
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,14 @@
|
|||||||
|
package app.revanced.patches.tiktok.misc.loginfallback.annotations
|
||||||
|
|
||||||
|
import app.revanced.patcher.annotation.Compatibility
|
||||||
|
import app.revanced.patcher.annotation.Package
|
||||||
|
|
||||||
|
@Compatibility(
|
||||||
|
[
|
||||||
|
Package("com.ss.android.ugc.trill"),
|
||||||
|
Package("com.zhiliaoapp.musically")
|
||||||
|
]
|
||||||
|
)
|
||||||
|
@Target(AnnotationTarget.CLASS)
|
||||||
|
@Retention(AnnotationRetention.RUNTIME)
|
||||||
|
internal annotation class TikTokWebLoginCompatibility
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
package app.revanced.patches.tiktok.misc.loginfallback.fingerprints
|
||||||
|
|
||||||
|
import app.revanced.patcher.annotation.Name
|
||||||
|
import app.revanced.patcher.annotation.Version
|
||||||
|
import app.revanced.patcher.extensions.or
|
||||||
|
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
|
||||||
|
import app.revanced.patches.tiktok.misc.loginfallback.annotations.TikTokWebLoginCompatibility
|
||||||
|
import org.jf.dexlib2.AccessFlags
|
||||||
|
|
||||||
|
@Name("google-one-tap-auth-available-fingerprint")
|
||||||
|
@TikTokWebLoginCompatibility
|
||||||
|
@Version("0.0.1")
|
||||||
|
object GoogleAuthAvailableFingerprint : MethodFingerprint(
|
||||||
|
returnType = "Z",
|
||||||
|
access = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||||
|
parameters = listOf(),
|
||||||
|
customFingerprint = { methodDef ->
|
||||||
|
methodDef.definingClass == "Lcom/bytedance/lobby/google/GoogleAuth;"
|
||||||
|
}
|
||||||
|
)
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
package app.revanced.patches.tiktok.misc.loginfallback.fingerprints
|
||||||
|
|
||||||
|
import app.revanced.patcher.annotation.Name
|
||||||
|
import app.revanced.patcher.annotation.Version
|
||||||
|
import app.revanced.patcher.extensions.or
|
||||||
|
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
|
||||||
|
import app.revanced.patches.tiktok.misc.loginfallback.annotations.TikTokWebLoginCompatibility
|
||||||
|
import org.jf.dexlib2.AccessFlags
|
||||||
|
|
||||||
|
@Name("google-one-tap-auth-available-fingerprint")
|
||||||
|
@TikTokWebLoginCompatibility
|
||||||
|
@Version("0.0.1")
|
||||||
|
object GoogleOneTapAuthAvailableFingerprint : MethodFingerprint(
|
||||||
|
returnType = "Z",
|
||||||
|
access = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||||
|
parameters = listOf(),
|
||||||
|
customFingerprint = { methodDef ->
|
||||||
|
methodDef.definingClass == "Lcom/bytedance/lobby/google/GoogleOneTapAuth;"
|
||||||
|
}
|
||||||
|
)
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
package app.revanced.patches.tiktok.misc.loginfallback.patch
|
||||||
|
|
||||||
|
import app.revanced.patcher.annotation.Description
|
||||||
|
import app.revanced.patcher.annotation.Name
|
||||||
|
import app.revanced.patcher.annotation.Version
|
||||||
|
import app.revanced.patcher.data.BytecodeContext
|
||||||
|
import app.revanced.patcher.extensions.addInstructions
|
||||||
|
import app.revanced.patcher.patch.BytecodePatch
|
||||||
|
import app.revanced.patcher.patch.PatchResult
|
||||||
|
import app.revanced.patcher.patch.PatchResultSuccess
|
||||||
|
import app.revanced.patcher.patch.annotations.Patch
|
||||||
|
import app.revanced.patches.tiktok.misc.loginfallback.annotations.TikTokWebLoginCompatibility
|
||||||
|
import app.revanced.patches.tiktok.misc.loginfallback.fingerprints.GoogleAuthAvailableFingerprint
|
||||||
|
import app.revanced.patches.tiktok.misc.loginfallback.fingerprints.GoogleOneTapAuthAvailableFingerprint
|
||||||
|
|
||||||
|
@Patch
|
||||||
|
@Name("tiktok-web-login")
|
||||||
|
@Description("Allows logging in with a Google account.")
|
||||||
|
@TikTokWebLoginCompatibility
|
||||||
|
@Version("0.0.1")
|
||||||
|
class TikTokLoginFallbackPatch : BytecodePatch(
|
||||||
|
listOf(
|
||||||
|
GoogleOneTapAuthAvailableFingerprint,
|
||||||
|
GoogleAuthAvailableFingerprint
|
||||||
|
)
|
||||||
|
) {
|
||||||
|
override fun execute(context: BytecodeContext): PatchResult {
|
||||||
|
listOf(
|
||||||
|
GoogleOneTapAuthAvailableFingerprint,
|
||||||
|
GoogleAuthAvailableFingerprint
|
||||||
|
).forEach {
|
||||||
|
with(it.result!!.mutableMethod) {
|
||||||
|
addInstructions(
|
||||||
|
0,
|
||||||
|
"""
|
||||||
|
const/4 v0, 0x0
|
||||||
|
return v0
|
||||||
|
"""
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return PatchResultSuccess()
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -28,7 +28,7 @@ import org.jf.dexlib2.iface.reference.TypeReference
|
|||||||
|
|
||||||
@Patch
|
@Patch
|
||||||
@DependsOn([TikTokIntegrationsPatch::class])
|
@DependsOn([TikTokIntegrationsPatch::class])
|
||||||
@Name("settings")
|
@Name("tiktok-settings")
|
||||||
@Description("Adds settings for ReVanced to TikTok.")
|
@Description("Adds settings for ReVanced to TikTok.")
|
||||||
@TikTokSettingsCompatibility
|
@TikTokSettingsCompatibility
|
||||||
@Version("0.0.1")
|
@Version("0.0.1")
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ class ThemePatch : ResourcePatch {
|
|||||||
var darkThemeBackgroundColor: String? by option(
|
var darkThemeBackgroundColor: String? by option(
|
||||||
PatchOption.StringOption(
|
PatchOption.StringOption(
|
||||||
key = "darkThemeBackgroundColor",
|
key = "darkThemeBackgroundColor",
|
||||||
default = "#FF282828",
|
default = "@android:color/black",
|
||||||
title = "Background color for the dark theme",
|
title = "Background color for the dark theme",
|
||||||
description = "The background color of the dark theme. Can be a hex color or a resource reference.",
|
description = "The background color of the dark theme. Can be a hex color or a resource reference.",
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user