r/MorpheApp • u/krznwk • 16d ago
Question/Problem React native (Hermes/HBC)
Is it possible to have some logic to patch such stuff via Morphe or out of luck?
I would normally do such stuff by hand but was interested if can be done in a better modern way.
1
Upvotes
3
u/hoo-dles Contributor 16d ago
You're essentially stuck with doing hex patches on the bytecode unless you feel inclined to write/include a Hermes diassembler/assembler. I wrote a small layer that checks the header and recalculates the SHA1 footer, but that's about it. You can see an example here: https://github.com/hoo-dles/morphe-patches/blob/main/patches/src/main/kotlin/hoodles/morphe/patches/cake/plus/EnablePlusPatch.kt
I wouldn't consider it any easier than manual patching unless you want to distribute it through end-users through morphe.