yashsingh1/xdaforums huggingface dataset:
[Android Software Development] humba80:
This tool is awesome, but now it's not installing my framework anymore... :confused:

It ran fine a few days ago. System: Win7, Java, Powerpacks, .NET.

Can you see what the error is?

W: Config flags size > 38. Exceeding bytes: 0xFFFF.
W: Invalid config flags detected: style-v17-ERR0
Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:54)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:40)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:611)
at brut.androlib.Androlib.installFramework(Androlib.java:469)
at brut.apktool.Main.cmdInstallFramework(Main.java:260)
at brut.apktool.Main.main(Main.java:81)
Caused by: java.io.IOException: Expected: 0x00000008, got: 0x00000100
at brut.util.ExtDataInput.skipCheckShort(ExtDataInput.java:56)
at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:219)
at brut.androlib.res.decoder.ARSCDecoder.readComplexEntry(ARSCDecoder.java:211)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:179)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:167)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:133)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:108)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:81)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
... 5 more

Thanks!

-----

Got it working again after going from Multitool 3 to 2.2 beta1.
[Android Software Development] Bidyadhar:
Hello sir I am unable to do adb push using this ... it says not permitted any way to fix??
[Android Software Development] cdzo72:
Yeah... it's called doing a search to find out why you phone won't take push commands
[Android Software Development] Bouziane_Dr:
Sir Flextrick,

Your work is perfect.

I decompile (modify res, .png .smali, for mod Lidroid) recompile decompile (modify .smali) recompile SystemUI.Apk with AndroidMultitool. No error, no problem.

For verification, i decompile this apk, no error.

I push the last SystemUI.Apk (with META-Inf and Manifest from first (original) apk) in my phone, used Root explorer and rights permissions (also additionnals apk with well permissions). ADN no works.

No change. ???

-Bad pushing?

-Bad compilation smali ?

Help me. Please.

Thank you.
[Android Software Development] karaman_deniz:
Help

I can't take my translation project into the apk. Help me pls. translations in values-tr in project file.
[Android Software Development] Flextrick:
Did you reboot your device?

I can't help you without more detailed information.
[Android Software Development] linckandrea:
Nice work
[Android Software Development] Bouziane_Dr:
Sir Flextrick,

Thank for yours "disponibility"

I reboot my phone.

I follow your tutorial step by step and it is clear. Easy to undestand.

(When I put SystemUI to System/app nothing (no error no change)

When i install it, i have message :"application not installed").

Android ver 4. 0. 4. ICS

Devices Wiko Cink Slim (Clone Fly IQ 442)

Why?
[Android Software Development] Flextrick:
Ok, what exactly did you mod? Maybe the wrong dpi dir for the pngs?
[Android Software Development] greg1806:
Sorry for a very noob question, i just found this tool..

Everytime i ran the decompile apk, the log kept say that "java is not recognised as an internal or external command".

I have installed Java Runtime Environment, but it seems didn't solve the problem.

My pc is running windows 8 pro 64bit. Need an advice..
[Android Software Development] Lapnis:
i think you need JDK instead of JRE

Sent from my Moto G
[Android Software Development] karaman_deniz:
I just want from you to take these translated xml files into app. I translated it. But I wasn't able to take these files into app with multi tools. I share with you the apk (ttpod_6.5.0.zip) and translated files (values-tr.zip) and also errors that I take when I compile apk even if I don't change any files of the apk (log.txt).
[Android Software Development] helloansuman:
While pushing the file into the mobile after selecting the signed apk. It says finished but. The file is not pushed. Can you check the problem?
[Android Software Development] Flextrick:
Hello, of course.

Which device do you own?
[Android Software Development] helloansuman:
Spice stellar Pinnacle Pro Mi-535.
[Android Software Development] Flextrick:
Ok, I'll take a look on it.
[Android Software Development] ericson143:
I hv extracted d files to C:\ but on clicking the exe file nthng happens

Tried a lot of times dunno y bt it's nt working :confused::confused::confused::confused:

My Pc- Win8 pro 64bit, JDK installed

Plz help
[Android Software Development] Flextrick:
No PowerPacks are installed, right?
[Android Software Development] Tr4sHCr4fT:
what i still dont understand: when do i need the framework_res.apk?

will i need it when RE'ing third-party apps too, so these not in rom?
[Android Software Development] Flextrick:
It's needed to install resouces of the whole framework (e.g. icons).. so if third party apps are using these icons, you have to install the framework-res.apk (or other frameworks like touchwiz)
[Android Software Development] Tr4sHCr4fT:
is there a way to find out what res its using if any?
[Android Software Development] Flextrick:
Yes, decompile it and look if it gives errors.. if yes you have to install the framework, if not your lucky.
[Android Software Development] donkanmcklaus:
i'm trying to decompile a .jar file, and after click decompile button show no errors on log, but when i search at decompiled_jar there's nothing there
[Android Software Development] Flextrick:
Does the tool do something? You can check this with looking on the "wait" circle.
[Android Software Development] starbucks2010:
I have the same problem. The program doesn't start. I tried v2.2 and v3.0. I use Win7 64bit.
[Android Software Development] Flextrick:
Did you install PowerPacks?
[Android Software Development] starbucks2010:
After installing power packs it's starting.

Thank you.
[Android Software Development] dragonballz:
Hello, sign the apk named signed.apk must rename it ?

Errors that appear when I decompile and recompile , does it remove? how? thank you .
[Android Software Development] Flextrick:
Do you get errors or not?

No, you don't have to rename it, but you can if you want.
[Android Software Development] dragonballz:
Yes I get errors when I decompile and recompile, I abandoned thank you
[Android Software Development] Flextrick:
Please post the error log.
[Android Software Development] Flextrick:
Of course, but if it does not work you know the cause. ;)
[Android Software Development] dragonballz:
View attachment 2014-01-25-15-35-30.txt

View attachment 2014-01-25-15-36-50.txt

View attachment 2014-01-25-15-41-11.txt

View attachment 2014-01-25-15-41-57.txt

How do I install my app framework-res signed.apk , by clicking on ?

or I should rennomer the framework-res.apk ? and make a copy and paste to replace the old apk.
[Android Software Development] Flextrick:
What did you exactly do? All logs are ok, ecxept the second.
[Android Software Development] izuall187:
Cannot find file?

Hi Dev!

I tried decompiling systemui and all other apks but it says on log that the file could not be found. powerpack tools and .Net framework are installed. Here's an SS.

Thanks!
[Android Software Development] dragonballz:
1 / I install the framework files from the folder, I click install

2 / I check use baksmali I selected files in the framework folder, then I click on decompile

3 / in the folder I chose the decompiled framework-res folder, I click compile

4 / compile once I open the apk to paste the META-INF folder and file AndroidManifest

5 / I sign the apk
[Android Software Development] kkk-sgs2:
hi, cant decompile newest framework-res.

I: Loading resource table...
W: Config flags size > 38. Exceeding bytes: 0xFFFF.
W: Invalid config flags detected. Dropping resources: style-v17-ERR0
Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:54)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:540)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:76)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:68)
at brut.androlib.Androlib.getResTable(Androlib.java:51)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:191)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:116)
at brut.apktool.Main.cmdDecode(Main.java:148)
at brut.apktool.Main.main(Main.java:77)
Caused by: java.io.IOException: Expected: 0x00000008, got: 0x00000103
at brut.util.ExtDataInput.skipCheckShort(ExtDataInput.java:56)
at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:219)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:179)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:167)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:133)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:108)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:81)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
... 8 more
[Android Software Development] Flextrick:
Looks like the apktool isn't updated to this api.

Gesendet von meinem Nexus 4 mit Tapatalk
[Android Software Development] Flextrick:
Guys, I continued developing.

Update arrives tomorrow!

Flex
[Android Software Development] Flextrick:
AndroidMultitool v3.1

Update:

AndroidMultitool v3.1:

Fixes for adb push

button to reboot device

many other fixes and code rework

[DOWNLOAD] (Windows 8 & Windows 8.1)

[DOWNLOAD] (Windows 7 und XP)
[Android Software Development] dragonballz:
How to remove this error is ?
[Android Software Development] Flextrick:
framework-res.apk does not contain a classes.dex file

This says pretty much. Look at your framework-res.apk :)

Flex
[Android Software Development] sobri46:
need help

hi my friends

can you tell me how to replace some system file like :

framework.apk

setting.apk

phone.apk

i translate the apk and want to change the old one in the phone

can i use the multi apk tool ?

should i be in download mode to push the files

or it is ok when the phone is in

on the apktool it show my mobile when it is on

thank you
[Android Software Development] Flextrick:
you can use my app Sysfile Copymaster. It sets all permissions right.

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

Flex
[Android Software Development] gamer649:
Quick question, I wish to decompile an app (SystemUI.apk) from ICS, modify it and then use it on 4.1.2. Do I have to install the JB framework to recompile or not?
[Android Software Development] Flextrick:
Yes, please install the framework-res.apk before decompiling.

Flex
[Android Software Development] gamer649:
Wait, so I have to install the android 4.0.4 framework.jar and the 4.0.4 framework-res.apk files to decompile? Do I have to install the 4.1.2 framework.jar and the 4.1.2 framework-res.apk files to recompile however? Sorry about not understanding fully, I'm new to the apk modding side of android.
[Android Software Development] Flextrick:
no, only the 4.0.4 framework-res.apk

Flex
[Android Software Development] gamer649:
Thank you, I'll have a try later. Hopefully I can start to mod files properly :)
[Android Software Development] dragonballz:
You mean I'm missing a classes.dex file in my framework-res.apk ?

But how to add ?

excuse me but with google translation is sometimes incomprehensible
[Android Software Development] Flextrick:
No, you cannot add it. It has to be in it.

Just look in it. But it seems like you wanted to decompile a jar or you gave the wrong commands.

Flex
[Android Software Development] dragonballz:
Thank you for your answers , but I am completely lost, I really did not find this file or.Dex know you explain me some things that are normal for you , I not understand , I want to change the parameters in the text buttons switch , I know that this change in the framework-res.apk \ res \ values-fr \ strings.xml, I managed to change this text , I'm on bootloop because of this error .
[Android Software Development] Flextrick:
just install your framework-res.apk, install it, choose it for decompiling, decompile it as apk and without baksmali, change it and recompile it as an apk. That's it. ;)

Flex
[Android Software Development] dragonballz:
Ok thank you , I'll try without baksmali check after edit and compile it be required to sign the apk ?

then how do I install my new res framework , copying and replace the old ?

if I must sign it will have a new name, how to install it in this case ?

Thank you .
[Android Software Development] Flextrick:
No, don't sign it, it's a system app.

After recompiling you only have to copy the androidmanifest.xml + meta-inf folder from the original framework-res.apk to your newly compiled one. It won't end in bootloop.

Flex
[Android Software Development] dragonballz:
Thank you I have no bootloop :good:
[Android Software Development] ChiDi9901:
After recompiling, then copying META-INF and AndroidManifest.xml over and signing the apk, I can't install it on my device. It just says that it wasn't installed. Nothing else. What did I make wrong? I followed every step carefully and also installed the framework-res.apk... Anybody having the same problem?

I am using Windows 8.1 and Nexuus 7 2013

Edit: I tried to mod and 3rd party apk, not system
[Android Software Development] Bellitsch89:
When you have root, copy the apk to system/apps or system/priv-apps set permissions to rw-r--r-- reboot and look if it will work. Make an copy from your stock apk...

Sent from my BLUE HTC ONE bitten by a Viper
[Android Software Development] izuall187:
Sorry if i soundtoo noob but can we decompile framework-res on windows? If can't, can it be done using cygwin since i don't have a linux machine? Tnx dev.
[Android Software Development] Flextrick:
Sure, you are able to decompile it on windows.

Flex
[Android Software Development] nabobcoffee:
.jar error

Hi,

I am getting the following error when I try to decompile framework2.jar

UNEXPECTED TOP-LEVEL EXCEPTION:

org.jf.dexlib.DexFile$NoClassesDexException: zip file framework2.jar does not contain a classes.dex file

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

at org.jf.baksmali.main.main(main.java:280)

Any thoughts?
[Android Software Development] izuall187:
Can i get a bit of walkthrough on it on how it is done? Tnx flex!
[Android Software Development] nabobcoffee:
I am trying to follow these steps in my SG Note 8 tablet. I was able to follow the steps for secsettings.apk. However whenever I try to decompile framework2.jar I get the error. So my question can I apply the same steps on Samsung Note 8 Tablet?
[Android Software Development] Flextrick:
Is your Rom odexed?

In the startpost is a detailed tutorial, what didn't you understand?

Flex
[Android Software Development] ventu08:
Hi, this tool is not yet compatible with the framework-res by kitkat on nexus 5 ?
[Android Software Development] ChiDi9901:
Yeah, i also want to know if it has something to do with the compatibility issue of the KITKAt framework that prevents me from installing recompiled apps.

Gesendet von meinem Nexus 7 mit Tapatalk
[Android Software Development] ventu08:
I tried but with the framework-res of nexus 5 reports error , do not install,even with the beta version
[Android Software Development] Flextrick:
Which error? I can't help you without any log.

Flex
[Android Software Development] SavanTorian:
pls download the package again... it must work.... here, it does properly. :)
[Android Software Development] toorentz:
i try,but it doesn't work.........:(
[Android Software Development] SXUsr:
Thanks for the handy tool, just needs the ability to Sign and Zipalign and it will be perfect. :)
[Android Software Development] Flextrick:
The request of signing apk's was posted a couple of times, so I'll integrate it in the code on the weekend. :)

~ via Nexus
[Android Software Development] SXDevelopers:
Please re upload it , its having lots of problems ..
[Android Software Development] Flextrick:
Which problems?

"A lot of" does not help in any way.

Please more details.
[Android Software Development] bondlolo:
When I try to decompile the program stop (Not responding) it does the folder of the apk but its not decompiled correctly
[Android Software Development] Penacal:
+1,happens frequently,sometimes I have sucess in second attempt.
[Android Software Development] bondlolo:
I tried a second attempt but no luck :(
[Android Software Development] mgbotoe:
Hello Everyone

Just want to say great tool first of all. I am new to all of this and a problem I seem to come across is my dist folder not showing up. I am not sure what is causing it, I do not see any errors. Any suggestion? I have read and research but not coming across anything.
[Android Software Development] Flextrick:
Hello,

could you copy the log and post it here?

~ via Nexus
[Android Software Development] mgbotoe:
this is what I am getting now....just happen again...i got framework installed.

C:\AndroidApktool>apktool b C:\AndroidApktool\SampleTheme

C:\AndroidApktool>I: Checking whether sources has changed...

I: Checking whether resources has changed...

I: Building resources...

res\drawable-xhdpi\mobi_mgeek_TunnyBrowser_t_normal.9.png: Invalid file name: must contain only [a-z0-9_.]

res\drawable-xhdpi\mobi_mgeek_TunnyBrowser_t_normal.9.png: Invalid file name: must contain only [a-z0-9_.]

res\drawable-xhdpi\mobi_mgeek_TunnyBrowser_t_pressed.9.png: Invalid file name: must contain only [a-z0-9_.]

res\drawable-xhdpi\mobi_mgeek_TunnyBrowser_t_pressed.9.png: Invalid file name: must contain only [a-z0-9_.]

res\drawable-xhdpi\mobi_mgeek_TunnyBrowser_t_selected.9.png: Invalid file name: must contain only [a-z0-9_.]

res\drawable-xhdpi\mobi_mgeek_TunnyBrowser_t_selected.9.png: Invalid file name: must contain only [a-z0-9_.]

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 14, -F, C:\Users\Medina\AppData\Local\Temp\APKTOOL691417762866082474.tmp, -0, arsc, -I, C:\Users\Medina\apktool\framework\1.apk, -S, C:\AndroidApktool\SampleTheme\res, -M, C:\AndroidApktool\SampleTheme\AndroidManifest.xml]

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)

at brut.androlib.Androlib.buildResources(Androlib.java:283)

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

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

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

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

Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 14, -F, C:\Users\Medina\AppData\Local\Temp\APKTOOL691417762866082474.tmp, -0, arsc, -I, C:\Users\Medina\apktool\framework\1.apk, -S, C:\AndroidApktool\SampleTheme\res, -M, C:\AndroidApktool\SampleTheme\AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)

... 5 more

Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 14, -F, C:\Users\Medina\AppData\Local\Temp\APKTOOL691417762866082474.tmp, -0, arsc, -I, C:\Users\Medina\apktool\framework\1.apk, -S, C:\AndroidApktool\SampleTheme\res, -M, C:\AndroidApktool\SampleTheme\AndroidManifest.xml]

at brut.util.OS.exec(OS.java:89)

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)

... 6 more
[Android Software Development] DigitalUnderground:
Trying this asap... looks great and apktool has been a pain in my ass. Lol. Thanks a lot for making it easier for us all :)
[Android Software Development] Flextrick:
Ok, did it decompile well?

~ via Nexus
[Android Software Development] mgbotoe:
Well, i had all the files there....res, smali, when i looked inside all seemed to be well.

I am sensing it is a user error rather than your tools.
[Android Software Development] Flextrick:
Maybe you should post your error here:

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

Or in any other Apktool Q&A thread.

That's not an error of my tool and I didn't get this error before, so I can't help you, sorry.

~ via Nexus
[Android Software Development] Flextrick:
Update!

V1.1:

Added ability to sign .apk

Changed comboboxes to browse buttons

bigger log - screen

Download: http://www.mediafire.com/download/vcz0llfd6vi0pkd/AndroidApktool.zip
[Android Software Development] clark44:
Cool update. Any word on the features I recommended?
[Android Software Development] Flextrick:
Sorry, there were a few problems on coding, but I'll implement them for sure!

~ via Nexus
[Android Software Development] shreddintyres:
everytime i try running your utility it automatically closes itself, regardless of location

Looks like it could be very promising but its not wanting to cooperate with me, using the latest version any suggestions?
[Android Software Development] Flextrick:
I think, but it's up to the base apktool devs. I really don't know, I own a Nexus 4 and here it works well.

Flex
[Android Software Development] ventu08:
I tried with other android versions (not kitkat) and no problem, nexus 5 do not install the framework-res.

This is the log :

http://imageshack.com/a/img713/5314/n1tg.png
[Android Software Development] Flextrick:
Yes, that's an api problem. If you can solve it with another apktool version, let me know.

Flex
[Android Software Development] ventu08:
Thanks, so you have to wait for an update of the apktool or is there another compatible version?
[Android Software Development] Flextrick:
Exactly. If you can solve your problem with another apktool version, please let me know.

It's a complicated situation, apktool + smali has to be updated on every android and api update.
[Android Software Development] ventu08:
ok, it is a bit ' that I'm looking for a tool to decompile the apk on nexus 5, if I can find a compatible version of apktool let you know
[Android Software Development] desspil:
Thank you very much for your work, it's an amazing soft !!!
[Android Software Development] ag4751:
Check your Private Messages
[Android Software Development] Flextrick:
Thank you. Is this an unofficial build of apktool or where did you get this version?
[Android Software Development] ag4751:
Check your PM's
[Android Software Development] Flextrick:
Hello,

I've got an Update for you.

v3.2:

add different apktool, aapt and batch files

should solve some problems on de - and recompiling

A lot of issues should be solved with the new apktool files. Test and enjoy it!

Special thanks to [MENTION=3120411]ag4751[/MENTION]

[DOWNLOAD] (Windows 8 & Windows 8.1)

[DOWNLOAD] (Windows 7 und XP)