feat(photoshopmix): Add disable login patch

This commit is contained in:
Dylan 2026-03-08 17:59:58 +00:00
parent 6b06b9d132
commit 7de0b96bed
3 changed files with 54 additions and 0 deletions

View file

@ -669,6 +669,10 @@ public final class app/revanced/patches/photomath/misc/unlock/plus/UnlockPlusPat
public static final fun getUnlockPlusPatch ()Lapp/revanced/patcher/patch/BytecodePatch; public static final fun getUnlockPlusPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
} }
public final class app/revanced/patches/photoshopmix/DisableLoginPatchKt {
public static final fun getDisableLoginPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
}
public final class app/revanced/patches/piccomafr/misc/SpoofAndroidDeviceIdPatchKt { public final class app/revanced/patches/piccomafr/misc/SpoofAndroidDeviceIdPatchKt {
public static final fun getSpoofAndroidDeviceIdPatch ()Lapp/revanced/patcher/patch/BytecodePatch; public static final fun getSpoofAndroidDeviceIdPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
} }

View file

@ -0,0 +1,22 @@
package app.revanced.patches.photoshopmix
import app.revanced.patcher.patch.bytecodePatch
import app.revanced.util.returnEarly
@Suppress("unused")
val disableLoginPatch = bytecodePatch(
name = "Disable login",
description = "Allows you to use the app after its discontinuation",
use = false,
) {
compatibleWith("com.adobe.photoshopmix")
execute {
disableLoginFingerprint.method.returnEarly(true)
// Disables these buttons that cause the app to crash while not logged in
libButtonClickedFingerprint.method.returnEarly()
lightroomButtonClickedFingerprint.method.returnEarly()
ccButtonClickedFingerprint.method.returnEarly()
}
}

View file

@ -0,0 +1,28 @@
package app.revanced.patches.photoshopmix
import app.revanced.patcher.fingerprint
internal val disableLoginFingerprint = fingerprint {
custom { method, classDef ->
classDef.endsWith("CreativeCloudSource;") && method.name == "isLoggedIn"
}
returns("Z")
}
internal val libButtonClickedFingerprint = fingerprint {
custom { method, classDef ->
classDef.endsWith("PSMixFragment;") && method.name == "ccLibButtonClickHandler"
}
}
internal val lightroomButtonClickedFingerprint = fingerprint {
custom { method, classDef ->
classDef.endsWith("PSMixFragment;") && method.name == "lightroomButtonClickHandler"
}
}
internal val ccButtonClickedFingerprint = fingerprint {
custom { method, classDef ->
classDef.endsWith("PSMixFragment;") && method.name == "ccButtonClickHandler"
}
}