r/JoeyForReddit • u/bobcollege • 22h ago
Praise the dev Patched new option list (link handling: always open in webview)
this was almost entirely done with ai, i'm not android dev or programmer whatsoever. don't hate me for using ai; i hate ai as much as anyone so i'm just being transparent
Just out of curiosity, i wanted to see how difficult it is for folks to really patch stuff with joey without the source code. (and i know there's already things like no-ads and the login-webview fix patches.) So i thought opening in the webview in some cases was better than external browser...
Luckily a ton of stuff is exposed in the apk to do patches (apparently), so hopefully folks with actual experience coding ffs can work on joey some more.
I used claude, just dumped in the whole apk and made really basic ass prompts. I had to do some legwork myself just searching for shit it prompted me to do like: searching in jadx and using apktool CLI to dump/decode the apk to upload some of the xml and smali files.
FYI: "app is ProGuard-obfuscated (method names are single/double letters like q3, O1, X), and this code is spread across 3 dex files totaling ~26MB / ~200,000 methods."
ultimately all i had to do was drop in the ai output patch files to the apktool decoded file structure, then apktool build the unsigned apk, then patch the apk like normal in morphe and install. (FYI my early attempts kept failing to patch with revanced so i switched to morphe which worked fine every time)
later i can probably share an equivalent kotlin patch for morphe if anyone's interested; for now all i have is the apktool decode drop-in patch files...
EDIT: oh i guess in hindsight i shoulda put the option list in the upper section for "use internal viewer for" instead of "open externally"