threethan / QuestAudioPatcher

Patches android applications to add the neccessary permissions for background audio on the Meta Quest 2
GNU General Public License v3.0
23 stars 1 forks source link

"There was a problem parsing the package." while trying to modify Jitsi #4

Open HealsCodes opened 6 months ago

HealsCodes commented 6 months ago

This is a follow up to #2 with more information. I'm seeing the same error on a Quest3 while trying to patch Jitsi Meet.

Downloading the APK and trying to install via SideQuest gives a more descriptive error:

org.jitsi.meet_aee-signed.apk: /data/local/tmp/_stream.apk could not be installed [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION: Failed parse during InstallPackageLI: Failed to read manifest from /data/app/vmdl1654787869.tmp/base.apk: length=139; Index=-1]

I uploaded the modified APK here: org.jitsi.meet_aee-signed.zip

The original can be found here or I can upload it as well if needed: Jitsi Meet on APKPure

threethan commented 6 months ago

Thanks for the detailed report. I've confirmed that this issue is consistent, device independent, and occurs on an unmodified version of AEE (which this patcher is based on).

I've tried a few possible solutions, but unfortunately I haven't had any success. This particular error is very poorly documented. I'm not sure if I will be able to solve it. It doesn't occur on the majority of apps, so it seems to somehow related to the structure of Jitsi - which has a higher number of activities and providers than most apps.

HealsCodes commented 6 months ago

Thanks for looking into it - a shame it's nothing easy to solve.

The sources for the Jitsi Meet app are available on github though, which permissions would I nave to add to it's list if I was to build it for myself?

threethan commented 6 months ago

com.oculus.permission.PLAY_AUDIO_BACKGROUND and com.oculus.permission.RECORD_AUDIO_BACKGROUND

HealsCodes commented 6 months ago

com.oculus.permission.PLAY_AUDIO_BACKGROUND and com.oculus.permission.RECORD_AUDIO_BACKGROUND

I'll give those a try, thanks a lot. Could it be possible the the issue is also related to the fact that both Jitsi and Discord use ReactNative for their mobile apps?

I can imagine they would end up having similarities in their base APKs

threethan commented 6 months ago

Discord works fine, at least for me. ReactNative versions of discord have some UI issues but nothing that effects the patcher itself.

HealsCodes commented 6 months ago

Was able to build Jitsi from source with the extra oculus permissions added to the manifest 💜