[GUIDE4EVERYONE] Auto APK tool - Samsung Galaxy Fit GT 5670

Hi guys,
I see there is no noob-friendly tut for APK tool in our forum..So people like me get bored to read the commands...Here is one to make you familiar with a new tool AUTO APK TOOL (Its old but I don't see anyone using it)....
Its automated version of APK tool which makes your work very easy and No knowlege of Codes to decompile and cmd Commands are necessary.......
​
Well So here We start....
Code:
Pre-Requirements:
A PC :p
Auto ApkTool
Java JDK/JRE 32 bit
So here we get started...Get Auto apk tool from the link posted above by me...
Extract the package and copy it to Root of C drive like THIS:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Then copy your APK files to Auto apk tool>>Input_APK....
Now in the Auto apk tool folder open the Autoapktoolmain batch file...You don't need to open cmd and give commands:victory:...
There just take a look that all the options are automated for you right from ADB/Decompile-Recompile to FW dependencies....
Now press 6 i.e. option to Decompile...
You don't need to give commands Just drag the apk from Input_apk folder to cmd...No commands here too ...
Now you can see The decompiled apk in input_apk folder...MOD it as you want:good:....
After Done Just open cmd again...Press 7 to recompile...The recompiled APK is generated in decompiled folder inside a new folder called dist...
Now you can see your app...If its system app don't sign it otherwise let the RE-compiled app remain as it is and Select "Sign APK or ZIP' in cmd...The signed apk is generated in the same dist folder...:good:
​
I hope its really easy for anyone ....Any problems let me know...
CREDITS:
XDA
Maker of Auto APK tool
Me
​

Really nice work sir.. glad to see you sharing your expirence..

Great guide Sir,but i've got a problem re-compiling the APK's,i already installed java and i"m running on windows 7 32bit..
Here's My Log:
[*] C:\AutoAPKTool2.0.4\_INPUT_APK\SoundEnhancement
recompiling C:\AutoAPKTool2.0.4\_INPUT_APK\SoundEnhancement...
Exception in thread "main" brut.androlib.AndrolibException:
brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput
(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
The system cannot find the drive specified.
i wonder what might be the problem..waiting for your reply sir..Thanks in advance!

vampent0026 said:
Great guide Sir,but i've got a problem re-compiling the APK's,i already installed java and i"m running on windows 7 32bit..
Here's My Log:
[*] C:\AutoAPKTool2.0.4\_INPUT_APK\SoundEnhancement
recompiling C:\AutoAPKTool2.0.4\_INPUT_APK\SoundEnhancement...
Exception in thread "main" brut.androlib.AndrolibException:
brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput
(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
The system cannot find the drive specified.
i wonder what might be the problem..waiting for your reply sir..Thanks in advance!
Click to expand...
Click to collapse
afaik apktool.yml file in decompiled folder is missing...Cause its written reason in log as u can see in this line :
Code:
Caused by: brut.directory.PathNotExist: apktool.yml

Crytech007 said:
afaik apktool.yml file in decompiled folder is missing...Cause its written reason in log as u can see in this line :
Code:
Caused by: brut.directory.PathNotExist: apktool.yml
Click to expand...
Click to collapse
So,what can you suggest to do?

vampent0026 said:
So,what can you suggest to do?
Click to expand...
Click to collapse
it seems you are trying to decompile system app file!
For that you will have to install framework-res.apk from your phone
Sent from my C2104 using Tapatalk

Crytech said:
]http://img600.imageshack.us/img600/7369/79244769.png[/IMG]
Click to expand...
Click to collapse
links nt working .. ;(

anu.cool said:
links nt working .. ;(
Click to expand...
Click to collapse
Ya images are broken will fix
Sent from my C2104 using Tapatalk

hi when i enter the AUTOApkToolMain i get message saying jave not found i wil not be able to sign apks, but i installed java. on my computer i have in program files folder called java with "jdk-7u51-windows-i586" inside along with 2 folders "jdk1.7.0_51" and "jre7" does anyone know whats wrong,
i have-
win xp
service pack 3 build 2600
x86based pc
32bit

@Crytech - Im using Ubuntu 12.04.. Can you suggest a similar tool for linux??

markb323 said:
hi when i enter the AUTOApkToolMain i get message saying jave not found i wil not be able to sign apks, but i installed java. on my computer i have in program files folder called java with "jdk-7u51-windows-i586" inside along with 2 folders "jdk1.7.0_51" and "jre7" does anyone know whats wrong,
i have-
win xp
service pack 3 build 2600
x86based pc
32bit
Click to expand...
Click to collapse
http://www.robertsindall.co.uk/blog/setting-java-home-variable-in-windows/
Dhanesh95 said:
@Crytech - Im using Ubuntu 12.04.. Can you suggest a similar tool for linux??
Click to expand...
Click to collapse
Tried running on wine?
It should work with no problems imo

Harpratap said:
http://www.robertsindall.co.uk/blog/setting-java-home-variable-in-windows/
Tried running on wine?
It should work with no problems imo
Click to expand...
Click to collapse
I tried running it using wine... It wont work..

Related

[TUTORIAL] How to Decompile and Recompile ICS .Apk Files][Easy ONE]

This is an Easy Tutorial, How to Decompile .apk and Recompile .apk Files​If u like this Tutorial, Hit THANKS Button​CREDITS
Memnoc - For Gud Ideas.
Xavierjohn22 - the amazing author of AutoApktool go Here, Hit thanks to Him Too.
Sandy7-For Motivation.
Requirements
Java (last version)
JDK (last version)
JDR (last version, usually included in JDK or Java)
Auto_Apktool 2.0.0 (DOWNLOAD THIS ONE NOT OTHERS)
HOW TO DO
NOTE: before start, select Apktool version with option 21, YOU MUST CHOOSE 1.4.1 version
1) Download and simply unpack Auto_ApkTool
2)Click on "autoapktoolmain.bat", prompt will open
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
3)put the apk you want to EDIT, in "_INPUT_APK"
4) Nw u Should Choose "option 6" for 'decompiling .apk
5) when option 6 is being selected, drag the apk from _INPUT_APK folder into the windows prompt and click enter
6) A Note window will appear, and will show IF the decompiling process has been done properly. Once you close that window, you will see the decompiled folder in _INPUT_APK folder
7) do your edits (xml, smali, or png, WHATEVER)
8) recompile with option 7 (NOTE: this time you MUST drag all the FOLDER, NOT the apk)
9) Once recompiling finished, u will Get a Dcompiled NOTE window that Shows your apk is sucessfully Compiled, Close that Window, Once open the decompiled folder, go to "dist" folder, and here you got your edited apk
10) NOW this is the Last step, since u cannot Sign System app, u will have to Copy the META-INF foldrer frm the Orginal apk to the edited apk, for more Info See the "Screen"
11) Rename the apk if Needed, and push it.
Reserved, for making how to decompile and recompile .jar files,soon
Reserved 2, if I get time I wil add a video tutorial too!
FAQ's​Why can't we use Apktool???
Well, you can, but it's more difficult, that's it.
Why do you say "must use 1.4.1 apktool version"??
The reason why is that since 1.4.2 version, apktool generate java code while recompiling process is going on, and this lead to errors that 9/10 makes decompile process fail
Nice learning, but Does it only work for editing or changing the user interface (lke smile, png) of apk file?
x.r3y said:
Nice learning, but Does it only work for editing or changing the user interface (lke smile, png) of apk file?
Click to expand...
Click to collapse
That's the decompiling ment for !
StAnLiN
stanlin salu said:
That's the decompiling ment for !
StAnLiN
Click to expand...
Click to collapse
During recompile framework.apk an error. w: could not find sources how fix this error....plz help bro thanks.
Aeron sagar said:
During recompile framework.apk an error. w: could not find sources how fix this error....plz help bro thanks.
Click to expand...
Click to collapse
Just check whether u have got any apk in "dist' folder?????
Sent from my Xperia Live with Walkman using Tapatalk 2
stanlin salu said:
Just check whether u have got any apk in "dist' folder?????
Sent from my Xperia Live with Walkman using Tapatalk 2
Click to expand...
Click to collapse
yes bro apk in dist but it gives bootloop ...
Aeron sagar said:
yes bro apk in dist but it gives bootloop ...
Click to expand...
Click to collapse
Now u have to add META-INF folder from the original .apk !
Sent from my Xperia Live with Walkman using Tapatalk 2
stanlin salu said:
Now u have to add META-INF folder from the original .apk !
Sent from my Xperia Live with Walkman using Tapatalk 2
Click to expand...
Click to collapse
Bro I have added the meta inf folder that's not matter but recompiling W: could not find sources and the system cannot find the drive specificied . Two errors how to fix...
If I want to install android SDK?
Aeron sagar said:
Bro I have added the meta inf folder that's not matter but recompiling W: could not find sources and the system cannot find the drive specificied . Two errors how to fix...
If I want to install android SDK?
Click to expand...
Click to collapse
Haha, don't worry that's not an error, the path of dist was manually set so u get that message, actual 'errors' u will get under these note (if u have committed any error in editing), if get only these messages then ur apk is successfully recompiled :thumbup:
Sent from my Xperia Live with Walkman using Tapatalk 2
Teach me
guys i dont even get a stightest idea to decompile and recompile......... is there any application which can look into .apk files and also allow it to edit???????
Can decompile but can't recompile.
[*] C:\AutoAPKTool2.0.4\_INPUT_APK\BlueTheme
recompiling C:\AutoAPKTool2.0.4\_INPUT_APK\BlueTheme...
I: Smaling...
I: Building resources...
I: Building apk file...
The system cannot find the drive specified.
Have the dist file but the file less 1 MB than the original file.
Ben Ling said:
Can decompile but can't recompile.
[*] C:\AutoAPKTool2.0.4\_INPUT_APK\BlueTheme
recompiling C:\AutoAPKTool2.0.4\_INPUT_APK\BlueTheme...
I: Smaling...
I: Building resources...
I: Building apk file...
The system cannot find the drive specified.
Have the dist file but the file less 1 MB than the original file.
Click to expand...
Click to collapse
i dont see any error in it...its done recompiling ...
ya the size will be reduced based on ur apk tool compression level
while recompiling it shows error,.... "destination could not be found "
Thank you very much for the tutorial.. very helpful... :laugh:
I don't think so it works for JB
Can't decompile SystemUI of JB.
[*] "E:\Android stuff\AutoAPKTool2.0.4\_INPUT_APK\SystemUI.apk"
decompiling "E:\Android stuff\AutoAPKTool2.0.4\_INPUT_APK\SystemUI.apk"...
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
Click to expand...
Click to collapse
androidnerd2 said:
I don't think so it works for JB
Can't decompile SystemUI of JB.
Click to expand...
Click to collapse
try this both update ur aapt or install the proper framework's first
thank her tutorial ata friend
Sent from my Xperia Tipo using XDA Premium 4 mobile app

[GUIDE] LG UI 2.0 weather widget porting guide to all roms

Hi all
This is the guide to port LG weather widget found in optimus black to all roms like cm7
Requirements-
*A nice working rooted mobile phone
*A working PC with java installed
*apktool-[Simple guide by PulseDroid]
Note :This Guide is only for android 2.3 because many people having errors on android 4.0+. Sorry I have no workthrough . Try this widget . It's the widget from LG UI 3.0.
Procedure-
*Extract framework.jar from /system/framework/ through any root file manager.
*Decompile it through apktool, a newly created framework.jar.out will be there.
Code:
apktool d framework.jar
*Download LG smali.zip from attachment and extract it
*Copy "lge" from com folder of LG smali and paste it in framework.jar.out/smali/com ( in apktool folder )
It must be like this "framework.jar.out/smali/com/lge"
*Compile framework.jar.out
Code:
apktool b framework.jar.out
*Push the newly compiled framework.jar from apktool/framework.jar.out/dist into your phone's /system/framework directory
*Reboot your phone.Don't worry it will take time to reboot.
*Lastly Download the widget from here and install as regular app
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hi devilex94. Thank you for post on the other thread about the solution to my problem, but after read your guide I got really confused .
I don't know how to use apktool (already looked on XDA and Google but nothing is easy to understand). Went to cmd but it says that the path isn't right (grrr)...
I believe this really helps who understands programming but I don't know how to change frameworks :-/ already root my device, already extracted framework.jar from system... but after that I got stuck
Tsukidi said:
Hi devilex94. Thank you for post on the other thread about the solution to my problem, but after read your guide I got really confused .
I don't know how to use apktool (already looked on XDA and Google but nothing is easy to understand). Went to cmd but it says that the path isn't right (grrr)...
I believe this really helps who understands programming but I don't know how to change frameworks :-/ already root my device, already extracted framework.jar from system... but after that I got stuck
Click to expand...
Click to collapse
in the first command he forgot an "r" : framewok instead of framework.
your problem is that you need to cd to the directory of apktools. If the apktools is in C drive , the command is cd C:\apktools or any folder that is it in. if you have it in a series of folders it should be cd C:\your path to apktools and then do this tut.
Al3x_M1ni_B0ss said:
in the first command he forgot an "r" : framewok instead of framework.
your problem is that you need to cd to the directory of apktools. If the apktools is in C drive , the command is cd C:\apktools or any folder that is it in. if you have it in a series of folders it should be cd C:\your path to apktools and then do this tut.
Click to expand...
Click to collapse
Thanks for telling me my mistake.
I have corrected my mistake
Great for this
Thx
Getting following error.
RM57380 said:
Great for this
Thx
Click to expand...
Click to collapse
C:\Android\apktool>apktool b framework.jar.out
I: Checking whether sources has changed...
I: Smaling...
Exception in thread "main" org.jf.dexlib.Util.ExceptionWithContext: method index
is too large.
at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithCont
ext.java:54)
at org.jf.dexlib.Item.addExceptionContext(Item.java:176)
at org.jf.dexlib.Item.writeTo(Item.java:119)
at org.jf.dexlib.Section.writeTo(Section.java:119)
at org.jf.dexlib.DexFile.writeTo(DexFile.java:716)
at brut.androlib.src.DexFileBuilder.getAsByteArray(DexFileBuilder.java:7
5)
at brut.androlib.src.DexFileBuilder.writeTo(DexFileBuilder.java:58)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
at brut.androlib.Androlib.buildSources(Androlib.java:179)
at brut.androlib.Androlib.build(Androlib.java:170)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: java.lang.RuntimeException: method index is too large.
at org.jf.dexlib.Code.Format.Instruction35c.writeInstruction(Instruction
35c.java:102)
at org.jf.dexlib.Code.Instruction.write(Instruction.java:57)
at org.jf.dexlib.CodeItem.writeItem(CodeItem.java:258)
at org.jf.dexlib.Item.writeTo(Item.java:116)
... 12 more
code_item @0x1b3274 (Landroid/Manifest$permission;-><init>()V)
C:\Android\apktool>
Working great in Galaxy S2 with Biftor Rom
framework.jar.out
When I decompile framework.jar, I only get apktool.yml in the out folder. There are no directories like smali. Do I need to create those and then copy the LGsmali?
Great ! this is really nice !
Do you have the same solution to port the Samsung Weather/Clock widget from GS3 to any roms ?
Thanks
I tried the tutorial, installed the apk after but widget doesn't seem to fully load???
Sent from my GT-I9300 using xda premium
"Dist" is not created in my case
*Push the newly compiled framework.jar from apktool/framework.jar.out/dist
************************************************************************************************************************
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\user>cd..
C:\Users>cd..
C:\>cd 'apktool'l/'directory'
The system cannot find the path specified.
C:\>cd android/apktool
C:\android\apktool>apktool d framework.jar
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78
0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
C:\android\apktool>apktool b framework.jar.out
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
********************************************************************************************************************************************
Is sumthng went wrong in above process?
Congratulation...!
Wow !... This Post is Featured in Xda Portal Nice Work .........
I wrote about this long time ago, more manual method if you want or if you are having problem with this...
http://forum.xda-developers.com/showthread.php?t=1626497
Enviado desde mi One S usando Tapatalk 2
Originally posted by y2quila
I tried the tutorial, installed the apk after but widget doesn't seem to fully load???
Click to expand...
Click to collapse
It will load if you have followed the guide properly
Black_Lion said:
"Dist" is not created in my case
*Push the newly compiled framework.jar from apktool/framework.jar.out/dist
************************************************************************************************************************
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\user>cd..
C:\Users>cd..
C:\>cd 'apktool'l/'directory'
The system cannot find the path specified.
C:\>cd android/apktool
C:\android\apktool>apktool d framework.jar
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78
0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
C:\android\apktool>apktool b framework.jar.out
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
********************************************************************************************************************************************
Is sumthng went wrong in above process?
Click to expand...
Click to collapse
Did you followed the apktool guide properly?
It seems that you didn't followed the apktool guide properly
EDIT: Check if you have installed the proper framework files
and I think that you are using a already themed rom
hence you getting the errors.
works perfectly on my gt-i5510
thanks dude
Hiya mate, good work. Tried to make the mod for my sense 4 mod, got this error while recompiling:
C:\Users\nb>java -Xmx512M -jar smali.jar classout/ -o new-classes.dex
UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.Util.ExceptionWithContext: method index is too large.
at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithContext.java:54)
at org.jf.dexlib.Item.addExceptionContext(Item.java:177)
at org.jf.dexlib.Item.writeTo(Item.java:120)
at org.jf.dexlib.Section.writeTo(Section.java:119)
at org.jf.dexlib.DexFile.writeTo(DexFile.java:716)
at org.jf.smali.main.main(main.java:231)
Caused by: java.lang.RuntimeException: method index is too large.
at org.jf.dexlib.Code.Format.Instruction35c.writeInstruction(Instruction35c.java:102)
at org.jf.dexlib.Code.Instruction.write(Instruction.java:57)
at org.jf.dexlib.CodeItem.writeItem(CodeItem.java:258)
at org.jf.dexlib.Item.writeTo(Item.java:117)
... 3 more
code_item @0x1e5a74 (Landroid/accessibilityservice/AccessibilityService$IEventListenerWrapper;->executeMessage(Landroid/os/MessageV)
Any clue?
fshami said:
Hiya mate, good work. Tried to make the mod for my sense 4 mod, got this error while recompiling:
C:\Users\nb>java -Xmx512M -jar smali.jar classout/ -o new-classes.dex
UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.Util.ExceptionWithContext: method index is too large.
at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithContext.java:54)
at org.jf.dexlib.Item.addExceptionContext(Item.java:177)
at org.jf.dexlib.Item.writeTo(Item.java:120)
at org.jf.dexlib.Section.writeTo(Section.java:119)
at org.jf.dexlib.DexFile.writeTo(DexFile.java:716)
at org.jf.smali.main.main(main.java:231)
Caused by: java.lang.RuntimeException: method index is too large.
at org.jf.dexlib.Code.Format.Instruction35c.writeInstruction(Instruction35c.java:102)
at org.jf.dexlib.Code.Instruction.write(Instruction.java:57)
at org.jf.dexlib.CodeItem.writeItem(CodeItem.java:258)
at org.jf.dexlib.Item.writeTo(Item.java:117)
... 3 more
code_item @0x1e5a74 (Landroid/accessibilityservice/AccessibilityService$IEventListenerWrapper;->executeMessage(Landroid/os/MessageV)
Any clue?
Click to expand...
Click to collapse
did you installed the framework files in apktool. It may help.
Give the results soon.
Ciolouse said:
Great ! this is really nice !
Do you have the same solution to port the Samsung Weather/Clock widget from GS3 to any roms ?
Thanks
Click to expand...
Click to collapse
+1
Sent from my GT-S5570 using xda app-developers app
Nice job! I always loved widgets even though they drain the battery just a bit more.
Thanks for the post

[SHARE](APP) Apktool on Android

FAQ: I'm not the developer of this app. I am just sharing this to the community
Want to be a developer but don't have a computer to do the job?
Then Apktool which was previously built for computers can now be used on your android phone
Requirements:
- Rooted Android Device
- File Manager with root permissions (e.g Root Browser, ES File Explorer)
- Some Knowledge on modding APK files
(If you don't know how to, just search for guides for your favourite mod)
- A Fully Functional Brain
Downloads
You can find the files here
Setting up
1. Download the latest version of apktool.apk and apktool_armhf.zip
2. When finished, extract apktool4.1_armhf.zip and move the apktool folder the the root of your SD card (sdcard/ place here)
3. Install the apk file
How to use it
1. If you want to mod your Systemui or framework-res just grab those files using a root explorer and place them in a new folder either on your internal or external SD card.
2. Go back to apktool and hold on the apk till a pop up menu appears.
3. Install framework first then you can proceed to decompiling
4. If you have finished doing your business, compile it back, delete the original apk and rename the modded apk to the original one.
Notes
If you don't know anything about codes I suggest you to search for mods with guides around XDA.
Have fun being a developer and hit the thanks button if I've helped you
Credits
- iBotPeaches
- Brut.all
- Connor Tumbleson
- Dong Fang
Haha, that was quick!
Downloading now...
Im curious, when you wrote to download the latest versions there was only 1.4 but the apktool is 1.52 I believe....
Will that version work with this? Or do you have to use this version?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
check out our rom website, http://updater.team-nocturnal.com/labrats/
Tested, works on GNex with Android 4.3
Decompiled, recompiled SystemUI.apk successfully.
Sent from GNex...
cbucz24 said:
Downloading now...
Im curious, when you wrote to download the latest versions there was only 1.4 but the apktool is 1.52 I believe....
Will that version work with this? Or do you have to use this version?
check out our rom website, http://updater.team-nocturnal.com/labrats/
Click to expand...
Click to collapse
Just download anything latest that is there. I wrote latest version and did not include version name cause I think there might be updates in the future and I might not have time to update this thread in the future
Juhan Jufri said:
Just download anything latest that is there. I wrote latest version and did not include version name cause I think there might be updates in the future and I might not have time to update this thread in the future
Click to expand...
Click to collapse
Ok very cool. Thanks!
This will definitely be put to use by a lot of people.
check out our rom website, http://updater.team-nocturnal.com/labrats/
This is hands down the most useful tool for devs (or occasional dabblers like myself) who have pretty much abandoned their computers in favor of their Android devices...call me lazy, but there have been several times where I've been playing on my phone while watching TV and I come across something I'd like to try - but then completely disregard it simply because I don't want to leave my perch and go into the other room to get on the computer.
This is XDA newsworthy - FANTASTIC work, OP!!
Too good to be true... Gonna try this later on my tablet...:thumbup::thumbup::thumbup:
Sent from my H100 using xda app-developers app
Works as its supposed to,, kudos to this, now if there was just someway to get dsisxda kitchen to work for android we could do away with our pc's
Sent from my H100 using xda app-developers app
http://forum.xda-developers.com/showthread.php?t=2388135
posted/shared weeks ago from evanlocked in above thread.
Wait... what? This really works??
Mind = blown
Sent from my Nexus 7
Been waiting for this for ages. thanks to the developers.
-CALIBAN666- said:
http://forum.xda-developers.com/showthread.php?t=2388135
posted/shared weeks ago from evanlocked in above thread.
Click to expand...
Click to collapse
Seems to me that one thread is not enough to tell xda users about this app. I know its like spamming cause I'm sharing the same apk but majority of apktool users stick to the developers only forums thats why i posted here.
Juhan Jufri said:
Seems to me that one thread is not enough to tell xda users about this app. I know its like spamming cause I'm sharing the same apk but majority of apktool users stick to the developers only forums thats why i posted here.
Click to expand...
Click to collapse
I haven't seen it before and I was really searching for it!
But one question..when I extract classes.dex of framework.jar, how can I get it back in there after editing? :/
Gesendet von meinem HTC One mit Tapatalk 4
KonstiDee said:
I haven't seen it before and I was really searching for it!
But one question..when I extract classes.dex of framework.jar, how can I get it back in there after editing? :/
Gesendet von meinem HTC One mit Tapatalk 4
Click to expand...
Click to collapse
Yeah, I'm also wondering about this...
Decompiled the Framework.jar quite easily, but after editing ang recompiling, it only shows:
Code:
I. Smaling...
Killed
If my memory serves right, here at XDA, There's a file (two files actually) which you'll put at system/bin or system/xbin, run an Terminal Emulator, and you can instantly (well, it always depends on the size) recompile Framework.jar.
But the problem is, I don't have the files anymore (forgot to make a back-up), and I forgot what did I typed , or what I searched to get there...
I decompiled apktool.apk to test (& to change the icon), I changed the icon and now I can't recompile.
This is the message I get:
Code:
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:183)
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.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
Sent from my GT-I5500 [CM7.2]
Hi OP, While im Decompiling An Apk It Shows This error: "FATAL: Kernel Too Old!"
How I can Fix It?? please help...
Sent from my E10i using xda app-developers app
Sent from my E10i using xda app-developers app
Can Someone help me on my problem please...
My Works
RePower™ ROM For X10 Mini(Soon)
RePower™ V2(Tweaks) For All Low Ram Android Phones
Link: http://forum.xda-developers.com/showthread.php?p=45163187
All Of My Works Is Here:
http://www.mediafire.com/?oc99l9xsxasor
Renzki™ said:
Hi OP, While im Decompiling An Apk It Shows This error: "FATAL: Kernel Too Old!"
How I can Fix It?? please help...
Sent from my E10i using xda app-developers app
Sent from my E10i using xda app-developers app
Click to expand...
Click to collapse
Maybe the app depends on the version of the kernel, what is your kernel version?
Vagelis1608 said:
I decompiled apktool.apk to test (& to change the icon), I changed the icon and now I can't recompile.
This is the message I get:
Code:
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:183)
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.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
Sent from my GT-I5500 [CM7.2]
Click to expand...
Click to collapse
Had you import the apk as framework of the apk first before decompiling it?

[Q] baksmali to deodex lollipop system app

I've tried posting this in the Q and A section with no luck.. Maybe someone here can help.
I'm trying to make a battery mod for stock lollipop. Of course the ROM is odexed which makes life a lot more difficult when trying to decompile system apps. I'm attempting to deodex my systemUI.odex. However, using the backsmali command "java -jar baksmali.jar -a 21 -x systemUI.odex -d framework -o classout" is giving me an error stating that systemUI.odex is not an apk, jar or odex file
I have everything setup correctly...my whole framework directory is on my :C drive....I was wondering if you could explain why I'm getting this error? It worked for me on KitKat with no issues..
Sent from my Nexus 5 using xda premium
I'm looking to do the same too. but with DeskClockGoogle and WebViewGoogle pulled from the N5 factory image, to finish my Lollipop Gapps pack.
Unfortunately, even with baksmali and smali that I've built from source with the latest changes, I get the same errors. I'm guessing we'll have to wait until they're (hopefully) updated.
I've attached my compiled builds of baksmali and smali with up-to-date changes from source (latest being November 6, 2014) if you or anyone wants to mess with them or whatever.
I made it on my nexus 5 stock rom.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
youland said:
I made it on my nexus 5 stock rom.
View attachment 3036525
Click to expand...
Click to collapse
how you deodexed stock SystemUI ? please give link on HOWTO
how edit smali (as he reached smali) ?
youland said:
I made it on my nexus 5 stock rom.
View attachment 3036525
Click to expand...
Click to collapse
I want this
youland said:
I made it on my nexus 5 stock rom.
View attachment 3036525
Click to expand...
Click to collapse
Youland, seriously....how'd you go about doing that?
Sent from my Nexus 5 using xda premium
Pain-N-Panic said:
Youland, seriously....how'd you go about doing that?
Sent from my Nexus 5 using xda premium
Click to expand...
Click to collapse
My state:
[email protected]:~/Downloads/smali-oat/baksmali/build/libs$ java -Xmx512m -jar baksmali-2.0.3-dev.jar -a 21 -x SystemUI.odex -d ./framework
Error occurred while loading boot class path files. Aborting.
org.jf.util.ExceptionWithContext: Cannot locate boot class path file /system/framework/conscrypt.jar
at org.jf.dexlib2.analysis.ClassPath.loadClassPathEntry(ClassPath.java:227)
at org.jf.dexlib2.analysis.ClassPath.fromClassPath(ClassPath.java:161)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:68)
at org.jf.baksmali.main.main(main.java:298)
Click to expand...
Click to collapse
Seem it know how to deodex but framework file conscrypt only 372 byte. It isn't contain classes.dex.
Link to file
https://mega.co.nz/#!NUoQxSLa!het4J3GXvtGVmI43m_Gl0jqBZ7X9BhHb7xErseEjnUc
hiepgia said:
...It isn't contain classes.dex...
Click to expand...
Click to collapse
Most files contain only META-INF file and folder and have no odex files..
That's art.
So simply decompile odex files, will no longer work.
We need new baksmali and smali tools or similar.
Your uploaded baksmali file works great with KK odex but not with LP odex.
cargobr151 said:
Most files contain only META-INF file and folder and have no odex files..
That's art.
So simply decompile odex files, will no longer work.
We need new baksmali and smali tools or similar.
Your uploaded baksmali file works great with KK odex but not with LP odex.
Click to expand...
Click to collapse
I solved framework miss classes.odex and deodex successful.
I will upload it when i return home. Now im in a trip
Sent from my iPhone using Tapatalk
hiepgia said:
I solved framework miss classes.odex and deodex successful.
I will upload it when i return home. Now im in a trip
Sent from my iPhone using Tapatalk
Click to expand...
Click to collapse
It is not a true .odex. It requires the oat2dex script to strip the oat header. Then you have the classes.dex file. The problem is getting the apk and the dex to happily coexist in the same APK. AOSP can deodex but we are still breaking the same apks just decompiled and recompiled (Stock factory or modded). SystemUI is only one I have been able to lock down as an auto break due to time constraint and ability to visualize the break.
.
Well I'm happy to see discussion being stirred up in this thread finally!!!! I gave up on trying to deodex the system apps.....until Jesus freak can update the smali/baksmali tools I'm in no position to get that working.
On the other hand, I've been working on "work around" to get the battery percentage in the status bar. We can all see the battery percentage in the drop down menu and in the lock screen (key guard.) I'm attempting to modify the keygaurd text view for the battery percentage and add it to the status bar in the "system_icons" XML file. Right now I'm able to compile the mod but its not showing up. If someone would like to help with it feel fee to reply here or shoot me a PM. The theory is to get a working battery percentage in the status bar without deodexing.
Sent from my Nexus 5 using xda premium
Pain-N-Panic said:
I've tried posting this in the Q and A section with no luck.. Maybe someone here can help.
I'm trying to make a battery mod for stock lollipop. Of course the ROM is odexed which makes life a lot more difficult when trying to decompile system apps. I'm attempting to deodex my systemUI.odex. However, using the backsmali command "java -jar baksmali.jar -a 21 -x systemUI.odex -d framework -o classout" is giving me an error stating that systemUI.odex is not an apk, jar or odex file
I have everything setup correctly...my whole framework directory is on my :C drive....I was wondering if you could explain why I'm getting this error? It worked for me on KitKat with no issues..
Sent from my Nexus 5 using xda premium
Click to expand...
Click to collapse
You need to have python installed, but if you have it you can run the oat2dex.py script on your odex file and then you'll be able to baksmali/smali it with the latest versions of those. I just don't know how to turn the dex file back into the original format to pop back into the rom.
Me neither, and I've never messed around with python
Sent from my Nexus 5 using xda premium

[APP] [TOOL] ApkTool in Android

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
An All in One App To De-Compile , Re-Compile , Extract Meta-inf Folder , Add Meta-inf Folder , Sign , Zipalign , Jar to Dex and Dex To jar & Many more (Even All Lollipop Apps SDK 21) Right in Your Phone or tablet , No needed for a PC Anymore
This app is a continue for The open spurce ApkTool and with many imrprovements like adding Apktool v2.0 and many more So cridit for main application goes to chinese sources and people from AG Who worked Before me on This​
*some people having issue with installing this as a regular app , for faster operation on decompile recompile recommended to manually push it to system apps or either patch to android signature ..
Small request : if anyone have a good key for sign please sign it and give me the key to use for next releases..
works for ArmV7 Devices
i will be glad if my App Be sticky in Developers Android hacking forum​
ApkTools Is a well Known Android Reverse Engineering Tool that decrypt/translates an app or system apps To human language Code
I made this app for my personal use now im sharing with you
it have Latest ApkTool v2.0 and other versions could be find in about , you can use two different apk tool
you can optionally decompile Dex or decompile resources only
And many other futures , even more easy than a PC
Just Import Frameworks And youre good to go
you may need a good cpu for faster Decompile/recompile consumed time will be shown
Custom motifications for jobs are implemented
Download :
v4.7 :
Download From Mega
I didnt share this to earn anything just to help people and easier developement , tell me if im wrong, i dont know the exact Cridits tell me and i will add to OP
Donations Welcome For Donation Plz Email/PM me
Plz Don't Ask Compile , Decompile related help questions and ApkTool related stuffs
XDA:DevDB Information
ApkTool For Android, Tool/Utility for all devices (see above for details)
Contributors
HAYLCION, ApkTool
Version Information
Status: Stable
Current Stable Version: 4.7
Created 2015-05-23
Last Updated 2015-05-23
Awesome work bro.. I always find this kinda app... Great :good: :good:
metaspook said:
Awesome work bro.. I always find this kinda app... Great :good: :good:
Click to expand...
Click to collapse
Youre welcome bro, sorry could you plz remove quoted OP post? Thanks its not looking good
Edit: and youre so nice thanks for your works!
HAYLCION said:
Youre welcome bro, sorry could you plz remove quoted OP post? Thanks its not looking good
Edit: and youre so nice thanks for your works!
Click to expand...
Click to collapse
Oh! Sorry... Don't mind I'm not so used to in XDA but I'll, Ok I removed that quote.. :good:
metaspook said:
Oh! Sorry... Don't mind I'm not so used to in XDA but I'll, Ok I removed that quote.. :good:
Click to expand...
Click to collapse
So where else? I like your jobs they're hady , thumbs up for the busybox you shared !
It won't let me install on my m9
ahrion said:
It won't let me install on my m9
Click to expand...
Click to collapse
Push to system/app if youre on armv7
Dear dev.
Here my spec:
-Xperia m single
-Cm 12.1 android 5.1.1
-Using latest apktool from this thread.
The steps I take
1. Push apktool to /system/app
2. Reboot
3. Import the /framework/framework.apk
4. Next is decompile, recompile apk.
5. Copy dialer.apk to /sdcard/apkproject
6. Decompile dialer.apk
7. Not editing was made to source dialer_src
8. Recompile dealer_src
9. Add (META-INF) original to dialer_src.apk
10. Open root Explorer file manager, open the dialer_src.apk and for the result see screen shot.
A see the aapt your apktool provide is aapt v4.4 is that compatible with cm 12.1 android 5.1.1?
And the apktool is v2.0: apktool-2.0.0rc3.jar
Thanks for this apktool. Awesome. Amazing.
Everything I doing in a PC I can do in the phone.
This is screen shot of the original dialer.apk
I decompiled Fb lite.apk
After 2 seconds,it says:'decompile finished'
And a lot of problems like
at.brut.....
How can I fix
Nhien Nguyen said:
I decompiled Fb lite.apk
After 2 seconds,it says:'decompile finished'
And a lot of problems like
at.brut.....
How can I fix
Click to expand...
Click to collapse
Can you post the full log.
ndrancs said:
Dear dev.
Here my spec:
-Xperia m single
-Cm 12.1 android 5.1.1
-Using latest apktool from this thread.
The steps I take
1. Push apktool to /system/app
2. Reboot
3. Import the /framework/framework.apk
4. Next is decompile, recompile apk.
5. Copy dialer.apk to /sdcard/apkproject
6. Decompile dialer.apk
7. Not editing was made to source dialer_src
8. Recompile dealer_src
9. Add (META-INF) original to dialer_src.apk
10. Open root Explorer file manager, open the dialer_src.apk and for the result see screen shot.
A see the aapt your apktool provide is aapt v4.4 is that compatible with cm 12.1 android 5.1.1?
And the apktool is v2.0: apktool-2.0.0rc3.jar
Thanks for this apktool. Awesome. Amazing.
Everything I doing in a PC I can do in the phone.
Click to expand...
Click to collapse
No i forgot to change it in app its not rc3 its the latest v2.0.0 final that works wor lollipop flawsly too
ndrancs said:
This is screen shot of the original dialer.apk
Click to expand...
Click to collapse
Yeah it supports that you Have to adjust Min max sdk in apktool.yml if not recompiles but what you showed is about signature
Hey @HAYLCION , I keep getting error when reconciling saying too many symbolic links found... Anybody know what that means?
bdizzle1686 said:
Hey @HAYLCION , I keep getting error when reconciling saying too many symbolic links found... Anybody know what that means?
Click to expand...
Click to collapse
Copy err log and send, i can tell you
Hi dev and thank you for your work.
I'd like to decompile HydrogenOS launcher apk, include in it OxygenOS framework and recompile hoping it could work on other AOSP based rom and not only in OxygenOS.
I'm a noobe and I was just wondering: is that possible? And, can I do this completely with your tool?
Thank you so much
mega link is dead... please reupload
Download link problem
Download issues still. Anyone have a copy of this?
for me brut broo -_- when I dc my systemUI

Categories

Resources