iBotPeaches / Apktool

A tool for reverse engineering Android apk files

Home Page:https://apktool.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Errors building resources

Leoo0x1 opened this issue · comments

commented

Information

  1. Apktool Version (apktool -version) - 2.9.3
  2. Operating System (Mac, Linux, Windows) - Windows 11
  3. APK From? (Playstore, ROM, Other) - https://pgtools.net/#download
  4. Java Version (java --version) - 22.0.1

Stacktrace/Logcat

C:\Users\leo\Documents\apktool>apktool d pgtools-5.1.23.apk
I: Using Apktool 2.9.3 on pgtools-5.1.23.apk
I: Loading resource table...
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\leo\AppData\Local\apktool\framework\1.apk
I: Decoding values */* XMLs...
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
I: Copying META-INF/services directory

C:\Users\leo\Documents\apktool>apktool b pgtools-5.1.23
I: Using Apktool 2.9.3
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
W: C:\Users\leo\Documents\apktool\pgtools-5.1.23\res\values\styles.xml:1318: error: expected flags but got (raw string) APKTOOL_MISSING_0x7f080172.
W: C:\Users\leo\Documents\apktool\pgtools-5.1.23\res\values\styles.xml:1334: error: expected flags but got (raw string) APKTOOL_MISSING_0x7f0800f9.
W: C:\Users\leo\Documents\apktool\pgtools-5.1.23\res\values\styles.xml:1369: error: expected flags but got (raw string) APKTOOL_MISSING_0x7f0800f9.
W: C:\Users\leo\Documents\apktool\pgtools-5.1.23\res\values\styles.xml:2540: error: expected enum but got (raw string) 0.
W: C:\Users\leo\Documents\apktool\pgtools-5.1.23\res\values\styles.xml:2542: error: expected enum but got (raw string) 1.
W: C:\Users\leo\Documents\apktool\pgtools-5.1.23\res\values-sw600dp\styles.xml:4: error: expected enum but got (raw string) 1.
W: C:\Users\leo\Documents\apktool\pgtools-5.1.23\res\values-sw600dp\styles.xml:5: error: expected enum but got (raw string) 1.
W: C:\Users\leo\Documents\apktool\pgtools-5.1.23\res\values-land\styles.xml:4: error: expected enum but got (raw string) 1.
W: C:\Users\leo\Documents\apktool\pgtools-5.1.23\res\values-land\styles.xml:5: error: expected enum but got (raw string) 1.
W: C:\Users\leo\Documents\apktool\pgtools-5.1.23\res\values\styles.xml:2626: error: expected enum but got (raw string) 0.
W: C:\Users\leo\Documents\apktool\pgtools-5.1.23\res\values\styles.xml:2760: error: expected enum but got (raw string) 0.
W: C:\Users\leo\Documents\apktool\pgtools-5.1.23\res\values\styles.xml:2801: error: expected enum but got (raw string) 1.
W: C:\Users\leo\Documents\apktool\pgtools-5.1.23\res\values\styles.xml:2837: error: expected enum but got (raw string) 1.
W: C:\Users\leo\Documents\apktool\pgtools-5.1.23\res\values\styles.xml:2920: error: expected enum but got (raw string) 1.
W: C:\Users\leo\Documents\apktool\pgtools-5.1.23\res\values\styles.xml:2934: error: expected enum but got (raw string) 1.
W: C:\Users\leo\Documents\apktool\pgtools-5.1.23\res\values\styles.xml:3071: error: expected enum but got (raw string) 1.
W: C:\Users\leo\Documents\apktool\pgtools-5.1.23\res\values\styles.xml:3083: error: expected enum but got (raw string) 3.
W: C:\Users\leo\Documents\apktool\pgtools-5.1.23\res\values\styles.xml:3094: error: expected enum but got (raw string) 3.
W: error: failed linking references.
brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\leo\AppData\Local\Temp\brut_util_Jar_167085157251521451587201601227752435587.tmp, link, -o, C:\Users\leo\AppData\Local\Temp\APKTOOL2079177687362404526.tmp, --package-id, 127, --min-sdk-version, 22, --target-sdk-version, 34, --version-code, 5123, --version-name, 5.1.23, --no-auto-version, --no-version-vectors, --no-version-transitions, --no-resource-deduping, --allow-reserved-package-id, --no-compile-sdk-metadata, --warn-manifest-validation, -e, C:\Users\leo\AppData\Local\Temp\APKTOOL12990939488909714082.tmp, -0, arsc, -I, C:\Users\leo\AppData\Local\apktool\framework\1.apk, --manifest, C:\Users\leo\Documents\apktool\pgtools-5.1.23\AndroidManifest.xml, C:\Users\leo\Documents\apktool\pgtools-5.1.23\build\resources.zip]

Steps to Reproduce

  1. apktool d pgtools-5.1.23.apk
  2. apktool b pgtools-5.1.23

APK

https://assets.pgtools.net/pgtools-5.1.23.apk

Thanks for the report, we are tracking this "expected eum but got raw" here in this ticket: #3534

So I'll close this one out.