mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 13:17:46 +02:00
chore: lint code
This commit is contained in:
@ -6,5 +6,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
internal object InterstitialsContainerFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
strings = listOf("overlay_controller_param"),
|
||||
literalSupplier = { InterstitialsContainer }
|
||||
literalSupplier = { InterstitialsContainer },
|
||||
)
|
@ -14,5 +14,5 @@ internal object BreakingNewsFingerprint : LiteralValueFingerprint(
|
||||
Opcode.INVOKE_VIRTUAL,
|
||||
Opcode.MOVE_RESULT_OBJECT
|
||||
),
|
||||
literalSupplier = { HorizontalCardList }
|
||||
literalSupplier = { HorizontalCardList },
|
||||
)
|
@ -9,5 +9,5 @@ internal object CaptionsButtonFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
parameters = emptyList(),
|
||||
literalSupplier = { CaptionToggleContainer }
|
||||
literalSupplier = { CaptionToggleContainer },
|
||||
)
|
@ -9,5 +9,5 @@ internal object CaptionsButtonSyntheticFingerprint : LiteralValueFingerprint(
|
||||
returnType = "Landroid/view/View;",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL or AccessFlags.BRIDGE or AccessFlags.SYNTHETIC,
|
||||
parameters = listOf("Landroid/content/Context;"),
|
||||
literalSupplier = { CaptionToggleContainer }
|
||||
literalSupplier = { CaptionToggleContainer },
|
||||
)
|
@ -11,5 +11,5 @@ internal object ChannelListSubMenuFingerprint : LiteralValueFingerprint(
|
||||
Opcode.INVOKE_VIRTUAL,
|
||||
Opcode.MOVE_RESULT_OBJECT
|
||||
),
|
||||
literalSupplier = { ChannelListSubMenu }
|
||||
literalSupplier = { ChannelListSubMenu },
|
||||
)
|
@ -6,8 +6,8 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
import com.android.tools.smali.dexlib2.AccessFlags
|
||||
|
||||
internal object ChannelListSubMenuTabletFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
parameters = emptyList(),
|
||||
returnType = "V",
|
||||
literalSupplier = { DrawerResults }
|
||||
literalSupplier = { DrawerResults },
|
||||
)
|
@ -15,5 +15,5 @@ internal object FilterBarHeightFingerprint : LiteralValueFingerprint(
|
||||
Opcode.MOVE_RESULT,
|
||||
Opcode.IPUT
|
||||
),
|
||||
literalSupplier = { FilterBarHeight }
|
||||
literalSupplier = { FilterBarHeight },
|
||||
)
|
@ -16,5 +16,5 @@ internal object LatestVideosButtonFingerprint : LiteralValueFingerprint(
|
||||
Opcode.INVOKE_VIRTUAL,
|
||||
Opcode.MOVE_RESULT_OBJECT
|
||||
),
|
||||
literalSupplier = { Bar }
|
||||
literalSupplier = { Bar },
|
||||
)
|
@ -14,5 +14,5 @@ internal object RelatedChipCloudFingerprint : LiteralValueFingerprint(
|
||||
Opcode.INVOKE_VIRTUAL,
|
||||
Opcode.MOVE_RESULT_OBJECT
|
||||
),
|
||||
literalSupplier = { RelatedChipCloudMargin }
|
||||
literalSupplier = { RelatedChipCloudMargin },
|
||||
)
|
@ -16,5 +16,5 @@ internal object SearchResultsChipBarFingerprint : LiteralValueFingerprint(
|
||||
Opcode.INVOKE_VIRTUAL,
|
||||
Opcode.MOVE_RESULT_OBJECT
|
||||
),
|
||||
literalSupplier = { BarContainerHeight }
|
||||
literalSupplier = { BarContainerHeight },
|
||||
)
|
@ -11,5 +11,5 @@ internal object ShowMoreButtonFingerprint : LiteralValueFingerprint(
|
||||
Opcode.INVOKE_STATIC,
|
||||
Opcode.MOVE_RESULT_OBJECT
|
||||
),
|
||||
literalSupplier = { ExpandButtonDown }
|
||||
literalSupplier = { ExpandButtonDown },
|
||||
)
|
@ -7,9 +7,9 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
||||
import com.android.tools.smali.dexlib2.Opcode
|
||||
|
||||
internal object ContextualMenuItemBuilderFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL or AccessFlags.SYNTHETIC,
|
||||
parameters = listOf("L", "L"),
|
||||
returnType = "V",
|
||||
opcodes = listOf(
|
||||
Opcode.CHECK_CAST,
|
||||
Opcode.INVOKE_VIRTUAL,
|
||||
@ -17,5 +17,5 @@ internal object ContextualMenuItemBuilderFingerprint : LiteralValueFingerprint(
|
||||
Opcode.MOVE_RESULT,
|
||||
Opcode.ADD_INT_2ADDR
|
||||
),
|
||||
literalSupplier = { PosterArtWidthDefault }
|
||||
literalSupplier = { PosterArtWidthDefault },
|
||||
)
|
@ -4,5 +4,5 @@ import app.revanced.patches.youtube.utils.resourceid.SharedResourceIdPatch.Compa
|
||||
import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
|
||||
internal object AccountListParentFingerprint : LiteralValueFingerprint(
|
||||
literalSupplier = { CompactListItem }
|
||||
literalSupplier = { CompactListItem },
|
||||
)
|
@ -11,5 +11,5 @@ internal object AccountMenuParentFingerprint : LiteralValueFingerprint(
|
||||
Opcode.INVOKE_VIRTUAL,
|
||||
Opcode.MOVE_RESULT_OBJECT
|
||||
),
|
||||
literalSupplier = { CompactLink }
|
||||
literalSupplier = { CompactLink },
|
||||
)
|
@ -6,5 +6,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
internal object AccountSwitcherAccessibilityLabelFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
parameters = listOf("L", "Ljava/lang/Object;"),
|
||||
literalSupplier = { AccountSwitcherAccessibility }
|
||||
literalSupplier = { AccountSwitcherAccessibility },
|
||||
)
|
@ -15,5 +15,5 @@ internal object FloatingMicrophoneFingerprint : LiteralValueFingerprint(
|
||||
Opcode.IF_EQZ,
|
||||
Opcode.RETURN_VOID
|
||||
),
|
||||
literalSupplier = { Fab }
|
||||
literalSupplier = { Fab },
|
||||
)
|
@ -9,5 +9,5 @@ internal object PiPNotificationFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
parameters = listOf("L"),
|
||||
literalSupplier = { EditSettingsAction }
|
||||
literalSupplier = { EditSettingsAction },
|
||||
)
|
@ -4,5 +4,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
|
||||
internal object TooltipContentFullscreenFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
literalSupplier = { 45384061 }
|
||||
literalSupplier = { 45384061 },
|
||||
)
|
@ -9,5 +9,5 @@ internal object TooltipContentViewFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
parameters = listOf("L"),
|
||||
literalSupplier = { ToolTipContentView }
|
||||
literalSupplier = { ToolTipContentView },
|
||||
)
|
||||
|
@ -6,7 +6,7 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
import com.android.tools.smali.dexlib2.AccessFlags
|
||||
|
||||
internal object AccessibilityOfflineButtonSyncFingerprint : LiteralValueFingerprint(
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
returnType = "V",
|
||||
literalSupplier = { AccessibilityOfflineButtonSync }
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
literalSupplier = { AccessibilityOfflineButtonSync },
|
||||
)
|
@ -3,5 +3,5 @@ package app.revanced.patches.youtube.general.loadingscreen.fingerprints
|
||||
import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
|
||||
internal object GradientLoadingScreenPrimaryFingerprint : LiteralValueFingerprint(
|
||||
literalSupplier = { 45412406 }
|
||||
literalSupplier = { 45412406 },
|
||||
)
|
@ -3,5 +3,5 @@ package app.revanced.patches.youtube.general.loadingscreen.fingerprints
|
||||
import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
|
||||
internal object GradientLoadingScreenSecondaryFingerprint : LiteralValueFingerprint(
|
||||
literalSupplier = { 45418917 }
|
||||
literalSupplier = { 45418917 },
|
||||
)
|
@ -7,8 +7,8 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
||||
|
||||
@Suppress("SpellCheckingInspection")
|
||||
internal object MiniplayerDimensionsCalculatorParentFingerprint : LiteralValueFingerprint(
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
returnType = "V",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
parameters = listOf("L"),
|
||||
literalSupplier = { FloatyBarTopMargin }
|
||||
literalSupplier = { FloatyBarTopMargin },
|
||||
)
|
@ -10,8 +10,8 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
||||
*/
|
||||
@Suppress("SpellCheckingInspection")
|
||||
internal object MiniplayerModernCloseButtonFingerprint : LiteralValueFingerprint(
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
returnType = "Landroid/widget/ImageView;",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
parameters = emptyList(),
|
||||
literalSupplier = { ModernMiniPlayerClose }
|
||||
literalSupplier = { ModernMiniPlayerClose },
|
||||
)
|
@ -8,5 +8,5 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
||||
internal object MiniplayerModernDragAndDropFingerprint : LiteralValueFingerprint(
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.CONSTRUCTOR,
|
||||
parameters = listOf("L"),
|
||||
literalSupplier = { 45628752 }
|
||||
literalSupplier = { 45628752 },
|
||||
)
|
@ -4,5 +4,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
|
||||
@Suppress("SpellCheckingInspection")
|
||||
internal object MiniplayerModernEnabledFingerprint : LiteralValueFingerprint(
|
||||
literalSupplier = { 45622882 }
|
||||
literalSupplier = { 45622882 },
|
||||
)
|
@ -10,8 +10,8 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
||||
*/
|
||||
@Suppress("SpellCheckingInspection")
|
||||
internal object MiniplayerModernExpandButtonFingerprint : LiteralValueFingerprint(
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
returnType = "Landroid/widget/ImageView;",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
parameters = emptyList(),
|
||||
literalSupplier = { ModernMiniPlayerExpand }
|
||||
literalSupplier = { ModernMiniPlayerExpand },
|
||||
)
|
@ -10,8 +10,8 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
||||
*/
|
||||
@Suppress("SpellCheckingInspection")
|
||||
internal object MiniplayerModernExpandCloseDrawablesFingerprint : LiteralValueFingerprint(
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
returnType = "V",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
parameters = listOf("L"),
|
||||
literalSupplier = { YtOutlinePictureInPictureWhite }
|
||||
literalSupplier = { YtOutlinePictureInPictureWhite },
|
||||
)
|
@ -10,8 +10,8 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
||||
*/
|
||||
@Suppress("SpellCheckingInspection")
|
||||
internal object MiniplayerModernForwardButtonFingerprint : LiteralValueFingerprint(
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
returnType = "Landroid/widget/ImageView;",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
parameters = emptyList(),
|
||||
literalSupplier = { ModernMiniPlayerForwardButton }
|
||||
literalSupplier = { ModernMiniPlayerForwardButton },
|
||||
)
|
@ -10,8 +10,8 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
||||
*/
|
||||
@Suppress("SpellCheckingInspection")
|
||||
internal object MiniplayerModernOverlayViewFingerprint : LiteralValueFingerprint(
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
returnType = "V",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
parameters = emptyList(),
|
||||
literalSupplier = { ScrimOverlay }
|
||||
literalSupplier = { ScrimOverlay },
|
||||
)
|
@ -10,8 +10,8 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
||||
*/
|
||||
@Suppress("SpellCheckingInspection")
|
||||
internal object MiniplayerModernRewindButtonFingerprint : LiteralValueFingerprint(
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
returnType = "Landroid/widget/ImageView;",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
parameters = emptyList(),
|
||||
literalSupplier = { ModernMiniPlayerRewindButton }
|
||||
literalSupplier = { ModernMiniPlayerRewindButton },
|
||||
)
|
@ -8,9 +8,9 @@ import app.revanced.patches.youtube.general.music.fingerprints.AppDeepLinkFinger
|
||||
import app.revanced.patches.youtube.utils.compatibility.Constants.COMPATIBLE_PACKAGE
|
||||
import app.revanced.patches.youtube.utils.gms.GmsCoreSupportResourcePatch.PackageNameYouTubeMusic
|
||||
import app.revanced.patches.youtube.utils.integrations.Constants.GENERAL_PATH
|
||||
import app.revanced.patches.youtube.utils.settings.ResourceUtils.addEntryValues
|
||||
import app.revanced.patches.youtube.utils.settings.SettingsBytecodePatch
|
||||
import app.revanced.patches.youtube.utils.settings.SettingsPatch
|
||||
import app.revanced.util.addEntryValues
|
||||
import app.revanced.util.findMethodOrThrow
|
||||
import app.revanced.util.getReference
|
||||
import app.revanced.util.indexOfFirstInstructionOrThrow
|
||||
|
@ -3,5 +3,5 @@ package app.revanced.patches.youtube.general.navigation.fingerprints
|
||||
import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
|
||||
internal object TranslucentNavigationBarFingerprint : LiteralValueFingerprint(
|
||||
literalSupplier = { 45630927 }
|
||||
literalSupplier = { 45630927 },
|
||||
)
|
@ -4,5 +4,5 @@ import app.revanced.patches.youtube.utils.resourceid.SharedResourceIdPatch.YtOut
|
||||
import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
|
||||
internal object CreateButtonDrawableFingerprint : LiteralValueFingerprint(
|
||||
literalSupplier = { YtOutlineVideoCamera }
|
||||
literalSupplier = { YtOutlineVideoCamera },
|
||||
)
|
@ -7,5 +7,5 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
||||
|
||||
internal object DrawerContentViewConstructorFingerprint : LiteralValueFingerprint(
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.CONSTRUCTOR,
|
||||
literalSupplier = { DrawerContentView }
|
||||
literalSupplier = { DrawerContentView },
|
||||
)
|
@ -10,5 +10,5 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
||||
internal object ImageSearchButtonConfigFingerprint : LiteralValueFingerprint(
|
||||
returnType = "Z",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
literalSupplier = { 45617544 }
|
||||
literalSupplier = { 45617544 },
|
||||
)
|
@ -6,5 +6,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
object SearchBarParentFingerprint : LiteralValueFingerprint(
|
||||
returnType = "Landroid/view/View;",
|
||||
strings = listOf("voz-target-id"),
|
||||
literalSupplier = { VoiceSearch }
|
||||
literalSupplier = { VoiceSearch },
|
||||
)
|
@ -6,5 +6,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
object SearchResultFingerprint : LiteralValueFingerprint(
|
||||
returnType = "Landroid/view/View;",
|
||||
strings = listOf("search_filter_chip_applied", "search_original_chip_query"),
|
||||
literalSupplier = { VoiceSearch }
|
||||
literalSupplier = { VoiceSearch },
|
||||
)
|
@ -13,5 +13,5 @@ internal object SetActionBarRingoFingerprint : LiteralValueFingerprint(
|
||||
Opcode.IGET_OBJECT,
|
||||
Opcode.INVOKE_STATIC
|
||||
),
|
||||
literalSupplier = { ActionBarRingo }
|
||||
literalSupplier = { ActionBarRingo },
|
||||
)
|
@ -4,9 +4,9 @@ import app.revanced.patcher.data.ResourceContext
|
||||
import app.revanced.patcher.patch.PatchException
|
||||
import app.revanced.patcher.patch.options.PatchOption.PatchExtensions.stringPatchOption
|
||||
import app.revanced.patches.youtube.utils.compatibility.Constants.COMPATIBLE_PACKAGE
|
||||
import app.revanced.patches.youtube.utils.settings.ResourceUtils.addEntryValues
|
||||
import app.revanced.patches.youtube.utils.settings.SettingsPatch
|
||||
import app.revanced.util.ResourceGroup
|
||||
import app.revanced.util.addEntryValues
|
||||
import app.revanced.util.copyResources
|
||||
import app.revanced.util.patch.BaseResourcePatch
|
||||
import java.nio.file.Files
|
||||
|
@ -1,6 +1,7 @@
|
||||
package app.revanced.patches.youtube.layout.theme
|
||||
|
||||
import app.revanced.patcher.data.ResourceContext
|
||||
import app.revanced.patcher.patch.PatchException
|
||||
import app.revanced.patcher.patch.ResourcePatch
|
||||
import app.revanced.patcher.patch.annotation.Patch
|
||||
import app.revanced.patches.shared.drawable.DrawableColorPatch
|
||||
@ -10,28 +11,32 @@ import org.w3c.dom.Element
|
||||
@Patch(dependencies = [DrawableColorPatch::class])
|
||||
@Suppress("DEPRECATION")
|
||||
object BaseThemePatch : ResourcePatch() {
|
||||
private const val SPLASH_SCREEN_COLOR_NAME = "splashScreenColor"
|
||||
private const val SPLASH_SCREEN_COLOR_ATTRIBUTE = "?attr/$SPLASH_SCREEN_COLOR_NAME"
|
||||
|
||||
override fun execute(context: ResourceContext) {
|
||||
|
||||
DrawableColorPatch.injectCall("$UTILS_PATH/DrawableColorPatch;->getColor(I)I")
|
||||
|
||||
// edit the resource files to change the splash screen color
|
||||
val attrsPath = "res/values/attrs.xml"
|
||||
val stylesPaths: List<String> = listOf(
|
||||
"res/values/styles.xml", // Android 11 (and below)
|
||||
"res/values-v31/styles.xml", // Android 12 (and above)
|
||||
)
|
||||
val attrsResourceFile = "res/values/attrs.xml"
|
||||
val stylesResourceFiles =
|
||||
listOf("values", "values-v31").map { valuesPath ->
|
||||
"res/$valuesPath/styles.xml"
|
||||
}.toTypedArray()
|
||||
|
||||
context.xmlEditor[attrsPath].use { editor ->
|
||||
context.xmlEditor[attrsResourceFile].use { editor ->
|
||||
val file = editor.file
|
||||
|
||||
(file.getElementsByTagName("resources").item(0) as Element).appendChild(
|
||||
file.createElement("attr").apply {
|
||||
setAttribute("format", "reference")
|
||||
setAttribute("name", "splashScreenColor")
|
||||
setAttribute("name", SPLASH_SCREEN_COLOR_NAME)
|
||||
}
|
||||
)
|
||||
}
|
||||
stylesPaths.forEachIndexed { pathIndex, stylesPath ->
|
||||
|
||||
stylesResourceFiles.forEachIndexed { pathIndex, stylesPath ->
|
||||
context.xmlEditor[stylesPath].use { editor ->
|
||||
val file = editor.file
|
||||
|
||||
@ -62,7 +67,7 @@ object BaseThemePatch : ResourcePatch() {
|
||||
}
|
||||
|
||||
1 -> when (nodeAttributeName) {
|
||||
"Base.Theme.YouTube.Launcher" -> "?attr/splashScreenColor"
|
||||
"Base.Theme.YouTube.Launcher" -> SPLASH_SCREEN_COLOR_ATTRIBUTE
|
||||
else -> "null"
|
||||
}
|
||||
|
||||
@ -78,12 +83,27 @@ object BaseThemePatch : ResourcePatch() {
|
||||
}
|
||||
}
|
||||
|
||||
arrayOf("drawable", "drawable-sw600dp").forEach { quantumLaunchScreenPath ->
|
||||
context.xmlEditor["res/$quantumLaunchScreenPath/quantum_launchscreen_youtube.xml"].use { editor ->
|
||||
val resourcesNode = editor.file.getElementsByTagName("item").item(0) as Element
|
||||
val splashScreenResourceFiles =
|
||||
listOf("drawable", "drawable-sw600dp").map { quantumLaunchScreenPath ->
|
||||
"res/$quantumLaunchScreenPath/quantum_launchscreen_youtube.xml"
|
||||
}.toTypedArray()
|
||||
|
||||
if (resourcesNode.attributes.getNamedItem("android:drawable") != null)
|
||||
resourcesNode.setAttribute("android:drawable", "?attr/splashScreenColor")
|
||||
splashScreenResourceFiles.forEach editSplashScreen@{ resourceFile ->
|
||||
context.xmlEditor[resourceFile].use { editor ->
|
||||
val document = editor.file
|
||||
|
||||
val layerList = document.getElementsByTagName("layer-list").item(0) as Element
|
||||
|
||||
val childNodes = layerList.childNodes
|
||||
for (i in 0 until childNodes.length) {
|
||||
val node = childNodes.item(i)
|
||||
if (node is Element && node.hasAttribute("android:drawable")) {
|
||||
node.setAttribute("android:drawable", SPLASH_SCREEN_COLOR_ATTRIBUTE)
|
||||
return@editSplashScreen
|
||||
}
|
||||
}
|
||||
|
||||
throw PatchException("Failed to modify launch screen")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -44,9 +44,6 @@ object MaterialYouPatch : BaseResourcePatch(
|
||||
|
||||
context.copyXmlNode("youtube/materialyou/host", "values-v31/colors.xml", "resources")
|
||||
|
||||
/**
|
||||
* Add settings
|
||||
*/
|
||||
context.updatePatchStatusTheme("MaterialYou")
|
||||
|
||||
isMonetPatchIncluded = true
|
||||
|
@ -10,5 +10,5 @@ internal object BackgroundPlaybackManagerFingerprint : LiteralValueFingerprint(
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.STATIC,
|
||||
parameters = listOf("L"),
|
||||
opcodes = listOf(Opcode.AND_INT_LIT16),
|
||||
literalSupplier = { 64657230 }
|
||||
literalSupplier = { 64657230 },
|
||||
)
|
@ -18,5 +18,5 @@ internal object BackgroundPlaybackSettingsFingerprint : LiteralValueFingerprint(
|
||||
Opcode.IF_NEZ,
|
||||
Opcode.GOTO
|
||||
),
|
||||
literalSupplier = { BackgroundCategory }
|
||||
literalSupplier = { BackgroundCategory },
|
||||
)
|
||||
|
@ -8,5 +8,5 @@ internal object KidsBackgroundPlaybackPolicyControllerFingerprint : LiteralValue
|
||||
returnType = "V",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
parameters = listOf("I", "L", "L"),
|
||||
literalSupplier = { 5 }
|
||||
literalSupplier = { 5 },
|
||||
)
|
||||
|
@ -13,5 +13,5 @@ internal object PiPControllerFingerprint : LiteralValueFingerprint(
|
||||
Opcode.IF_NEZ,
|
||||
Opcode.INVOKE_DIRECT
|
||||
),
|
||||
literalSupplier = { 151635310 }
|
||||
literalSupplier = { 151635310 },
|
||||
)
|
@ -9,5 +9,5 @@ internal object BottomSheetRecyclerViewFingerprint : LiteralValueFingerprint(
|
||||
returnType = "Lj${'$'}/util/Optional;",
|
||||
accessFlags = AccessFlags.PROTECTED or AccessFlags.FINAL,
|
||||
parameters = emptyList(),
|
||||
literalSupplier = { BottomSheetRecyclerView }
|
||||
literalSupplier = { BottomSheetRecyclerView },
|
||||
)
|
@ -4,5 +4,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
|
||||
internal object AmbientModeInFullscreenFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
literalSupplier = { 45389368 }
|
||||
literalSupplier = { 45389368 },
|
||||
)
|
@ -10,5 +10,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
*/
|
||||
internal object LithoSubtitleButtonConfigFingerprint : LiteralValueFingerprint(
|
||||
returnType = "Z",
|
||||
literalSupplier = { 45421555 }
|
||||
literalSupplier = { 45421555 },
|
||||
)
|
@ -5,5 +5,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
|
||||
internal object MusicAppDeeplinkButtonParentFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
literalSupplier = { MusicAppDeeplinkButtonView }
|
||||
literalSupplier = { MusicAppDeeplinkButtonView },
|
||||
)
|
@ -14,5 +14,5 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
||||
internal object YouTubeControlsOverlaySubtitleButtonFingerprint : LiteralValueFingerprint(
|
||||
returnType = "L",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.STATIC,
|
||||
literalSupplier = { YouTubeControlsOverlaySubtitleButton }
|
||||
literalSupplier = { YouTubeControlsOverlaySubtitleButton },
|
||||
)
|
@ -5,7 +5,7 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
||||
|
||||
internal object ShortsLiveStreamEmojiPickerOnClickListenerFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
parameters = listOf("L"),
|
||||
accessFlags = AccessFlags.PUBLIC.value,
|
||||
literalSupplier = { 126326492 }
|
||||
parameters = listOf("L"),
|
||||
literalSupplier = { 126326492 },
|
||||
)
|
@ -9,5 +9,5 @@ internal object ShortsLiveStreamEmojiPickerOpacityFingerprint : LiteralValueFing
|
||||
returnType = "Landroid/widget/ImageView;",
|
||||
accessFlags = AccessFlags.PROTECTED or AccessFlags.FINAL,
|
||||
parameters = emptyList(),
|
||||
literalSupplier = { EmojiPickerIcon }
|
||||
literalSupplier = { EmojiPickerIcon },
|
||||
)
|
@ -13,5 +13,5 @@ internal object CrowdfundingBoxFingerprint : LiteralValueFingerprint(
|
||||
Opcode.MOVE_RESULT_OBJECT,
|
||||
Opcode.IPUT_OBJECT
|
||||
),
|
||||
literalSupplier = { DonationCompanion }
|
||||
literalSupplier = { DonationCompanion },
|
||||
)
|
@ -5,5 +5,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
internal object FilmStripOverlayConfigFingerprint : LiteralValueFingerprint(
|
||||
returnType = "Z",
|
||||
parameters = emptyList(),
|
||||
literalSupplier = { 45381958 }
|
||||
literalSupplier = { 45381958 },
|
||||
)
|
@ -8,5 +8,5 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
||||
internal object FilmStripOverlayParentFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.CONSTRUCTOR,
|
||||
literalSupplier = { Scrubbing }
|
||||
literalSupplier = { Scrubbing },
|
||||
)
|
@ -13,5 +13,5 @@ internal object LayoutCircleFingerprint : LiteralValueFingerprint(
|
||||
Opcode.MOVE_RESULT_OBJECT,
|
||||
Opcode.CHECK_CAST,
|
||||
),
|
||||
literalSupplier = { EndScreenElementLayoutCircle }
|
||||
literalSupplier = { EndScreenElementLayoutCircle },
|
||||
)
|
@ -11,5 +11,5 @@ internal object LayoutIconFingerprint : LiteralValueFingerprint(
|
||||
Opcode.MOVE_RESULT_OBJECT,
|
||||
Opcode.CHECK_CAST,
|
||||
),
|
||||
literalSupplier = { EndScreenElementLayoutIcon }
|
||||
literalSupplier = { EndScreenElementLayoutIcon },
|
||||
)
|
@ -13,5 +13,5 @@ internal object LayoutVideoFingerprint : LiteralValueFingerprint(
|
||||
Opcode.MOVE_RESULT_OBJECT,
|
||||
Opcode.CHECK_CAST,
|
||||
),
|
||||
literalSupplier = { EndScreenElementLayoutVideo }
|
||||
literalSupplier = { EndScreenElementLayoutVideo },
|
||||
)
|
@ -10,5 +10,5 @@ internal object LithoComponentOnClickListenerFingerprint : LiteralValueFingerpri
|
||||
returnType = "V",
|
||||
accessFlags = AccessFlags.PRIVATE or AccessFlags.STATIC,
|
||||
parameters = listOf("L"),
|
||||
literalSupplier = { ComponentLongClickListener }
|
||||
literalSupplier = { ComponentLongClickListener },
|
||||
)
|
@ -8,5 +8,5 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
||||
internal object NoticeOnClickListenerFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.CONSTRUCTOR,
|
||||
literalSupplier = { Notice }
|
||||
literalSupplier = { Notice },
|
||||
)
|
@ -9,5 +9,5 @@ internal object OfflineActionsOnClickListenerFingerprint : LiteralValueFingerpri
|
||||
returnType = "V",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
parameters = listOf("Ljava/lang/String;"),
|
||||
literalSupplier = { OfflineActionsVideoDeletedUndoSnackbarText }
|
||||
literalSupplier = { OfflineActionsVideoDeletedUndoSnackbarText },
|
||||
)
|
@ -5,5 +5,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
|
||||
internal object SeekEduContainerFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
literalSupplier = { EasySeekEduContainer }
|
||||
literalSupplier = { EasySeekEduContainer },
|
||||
)
|
@ -12,5 +12,5 @@ internal object SuggestedActionsFingerprint : LiteralValueFingerprint(
|
||||
Opcode.INVOKE_VIRTUAL,
|
||||
Opcode.MOVE_RESULT_OBJECT
|
||||
),
|
||||
literalSupplier = { SuggestedAction }
|
||||
literalSupplier = { SuggestedAction },
|
||||
)
|
@ -8,5 +8,5 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
||||
internal object TouchAreaOnClickListenerFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.CONSTRUCTOR,
|
||||
literalSupplier = { TouchArea }
|
||||
literalSupplier = { TouchArea },
|
||||
)
|
@ -8,5 +8,5 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
||||
internal object VideoZoomSnapIndicatorFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
literalSupplier = { VideoZoomSnapIndicator }
|
||||
literalSupplier = { VideoZoomSnapIndicator },
|
||||
)
|
||||
|
@ -7,9 +7,9 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
||||
import com.android.tools.smali.dexlib2.Opcode
|
||||
|
||||
internal object AdvancedQualityBottomSheetFingerprint : LiteralValueFingerprint(
|
||||
returnType = "L",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
parameters = listOf("L", "L", "L"),
|
||||
returnType = "L",
|
||||
opcodes = listOf(
|
||||
Opcode.IGET_OBJECT,
|
||||
Opcode.INVOKE_STATIC,
|
||||
@ -36,5 +36,5 @@ internal object AdvancedQualityBottomSheetFingerprint : LiteralValueFingerprint(
|
||||
Opcode.IGET_OBJECT,
|
||||
Opcode.CONST_STRING
|
||||
),
|
||||
literalSupplier = { VideoQualityBottomSheet }
|
||||
literalSupplier = { VideoQualityBottomSheet },
|
||||
)
|
@ -6,5 +6,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
* This fingerprint is compatible with YouTube v18.39.xx+
|
||||
*/
|
||||
internal object PiPModeConfigFingerprint : LiteralValueFingerprint(
|
||||
literalSupplier = { 45427407 }
|
||||
literalSupplier = { 45427407 },
|
||||
)
|
@ -4,5 +4,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
|
||||
internal object AdditionalSettingsConfigFingerprint : LiteralValueFingerprint(
|
||||
returnType = "Z",
|
||||
literalSupplier = { 45412662 }
|
||||
literalSupplier = { 45412662 },
|
||||
)
|
@ -6,5 +6,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
internal object EngagementPanelFingerprint : LiteralValueFingerprint(
|
||||
returnType = "L",
|
||||
parameters = listOf("L"),
|
||||
literalSupplier = { FullScreenEngagementPanel }
|
||||
literalSupplier = { FullScreenEngagementPanel },
|
||||
)
|
@ -7,5 +7,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
*/
|
||||
internal object LandScapeModeConfigFingerprint : LiteralValueFingerprint(
|
||||
returnType = "Z",
|
||||
literalSupplier = { 45446428 }
|
||||
literalSupplier = { 45446428 },
|
||||
)
|
@ -5,5 +5,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
|
||||
internal object PlayerTitleViewFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
literalSupplier = { PlayerVideoTitleView }
|
||||
literalSupplier = { PlayerVideoTitleView },
|
||||
)
|
@ -6,8 +6,8 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
import com.android.tools.smali.dexlib2.AccessFlags
|
||||
|
||||
internal object QuickActionsElementFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
parameters = listOf("Landroid/view/View;"),
|
||||
returnType = "V",
|
||||
literalSupplier = { QuickActionsElementContainer }
|
||||
literalSupplier = { QuickActionsElementContainer },
|
||||
)
|
@ -5,5 +5,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
|
||||
internal object RelatedEndScreenResultsFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
literalSupplier = { AppRelatedEndScreenResults }
|
||||
literalSupplier = { AppRelatedEndScreenResults },
|
||||
)
|
@ -5,5 +5,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
internal object CairoSeekbarConfigFingerprint : LiteralValueFingerprint(
|
||||
returnType = "Z",
|
||||
parameters = emptyList(),
|
||||
literalSupplier = { 45617850 }
|
||||
literalSupplier = { 45617850 },
|
||||
)
|
@ -8,5 +8,5 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
||||
internal object ShortsSeekbarColorFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.CONSTRUCTOR,
|
||||
literalSupplier = { ReelTimeBarPlayedColor }
|
||||
literalSupplier = { ReelTimeBarPlayedColor },
|
||||
)
|
@ -5,5 +5,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
internal object ThumbnailPreviewConfigFingerprint : LiteralValueFingerprint(
|
||||
returnType = "Z",
|
||||
parameters = emptyList(),
|
||||
literalSupplier = { 45398577 }
|
||||
literalSupplier = { 45398577 },
|
||||
)
|
@ -7,5 +7,5 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
||||
|
||||
internal object HorizontalTouchOffsetConstructorFingerprint : LiteralValueFingerprint(
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.CONSTRUCTOR,
|
||||
literalSupplier = { SeekEasyHorizontalTouchOffsetToStartScrubbing }
|
||||
literalSupplier = { SeekEasyHorizontalTouchOffsetToStartScrubbing },
|
||||
)
|
@ -11,5 +11,5 @@ internal object RestoreSlideToSeekBehaviorFingerprint : LiteralValueFingerprint(
|
||||
returnType = "Z",
|
||||
parameters = emptyList(),
|
||||
opcodes = listOf(Opcode.MOVE_RESULT),
|
||||
literalSupplier = { 45411329 }
|
||||
literalSupplier = { 45411329 },
|
||||
)
|
@ -11,5 +11,5 @@ internal object SpeedOverlayFingerprint : LiteralValueFingerprint(
|
||||
returnType = "Z",
|
||||
parameters = emptyList(),
|
||||
opcodes = listOf(Opcode.MOVE_RESULT),
|
||||
literalSupplier = { 45411330 }
|
||||
literalSupplier = { 45411330 },
|
||||
)
|
@ -13,5 +13,5 @@ internal object SpeedOverlayFloatValueFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.CONSTRUCTOR,
|
||||
opcodes = listOf(Opcode.DOUBLE_TO_FLOAT),
|
||||
literalSupplier = { 45411328 }
|
||||
literalSupplier = { 45411328 },
|
||||
)
|
@ -9,5 +9,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
* but due to the structure of ReVanced Patcher, the patch is applied to the method found first.
|
||||
*/
|
||||
internal object ShortsPaidPromotionFingerprint : LiteralValueFingerprint(
|
||||
literalSupplier = { BadgeLabel }
|
||||
literalSupplier = { BadgeLabel },
|
||||
)
|
@ -9,5 +9,5 @@ internal object ShortsPivotLegacyFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
accessFlags = AccessFlags.PRIVATE or AccessFlags.FINAL,
|
||||
parameters = listOf("Z", "Z", "L"),
|
||||
literalSupplier = { ReelForcedMuteButton }
|
||||
literalSupplier = { ReelForcedMuteButton },
|
||||
)
|
@ -8,5 +8,5 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
||||
internal object ShortsSubscriptionsTabletParentFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
literalSupplier = { ReelPlayerFooter }
|
||||
literalSupplier = { ReelPlayerFooter },
|
||||
)
|
@ -8,5 +8,5 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
||||
internal object ShortsTimeStampConstructorFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.CONSTRUCTOR,
|
||||
literalSupplier = { ReelVodTimeStampsContainer }
|
||||
literalSupplier = { ReelVodTimeStampsContainer },
|
||||
)
|
@ -8,5 +8,5 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
||||
internal object ShortsTimeStampMetaPanelFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
literalSupplier = { MetaPanel }
|
||||
literalSupplier = { MetaPanel },
|
||||
)
|
@ -7,5 +7,5 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
||||
internal object ShortsTimeStampSecondaryFingerprint : LiteralValueFingerprint(
|
||||
returnType = "Z",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
literalSupplier = { 45638187 }
|
||||
literalSupplier = { 45638187 },
|
||||
)
|
@ -5,5 +5,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
|
||||
internal object FullScreenEngagementOverlayFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
literalSupplier = { FullScreenEngagementOverlay }
|
||||
literalSupplier = { FullScreenEngagementOverlay },
|
||||
)
|
@ -7,5 +7,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
*/
|
||||
internal object SwipeToSwitchVideoFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
literalSupplier = { 45631116 }
|
||||
literalSupplier = { 45631116 },
|
||||
)
|
@ -7,5 +7,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
*/
|
||||
internal object WatchPanelGesturesFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
literalSupplier = { 45372793 }
|
||||
literalSupplier = { 45372793 },
|
||||
)
|
@ -5,5 +5,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
|
||||
internal object BottomSheetBehaviorFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
literalSupplier = { DesignBottomSheet }
|
||||
literalSupplier = { DesignBottomSheet },
|
||||
)
|
@ -6,8 +6,8 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
import com.android.tools.smali.dexlib2.AccessFlags
|
||||
|
||||
internal object MenuItemInitializeFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
parameters = listOf("Landroid/view/MenuItem;"),
|
||||
returnType = "V",
|
||||
literalSupplier = { CastMediaRouteButton }
|
||||
literalSupplier = { CastMediaRouteButton },
|
||||
)
|
@ -5,8 +5,8 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
import com.android.tools.smali.dexlib2.AccessFlags
|
||||
|
||||
internal object PlayerButtonFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
accessFlags = AccessFlags.PRIVATE or AccessFlags.FINAL,
|
||||
parameters = emptyList(),
|
||||
returnType = "V",
|
||||
literalSupplier = { 11208 }
|
||||
literalSupplier = { 11208 },
|
||||
)
|
@ -10,5 +10,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
*/
|
||||
internal object ControlsOverlayConfigFingerprint : LiteralValueFingerprint(
|
||||
returnType = "Z",
|
||||
literalSupplier = { 45427491 }
|
||||
literalSupplier = { 45427491 },
|
||||
)
|
@ -14,5 +14,5 @@ internal object PlaybackRateBottomSheetBuilderFingerprint : LiteralValueFingerpr
|
||||
Opcode.IGET_BOOLEAN,
|
||||
Opcode.IF_EQZ,
|
||||
),
|
||||
literalSupplier = { VarispeedUnavailableTitle }
|
||||
literalSupplier = { VarispeedUnavailableTitle },
|
||||
)
|
@ -5,5 +5,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
internal object PlayerButtonsResourcesFingerprint : LiteralValueFingerprint(
|
||||
returnType = "I",
|
||||
parameters = listOf("Landroid/content/res/Resources;"),
|
||||
literalSupplier = { 17694721 }
|
||||
literalSupplier = { 17694721 },
|
||||
)
|
@ -7,9 +7,9 @@ import com.android.tools.smali.dexlib2.AccessFlags
|
||||
import com.android.tools.smali.dexlib2.Opcode
|
||||
|
||||
internal object QualityMenuViewInflateFingerprint : LiteralValueFingerprint(
|
||||
returnType = "L",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||
parameters = listOf("L", "L", "L"),
|
||||
returnType = "L",
|
||||
opcodes = listOf(
|
||||
Opcode.INVOKE_SUPER,
|
||||
Opcode.CONST,
|
||||
@ -26,5 +26,5 @@ internal object QualityMenuViewInflateFingerprint : LiteralValueFingerprint(
|
||||
Opcode.MOVE_RESULT_OBJECT,
|
||||
Opcode.CHECK_CAST
|
||||
),
|
||||
literalSupplier = { VideoQualityBottomSheet }
|
||||
literalSupplier = { VideoQualityBottomSheet },
|
||||
)
|
@ -5,5 +5,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
|
||||
internal object TotalTimeFingerprint : LiteralValueFingerprint(
|
||||
returnType = "V",
|
||||
literalSupplier = { TotalTime }
|
||||
literalSupplier = { TotalTime },
|
||||
)
|
@ -4,5 +4,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
|
||||
internal object VideoEndFingerprint : LiteralValueFingerprint(
|
||||
strings = listOf("Attempting to seek during an ad"),
|
||||
literalSupplier = { 45368273 }
|
||||
literalSupplier = { 45368273 },
|
||||
)
|
@ -4,5 +4,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
|
||||
|
||||
internal object FullscreenButtonPositionFingerprint : LiteralValueFingerprint(
|
||||
returnType = "Z",
|
||||
literalSupplier = { 45627640 }
|
||||
literalSupplier = { 45627640 },
|
||||
)
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user