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

[BUG] apktool b fails #3691

Open
qdii opened this issue Sep 15, 2024 · 5 comments
Open

[BUG] apktool b fails #3691

qdii opened this issue Sep 15, 2024 · 5 comments

Comments

@qdii
Copy link

qdii commented Sep 15, 2024

Information

  1. Apktool Version (apktool -version) -

    ❯ apktool --version
    2.9.3
    
  2. Operating System (Mac, Linux, Windows) -
    Arch Linux

  3. APK From? (Playstore, ROM, Other) -
    https://storage.googleapis.com/hextree_prod_image_uploads/media/uploads/reverse-android-apps/io.hextree.reversingexample.apk

  4. Java Version (java --version) -

    ❯ java --version
    openjdk 22.0.2 2024-07-16
    OpenJDK Runtime Environment (build 22.0.2+9)
    OpenJDK 64-Bit Server VM (build 22.0.2+9, mixed mode, sharing)
    

Stacktrace/Logcat

❯ apktool b
I: Using Apktool 2.9.3
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...
brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec: [/tmp/brut_util_Jar_22815232142775964911878089668197865138.tmp, compile, --dir, /home/qdii/dl/io.hextree.reversingexample/./res, --legacy, -o, /home/qdii/dl/io.hextree.reversingexample/./build/resources.zip]

Steps to Reproduce

  1. wget https://storage.googleapis.com/hextree_prod_image_uploads/media/uploads/reverse-android-apps/io.hextree.reversingexample.apk
  2. apktool d io.hextree.reversingexample.apk
  3. cd io.hextree.reversingexample.apk
  4. apktool b

Frameworks

Not from a framework.

APK

Added above

Questions to ask before submission

  1. Have you tried apktool d, apktool b without changing anything?
    Yes

  2. If you are trying to install a modified apk, did you resign it?
    I'm not trying that

  3. Are you using the latest apktool version?
    Yes

@qdii qdii changed the title [BUG] [BUG] apktool b fails Sep 15, 2024
@michaelbaran2
Copy link

This happened to me when I had /tmp folder mounted with noexec flag. Is this the case for you as well? After I remounted the dir without the flag it worked. I Hope this helps.

@qdii
Copy link
Author

qdii commented Oct 9, 2024

apktool b
I: Using Apktool 2.10.0 with 8 thread(s).
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...
brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec: [/tmp/brut_util_Jar_83134879812755285987959780306465385882.tmp, compile, --dir, /home/qdii/dl/io.hextree.reversingexample/./res, --legacy, -o, /home/qdii/dl/io.hextree.reversingexample/./build/resources.zip]
❯ mount | grep /tmp
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,size=8057544k,nr_inodes=1048576,inode64)

I guess it's a different issue

@iBotPeaches
Copy link
Owner

May I get an output of uname -a? This suggests your architecture has no valid binaries for aapt2 to execute.

@qdii
Copy link
Author

qdii commented Nov 8, 2024

❯ uname -a
Linux limo.dodges.it 6.11.6-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 01 Nov 2024 03:30:41 +0000 x86_64 GNU/Linux

@qdii
Copy link
Author

qdii commented Nov 12, 2024

Can still reproduce the bug with apktool 2.10.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants