QuestAudioPatcher icon indicating copy to clipboard operation
QuestAudioPatcher copied to clipboard

Failed to read manifest when installing modified com.android.music

Open BlueFuzz22 opened this issue 1 year ago • 2 comments

Hello,

I encountered a problem while trying to patch the stock Android music app (com.android.music) with QuestAudioPatcher. Below are the details:

  • Unmodified APK: Works fine, but music stops when the app is closed.
  • Patching Process: After patching, the APK fails to install, with the package installer indicating a parsing error.
  • ADB Error Message: Performing Streamed Install adb: failed to install C:\Users(myusername)\Downloads\com.android.music_aee-signed.apk: Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION: Failed parse during installPackageLI: Failed to read manifest from /data/app/vmdl1849657943.tmp/base.apk: length=109; index=-1] Analysis: Decompiled the patched APK using APKTool. The manifest appeared normal, suggesting the patcher worked correctly.
  • Workaround: Recompiling the patched APK with APKTool resulted in a successful installation.

I've attached the modified AndroidManifest.xml for reference: AndroidManifest.txt

I appreciate the effort put into developing this patcher, as it greatly aids users without technical expertise or PC access. I hope this information helps in resolving the issue for others facing similar problems. Please let me know if further information is needed.

BlueFuzz22 avatar Jan 13 '24 04:01 BlueFuzz22

Could you provide the source from which you downloaded the apk for com.android.music, so I could try to replicate?

threethan avatar Jan 13 '24 05:01 threethan

It was obtained from the Android 4,4 SDK emulator system image. Music.zip

BlueFuzz22 avatar Jan 13 '24 05:01 BlueFuzz22