yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Jertlok:
I have the same problem, but i have all SDK Platform Installed!

(ARSCDecoder.java:100)
at brut.androlib.res.decoder.ARSCDecoder.readTable(A
RSCDecoder.java:78)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSC
Decoder.java:47)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSC
Decoder.java:39)
at brut.androlib.res.AndrolibResources.installFramew
ork(AndrolibResources.java:657)
at brut.androlib.Androlib.installFramework(Androlib.
java:649)
at brut.apktool.Main.cmdInstallFramework(Main.java:2
56)
at brut.apktool.Main.main(Main.java:92)

Can anyone help us?
[Android Software Development] Vivek_Neel:
Did u install framework?
[Android Software Development] Jertlok:
That is what i got in framework installation :/
[Android Software Development] The Sickness:
You need to delete all the api's that you don't need. If you're just running 5.0 there is no need for others.

Plus, make sure you have the latest platform_tools.
[Android Software Development] Jertlok:
Thank you, so I'll use

android sdk tools

Android sdk platform tools

Sdk platform (api 20)

I'm gonna to try it!!!

Edit:

I get the same error :/

Edit 2:

Fixed :D
[Android Software Development] xdagee:
Oh so you had the same problem as i did even though you had updated sdk + platform tools?
[Android Software Development] eyesfortech:
Thanks!

Thanks OP, I will try this updated version and provide feedback
[Android Software Development] Tenroc:
How did you manage to fix your error?

I use the latest api (21), sdk tools and platform tools and I still have this error (while tring to install a Lollipop framework)
[Android Software Development] skyfast:
is there any chance you can add an option which requires a password when the apk is being installed? or if is installed already, password before you can run the app?

very good tool btw!
[Android Software Development] _ghiottone:
I have the same issue too. Yesterday i installed the latest api, and now i have the sam error too.
[Android Software Development] jazzespresso:
I have to say, this is one of the best ApkTool I have ever run into here in XDA, and I am not new to here....very well done, almost bug free utility.
[Android Software Development] The Sickness:
Those of you with compiling errors....

Did yall load a "unmodded" framework?
[Android Software Development] xdagee:
Can anyone over here do us a favor and upload the android 21 api and system images and all the other SDK tools so we can push it into our SDK folders since downloading from google servers takes a longer time ???
[Android Software Development] deuce_biggins:
[MENTION=5078388]BDFreak[/MENTION], I'm sure you know already...but RC3 just dropped. Great work on 4.0.0 by the way
[Android Software Development] xdagee:
Yeah definitely he's gonna update it. This will help fix the compilation & decompilation of Android API 21
[Android Software Development] enotar:
I need a little help please.

I am trying to decompile, modify, recompile and sign framework-res.apk from my galaxy note 10.1 2014.

to test because it was not working I did that:

I install the framework-res.apk from my rom (stock)

I rename this file framework-res.apk as stock.apk to not mix

I decompile this new stock.apk

I did nothing to this decompile folder

I recompile and sign stock.apk

I rename stock.apk to framework-res.apk and put back in my Rom

I flash the Rom

Bootloop and size is different.....????

I have apktool.jar RC3

Any idea?

Thank you very much for this tool and your help
[Android Software Development] Kamy:
On most of apk tool For some reason framework files' signature would be corrupted after recompiling is done. to fix that just open your non-modded framework file and drag androidmanifest and resource.arsc files and drop them to modded file without extracting them. Btw for system file you shouldn't sign the app that is only required for non-system apps after compiling them.
[Android Software Development] enotar:
If that works you are a savior.....

Thank you so much, I'll try right away.

tried, it is a little better as it looks it is getting closer to the first page display; the letters SAMSUNG are now flashing between bright and dimmed slowly and the smart touch are flashing too slowly so something still missing.

I did not sign and zip align and di drop the 2 files inside the new recompile framework-res.apk

Any idea? It should be something very close from the successful boot as before it was just with the letters SAMSUNG bright. I know when the boot is successful before the first page is when the auto brightness take over and the letter SAMSUNG dim but on this case after dimming they go back bright and one more time dim and on and on.....

thank you

Another point, is the compression level different? and why there is v4 and v13 at the end of the folders?

Thank you so much and sorry to bother.
[Android Software Development] BDFreak:
[Tool]Advanced ApkTool v4.1.0[Windows][02/12/2014]

Advanced ApkTool v4.1.0 has been released!!!

Changelog :

v4.1.0 :

Based on Apktool 2.0.0-RC3 (Android Lollipop Supported)

Download :

v4.1.0 :

Advanced ApkTool v4.1.0 By BDFreak.rar
[Android Software Development] Hen Ry:
Huawei Mate 7 - deodexed

hello,

can you help me Huawei apk's to deodexed, Android 4.4.2, EMUI 3.0, Firmware B121SP05

here the folder app, framework and priv-app
[Android Software Development] be free:
add new feature

hello bro It would be such a great feature if you add decompile all, and recompile all. ;)
[Android Software Development] xdagee:
There is; in the new build. v4.1.0 go check it. ;)
[Android Software Development] Ambor:
Nice new version. Can't wait to test it. Thanks [MENTION=5505171]dbfreak[/MENTION] love you work.
[Android Software Development] deuce_biggins:
No need to test, works flawlessly :)
[Android Software Development] unisaco:
I used this tool to mod the SystemUI.apk for Note 3 N900 / rom Stock 4.4.2

I already installed 2 file: framework-res.apk and twframework-res.apk (which were gotten from my N900 rom stock, deodex by me). Everything ok, I decompile SystemUI.apk, then do nothing (for test), then ReCompile and then Sign => no error during this process. But when I copy this file back to system/priv-app, I lost wallpaper & status bar at this time => unsuccessfull at all. Now I'm very confuse. Pls help me the correct way to mod SystemUI
[Android Software Development] deuce_biggins:
No need to sign system app unless you are modifying the AndroidManifest, just recompile only. Once complete open both apks with 7zip (the original in the "In" folder and the new one in the "Done" folder) then drag the original AndroidManifest into the newly compiled apk. Should be good to go from there.
[Android Software Development] unisaco:
:D Thank you so much. I got it :silly:
[Android Software Development] Rio Rapha:
Help me Some1

Decompile still not success for Framework-res.apk

Log For : framework-res.apk

Log Type : Decompiling

Log Recorded At : Wed 10-12-2014 23:05:28.65

Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak

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

W: Could not decode attr value, using undecoded value instead: ns=somc, name=drawable, value=0x010805fd
W: Could not decode attr value, using undecoded value instead: ns=somc, name=color, value=0x02060002
W: Could not decode attr value, using undecoded value instead: ns=somc, name=drawable, value=0x010806e7
W: Could not decode attr value, using undecoded value instead: ns=somc, name=color, value=0x02060002
W: Could not decode attr value, using undecoded value instead: ns=somc, name=drawable, value=0x010805e4
W: Could not decode attr value, using undecoded value instead: ns=somc, name=color, value=0x02060003
W: Could not decode attr value, using undecoded value instead: ns=somc, name=background, value=0x010805cd
W: Could not decode attr value, using undecoded value instead: ns=somc, name=mark, value=0x010805ce

Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.

------------------------------------------------------
[Android Software Development] Rio Rapha:
so after complete decompile , edit drawable , xml , smali , etc then i press Recompile apk and go to the folder 4 and press it to system ??

---------- Post added at 05:37 PM ---------- Previous post was at 05:19 PM ----------

success forgoted place SemcGenericRes
[Android Software Development] secretmyth:
------------------------------------------------------

W: Could not decode attr value, using undecoded value instead: ns=android, name=layoutDirection, value=0x00000003
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_activated, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=touchscreenBlocksFocus, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_activated, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_accelerated, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingMode, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_accelerated, value=0x00000000
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01030253
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:57)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:53)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:60)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:47)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:45)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:49)
at brut.androlib.res.data.value.ResBagValue.serializeToResValuesXml(ResBagValue.java:41)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:565)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:328)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:131)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:101)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)

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

I got this error while decompile.
[Android Software Development] lemach:
Thanks for this tool.

Recompile and sign option do not work properly, only recompile, when signing say that command is not valid...

anyone else?
[Android Software Development] deuce_biggins:
Works properly on my end
[Android Software Development] IgorEisberg:
Version 4.1.0 is broken. I cannot recompile my project properly anymore.

I have this line in "colors.xml":

<color name="semc_theme_accent_color">@com.sonyericsson.uxp:color/semc_theme_accent_color</color><!--Settings-->

(This value is fetched from framework file 2.apk)

While using my modified Keyguard.apk, I get this error:

12-19 21:23:51.152 5736 5736 E AndroidRuntime: Process: com.android.systemui, PID: 5736
12-19 21:23:51.152 5736 5736 E AndroidRuntime: android.content.res.Resources$NotFoundException: Resource ID #0x7f06000e type #0x7 is not valid
12-19 21:23:51.152 5736 5736 E AndroidRuntime:	at android.content.res.Resources.getColor(Resources.java)
...

Also, after recompiling, I can't decompile my project again.

Back to 3.0.0 then...
[Android Software Development] deuce_biggins:
Do you have the correct framework installed? I see "Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01010457". Usually 0x01xxxxxx numbers are coming from framework

4.1 is not broken, BDFreak does not change coding for APKTool...using standard RC3. He makes the process a lot smoother and adds many options for us as users...not to mention a great GUI. When are you getting the Keyguard error?
[Android Software Development] IgorEisberg:
Let me rephrase that: Something within AAT 4.1 is misbehaving.

Explaining you the whole process will be pointless, so I'll just say this: the fact that recompiling with 3.0.0 works as expected while with 4.1.0 I get this error (within the OS, after pushing the modified file to system/priv-app) just proves something is wrong with 4.1.0. Also, once I compile with 4.1.0 I cannot decompile it with this version. (With 3.0.0 I can compile and decompile as many times as I want and always getting the same proper output)

It's a modified Keyguard.apk from KitKat 4.4.4 by the way.

---------- Post added 20th December 2014 at 12:04 AM ---------- Previous post was 19th December 2014 at 11:45 PM ----------

I can confirm that this error happens in 4.1.0 only.

Both 3.0.0 and 4.0.0 gave an output APK of 4,387,271 bytes (works perfectly, can be decompiled again),

While 4.1.0 gave an output APK of 4,393,377 bytes (works improperly and cannot be decompiled).

---------- Post added at 12:12 AM ---------- Previous post was at 12:04 AM ----------

Comparing "build" folders for both 4.0.0 and 4.1.0:

---------- Post added at 12:20 AM ---------- Previous post was at 12:12 AM ----------

I confirmed that the problem is 100% within "apktool.jar". I moved only the "apktool.jar" from 4.0.0 (RC2) and replaced the one in 4.1.0 (RC3) and that made 4.1.0 function correctly.

Also the sizes of the "apktool.jar" files are highly suspicious. RC2 is 8.12MB while RC3 is 5.97MB... 2.3MBs of code removed?
[Android Software Development] bdorr1105:
Tool worked great for me thanks
[Android Software Development] Md Belayet:
Great work :D I like This tool....
[Android Software Development] Inceptic:
I got this error any suggestion how to fix this?
[Android Software Development] 1droidmod:
[MENTION=5078388]BDFreak[/MENTION] Great tool, by far the simplest one I have ever used.

Thanks
[Android Software Development] Jerrykist:
What are have "-v4 -v13" in any folders after recompile?
[Android Software Development] The Sickness:
Did you use 7Zip for anything?
[Android Software Development] BDFreak:
[Tool]Advanced ApkTool v4.1.0[Windows][02/12/2014]

It's just a warning, ignore it.

You have to install proper framework. As it showing that the package id is 2 and if you are trying to decompile an xperia app then you have to install SemcGenericUxpRes.apk.

It's normal, your decompiled apk have these in resource.
[Android Software Development] joeldroid:
[MENTION=5078388]BDFreak[/MENTION]

When I recompile a system app, what option should I use?

Should I sign or not sign?

or Just recompile & zipalign only?
[Android Software Development] BDFreak:
[Tool]Advanced ApkTool v4.1.0[Windows][02/12/2014]

It's good to sign otherwise you may encounter not installing problem and zipalign is optional.
[Android Software Development] BDFreak:
You guys should post this kind of things here http://xdaforums.com/showthread.php?t=1755243, just mention the apktool version in your post (not Advanced ApkTool version).

Check this

And this too
[Android Software Development] Kamy:
Sorry for I posted in wrong thread but I am having a nice experience of modding using this tool. :good:

BTW, I found this apktools which is modified for TW (Samsung) lollipop.

I hope you could help us to repack it based on your tool. Thanks
[Android Software Development] BDFreak:
[Tool]Advanced ApkTool v4.1.0[Windows][02/12/2014]

It's ok, no need to be sorry. Anyways, copy the apktool.jar file from your given link then paste and replace it in my tool folder X:\AdvancedApkTool\1-BDFreak. If you do it, then you will be able to decompile/recompile your files with my tool too.
[Android Software Development] raj_ch2002:
This doesn't work with SecContacts.apk, all others work fine.

Problem with SecContacts.apk, is it decompiles and compiles but the output file is not usable...
[Android Software Development] nambavuong:
sec mms candy.apk can not decom. please fix and support this. TKS for your hard work.

here the log.
[Android Software Development] Kamy:
I hope you don't mind I repacked your tool for Samsung lollipop apps and post it here.
[Android Software Development] tech mashido:
i used your latest apk tool but m not able to recompile a settings.apk file i dono y, i tried 4 times n failed ,

i have attached log file please help .

thanks in advance

http://www.mediafire.com/view/zt1b41fy9cypls2/Settings.apk_-_0-27.txt
[Android Software Development] JoHnNYBlaZE716:
Do you have your frameworks installed?

http://i1370.photobucket.com/albums/ag261/Droid716/JONNY SIG 2_zpsrfigggpi.jpg
[Android Software Development] tech mashido:
yes 1st i installed "framework-res.apk" then only i proceeded for next step.
[Android Software Development] JoHnNYBlaZE716:
What phone are you attempting to make changes to?

http://i1370.photobucket.com/albums/ag261/Droid716/JONNY SIG 2_zpsrfigggpi.jpg
[Android Software Development] tech mashido:
Micromax a116i
[Android Software Development] Inceptic:
But with this warning I can't decompile any app :(
[Android Software Development] Jerrykist:
I has copied "META-INF" folder from original file to re-compile file.
[Android Software Development] STRYDER~007:
Little help please

I'm trying to modify my Framework-res.apk.. I'm using latest advanced apktool version 4.1.0 by [MENTION=5078388]BDFreak[/MENTION]. My problem is Whenever I decompile my framework and recompile it without any changes and push it my system I ended up stuck on bootanimation.. Can someone tell me what am I doing wrong??

P.S. I also tried copying Meta INF folder and AndroidManifest.xml from original framework-res.apk to recompiled framework-res.apk but still no luck..
[Android Software Development] bovirus:
Try to using dos batch and follow the instrcution (1 install framework - 2 select apk - 3 decompile apk - 4 compile apk - 5 sign apk) and check output messages.
[Android Software Development] Rootk1t:
for me flashing stock framework, booting device, and then flashing modified framework helps to avoid bootloop.
[Android Software Development] edzamber:
You need to paste ressources.arsc, Res folder and androimanifest into the old framework-res.apk with 7zip.
[Android Software Development] Rootk1t:
can you explain it in details?
[Android Software Development] edzamber:
1- Decompile your framework-res.apk

2- Modify it as you want

3- Recompile framework-res.apk

4- Open recompiled framework-res.apk with 7zip and exact on your desktop ressources.arsc, androidmanifest and res folder

4- Open original framework-res.apk with 7zip, delete ressources.arsc, androidmanifest and res folder then paste theses you have extracted on your desktop into original framework-res.apk.

5- Make a flashable zip with this framework-res.apk or past it into system/. Next change permissions into rw-r-r, move it into system/framework then reboot.
[Android Software Development] Rootk1t:
smth is not correct. As i modified the framework, why would i need to past files from it in the original one?:rolleyes:
[Android Software Development] edzamber:
Because if not, framework bootloop.
[Android Software Development] SacredDeviL666:
i am unable to recompile the apk :(

attached is the log :(

i am on win 8.1 pro x64

edit:- i have corrected the duplicate strings though

went through so it was the duplicated value conflict.. :D thanks for the app :)
[Android Software Development] Rootk1t:
hm, thx. I will try next time.
[Android Software Development] sameer23:
Apktool 2.0 rc4 is available now!

Rebase your tool to new version
[Android Software Development] alvin551:
Or you could just download it and rename it to apktool.jar and put it in the tools folder :)
[Android Software Development] bovirus:
Yes. Right.
[Android Software Development] varefaz:
i've a problem when i recompile setting.apk. why? There is a strange symbol near the q in the name of " values-?q "

This is the log
[Android Software Development] lollipopocska:
I install framework-res.apk+SemcUxpGeneric.apk and combile SemcUxpGeneric.apk not get error

recompile SemcUxpGeneric.apk get this error pls help me how to recompile SemcUxpGeneric.apk without error?
[Android Software Development] hodragon:
The folder structure should be Settings.apk\res\values\. Did you change anything?

Works amazingly well with Apktool v2.0.p RC4 in my Nexus 5
[Android Software Development] varefaz:
I have delete the values-q and now works amazing... Apktool has created a folder but I don t know why
[Android Software Development] Araib93:
Need help, I cant decompile SystemUI :(

Log attached
[Android Software Development] Araib93:
Can't install SemcGenericUxpRes.apk.. Can anyone explain what I did wrong?

C:\>E:\APK-Multi-Tool\other\apktool if E:\APK-Multi-Tool\other\framework-res.apk

I: Framework installed to: C:\Users\Araib\apktool\framework\1.apk

C:\>E:\APK-Multi-Tool\other\apktool if E:\APK-Multi-Tool\other\semcgenericuxpres

.apk

Exception in thread "main" brut.androlib.AndrolibException: Multiple types: <emp

ty>

at brut.androlib.res.data.ResPackage.addType(ResPackage.java:172)

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

at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:11

0)

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

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

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

at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource

s.java:562)

at brut.androlib.Androlib.installFramework(Androlib.java:473)

at brut.apktool.Main.cmdInstallFramework(Main.java:250)

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

C:\>
[Android Software Development] 4aces:
I'm no expert with decompiling but did you put both frameworkres and twframeworkres in the 2-in folder and install both before decompiling?
[Android Software Development] Araib93:
Thats the problem. I have successfully installed frameworkres.apk but when it comes to SemcGenericUxpRes.apk (we have that instead of twFrameworkRes.apk in Xperia roms) I get the mentioned error.
[Android Software Development] rahul1533:
+1111111
[Android Software Development] 4aces:
What happens when you install it with the regular apk tool via cmd?
[Android Software Development] Araib93:
C:\>E:\APK-Multi-Tool\other\apktool if E:\APK-Multi-Tool\other\framework-res.apk

I: Framework installed to: C:\Users\Araib\apktool\framework\1.apk

C:\>E:\APK-Multi-Tool\other\apktool if E:\APK-Multi-Tool\other\semcgenericuxpres

.apk

Exception in thread "main" brut.androlib.AndrolibException: Multiple types: <emp

ty>

at brut.androlib.res.data.ResPackage.addType(ResPacka ge.java:172)

at brut.androlib.res.decoder.ARSCDecoder.readType(ARS CDecoder.java:132)

at brut.androlib.res.decoder.ARSCDecoder.readPackage( ARSCDecoder.java:11

0)

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

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

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCD ecoder.java:40)

at brut.androlib.res.AndrolibResources.installFramewo rk(AndrolibResource

s.java:562)

at brut.androlib.Androlib.installFramework(Androlib.j ava:473)

at brut.apktool.Main.cmdInstallFramework(Main.java:25 0)

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

C:\>

is the output of cmd not apktool, by using apktool it gives no error when installing but when I try to decompile an apk it says Completed : Yes but Successful : No

Possibly something that has to do with SemcGenericUxpRes.apk having a null method or something. Everytime I tried I got that error.. Also I am not the only one facing this issue I have read on other threads that people are having problems when trying to decompile Sony Stock apps.
[Android Software Development] 4aces:
Did you try "ticklemyandroid" it says Sony framework should work. I can't really help since I don't have a Sony... Sry
[Android Software Development] Araib93:
I will try that and no problem mate I am glad you helped :good:
[Android Software Development] 4aces:
You have to take framework-res and twframework-res. out of your Rom (if it's Samsung) and place them in the same folder with the apk you want to decompile. Then choose option 1. and install both frameworks after another.