yashsingh1/xdaforums huggingface dataset:
[Android Software Development] abhatia1435:
Getting Error:The syntax of the command is incorrect while recompiling Sony's home-release.apk . After building apk it shows error. Just one line. Everything is correctly installed. Please help.
[Android Software Development] :
What apktool are you using
[Android Software Development] darioampuy:
2.0.0... it doesn't like the cm12.1S framework either... i'll have to wait for a newer release

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

fixed it... corrupted framework file from the phone...
[Android Software Development] :
You need the 2.0.0 snapshot for Android 5.1 or 2.0.1
[Android Software Development] Ticklefish:
This looks very cool..and very useful. Nice work. :good:

I hate to be 'that guy' though but I'm going to have to ask that you mention Tickle My Android somewhere in your op.

Speaking of TMA, I'd love to include this in the next version. With you properly credited of course. It's up to you though. :cool:
[Android Software Development] BDFreak:
:good:

:good:

:good:

:good:

:good:

I would love too. Check OP...
[Android Software Development] SXUsr:
[MENTION=5078388]BDFreak[/MENTION] Finally made some progress with Apktool 2.0.0 Beta 9, it no longer gives the "empty" error so I can now install the SemcGeneric from the Z1C and my rebuilt framework works. I've not used your tool so maybe others could try replacing the apktool.jar with the beta 9 as I've done my fair share of restoring for now.
[Android Software Development] BDFreak:
Advanced ApkTool v2.0.0 By BDFreak

Advanced ApkTool v2.0.0

Changelog :

v2.0.0 :

Added Support For JAR Files

Added "Zipalign Files" Option

Added "Wipe Folders" Option

Fully Support Xperia Z1 Compact's Files

Download :

v2.0.0 :

Advanced ApkTool v2.0.0 By BDFreak.rar
[Android Software Development] WhiteNeo:
I can't seem to get this to work on Windows 8.1...

Both JRE and SDK are installed, but still I get an error about missing Java Environment upon starting your tool.. :(
[Android Software Development] Nikunj Kubadia:
Mate!!

You should install Jre ie Java Runtime Environment 32-Bit although you have 32-bit OS or 64-bit OS :) otherwise Apktool will show error ie "Java Missing blah blah."

Here's the Link:- http://filehippo.com/download_jre_32

Download and install and thn restart your PC and check , i hope it will work!! ;) :)

Please Leave Your Feedback :D
[Android Software Development] WhiteNeo:
Thanks man! Works now :)
[Android Software Development] glfsd:
great work! :good:

the only tool that did not give me error to recompile my LGSettings3_2.apk.

small issue, I noticed that when recompile LGSettings3_2.apk, he changes me arrays.xml

from

<item><font size=16 align=middle>Small</font></item>
<item><font size=18 align=middle>Normal</font></item>
<item><font size=21 align=middle>Large</font></item>
<item><font size=24 align=middle>Extra large</font></item>

to

<item>&lt;font size=16 align=middle>Small&lt;/font></item>
<item>&lt;font size=18 align=middle>Normal&lt;/font></item>
<item>&lt;font size=21 align=middle>Large&lt;/font></item>
<item>&lt;font size=24 align=middle>Extra large&lt;/font></item>

any solution?
[Android Software Development] karo222:
Still Got error

Hi

I have yet problem with compiling and decompiling

this is screen shot and logs

compiling

​

recompile

http://upir.ir/files92be/724b229ac6bb.png​
[Android Software Development] steveboss:
Thanks bro for your hard work...
[Android Software Development] Nikunj Kubadia:
Hello!! :)

Install all the framework files properly. In my case(Xperia) they are framework-res.apk and SemcGenericUxp.apk

Try and Leave Your Feedback :)
[Android Software Development] NewBieSS:
i am using apktool, cygwin,.... normally. Windows 8 64bit.

Solved :)
[Android Software Development] Crash:
Awesome tool thanks for share buddy

Sent from my Xperia Tab Z
[Android Software Development] a546109781:
done.thx.
[Android Software Development] Wechy77:
[MENTION=5078388]BDFreak[/MENTION]

I use your great app. Today I tried to update v1 to v2 and norton antivirus tells me, that decompilefile.exe and recompilefile.exe is infected with "Suspicious.Cloud.5" and norton takes it automatic into quarantine. With v1 I have no problem.
[Android Software Development] BDFreak:
I can assure you that it's totally false positive detection. There's is no virus in these files. If you have doubt then just use Shift+Delete+Enter.
[Android Software Development] Wechy77:
Than I add it to ignore this files in Norton, thanks for the answer
[Android Software Development] Ticklefish:
Have you tried deleting those folders?
[Android Software Development] DaRk-L0rD:
Thanks for this one mate!

Also on Xda Portal : http://www.xda-developers.com/android/advanced-apktool-lets-you-modify-newer-xperia-framework-files/

Congrats ;)
[Android Software Development] Lasantha:
i get this on xperia Z2

Log For : framework-res.apk

Log Type : Decompiling

Log Recorded At : Tue 30-06-2015 11:07:10.43

Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak

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

W: Could not decode attr value, using undecoded value instead: ns=somc, name=extendedLookAndFeel, value=0xffffffff

W: Could not decode attr value, using undecoded value instead: ns=somc, name=extendedLookAndFeel, value=0xffffffff

W: Could not decode attr value, using undecoded value instead: ns=somc, name=extendedLookAndFeel, value=0xffffffff

W: Could not decode attr value, using undecoded value instead: ns=somc, name=extendedLookAndFeel, value=0xffffffff

W: Could not decode attr value, using undecoded value instead: ns=somc, name=extendedLookAndFeel, value=0xffffffff

W: Could not decode attr value, using undecoded value instead: ns=somc, name=extendedLookAndFeel, value=0xffffffff

W: Could not decode attr value, using undecoded value instead: ns=somc, name=extendedLookAndFeel, value=0xffffffff

W: Could not decode attr value, using undecoded value instead: ns=somc, name=drawable, value=0x0108030e

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=extendedLookAndFeel, value=0xffffffff

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

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

pls help
[Android Software Development] kevin0905:
The tool works fine for decompiling and recompiling SystemUI.apk. After I do adb push and restart the app, my changes go through and everything works as intended. However, after I restart the phone, SystemUI doesn't load at all. I tried flashing it signed, not signed, nothing works. Am I doing something wrong? Titanium backup tells me I don't have SystemUI installed after reboot but SystemUI.apk is there in /system/priv-app/SystemUI/

edit: fixed by clean reinstall and flash...
[Android Software Development] Rajeev:
[MENTION=5078388]BDFreak[/MENTION] my friend

Please see this image..

PC Config is Windows 8.1 , Java latest version installed, java path is already defined , Disabled Signature verification for windows 8.1 already. Please help :D

EDIT:-

=====

Confirmed. After modding and without reboot its working, After a reboot i can't see my modded app. Tried with almost all apks. Lolipop Xperia Z2
[Android Software Development] Saelfos Emaka:
Thank you ,its unbelevably helpful!

but may you update it , like basing it on a newer apk tool....

because i am having some problems decompiling some apps like sony whats new app.....

could newer apk tool decompile it?

Do you know any possible resaon for this, how can decompile it?

help please
[Android Software Development] Rootk1t:
It's very easy to update yourself. Just download latest apktool here, rename it to apltool.jar and copy to AdvancedApkTool\1-BDFreak\ overwriting the existing file.
[Android Software Development] Saelfos Emaka:
Wow! Thanks man, you're awesome.
[Android Software Development] Er. Aditya:
how to update smali and back smali in this tool ?
[Android Software Development] leo.riv:
When Decompile Settings.apk it work fine but when Decompile SystemUI.apk show this error

Log For : SystemUI.apk

Log Type : Decompiling

Log Recorded At : 07-07-2015 -- 22:26:34.32

Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak

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

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

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

Please help me also attach my SystemUI.apk & framework-res.apk

View attachment 2-In.zip
[Android Software Development] Rootk1t:
i don't know device you are using, but for Sony you should install SemcGenericUxpRes.apk and framework-res.apk to decompile files properly.
[Android Software Development] anagramgenius:
You can't. The apktool dev has to update it. apktool v2 uses 2.0.5. Smali baksmali current version is 2.0.6.
[Android Software Development] :
Are you serious?

http://xdaforums.com/showthread.php?p=61710984

Don't tell false info here. Its easy peasy
[Android Software Development] anagramgenius:
False info? Easy peasy huh? Lol. Did you even read what I wrote? He is asking about smali and baksmali. And not apktool. BDFreak's tool doesn't use smali baksmali directly. It uses apktool.
[Android Software Development] :
Oh my apologizes to you sir, must read wrong
[Android Software Development] AxAtAx:
Looking forward to an update to this awesome tool, I use no others.....:good::good:
[Android Software Development] Josephigloe:
@BFFreak can you please help me I am unable to decompile systemUI.apk I have framework installed but i always get this error "The system cannot find the path specified" I know you are busy I have searched XDA high and low but i can't figure out, I am on note 3 sprint oc5 lollipop n900p,

Thank You for any info.
[Android Software Development] Rootk1t:
You have java problems, or app working directory deleted or renamed. See error "The directory name is invalid"
[Android Software Development] Josephigloe:
Thanks [MENTION=5292989]Rootk1t[/MENTION] I am new to this so i have no idea what I'm doing.
[Android Software Development] Near_07:
2 - recompile and then sign -Error signing

sir [MENTION=5078388]BDFreak[/MENTION]

recompile successful but error in signing, .

however after recompiling choosing 4 - Sign files, signing is successful .

what shud i do to fix this option number 2
[Android Software Development] tonysansone:
Copy Advanced ApkTool v4.1.0 in C: and it will works ;)
[Android Software Development] Near_07:
thanks it works :)
[Android Software Development] Rootk1t:
Version with latest Apktool 2.0.1
[Android Software Development] Near_07:
Any changelog?
[Android Software Development] Er. Aditya:
and smali /backsmali ?
[Android Software Development] bovirus:
[MENTION=6008647]Near_07[/MENTION]

Please read the post before. Just change apktool.jar. For changelog about apktool.jat check in relative thread (ibotPeaches)

[MENTION=5750672]Er. Aditya[/MENTION]

Please read the apktool.jar thread.

apktools.jar already include baksmal.jar/smali.jar
[Android Software Development] Rootk1t:
Contains latest APKTool.
[Android Software Development] santacruzdz:
I'm having troubles decompiling , it says path not specified and not recognized as internal command, althought I have java installed and set path, see screenshots. Im running Windows 10 64 any help would appreciable, thanks!
[Android Software Development] _Sofos_:
Uhmm changed manually apktool.jar to the latest version (2.0.1), even tried with the version uploaded some posts above just in case but still..

I cannot recompile framework-res.apk. Decompiling is ok but recompiling (even without a single change) gives me the error below.

Win10 x64, added both framework and twframework. 5.0.1 recompiles correctly, 5.1.1 does not. Any ideas?

Thank you in advance.

Log For : framework-res.apk

Log Type : Recompiling

Log Recorded At : ãà? 09-04-2015 21:05:39,01

Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak

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

W: Could not find sources

C:\AdvancedApkTool\3-Out\framework-res.apk\res\drawable-sw360dp-xxxhdpi-v13\ic_knox_badge.PNG: error: File is case-insensitive equivalent to: C:\AdvancedApkTool\3-Out\framework-res.apk\res\drawable-xxxhdpi-v4\ic_knox_badge.png

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\Lazaros\AppData\Local\Temp\brut_util_Jar_1305422233357119809.tmp, p, --forced-package-id, 1, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-N910FXXU1COH4, -F, C:\Users\Lazaros\AppData\Local\Temp\APKTOOL2978724596007920678.tmp, -x, -0, arsc, -S, C:\AdvancedApkTool\3-Out\framework-res.apk\res, -M, C:\AdvancedApkTool\3-Out\framework-res.apk\AndroidManifest.xml]

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

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

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

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

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

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

Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\Lazaros\AppData\Local\Temp\brut_util_Jar_1305422233357119809.tmp, p, --forced-package-id, 1, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-N910FXXU1COH4, -F, C:\Users\Lazaros\AppData\Local\Temp\APKTOOL2978724596007920678.tmp, -x, -0, arsc, -S, C:\AdvancedApkTool\3-Out\framework-res.apk\res, -M, C:\AdvancedApkTool\3-Out\framework-res.apk\AndroidManifest.xml]

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

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

... 5 more

Caused by: brut.common.BrutException: could not exec command: [C:\Users\Lazaros\AppData\Local\Temp\brut_util_Jar_1305422233357119809.tmp, p, --forced-package-id, 1, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-N910FXXU1COH4, -F, C:\Users\Lazaros\AppData\Local\Temp\APKTOOL2978724596007920678.tmp, -x, -0, arsc, -S, C:\AdvancedApkTool\3-Out\framework-res.apk\res, -M, C:\AdvancedApkTool\3-Out\framework-res.apk\AndroidManifest.xml]

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

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

... 6 more

------------------------------------------------------
[Android Software Development] The Sickness:
Delete knox.badge. Then recompile
[Android Software Development] _Sofos_:
:good: Deleted both knox.badge .png's, got error again, deleted their .xml's in res/values/public.xml and succesfully recompiled.

Thank you!

PS. As you can see i've no idea how to read logs so I simply decided to post before deleting something that could be important! :p
[Android Software Development] The Sickness:
Np, we all started somewhere.
[Android Software Development] Er. Aditya:
first time i have tried 64 bit win 8 and i am facing this issue while recompiling

dsnt even builds an apk
[Android Software Development] anhtuan.uct:
How can fix: Complete: Yes

Success: No
[Android Software Development] Rootk1t:
[MENTION=3763410]anhtuan.uct[/MENTION]

Try using updated version of this tool. Uploaded here.

From your screenshot, you're using 2.0.0-RC3 which is outdated and may not work well with LP 5.0.2-5.1.1 ROMs.

Also unpack archieve to a folder without spaces in path, like D:\AdvancedApkTool\
[Android Software Development] Gggggas:
Did you guys find a solution for this? I'm also flashing the modded systemui but when the phone boots I have no status bar, like systemui isn't working... Btw I have the latest version of this tool.
[Android Software Development] edzamber:
Did you replace META-INF and AndroidManifest.xml into your recompiled SystemUI by orignals ones with 7zip ?

If not try it [emoji6]
[Android Software Development] Gggggas:
Thanks for your answer :) To give you a better picture, I have a flashable systemui zip which I want to mod so it will have the 3minit quick launcher. I decompile the systemui inside it, add the wanted line by following 3minit guide, save and then recompile.

After that, I replace the systemui inside the zip with my modded one.

At first, after I flashed it the system booted but with no status bar.

After replacing the meta and manifest from the original systemui to the one I modded, I now get a systemui FC when I boot.

Am I doing anything wrong?

Thanks
[Android Software Development] edzamber:
Did you replace with 7zip (delete META-INF and AndroidManifest.xml in your modded SystemUI.apk, then open original one, past META-INF and AndroidManifest.xml on your desktop, then drag them into your Modded SystemUi.apk)?
[Android Software Development] Gggggas:
Yes that's exactly what I did. As I previously wrote, I am getting a systemui FC.

Should I zipalign and sign it maybe?
[Android Software Development] edzamber:
Nope, signing apk is already done with past META-INF and AndroidManifest.xml.

No need to zipalign.

I think there is an error with files you modify (xml or smali)
[Android Software Development] balla48801:
Sign it and that should fix it. I had the same problem with just those 2 apps and legacyincallui where copying the META and manifest did not work properly. Just use apktool to sign the apps and it should work.
[Android Software Development] edzamber:
[MENTION=5597804]Gggggas[/MENTION],

Check your PM ;)
[Android Software Development] Rootk1t:
[MENTION=5597804]Gggggas[/MENTION]

Don't forget to wipe Dalvik cache.;)
[Android Software Development] Rootk1t:
Updated Version with latest Apktool

2.0.2

.
[Android Software Development] Er. Aditya:
anything else then replacing apktool my friend ?
[Android Software Development] Rootk1t:
Nope. Because practically all functional is inside apktool.jar.

v 2.0.2 changelog:

#1005 - Fixed issues with apks that used .9.xml files which improperly triggered 9patch decoder.

#1020 - Fixed issues with compressing resources that shouldn't be. (Thanks agrieve)

#1023 - Fixed issue with reference attributes being decoded improperly. (Thanks phhusson)

#928 - Fixed issue with version qualifiers being added on build.

#999 - Added support for Android Marshmallow.

Updated smali/baksmali to 2.0.8
[Android Software Development] ROBERT CM:
Great Work..!!

You are Awesome.. :D:D:D

Thanks for this tools
[Android Software Development] kapilrtn:
i got error when Compile apk

'mode' is not recognized as an internal or external command,

operable program or batch file.
[Android Software Development] levone1:
Everything goes seemingly normal, and even get 'success' message, but when I go to '3- out' folder, and view decompiled apk, all that is there is one file, 'android manifest XML', and it's 0 bytes. This is the case with framework res, as well as any other apks. I'm hoping ultimately to replace styles xml for certain apps with nodded ones

Xperia Z1c, stock 5.1, deodexed.

Thanks for any help.
[Android Software Development] Er. Aditya:
which apktool version your using ?
[Android Software Development] levone1:
4.1.0, from first page of this thread.
[Android Software Development] Er. Aditya:
try the one attached in this post on previous page.... as your using 5.1 you will need this

do rply back if everything sorts out
[Android Software Development] levone1:
Thanks. I'm away from the computer ATM, but I'll keep you posted.

---------- Post added at 11:05 PM ---------- Previous post was at 11:03 PM ----------

BTW, I'm using this now after giving up on trying to make the mobile version work. Do you know of any versions or methods to do it on the phone with 5.1?
[Android Software Development] Er. Aditya:
i think i have it on my office desktop will pm you later ...you can try that bro :)
[Android Software Development] levone1:
Much better. Still have some issues, but I think it's bc of my framework file. App seems to be working right, now.
[Android Software Development] Rootk1t:
1).Try updated version.

2). Install all the necessary frameworks (i don't know for samsung, but for Sony i install two of them to decompile apks properly.)

3). Instead of signing via tool, do this:
[Android Software Development] akky26:
1st of all thanks a million for making this tool.

Suggestion- please make it work for SystemUI.apk too .

:good: :good:
[Android Software Development] newguyknowsnothing:
thanks
[Android Software Development] vobiscum:
Hi guys i use this tools for com.android.systemui.apk but not work ..

Log:

Log For : com.android.systemui.apk

Log Type : Decompiling

Log Recorded At : 09 2015-11- 16:26:41,33

Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak

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

Exception in thread "main" brut.androlib.AndrolibException: Multiple res specs: drawable/stat_sys_data_fully_connected_lte
at brut.androlib.res.data.ResType.addResSpec(ResType.java:62)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:219)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:191)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:159)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:116)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:544)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:63)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:55)
at brut.androlib.Androlib.getResTable(Androlib.java:65)
at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:197)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:96)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)

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

i have same error with step 1 "install framework"

on Honor 7 i have two frameworkres apk

framework-res.apk

framework-res-hwext.apk

Android 5.0.2

any suggestion ?

many thanks
[Android Software Development] akky26:
This tool is only for decompiling framework

Second install framework-res.apk
[Android Software Development] Rootk1t:
try updated version.
[Android Software Development] vobiscum:
already update. Same error on VM linux..

Fix. Thanks
[Android Software Development] Aonja:
In next version , if possible please added choice for user can choose version apktool.jar will great
[Android Software Development] Rootk1t:
what's the reason for that?

Advanced ApkTool uses version of apktool that is placed in folder \AdvancedApkTool\1-BDFreak\.

If you want use another one, just replace it manually with that you need.
[Android Software Development] User_99:
Great tool. Easy to use. Thx very much!
[Android Software Development] XDAMaxe:
nope, you can de- and recompile nearly every apk if you know which framework(s) you have to install before.

i.e. if you run a tw rom you have to install default framework-res.apk and twframework-res.apk.

so you can i.e. de- and recompile secsettings.apk, systemui.apk, contacts.apk or of course framework-res.apk
[Android Software Development] jafar.iqbal:
I can decompile recompile framework-res.apk of my dell venue 7 3730 tablet. The problem arises when i push the recompiled framework-res.apk to the device, the device starts up but upon unlocking the lockscreen hangs ie a blank screen and none of the buttons work except power button. I hav followed and tried everything on this thread and a few of my own bt still there is no way to make my edited frameworkres file to work

Ps: i had edited the allow sms and allow phone call permissions of the bools.xml through notepad ++ to true.
[Android Software Development] ravian29:
same happened to me, wasted my 2 days and then found out i was not recompiling with original signature, you try it with orignal signature and then push it to device and see if it works
[Android Software Development] jafar.iqbal:
How

U see i hav already done everything mentioned in this thread...so i dnt know what to do more

Pls help me as m noob