-
APKEditor will merge split APKs:
apkeditor m -i <folder_with_split_apks>- I have a Scoop bucket containing it: https://github.com/qwerty12/scoop-alts
-
The only tool worth using to inject the Frida gadget is ksg97031's
frida-gadget -
The right argument to
frida(.exe) to target the gadget is-n Gadget-
I was mistakenly using
-finstead which I guess worked at some point (ref. for the fix)... -
Somewhere along Frida 13/14 and 16, the gadget's "process" name changed from re.frida.Gadget to just
Gadget- I didn't know this was the case when I'd copied it from an old Batch file written in 2024. Had I just ran
frida-ps -Usooner..
- I didn't know this was the case when I'd copied it from an old Batch file written in 2024. Had I just ran
-
-
Frida 17.3.2 (and quite a few versions prior) is totally broken on ARM32 devices. The most basic of scripts using Java interop will cause errors like "Error: invalid instruction" and "cannot set property '_code' of null".
-
tl;dr, fix now:
frida-gadget.exe --frida-version 16.7.13andpip install frida==16.2.1 frida-tools==12.3.0 -
Thanks to TsaiHao for opening frida/frida-java-bridge#364 and finding out what bollocksed Frida up. The immediate version of Frida released before the date on the referenced commit is 16.7.13
-
Because it's one major version down, the latest
frida-toolswill not be able to communicate with this gadget. I don't know the absolute last version that work with gadget version 16.7.13 but kyle-lu's comment (repeated in tl;dr) frida/frida#2924 (comment) installs something compatible- if you're using pipx to install the Frida tools run
pipx install --pip-args=frida==16.2.1 -- frida-tools==12.3.0
- if you're using pipx to install the Frida tools run
-
-
The
frida-gadgettool will target the wrong activity when patching Android TV APKs. Use your favourite tool for reading an APK's AndroidManifest.xml (aapt/aapt2/apktool/jadx-guietc.) and look forandroid.intent.category.LEANBACK_LAUNCHER. If there's a correspondingactionofandroid.intent.action.MAIN, copy the value ofandroid:nameand use it as the value offrida-gadget --main-activity.
As an aside, you can install certs into the user certificate store on Android TV 12 but it's a whole process starting with disabling the default launcher.