yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] AayushPathak:
Here's what I'm getting when trying to decompile.

java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
'adb' is not recognized as an internal or external command,
operable program or batch file.
Could Not Find D:\Downloads\apk_manager_4.9_2\place-apk-here-for-modding\../plac
e-apk-here-for-modding/signedframework-res.apk
Could Not Find D:\Downloads\apk_manager_4.9_2\place-apk-here-for-modding\../plac
e-apk-here-for-modding/unsignedframework-res.apk
I: Loading resource table...
W: Config flags size > 32. Exceeding bytes: 0000D002.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR0
Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceede
d
at java.nio.CharBuffer.allocate(Unknown Source)
at java.nio.charset.CharsetDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.StringBlock.decodeString(Unknown Source)
at brut.androlib.res.decoder.StringBlock.getString(Unknown Source)
at brut.androlib.res.decoder.StringBlock.getHTML(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readValue(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readType(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(Unknown Sou
rce)
at brut.androlib.res.AndrolibResources.loadMainPkg(Unknown Source)
at brut.androlib.res.AndrolibResources.getResTable(Unknown Source)
at brut.androlib.Androlib.getResTable(Unknown Source)
at brut.androlib.ApkDecoder.getResTable(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
[G1 Android Development] Nani suchi:
i hav edited res/values/dimens.xml...after compiling asking to delt edited xml file..but no values folder found in keep folder
[G1 Android Development] Lgrootnoob:
[MENTION=1807388]Daneshm90[/MENTION]

Does this work with java se 7?

May I integrate this into the tool in my signature?

(With all credit towards you of course:) )
[G1 Android Development] raziel23x:
This tool has been obsolete for years now please visit

http://xdaforums.com/showthread.php?t=1310151

[Windows][UTILITY][TOOL] APK Multi-Tool
[G1 Android Development] khashila:
WOW, thanks
[G1 Android Development] rpgdev:
Sox apt description:

Why on earth does this script needs a sound processing library? This is beyond me but thanks.

BTW, this worked to make an app stop showing on the market (so it's not in the list of apps to update, Ti backup detachment process wasn't working) so thanks to OP and the user who ported it to linux.
[G1 Android Development] tech worm:
Please this Getting error

-------------------------------------------------------------------------- |Wed 02/12/2014 -- 13:55:34.46| -------------------------------------------------------------------------- java version "1.7.0_45" Java(TM) SE Runtime Environment (build 1.7.0_45-b18) Java HotSpot(TM) Client VM (build 24.45-b08, mixed mode, sharing) 'adb' is not recognized as an internal or external command, operable program or batch file. Could Not Find C:\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk Could Not Find C:\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk I: Loading resource table... Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x01040340 string/web_user_agent_target_content, config=[DEFAULT] at brut.androlib.res.data.ResConfig.addResource(Unknown Source) at brut.androlib.res.data.ResConfig.addResource(Unknown Source) at brut.androlib.res.decoder.ARSCDecoder.readEntry(Unknown Source) at brut.androlib.res.decoder.ARSCDecoder.readConfig(Unknown Source) at brut.androlib.res.decoder.ARSCDecoder.readType(Unknown Source) at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source) at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source) at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source) at brut.androlib.res.AndrolibResources.getResPackagesFromApk(Unknown Source) at brut.androlib.res.AndrolibResources.loadMainPkg(Unknown Source) at brut.androlib.res.AndrolibResources.getResTable(Unknown Source) at brut.androlib.Androlib.getResTable(Unknown Source) at brut.androlib.ApkDecoder.getResTable(Unknown Source) at brut.androlib.ApkDecoder.decode(Unknown Source) at brut.apktool.Main.cmdDecode(Unknown Source) at brut.apktool.Main.main(Unknown Source)

Please help me

It worked it Samsung Galaxy y custom rom framework -Res.APK

But getting above error on xolo a500s (mtk device)custom rom
[G1 Android Development] Playb3yond:
I'm trying to decompile the systemUI.apk from my Droid Razr M and I encounter this error

|Sat 03/29/2014 -- 19:32:54.97|
--------------------------------------------------------------------------
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Hershal\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108061d
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108061c
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108061c
I: Decoding values */* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x0108061d
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:62)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:44)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:40)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:313)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:80)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:130)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:107)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:91)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:238)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
[G1 Android Development] kakaana:
Trying to decompile holo launcher apk it gets decompiled

bt even if i try to recompile it without any changes

its give me an error

i m fully stuck

i tried recompiling wid

apktool

apktool for android

app manager

all give same error
[G1 Android Development] andrewwright:
Mate come bk to mobile apktool thread and let's get this sorted out. Must be a set up problem. Have been waiting on a post about how its going.
[G1 Android Development] andrewwright:
Must be set up issue
[G1 Android Development] pfufle:
I saw an option for batch optimising oggs....I am completely new to such stuff and you guys can probably call me a noob but I just wanted to know what is the ogg file that is being referred to over here? I am yet in the learning process...
[G1 Android Development] Sonic Design:
all links from apk tool site are corrupt and nothing but malware, priceminus, weatherbug, besttool..... and a few others, i tested each link for the windows download, and all are just virus filled downloads, might want to update, or add a mirror download for us
[G1 Android Development] raver45:
is it possible to hack nfl mobile with that?
[G1 Android Development] aestivalisakito:
hey guys i have uploaded it to my afh so click below.

APK-Multi-Tool-2.0.zip

Virustotal: https://www.virustotal.com/en/file/...2b6a438f8cf4a28a8f4e4458/analysis/1458268112/
[G1 Android Development] baltazar.nilsson:
Not working anymore

That link doesnt work either anymore =(
[G1 Android Development] fr3quency:
Google Drive reports that the file contains a virus... It's a shame if it is real.
[G1 Android Development] aestivalisakito:
Um....didnt bother to look at my post a few above yours.
[G1 Android Development] fr3quency:
uuuuuuuuhmmmmm I did. This is where I downloaded it from... I just thought that I'd make a post to warn future users.
[G1 Android Development] aestivalisakito:
Again no you didnt i posted a virustotal result. People fail to realize that not all virus results are viruses. And the fact that virustotal scans a zero result among many scanners and i have scanned it through 3 different sandboxes with a negative result means thaat your warning was unnecessary.
[G1 Android Development] Misha326:
This appears to be a "dead" link - it goes to a search engine page which usually means that the url is no longer supported or hosted.
[G1 Android Development] haribadhri:
might find solution over here

https://xdaforums.com/showthread.php?t=1310151

MODS:

kindly close this topic please
[G1 Android Development] pritish1998:
Error while recompiling facebook.apk... logs saying something like res/values/plurals..... Declared here is not defined.... Plz help ASAP.
[G1 Android Development] ZG_DEV:
WHO IS THE MOD WHO CHANGED THE FRICKING LINK

THAT LINK IS DANGEROUS

IT REDIRECTS ME INTO TRACKING SITES !
[G1 Android Development] Oswald Boelcke:
@ZG089 I don't see that any moderator has changed any link in this thread. And if you think you have an issue with a moderator, please use a private conversation to contact the concerned moderator or any of us and describe your concern. But just to shout out load (and you're doing it by posting just in capitol letters) is not the way to go unless you're looking for trouble.

Finally, we aren't able to read your thoughts. The minimum information you should have provided are to state what link and where you found it.

Regards

Oswald Boelcke

Senior Moderator
[G1 Android Development] ZG_DEV:
Sorry for being nervous

But I found that a new link was added by a mod ( and I don't know who ) but whenever I enter that link it redirects Me into tracking sites and non-safe sites
[G1 Android Development] ZG_DEV:
That is the link
[G1 Android Development] roirraW "edor" ehT:
Hi @ZG089. If you look at the bottom of that post, it says:

And as my esteemed colleague, @Oswald Boelcke, said, there is no indication that anyone has modified that post since then.
[G1 Android Development] ZG_DEV:
wait whaaaat !

I thought it was 2022

Seems that I need to visit an Optometrist 😅

Thanks ! 🙂

Hey

I made an XDA app

This is the 2.0-stable version , Here

There is 3.0 but it stills under development (will be released publicly in my XDA app development thread) , I suggest that u Take a look at the app and follow the thread posts to know every version's features!

This is the thread Link

Wait

U merged the two posts ?

Whaaaaaaaaaaaaaaaaaaaaat !
[G1 Android Development] roirraW "edor" ehT:
I was made aware of it this morning, thank you. If I have time, I'll check it out. I don't have as much time as I'd like in recent years to test things, like I used to. I root and run a few modifications on my Pixel, but that's about it.

Edit: I mostly do my XDA-ing on the computer. Edit 2: This isn't meant to serve as a discouragement for you. I will be happy to test it if I can find the time, and I'm certain your app will be handy for those who do more on XDA from the phone, and it's appreciated.

Please don't post two or more times in a row. Instead, Edit your existing post and add the additional information.

Edit: I've mentioned this to you at least once before, just in the last few weeks.
[G1 Android Development] Oswald Boelcke:
To me, the link only redirects me to the original location i.e. the post where the link is located. Don't know why you're referred to tracking and non-safe sites.

I'd also suggest to use the edit function (that you well know 'cause you've used it) if nobody else posted after you instead of creating a new post - unless you're intention is to boost your post count, and looking at you post history I have the impressions that's the case. A similar impression seems to have raised with my esteemed team mate @roirraW "edor" ehT

I'd appreciate if you don't promote your own development in another developer's thread. So, I won't comment on your app here besides we're happy about every development contribution.
[G1 Android Development] ZG_DEV:
No

There is no intention of increasing post counts by this way at all

I forgot to add some text 💀

As i usually use edit button to edit words and fix some grammatical errors

So I didn't think of adding text by editing

I just wanted u mods to test this app if it can replace that one on Google play

Whatever the app I developed will be updated so don't think that v2 is the final version 🙂
[G1 Android Development] roirraW "edor" ehT:
<Moderator Note>:

@ZG089,

Sir. Please start using the Edit button on your posts instead of creating two or more new posts in a row.

This is the last verbal-only warning for doing that.

Thank you,

@roirraW "edor" ehT
[G1 Android Development] ZG_DEV:
I am soooooooooo sorrrrrry

I used to do this , but I will stop this anyway, sorry , sir 🫡
[G1 Android Development] Brut.all:
Ahh, sorry, it's probable that Windows uses its extension<->application associations even in a terminal. But I was using Windows for many years and I didn't know about that. What version of Windows do you use?

Ok, this is weird ;-)
[G1 Android Development] Daneshm90:
Im using Windows 7. I assume u use java -jar perhaps only when u want to make use of additional parameters such as the heap size.
[G1 Android Development] Daneshm90:
Hey, do this, post what apk ur trying to edit + im assuming ur on linux if i recall from our conversation ? if ur on windows then post ur log.txt file.
[G1 Android Development] thatguythatdid:
Loving the 4.8. Last time I had time to mess with this it was on 4.4 :) I think that I can finally change the names of the mymodes themes to make them a into individual apks instead of blah blah blah good work is what i'm trying to say.
[G1 Android Development] rori~:
So, anybody get to compile "CalendarProvider.apk" ?

I do not succeed, still...
[G1 Android Development] Daneshm90:
Is it deodexed ? Cuz from the log it looks like it cant find the .dex file.

FYI, i can decompile/recompile the apk just file.
[G1 Android Development] rori~:
I took it from CM6..

Edit: you are right, no .dex there....strange.
[G1 Android Development] Daneshm90:
Hmm yea now i see it, getting same errors. Seems to be a smali/baksmali issue, cuz even with that u get wierd "null" errors upon compiling. Can't do much, gotta wait for Brut/JF to do something bout it

Nah its not a missing .dex in the apk, i took it from cm6 n its there, its when its rebuilding smali fails hence theres no classes.dex hence apktool complains and doesnt build the apk.
[G1 Android Development] rori~:
Yeah..I messed it up...decompiled/compiled calculator.apk and saw the dex in out folder....but that was after compiling...

So, it´s not my settings having probs compiling CalendarProvider, that´s at least good to know.:)
[G1 Android Development] jrummy16:
This is amazing! Great work on it!
[G1 Android Development] ranhdrcewp:
I'm having trouble building a new APK. I can decode it fine and edit it, but when it comes to putting it back together, no dice. Here's what Ubuntu tells me.

andrew@Alice:~$ /home/andrew/apktool b out
W: Could not find sources
I: Checking whether resources has changed...
I: Building apk file...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /home/andrew/out/dist/framework-res.apk, -x, -0, arsc, -A, /home/andrew/out/assets, /home/andrew/out/build/apk]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildApk(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /home/andrew/out/dist/framework-res.apk, -x, -0, arsc, -A, /home/andrew/out/assets, /home/andrew/out/build/apk]
at brut.util.OS.exec(Unknown Source)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
at java.lang.Runtime.exec(Runtime.java:610)
at java.lang.Runtime.exec(Runtime.java:483)
... 7 more
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
at java.lang.ProcessImpl.start(ProcessImpl.java:81)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
... 9 more

Any help?
[G1 Android Development] kugeln:
It's because you're doing it on a Mac, and it's polluting the directory structure with those .DS_Store files it creates in every folder. You might be able to delete them via the command line, but if you touch the folders with any GUI apps, you'll end up at the same spot again.
[G1 Android Development] ronx162:
problem with 9.pngs

fantastic tool!

i'm having a problem with the decoded 9.pngs, however. after i decompile an apk (for example, framework-res), i try copying some of the 9.png files into a vendor overlay that was previously compiling fine. the decompiled 9.pngs *look* fine (i.e. they seem to have the borders set correctly), but when i build, i get a lot of errors like this:

libpng error: Read Error

ERROR: Failure processing PNG image vendor/cyanogen/overlay/common/frameworks/base/core/res/res/drawable-hdpi/btn_zoom_down_disabled.9.png

libpng error: Read Error

ERROR: Failure processing PNG image vendor/cyanogen/overlay/common/frameworks/base/core/res/res/drawable-hdpi/btn_zoom_down_disabled_focused.9.png

libpng error: Read Error

ERROR: Failure processing PNG image vendor/cyanogen/overlay/common/frameworks/base/core/res/res/drawable-hdpi/btn_zoom_down_normal.9.png

do you know of anything being done to the pngs (any sort of optimization, for instance) that might be causing them to not be readable when compiling?
[G1 Android Development] ecsnead69:
Zipalign System Apps?

I am having some issues with system apps. I see on the script that it says you should not "sign" a system app but the apk has to be "signed" to zipalign or you get errors... so how do you zipalign a system app if you can't sign? Thanks....
[G1 Android Development] Brut.all:
Zipalign is totally independent of signing.
[G1 Android Development] Daneshm90:
Ah interesting, for now after u've done editing ur apk, just drop it inside "optimizing" folder and tell it to zipalign, i'll take this into consideration for the next revision. Thanks.
[G1 Android Development] Brut.all:
Ah, so it's Apk Manager assumption... Ok, sorry for misleading you, ecsnead69.
[G1 Android Development] ecsnead69:
Thanks for the quick response guys!! I will give that a try. First post here and may I say I am very impressed. And the tool is an awesome help!

And just to be straight, NO system apps get signed correct? with either option, even option 12?

Thanks again! :D
[G1 Android Development] Daneshm90:
Just don't select signing when ur modifying a system apk. Other options might sign it if u say so directly.
[G1 Android Development] ecsnead69:
I tried moving the repacked unsigned apk into the "optimize" folder and I get errors. It says that the file cannot be found in the "modding" folder? and when I put it back in the "modding" folder, I get an error because it is looking for a signed apk to zipalign? My optimize folder says batch operations? Should I have a different folder? my folders are "modding", "signing", and "batch optimize", but if I move the app from "modding" at any time before I install I get errors? I am only having problems with system apps, I went through a widget app that installs into /data and everything went great??
[G1 Android Development] Daneshm90:
Place ur unsigned apk into "place-apk-here-to-batch-optimize" folder. Then select option 15 in the script. U still get errors ? u shudnt. :confused:
[G1 Android Development] ronx162:
So no one else has experienced this problem? I've found that many of the *.9.pngs decompiled using APK Manager will have bad patch areas if I load them into draw9patch and check the "Show bad patches" button. I'm assuming that's why the build process is failing as well.

It's not too hard to manually fix any problematic 9.pngs, but I'm just curious as to whether the original 9.pngs were like that and were somehow compiled into working binary 9.pngs, or if the decompilation process might be inaccurate on some pngs.

Anyone have any ideas?
[G1 Android Development] ecsnead69:
Man, I am sorry to bother you, that worked perfect! I was selecting the wrong option to zipalign! Again, thanks for the great tool!!! ;):D
[G1 Android Development] luniz7:
Edited cause I figured it out...
[G1 Android Development] Daneshm90:
U need to have sox setup, although u cud edit his script to let u use it even then. I didn't create the linux version, farmatito did.
[G1 Android Development] luniz7:
yea i was missing libsox
[G1 Android Development] s_dimaio:
changes to the framework-res.apk

I'd like to make some changes to the framework-res.apk using this tool. nothing spectacular ... add a few strings that were in English and has not been translated!

i've decompiled the file...made some changes to the file strings.xml in the folder "values"... compiled...signed ... all without errors!

Then I push the apk in the original position but the phone has begun a series of FC (I've tried to push the original framework-res.apk but the FC continued).

has anyone tried to make some changes to this file? how you did it??
[G1 Android Development] Daneshm90:
u should not sign the apk. When it asks u select system for signing. also to ensure least# of errors push ur framework when in recovery or create a update.zip
[G1 Android Development] sneaky_zekey:
ok,im on ubuntu and when i run .Script, the apk managers opens up, i have placed a framework-res.apk in the folder "place app here to mod", so i choose option 9(i think) to decompile the apk, apk manager windows flashes something real quick,i then go to where apk manager directory is but i dont see where the decompiled apk is,theres no out folder anywhere.
[G1 Android Development] s_dimaio:
so i have to:

- decompile the file (instruction 9)

- make changes

- compile the file (instruction 10)

- reboot recovery

- push the framework-res.apk in right position

- recovery

right???
[G1 Android Development] Daneshm90:
Yup that sounds right.
[G1 Android Development] sneaky_zekey:
does the linux version create a log.txt so i can see why its not working.
[G1 Android Development] Daneshm90:
No. the linux version hasn't been updated in a long time by farmatito :( im not good at shell scripts at all so hope someone continues his porting work from where he left off.