shroudedcode/apk-mitm

Does not work with Volvo Car app

algorni opened this issue · 2 comments

https://play.google.com/store/apps/details?id=se.volvo.vcc

  ✔ Extracting APKs
  ✔ Finding base APK path
  ❯ Patching base APK
    ✔ Checking prerequisities
    ✔ Decoding APK file
    ✔ Applying patches
    ❯ Encoding patched APK file
      ↓ Encoding using AAPT2 [skipped]
        → Failed, falling back to AAPT...
      ✖ Encoding using AAPT [fallback]
        → I: Building resources...
      Signing patched APK file
    Signing APKs
    Compressing APKs

   Failed!  An error occurred:

I: Using Apktool 2.6.1
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
[Fatal Error] :114:73: The entity name must immediately follow the '&' in the entity reference.
I: Checking whether resources has changed...
I: Building resources...
W: <tmp_dir>/base-apk/decode/AndroidManifest.xml:114: error: Error parsing XML: not well-formed (invalid token)
W: 
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/var/folders/bl/4g8sn6c15754xm0jz01ns0w00000gr/T/brut_util_Jar_44366659249884810665671772357339233326.tmp, p, --forced-package-id, 127, --min-sdk-version, 24, --target-sdk-version, 33, --version-code, 22834, --version-name, 5.24.0, --no-version-vectors, -F, /var/folders/bl/4g8sn6c15754xm0jz01ns0w00000gr/T/APKTOOL16429421924797365131.tmp, -e, /var/folders/bl/4g8sn6c15754xm0jz01ns0w00000gr/T/APKTOOL17341315901937754215.tmp, -0, arsc, -I, <tmp_dir>/framework/1.apk, -S, <tmp_dir>/base-apk/decode/res, -M, <tmp_dir>/base-apk/decode/AndroidManifest.xml]

  The full logs of all commands are available here:
  /private/var/folders/bl/4g8sn6c15754xm0jz01ns0w00000gr/T/apk-mitm-52a3f29c878ad943958b959b79903b08/logs

I: Using Apktool 2.6.1 on se.volvo.vcc.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /private/var/folders/bl/4g8sn6c15754xm0jz01ns0w00000gr/T/apk-mitm-52a3f29c878ad943958b959b79903b08/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Baksmaling classes3.dex...
I: Baksmaling classes4.dex...
I: Baksmaling classes5.dex...
I: Baksmaling classes6.dex...
I: Baksmaling classes7.dex...
I: Baksmaling classes8.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
I: Copying META-INF/services directory
algorni@88665a182192 logs % cat encoding-aapt2.failed.log 
I: Using Apktool 2.6.1
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes7 folder into classes7.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes6 folder into classes6.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes8 folder into classes8.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes3 folder into classes3.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes4 folder into classes4.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes5 folder into classes5.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes2 folder into classes2.dex...
[Fatal Error] :114:73: The entity name must immediately follow the '&' in the entity reference.
I: Checking whether resources has changed...
I: Building resources...
W: /private/var/folders/bl/4g8sn6c15754xm0jz01ns0w00000gr/T/apk-mitm-52a3f29c878ad943958b959b79903b08/base-apk/decode/AndroidManifest.xml:114: error: not well-formed (invalid token).
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/var/folders/bl/4g8sn6c15754xm0jz01ns0w00000gr/T/brut_util_Jar_116943733969701679842739197563527909909.tmp, link, -o, /var/folders/bl/4g8sn6c15754xm0jz01ns0w00000gr/T/APKTOOL4775100160272404626.tmp, --package-id, 127, --min-sdk-version, 24, --target-sdk-version, 33, --version-code, 22834, --version-name, 5.24.0, --no-auto-version, --no-version-vectors, --no-version-transitions, --no-resource-deduping, -e, /var/folders/bl/4g8sn6c15754xm0jz01ns0w00000gr/T/APKTOOL8285755168319406748.tmp, -0, arsc, -I, /private/var/folders/bl/4g8sn6c15754xm0jz01ns0w00000gr/T/apk-mitm-52a3f29c878ad943958b959b79903b08/framework/1.apk, --manifest, /private/var/folders/bl/4g8sn6c15754xm0jz01ns0w00000gr/T/apk-mitm-52a3f29c878ad943958b959b79903b08/base-apk/decode/AndroidManifest.xml, /private/var/folders/bl/4g8sn6c15754xm0jz01ns0w00000gr/T/apk-mitm-52a3f29c878ad943958b959b79903b08/base-apk/decode/build/resources.zip]
Ifmon commented

As I could see you used apktool, great! Did you find the problem in AndroidManifest.xml before you could recompile the apk?