question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG]Issues repacking res it gives issues with apktool_dummy in integers.xml and dimens.xml

See original GitHub issue

Information

Apktool 2.5.1-145201-SNAPSHOT

Stacktrace/Logcat

Include stacktrace here
I: Using Apktool 2.5.1-145201-SNAPSHOT
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
W: warning: string 'wfcSpnFormat' has no default translation.
W: Failed to generate resource table for split ''
W: C:\Users\Sac23\Desktop\hhh\framework-res\res\values\integers.xml:361: error: Error: String types not allowed (at 'APKTOOL_DUMMY_72' with value '').
W:
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Sac23\AppData\Local\Temp\brut_util_Jar_64426037738495893106265858736697657594.tmp, p, --forced-package-id, 1, --min-sdk-version, 29, --target-sdk-version, 29, --version-code, 29, --version-name, 10, --no-version-vectors, -F, C:\Users\Sac23\AppData\Local\Temp\APKTOOL9077465573776423434.tmp, -x, -e, C:\Users\Sac23\AppData\Local\Temp\APKTOOL5862047175049083314.tmp, -0, arsc, -S, C:\Users\Sac23\Desktop\hhh\framework-res\res, -M, C:\Users\Sac23\Desktop\hhh\framework-res\AndroidManifest.xml]

Steps to Reproduce

apktool d framework-res.apk apktool b framework-res

Frameworks

samsung framework-res,apk

APK

framework-res.zip

Questions to ask before submission

im having issues repacking res it gives issues with apktool_dummy in integers.xml and dimens.xml

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:19 (4 by maintainers)

github_iconTop GitHub Comments

13reactions
dlarafcommented, Mar 19, 2021

sometimes using option --use-aapt2 will do the trick

1reaction
edzambercommented, Mar 16, 2021

I found the fastest way to remove all APKTOOL_DUMMY in few clicks. The game i encounted, had a thousands of APKTOOL_DUMMY in/res/values/. So I use notepad++ and do regex search and replace all though /res/values/ removing lines

^.*(APKTOOL_DUMMY).*$

This regex match a whole line containing APKTOOL_DUMMY

image

There are of course a possibility it may break something. Games with removed APKTOOL_DUMMY have been working fine for me so far

Before:

I: Using Apktool 2.5.0
I: Smaling smali folder into classes.dex...
I: Building resources...
W: D:\APK Easy Tool\1-Decompiled APKs\_com,bilibili,gcg2,aligames_1,1,28\res\values\ids.xml:64: error: Found tag id where item is expected
W: 
W: D:\APK Easy Tool\1-Decompiled APKs\_com,bilibili,gcg2,aligames_1,1,28\res\values\layouts.xml:3: error: Found tag layout where item is expected
W: 

After:

I: Using Apktool 2.5.0
I: Smaling smali folder into classes.dex...
I: Building resources...
I: Copying libs... (/lib)
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...

Wow it working perfectly on framework-res.apk Oneui 3.1 for S20 G98x !

Well done !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tutorial How to fix Apktool compile errors - Platinmods.com
Issue: [BUG]Issues repacking res it gives issues with apktool_dummy in integers.xml and dimens.xml · Issue #2462 · iBotPeaches/Apktool
Read more >
Apktool.jar common errors and solutions - XDA Forums
Since many got apktool.jar errors and don't know how to search or solve themself, I decided to explain and provide solutions here with...
Read more >
Apktool - Bountysource
So, I have this APK that I tried unpacking and repacking. Decoding, building, and installing are no problem, but when I try to...
Read more >
A Comprehensive Review of Android Security - Hindawi
The steps to repackage an original APK into a malicious application are as follows: Step 1: the source APK file is decompiled and...
Read more >
Debian 10 - Debian -- Packages
... daemon 4ti2 (1.6.9+ds-1) mathematical tool suite for problems on linear spaces ... PS, PDF and XML antlr (2.7.7+dfsg-9.2) language tool for constructing ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found