DexPatcher / dexpatcher-gradle

Modify Android applications at source-level in Android Studio
https://dexpatcher.github.io/
GNU General Public License v3.0
83 stars 17 forks source link

Patch classes starting from non-latin symbols #34

Open JackButland opened 3 years ago

JackButland commented 3 years ago

Hi. I've got an issue trying to patch classes after some obfuscation when those classes names start from non-latin symbols fe some unicode symbols or digits. Android Studio does not allow to create classes with such names so could you please give some advice how to do it?

Lanchon commented 3 years ago

no problem. use the latest dexpatcher-tool beta. read its release notes on github. note the section on identifier encoding. you have to compose your patch using encoded symbols (which are always java-legal) and then you need to instruct dxp-tool to decode the patch during patching. since dxp-gradle hasn't been updated (don't use the pre-releases) you'll need to add the flag for dxp-tool using the extra args property in your gradle build script.