yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] elesbb:
Re: [TOOL][UPDATE 25/12/12]GUI APK Tool for decompiling/recompiling APKs

Did you check the log?
[Android Software/Hacking General [Developers Only]] fryingpan0613:
Re: [TOOL][UPDATE 25/12/12]GUI APK Tool for decompiling/recompiling APKs

Bump for a easy to use tool
[Android Software/Hacking General [Developers Only]] mrfeuss:
Hey, I'm having a bit of difficulty with this tool. I've used it to edit a few apps and was working on changing some icons in the MMS.apk from CM 10.1. After getting a few errors recompiling I decided to see what would happen if I just decompiled and recompiled without making any changes. I still ended up getting errors in my log. Does anyone have any insight on why this might be happening? I copied my error log and saved it on Pastebin. I'd really appreciate it if anyone can help.

http://pastebin.com/wzdNqvFy
[Android Software/Hacking General [Developers Only]] elesbb:
Re: [TOOL][UPDATE 25/12/12]GUI APK Tool for decompiling/recompiling APKs

Looks like a resource identifier error. (R.id.) error in java. Meaning, one of the resources are not being decompiled. I would recommend using the "Install frameworks" check box and installing the framework-res.apk. This should, hopefully clear things up. You may also need to install the SystemUI.apk file as well. Yes you can install both. Framework should be installed as 1.apk and SystemUI.apk should be installed as 127.apk. (Those are what you should see in the status report after installing them) I would try myself but i dont have my laptop with me tonight. But i am almost certain dong that will clear up the lack of a resource.
[Android Software/Hacking General [Developers Only]] mrfeuss:
Thank you for responding. I tried installing the framework-res.apk and the SystemUI,apk this morning. Unfortunately I'm getting errors in the log with framework-res.apk. SystemUI.apk is installed without any errors, but this is the error log I get when installing framework-res.apk. Thanks again for your response.

http://pastebin.com/e9269zGL
[Android Software/Hacking General [Developers Only]] elesbb:
Re: [TOOL][UPDATE 25/12/12]GUI APK Tool for decompiling/recompiling APKs

What version of my app are you running? This is an error that should have been fixed in the latest version. Make sure you have the latest version.
[Android Software/Hacking General [Developers Only]] mrfeuss:
UPDATE-Feb 16th elesbbs GUI APK Tool v1.3.4.5 installer Looks like I have the most recent version.
[Android Software/Hacking General [Developers Only]] elesbb:
Re: [TOOL][UPDATE 25/12/12]GUI APK Tool for decompiling/recompiling APKs

Mind posting your framework-res.apk file?
[Android Software/Hacking General [Developers Only]] mrfeuss:
Re: [TOOL][UPDATE 25/12/12]GUI APK Tool for decompiling/recompiling APKs

https://www.dropbox.com/s/61toi2ocoebxahi/framework-res.apk

Here it is
[Android Software/Hacking General [Developers Only]] elesbb:
Re: [TOOL][UPDATE 25/12/12]GUI APK Tool for decompiling/recompiling APKs

Thanks ill give it a go
[Android Software/Hacking General [Developers Only]] elesbb:
No issues here

Try installing the main installer then install the update. You dont have the proper files.
[Android Software/Hacking General [Developers Only]] elesbb:
Install THIS

THEN install THIS
[Android Software/Hacking General [Developers Only]] mrfeuss:
Re: [TOOL][UPDATE 25/12/12]GUI APK Tool for decompiling/recompiling APKs

Thanks so much! I'll give that a shot in a little bit.
[Android Software/Hacking General [Developers Only]] mrfeuss:
Thank you so much! Not sure where I went wrong with my install. I had installed them the same way, before. Got the app to compile without issues.
[Android Software/Hacking General [Developers Only]] elesbb:
Re: [TOOL][UPDATE 25/12/12]GUI APK Tool for decompiling/recompiling APKs

no problem! I don't think you installed the first link. Which is the main program that has all tools and such with it.

If you're feeling generous slap me some thanks or even better 5 bucks would be nice(however it's never expected) ^-^ glad you got everything working!
[Android Software/Hacking General [Developers Only]] mrfeuss:
The weird thing is that I had installed that package, first. I was using it for a few days editing apps and updated to the latest version yesterday. Hey, I'm not really going to question it, though. Thanks again!
[Android Software/Hacking General [Developers Only]] sunnylovesalman:
This is marvellous as I have been able to compile my first theme for CM10 and using it on my Nexus device.

Thanks to OP.
[Android Software/Hacking General [Developers Only]] opdrago:
trying recompile and decompile "SemcPhone.apk"

i only can decompile but cant recompile it, even i didnt edit anything.

the error says:

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml

at brut.androlib.Androlib.readMetaFile(Androlib.java:162)

at brut.androlib.Androlib.build(Androlib.java:179)

at brut.androlib.Androlib.build(Androlib.java:174)

at brut.apktool.Main.cmdBuild(Main.java:188)

at brut.apktool.Main.main(Main.java:70)

Caused by: brut.directory.PathNotExist: apktool.yml

at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)

at brut.androlib.Androlib.readMetaFile(Androlib.java:158)

... 4 more

i have checked and didnt find the file "apktool.yml"

im using stock rom xperia 2.3.4.

advice?

thanks.
[Android Software/Hacking General [Developers Only]] elesbb:
Did you install the ROM's framework?
[Android Software/Hacking General [Developers Only]] opdrago:
what do you mean by that?

i have no place to put the "framework-res.apk" file.

i dont see Install frameworks check box.
[Android Software/Hacking General [Developers Only]] elesbb:
Then you need to install the latest version. There is an "Install frameworks" checkbox.
[Android Software/Hacking General [Developers Only]] opdrago:
ohh... i see

trying right now.

thanks.
[Android Software/Hacking General [Developers Only]] elesbb:
Yeppers. I should make it so the latest is the only available download :P lol i apologize for any confusion.
[Android Software/Hacking General [Developers Only]] opdrago:
ok im trying to install new framework and i get:

"Unable to access jarfile apktool.jar"

what im missing here?
[Android Software/Hacking General [Developers Only]] elesbb:
Did you install the main installer and THEN the update?
[Android Software/Hacking General [Developers Only]] opdrago:
ok i manage to install framwork.

i installed ver. 1.2.4.5 and then the update 1.3.4.5, its ok.

i use SemcGenericUxpRes.apk as framework and decompiling went fine.

now i copied the original "resources.arsc" to the decompiled folder.

after that when i recompile i get a smaller file size and cant be use and the files in the compiled apk file are not encrypted.

why is that?
[Android Software/Hacking General [Developers Only]] elesbb:
After you installed SemcGenericUxpRes.apk, you do not and should not be coping anything to the decompiled folder. Resources.arsc gets generated upon compiling. it also gets decompiled. Thats mainly what your /res/values directory contains.
[Android Software/Hacking General [Developers Only]] elesbb:
You dont have the proper frameworks installed... What ROM and phone is this for?
[Android Software/Hacking General [Developers Only]] opdrago:
i have xperia play

stock rom 2.3.4.
[Android Software/Hacking General [Developers Only]] elesbb:
Is it deodexed?
[Android Software/Hacking General [Developers Only]] opdrago:
its a stock rom, so i dont know.
[Android Software/Hacking General [Developers Only]] elesbb:
If it's 100 percent stock then most likely you aren't. And without your entire ROM I can't really help
[Android Software/Hacking General [Developers Only]] sean.trinidade:
Does anyone know if this tool works on Sense 5? Having massive issues decompiling/recompiling sense 5 SystemUI.apk, and was wondering if this will work?
[Android Software/Hacking General [Developers Only]] elesbb:
If you use the latest version it should. Also ensure to install all proprietary frameworks.
[Android Software/Hacking General [Developers Only]] sean.trinidade:
Make sure you do the following first:

apktool if framework-res.apk

apktool if com.htc.resources.apk

If you get any errors, copy both the framework-res.apk and the com.htc.resources.apk to the \\Users\<userid>\apktool folder, and rename to 1.apk and 2.apk.

You should then be able to decomiple the mms.apk.
[Android Software/Hacking General [Developers Only]] elesbb:
This guy knows his stuff :) Thanks for helping out!

However, using my tool, there is a checkbox that allows you to install your frameworks. So no command lines are needed. Just click the checkbox, and go through the process for each framework file you have.
[Android Software/Hacking General [Developers Only]] mrmomoman:
Thank you. The GUI tool is for people like me. It almost makes me think I know what I am doing :)

I will try and see what results.

Do I need to pull both the framework-htc-res.apk and the framework-res.apk? And Install both frameworks? or the one that was posted? com.htc.resources.apk

Thanks again guys!!
[Android Software/Hacking General [Developers Only]] sean.trinidade:
I would pull and install both frameworks I listed. Sense is a beast, and they stick code in both of those files.
[Android Software/Hacking General [Developers Only]] mrmomoman:
I am able to get the message.apk compiled. Errors everywhere but at least its a step in the right direction.

The Message.apk is 4.60Mb. I wanted to decompile and recompile without any mods understand what its trying to do.

The 4.60Mb file becomes a 2.80Mb file after signing. Even though I didn't change anything its smaller.

I get an instant error message. on trying to open up SMS.
[Android Software/Hacking General [Developers Only]] elesbb:
Thats normal, thats just compression. APKs are a form of "zip" files. So they get compressed to save space. And whats the logcat error your getting?
[Android Software/Hacking General [Developers Only]] mrmomoman:
Success!! with a minor problem.

The space between the text bubbles run together.

View attachment 1949673

The outgoing text bubble is a little to left justified with the text and seems to be fixed size if typing a short reply it doesn't adjust the size of the bubble. and there should be space inbetween the outgoing messages and the incoming. Should also be space between the messages anyways.

Should I look into the XML file and see what settings they have there?

Is this now an XML edit?

Getting there. Nice to learn something new.
[Android Software/Hacking General [Developers Only]] claytonjn:
You need to familiarize yourself with .9 PNGs

Your best bet would be to post in a thread about theming.
[Android Software/Hacking General [Developers Only]] mrmomoman:
Yeah I originally posted there and will post again there. Since I am able to make it work now.

I think I need to add white space/black space or something like that. Almost there with it. Will change them all to bubbles and then learn to space them.
[Android Software/Hacking General [Developers Only]] elesbb:
The reason i dont theme :P well, hard core theme anyhow lol. Smali is my friend <3

Well, if you google .9 pngs, it will give a great amount of information regarding it.
[Android Software/Hacking General [Developers Only]] mrmomoman:
I think I understand its concept. Trial and error will be my reward :)

I don't want to theme. Just want to change the bubbles :) Then I can move on to something else.

Thanks for all the help here!

I don't even know what smali does yet. Don't want to be confused even more :)
[Android Software/Hacking General [Developers Only]] johnthehillbilly:
Quick question...... version 1.2.4.5 will not install...... telling me it is not compatible with my version of windows........ running 64 bit 7 ultimate ....... the earlier version 1.1.4.5 works ....... will the Feb 16 update.... update 1.1.4.5 to 1.3.4.5 or do I need to have 1.2.4.5 prior to updating......?

tapadriving.....hillbilly style
[Android Software/Hacking General [Developers Only]] elesbb:
Mind showing me a screenshot?
[Android Software/Hacking General [Developers Only]] elesbb:
And honestly, i have to clean this thread up. There are downloads everywhere that i dont even remember what they do xD

So i will make a complete installer. That way, all you need is the single file.
[Android Software/Hacking General [Developers Only]] johnthehillbilly:
It was late ...... probably user error lol .....I went ahead and uninstalled and reinstalled 1.1.4.5 then ran the update to 1.3.4.5..... and reinstalled custom framework ......seems to be working ok so far for now..... only had 1 apk fail to recompile so far.... (but it was a third party 4.2 apk and I'm thinking that may have been the issue with it)......

Framework-res and system ui are the main ones I work with for now anyway :) .... thanx

tapadriving.....hillbilly style
[Android Software/Hacking General [Developers Only]] split52:
hi, i can take only smali file and my log is:

27/05/2013

15:05:29,21

Decompiling.. "C:\Program Files\elesbb's GUI APK Tool\Settings.apk"

I: Baksmaling...

I: Loading resource table...

W: Config flags size > 36. Exceeding bytes: 0xB000000.

W: Invalid config flags detected. Dropping resources: drawable-mdpi-ERR0

W: Config flags size > 36. Exceeding bytes: 0xB000000.

W: Invalid config flags detected. Dropping resources: drawable-hdpi-ERR1

W: Config flags size > 36. Exceeding bytes: 0xB000600.

W: Invalid config flags detected. Dropping resources: drawable-hdpi-ERR2

Exception in thread "main" java.lang.NullPointerException

at brut.androlib.res.decoder.ARSCDecoder.addMissingResSpecs(ARSCDecoder.java:326)

at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:138)

at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:110)

at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)

at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:491)

at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:74)

at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:66)

at brut.androlib.Androlib.getResTable(Androlib.java:50)

at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:189)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)

at brut.apktool.Main.cmdDecode(Main.java:146)

at brut.apktool.Main.main(Main.java:77)

-----------------------------------------------------------------

some help??thanks
[Android Software/Hacking General [Developers Only]] elesbb:
Install your framework-res.apk and other apks found in system/framework directory on your device :)
[Android Software/Hacking General [Developers Only]] split52:
works, thanks
[Android Software/Hacking General [Developers Only]] elesbb:
No problem :) There is a thanks button btw ;)
[Android Software/Hacking General [Developers Only]] elesbb:
Don't install mediatek.Res
[Android Software/Hacking General [Developers Only]] split52:
ok, only framework installed and got the same error:confused:
[Android Software/Hacking General [Developers Only]] elesbb:
Is this still the Settings.apk?
[Android Software/Hacking General [Developers Only]] split52:
no, this is lewalauncher.apk, my mistake log, jeje

8/05/2013

19:32:50,99

Decompiling.. "I:\roms_zopo_zp200\lewa_casi_casi\system\app\LewaLauncher.apk"

I: Baksmaling...

unknown opcode encountered - ff04. Treating as nop.

unknown opcode encountered - ff10. Treating as nop.

unknown opcode encountered - ff10. Treating as nop.

unknown opcode encountered - ff06. Treating as nop.

unknown opcode encountered - ff0d. Treating as nop.

unknown opcode encountered - ff0d. Treating as nop.

unknown opcode encountered - ff0d. Treating as nop.

unknown opcode encountered - ff10. Treating as nop.

unknown opcode encountered - ff08. Treating as nop.

unknown opcode encountered - ff09. Treating as nop.

Exception in thread "main" org.jf.dexlib.Util.ExceptionWithContext: Index: 4210, Size: 3196

at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithContext.java:54)

at org.jf.dexlib.IndexedSection.getItemByIndex(IndexedSection.java:77)

at org.jf.dexlib.Code.InstructionWithReference.lookupReferencedItem(InstructionWithReference.java:79)

at org.jf.dexlib.Code.InstructionWithReference.<init>(InstructionWithReference.java:57)

at org.jf.dexlib.Code.Format.Instruction21c.<init>(Instruction21c.java:63)

at org.jf.dexlib.Code.Format.Instruction21c.<init>(Instruction21c.java:40)

at org.jf.dexlib.Code.Format.Instruction21c$Factory.makeInstruction(Instruction21c.java:108)

at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(InstructionIterator.java:82)

at org.jf.dexlib.CodeItem.readItem(CodeItem.java:154)

at org.jf.dexlib.Item.readFrom(Item.java:77)

at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:48)

at org.jf.dexlib.Section.readFrom(Section.java:143)

at org.jf.dexlib.DexFile.<init>(DexFile.java:431)

at org.jf.dexlib.DexFile.<init>(DexFile.java:267)

at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:48)

at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:34)

at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:72)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)

at brut.apktool.Main.cmdDecode(Main.java:131)

at brut.apktool.Main.main(Main.java:68)

Caused by: java.lang.IndexOutOfBoundsException: Index: 4210, Size: 3196

at java.util.ArrayList.rangeCheck(Unknown Source)

at java.util.ArrayList.get(Unknown Source)

at org.jf.dexlib.IndexedSection.getItemByIndex(IndexedSection.java:75)

... 18 more

Error occured while retrieving the field_id_item item at index 4210

Error occured at code address 780

code_item @0x2fb7c

-----------------------------------------------------------------
[Android Software/Hacking General [Developers Only]] elesbb:
Very interesting. Mind posting the apk? Never heard of it btw. Also include your framework-res.apk
[Android Software/Hacking General [Developers Only]] split52:
yours,,jeje
[Android Software/Hacking General [Developers Only]] elesbb:
Try doing it without installing framework-res.apk

It worked fine for me

Tue 05/28/2013
16:11:35.48
Decompiling.. "C:\Users\Seth\Desktop\LewaLauncher.apk"

I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Seth\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...

-----------------------------------------------------------------
[Android Software/Hacking General [Developers Only]] split52:
something wrong with my computer, does not work, the same error, i have the last gui apk tool 02/16
[Android Software/Hacking General [Developers Only]] elesbb:
Install this

Then, install this

Should bring you up to date with everything.
[Android Software/Hacking General [Developers Only]] split52:
yeah, i dont understand, but workssssssssssssssssss,,jejeje,,thanks again
[Android Software/Hacking General [Developers Only]] split52:
hi, another doubt, after add new file value-es whith spanish translate and recompile i got error,,jeje...

12:30:56,03

Re-compiling... "C:\Users\linde\APK GUI\InProgress\Phone.apk"

I: Smaling...

I: Building resources...

aapt: warning: string 'add_button_miui' has no default translation in C:\Users\linde\APK GUI\InProgress\Phone.apk\res; found: es

aapt: warning: string 'add_zero_prefix' has no default translation in C:\Users\linde\APK GUI\InProgress\Phone.apk\res; found: es

aapt: warning: string 'always_enable_mms_miui' has no default translation in C:\Users\linde\APK GUI\InProgress\Phone.apk\res; found: es

aapt: warning: string 'always_enable_mms_summary_miui' has no default translation in C:\Users\linde\APK GUI\InProgress\Phone.apk\res; found: es

aapt: warning: string 'answer_and_hangup_miui' has no default translation in C:\Users\linde\APK GUI\InProgress\Phone.apk\res; found: es

aapt: warning: string 'answer_features_setting_category_miui' has no default translation in C:\Users\linde\APK GUI\InProgress\Phone.apk\res; found: es

aapt: warning: string 'answer_miui' has no default translation in C:\Users\linde\APK GUI\InProgress\Phone.apk\res; found: es
[Android Software/Hacking General [Developers Only]] elesbb:
Those are just warnings. I get them too. As long as it says "building apk" everything went fine.
[Android Software/Hacking General [Developers Only]] drxllxffxct:
Any help with this???

???
[Android Software/Hacking General [Developers Only]] elesbb:
Firstly follow this as you aren't running the latest version. Then try again.
[Android Software/Hacking General [Developers Only]] maRRRco89:
Hello

I'm trying to change framework-res.apk to add on screen button.

I'm in stock ics (Xperia phone) and the framework is deodexed and modded for small app support.

Your tool seems to work fine, no error at all in decompiling and compiling, but the output file is smaller then original

for example original: 10.1 MB, modified: 9.89 Mb

I don't know why, and I get a bootloop trying to replace it with original (of course right permissions).

04/07/2013

21.46.38,37

Decompiling.. "C:\apk framework + soft touch\framework-res.apk"

I: Loading resource table...

I: Loaded.

I: Decoding AndroidManifest.xml with resources...

I: Decoding file-resources...

I: Decoding values */* XMLs...

I: Done.

I: Copying assets and libs...

04/07/2013

21.48.52,86

Re-compiling... "C:\Users\Marco89\APK GUI\InProgress\framework-res.apk"

W: Could not find sources

I: Building resources...

I: Building apk file...

Can you help me?

Everithing seems right to me.

p.s I signed the framework.apk
[Android Software/Hacking General [Developers Only]] elesbb:
Don't sign it. Prolly signature verification error on startup. And if you're adding a button to the apk of course it's going to be larger.
[Android Software/Hacking General [Developers Only]] nurfirdaus:
hi..

I need help here..

1. if i want decompile and compile SystemUI.apk, should I put SystemUI.apk and framework-res.apk files into C:\Program Files\elesbb's GUI APK Tool?

2. And which box should i tick?.
[Android Software/Hacking General [Developers Only]] :
Hey dude. I am trying to personalize my phone :D

However, the recomplied apk does not appear in the folder where the program should output it to. Also I am getting some errors in the log. I will run it as admin and see what happens
[Android Software/Hacking General [Developers Only]] elesbb:
Try copying Meta-inf folder in the original apk to the modified apk.
[Android Software/Hacking General [Developers Only]] cityyemen:
Re-compiling...

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml

at brut.androlib.Androlib.readMetaFile(Androlib.java:164)

at brut.androlib.Androlib.build(Androlib.java:181)

at brut.androlib.Androlib.build(Androlib.java:176)

at brut.apktool.Main.cmdBuild(Main.java:214)

at brut.apktool.Main.main(Main.java:74)

Caused by: brut.directory.PathNotExist: apktool.yml

at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)

at brut.androlib.Androlib.readMetaFile(Androlib.java:160)

... 4 more

help me sir
[Android Software/Hacking General [Developers Only]] elesbb:
Install your framework-res.apk files.
[Android Software/Hacking General [Developers Only]] SXUsr:
Did you add the AndroidManifest.xml and META-INF from the original apk and also extract and re-add the resources.arsc from the new apk? I get a ton of similar errors but can still use the new apk.
[Android Software/Hacking General [Developers Only]] split52:
works great, now i have another problem, systemui i can decompile but cant compiled
[Android Software/Hacking General [Developers Only]] elesbb:
in the program, click the box to install custom frameworks. Then install the ORIGINAL framework-res.apk file from your device. Should solve that issue.
[Android Software/Hacking General [Developers Only]] split52:
installed framework and the same issue, i can get only , res, smali and androidmanifest
[Android Software/Hacking General [Developers Only]] elesbb:
What is the ROM and device?