Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Resource entry already has bag item" error when re-encoding TikTok #14

Closed
axel578 opened this issue Apr 8, 2020 · 1 comment
Closed
Labels
apktool Issues caused by or related to Apktool

Comments

@axel578
Copy link

axel578 commented Apr 8, 2020

When I try to use your tool for tiktok it says that :


  ↓ Disabling certificate pinning [skipped]
    → No certificate pinning logic found.
  > Encoding patched APK file
    ↓ Encoding using AAPT2 [skipped]
      → Failed, falling back to AAPT...
    × Encoding using AAPT [fallback]
      → I: Building resources...
    Signing patched APK file

   Failed!  An error occurred:

Error: Command failed with exit code 1: java -jar C:\Users\axel\AppData\Roaming\npm\node_modules\apk-mitm\jar\apktool.jar build C:\Users\axel\AppData\Local\Temp\9dfa59c4aa7e8d231e346c4464da0cba\decode --output C:\Users\axel\AppData\Local\Temp\9dfa59c4aa7e8d231e346c4464da0cba\tmp.apk
W: C:\Users\axel\AppData\Local\Temp\9dfa59c4aa7e8d231e346c4464da0cba\decode\res\values-v21\styles.xml:269: error: Resource entry jb already has bag item android:windowContentTransitions.
W: C:\Users\axel\AppData\Local\Temp\9dfa59c4aa7e8d231e346c4464da0cba\decode\res\values-v21\styles.xml:268: Originally defined here.
W:
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\axel\AppData\Local\Temp\brut_util_Jar_186089372504418090.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 28, --version-code, 2021505420, --version-name, 15.5.42, --no-version-vectors, -F, C:\Users\axel\AppData\Local\Temp\APKTOOL24414687017095161.tmp, -e, C:\Users\axel\AppData\Local\Temp\APKTOOL1542037057808252243.tmp, -0, arsc, -I, C:\Users\axel\AppData\Local\apktool\framework\1.apk, -S, C:\Users\axel\AppData\Local\Temp\9dfa59c4aa7e8d231e346c4464da0cba\decode\res, -M, C:\Users\axel\AppData\Local\Temp\9dfa59c4aa7e8d231e346c4464da0cba\decode\AndroidManifest.xml]
I: Using Apktool 2.4.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...
I: Checking whether resources has changed...
I: Building resources...

 W: C:\Users\axel\AppData\Local\Temp\9dfa59c4aa7e8d231e346c4464da0cba\decode\res\values-v21\styles.xml:269: error: Resource entry jb already has bag item android:windowContentTransitions.
W: C:\Users\axel\AppData\Local\Temp\9dfa59c4aa7e8d231e346c4464da0cba\decode\res\values-v21\styles.xml:268: Originally defined here.
W:
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\axel\AppData\Local\Temp\brut_util_Jar_186089372504418090.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 28, --version-code, 2021505420, --version-name, 15.5.42, --no-version-vectors, -F, C:\Users\axel\AppData\Local\Temp\APKTOOL24414687017095161.tmp, -e, C:\Users\axel\AppData\Local\Temp\APKTOOL1542037057808252243.tmp, -0, arsc, -I, C:\Users\axel\AppData\Local\apktool\framework\1.apk, -S, C:\Users\axel\AppData\Local\Temp\9dfa59c4aa7e8d231e346c4464da0cba\decode\res, -M, C:\Users\axel\AppData\Local\Temp\9dfa59c4aa7e8d231e346c4464da0cba\decode\AndroidManifest.xml]
@niklashigi
Copy link
Owner

Unfortunately the TikTok APK is known to cause all sorts of issues with Apktool (which apk-mitm depends on). Please search their repository for issues related to this error and TikTok and upvote the ones relevant to your problem. Sorry I can't be of more help!

@niklashigi niklashigi added the apktool Issues caused by or related to Apktool label Apr 8, 2020
@niklashigi niklashigi changed the title TIKTOK decompiling-recompiling error "Resource entry already has bag item" error when re-encoding TikTok Apr 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apktool Issues caused by or related to Apktool
Projects
None yet
Development

No branches or pull requests

2 participants