Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 25 15:27
    iBotPeaches commented #2686
  • Oct 25 14:55
    ThexXTURBOXx opened #2686
  • Oct 21 03:41
    huutho-dev commented #1956
  • Oct 20 11:01
    AndnixSH commented #2685
  • Oct 20 03:02
    spiralw opened #2685
  • Oct 19 14:22
    sriteja777 commented #1407
  • Oct 19 04:55
    bitk0der opened #2684
  • Oct 18 14:50
    pashamcr opened #2683
  • Oct 18 13:40
    pashamcr commented on d294111
  • Oct 18 13:39
    pashamcr commented #2650
  • Oct 18 13:38
    pashamcr commented #2650
  • Oct 18 00:24
    pashamcr commented #2675
  • Oct 18 00:11
    pashamcr commented #2675
  • Oct 17 21:53
    pashamcr commented #2675
  • Oct 17 18:46
    iBotPeaches closed #2682
  • Oct 17 18:46
    iBotPeaches commented #2682
  • Oct 17 18:40
    44simon commented #2682
  • Oct 17 18:35
    iBotPeaches labeled #2682
  • Oct 17 18:35
    iBotPeaches commented #2682
  • Oct 17 18:27
    44simon opened #2682
vincetheprogrammer
@vincetheprogrammer:matrix.org
[m]
where the mod manager basically extracts the apk from the installed Android app, uses apktool to decompile it, applys changes based on the mod file, then recompiles it using apktool?
1 reply
random-access-exomemory
@random-access-exomemory:matrix.org
[m]
Heya
I'm getting this error when using apktool, and i don't know why
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/data/data/com.termux/files/usr/tmp/brut_util_Jar_5256378265723508400218916746905045674.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 30, --version-code, 93201, --version-name, 93.1 - Alpha, --no-version-vectors, -F, /data/data/com.termux/files/usr/tmp/APKTOOL5062160710741902504.tmp, -e, /data/data/com.termux/files/usr/tmp/APKTOOL9758211537987300682.tmp, -0, arsc, -I, /data/data/com.termux/files/home/.local/share/apktool/framework/1.apk, -S, /data/data/com.termux/files/home/fosscord/discord/res, -M, /data/data/com.termux/files/home/fosscord/discord/AndroidManifest.xml] W: /data/data/com.termux/files/usr/tmp/brut_util_Jar_5256378265723508400218916746905045674.tmp[1]: ELF: inaccessible or not found W: /data/data/com.termux/files/usr/tmp/brut_util_Jar_5256378265723508400218916746905045674.tmp[920]: ��Q�tdpp: inaccessible or not found
I tried both apktool 2.6 and apktool 2.5
random-access-exomemory
@random-access-exomemory:matrix.org
[m]
This is the output from apktool 2.6
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/data/data/com.termux/files/usr/tmp/brut_util_Jar_64183809495820369852947775768105000873.tmp, p, --debug-mode, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 30, --version-code, 93201, --version-name, 93.1 - Alpha, --no-version-vectors, -F, /data/data/com.termux/files/usr/tmp/APKTOOL7631055933525059436.tmp, -e, /data/data/com.termux/files/usr/tmp/APKTOOL17829556680124513019.tmp, -0, arsc, -I, /data/data/com.termux/files/home/.local/share/apktool/framework/1.apk, -S, /data/data/com.termux/files/home/discord-patcher/discord/res, -M, /data/data/com.termux/files/home/discord-patcher/discord/AndroidManifest.xml]
W: /data/data/com.termux/files/usr/tmp/brut_util_Jar_64183809495820369852947775768105000873.tmp[1]: ELF: inaccessible or not found
W: /data/data/com.termux/files/usr/tmp/brut_util_Jar_64183809495820369852947775768105000873.tmp[2]: syntax error: unexpected ')'
1 reply
Just decompiling and recompiling the apk without doing anything else doesn't work either
random-access-exomemory
@random-access-exomemory:matrix.org
[m]
No-one? :P
random-access-exomemory
@random-access-exomemory:matrix.org
[m]
:point_up: Edit: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/data/data/com.termux/files/usr/tmp/brut_util_Jar_5256378265723508400218916746905045674.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 30, --version-code, 93201, --version-name, 93.1 - Alpha, --no-version-vectors, -F, /data/data/com.termux/files/usr/tmp/APKTOOL5062160710741902504.tmp, -e, /data/data/com.termux/files/usr/tmp/APKTOOL9758211537987300682.tmp, -0, arsc, -I, /data/data/com.termux/files/home/.local/share/apktool/framework/1.apk, -S, /data/data/com.termux/files/home/fosscord/discord/res, -M, /data/data/com.termux/files/home/fosscord/discord/AndroidManifest.xml] W: /data/data/com.termux/files/usr/tmp/brut_util_Jar_5256378265723508400218916746905045674.tmp[1]: ELF: inaccessible or not found W: /data/data/com.termux/files/usr/tmp/brut_util_Jar_5256378265723508400218916746905045674.tmp[920]: ��Q�tdpp: inaccessible or not found
vincetheprogrammer
@vincetheprogrammer:matrix.org
[m]

I'm not qualified at all, but I think this room is like pretty much completely dead based on the read receipts, so I guess it couldn't really hurt to give my opinion.

I can only really recommend trying to run Apktool on a different platform (for example, Windows) or trying to decompile/recompile a different APK.

That's what I would do in your scenario anyway. I have basically zero technical knowledge of Apktool, but I don't think anyone got any kind of help since like July.

And when I say try a different APK, I'm not saying to abandon the APK you're trying to decompile/recompile, I'm just saying try a different APK to see if it's an issue specific to that APK
If any actually qualified devs are out there, please do give random-access-exomemory a proper answer.
random-access-exomemory
@random-access-exomemory:matrix.org
[m]
Ah okay then, thanks!
And yeah the room seems pretty dead sadly
vincetheprogrammer
@vincetheprogrammer:matrix.org
[m]
Indeed 😔
But actually, that ELF: inaccessible or not found leads me to believe that it indeed may be an issue with Termux
Since, based on a quick Google search, that seems like an operating system reliant thing
Could maybe be worth a shot to ask in the Termux room
Since that room's comparatively way more active
random-access-exomemory
@random-access-exomemory:matrix.org
[m]
Alright then, thanks!
vincetheprogrammer
@vincetheprogrammer:matrix.org
[m]
o7
random-access-exomemory
@random-access-exomemory:matrix.org
[m]
I: Using Apktool 2.6.0
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: invalid resource directory name: /data/data/com.termux/files/home/discord-patcher/discord/res font                                                   brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/data/data/com.termux/files/usr/bin/aapt, p, --min-sdk-version, 21, --target-sdk-version, 29, --version-code, 89108, --version-name, 89.8 - Beta, --no-version-vectors, -F, /data/data/com.termux/files/usr/tmp/APKTOOL18005119699576679610.tmp, -0, resources.arsc, -0, png, -0, jpg, -0, mp3, -0, jpeg, -0, arsc, -I, /data/data/com.termux/files/home/.local/share/apktool/framework/1.apk, -S, /data/data/com.termux/files/home/discord-patcher/discord/res, -M, /data/data/com.termux/files/home/discord-patcher/discord/AndroidManifest.xml]
It's progress ¯\ _(ツ)_/¯
I cant figure out where the error is though
vincetheprogrammer
@vincetheprogrammer:matrix.org
[m]
could it be that apktool doesn't like the space in the folder name of /data/data/com.termux/files/home/discord-patcher/discord/res font?
1 reply
vincetheprogrammer
@vincetheprogrammer:matrix.org
[m]
random-access-exomemory
random-access-exomemory
@random-access-exomemory:matrix.org
[m]
It's not a space
That's the issue
res/font is a valid folder, but whenever i try compiling it, it keeps trying to use res font
vincetheprogrammer
@vincetheprogrammer:matrix.org
[m]
O
Bizarre
vincetheprogrammer
@vincetheprogrammer:matrix.org
[m]
Here's someone who had the same issue as you: iBotPeaches/Apktool#1787
But the dev couldn't reproduce the issue
random-access-exomemory
@random-access-exomemory:matrix.org
[m]
Thanks, I'm checking it out noq
Now*
vincetheprogrammer
@vincetheprogrammer:matrix.org
[m]
Wait, try doing --use-aapt2 when rebuilding
vincetheprogrammer
@vincetheprogrammer:matrix.org
[m]
That flag apparently rebuilds the apk using a different method
So I think it's worth a shot
random-access-exomemory
@random-access-exomemory:matrix.org
[m]
Oh? Will try
random-access-exomemory
@random-access-exomemory:matrix.org
[m]
Trying it now 👍
vincetheprogrammer same error :/
W: /data/data/com.termux/files/usr/tmp/brut_util_Jar_141041913573869719696425869119538060698.tmp[1]: ELF: inaccessible or not found
W: /data/data/com.termux/files/usr/tmp/brut_util_Jar_141041913573869719696425869119538060698.tmp[47]: syntax error: unexpected ')'
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/data/data/com.termux/files/usr/tmp/brut_util_Jar_141041913573869719696425869119538060698.tmp, compile, --dir, /data/data/com.termux/files/home/discord-patcher/discord/res, --legacy, -o, /data/data/com.termux/files/home/discord-patcher/discord/build/resources.zip]
vincetheprogrammer
@vincetheprogrammer:matrix.org
[m]
Snowfall
Yes
Lol
But hmm, isn't that the same as the first error you got?
random-access-exomemory
@random-access-exomemory:matrix.org
[m]
It is
Hold on, let me get the code for what I'm doing