feat(photoshopmix): Revert to using Fingerprints.kt

This commit is contained in:
Dylan 2026-03-08 23:47:47 +00:00
parent da4270b5c6
commit 4450e0a19e
2 changed files with 24 additions and 7 deletions

View file

@ -13,13 +13,7 @@ val bypassLoginPatch = bytecodePatch(
compatibleWith("com.adobe.photoshopmix")
apply {
var psMixFragment = "Lcom/adobe/photoshopmix/PSMixFragment;"
var firstLoginMethod = firstMethod{ name == "isLoggedIn" && definingClass == "Lcom/adobe/acira/accreativecloudlibrary/CreativeCloudSource;" && returnType == "Z"}
var libButtonClickedMethod = firstMethod{name=="ccLibButtonClickHandler" && definingClass==psMixFragment}
var lightroomButtonClickedMethod = firstMethod{name=="lightroomButtonClickHandler" && definingClass==psMixFragment}
var ccButtonClickedMethod = firstMethod{name=="ccButtonClickHandler" && definingClass==psMixFragment}
firstLoginMethod.returnEarly(true)
disableLoginMethod.returnEarly(true)
// Disables these buttons that cause the app to crash while not logged in.
libButtonClickedMethod.returnEarly()

View file

@ -0,0 +1,23 @@
package app.revanced.patches.photoshopmix
import app.revanced.patcher.definingClass
import app.revanced.patcher.gettingFirstMethodDeclaratively
import app.revanced.patcher.patch.BytecodePatchContext
import app.revanced.patcher.returnType
internal val BytecodePatchContext.disableLoginMethod by gettingFirstMethodDeclaratively("isLoggedIn") {
returnType("Z")
definingClass("/CreativeCloudSource;")
}
internal val BytecodePatchContext.libButtonClickedMethod by gettingFirstMethodDeclaratively("ccLibButtonClickHandler") {
definingClass("/PSMixFragment;")
}
internal val BytecodePatchContext.lightroomButtonClickedMethod by gettingFirstMethodDeclaratively("lightroomButtonClickHandler") {
definingClass("/PSMixFragment;")
}
internal val BytecodePatchContext.ccButtonClickedMethod by gettingFirstMethodDeclaratively("ccButtonClickHandler") {
definingClass("/PSMixFragment;")
}