feat(Photoshop Mix): Add Bypass login patch (#6745)
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
a02350bbc8
commit
24caae98b7
3 changed files with 53 additions and 0 deletions
|
|
@ -627,6 +627,10 @@ public final class app/revanced/patches/photomath/misc/unlock/plus/UnlockPlusPat
|
||||||
public static final fun getUnlockPlusPatch ()Lapp/revanced/patcher/patch/Patch;
|
public static final fun getUnlockPlusPatch ()Lapp/revanced/patcher/patch/Patch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final class app/revanced/patches/photoshopmix/BypassLoginPatchKt {
|
||||||
|
public static final fun getBypassLoginPatch ()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/Patch;
|
public static final fun getSpoofAndroidDeviceIDPatch ()Lapp/revanced/patcher/patch/Patch;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
package app.revanced.patches.photoshopmix
|
||||||
|
|
||||||
|
import app.revanced.patcher.patch.bytecodePatch
|
||||||
|
import app.revanced.util.returnEarly
|
||||||
|
|
||||||
|
@Suppress("unused")
|
||||||
|
val bypassLoginPatch = bytecodePatch(
|
||||||
|
name = "Bypass login",
|
||||||
|
description = "Allows the use of the app after its discontinuation.",
|
||||||
|
) {
|
||||||
|
compatibleWith("com.adobe.photoshopmix")
|
||||||
|
|
||||||
|
apply {
|
||||||
|
isLoggedInMethod.returnEarly(true)
|
||||||
|
|
||||||
|
// Disables these buttons that cause the app to crash while not logged in.
|
||||||
|
ccLibButtonClickHandlerMethod.returnEarly()
|
||||||
|
lightroomButtonClickHandlerMethod.returnEarly()
|
||||||
|
ccButtonClickHandlerMethod.returnEarly()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
package app.revanced.patches.photoshopmix
|
||||||
|
|
||||||
|
import app.revanced.patcher.definingClass
|
||||||
|
import app.revanced.patcher.gettingFirstMethodDeclaratively
|
||||||
|
import app.revanced.patcher.name
|
||||||
|
import app.revanced.patcher.patch.BytecodePatchContext
|
||||||
|
import app.revanced.patcher.returnType
|
||||||
|
|
||||||
|
internal val BytecodePatchContext.isLoggedInMethod by gettingFirstMethodDeclaratively {
|
||||||
|
name("isLoggedIn")
|
||||||
|
definingClass("CreativeCloudSource;")
|
||||||
|
returnType("Z")
|
||||||
|
}
|
||||||
|
|
||||||
|
internal val BytecodePatchContext.ccLibButtonClickHandlerMethod by gettingFirstMethodDeclaratively {
|
||||||
|
name("ccLibButtonClickHandler")
|
||||||
|
definingClass("PSMixFragment;")
|
||||||
|
}
|
||||||
|
|
||||||
|
internal val BytecodePatchContext.lightroomButtonClickHandlerMethod by gettingFirstMethodDeclaratively {
|
||||||
|
name("lightroomButtonClickHandler")
|
||||||
|
definingClass("PSMixFragment;")
|
||||||
|
}
|
||||||
|
|
||||||
|
internal val BytecodePatchContext.ccButtonClickHandlerMethod by gettingFirstMethodDeclaratively {
|
||||||
|
name("ccButtonClickHandler")
|
||||||
|
definingClass("PSMixFragment;")
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue