(Q) how to compile and decompile apk??? - Micromax A110

There is so many guides in xda forum about compiling and decompiling apk.. but none of that working 100% easy way.. i tried apktool, apkmulti tool, Virtuous Ten Studio (VTS) and some other tool... developers please give a link.. or guide me how to decompile and compile an apk easy steps..

Here is the link of apktool which runs straight on your phone http://code.google.com/p/apktool/downloads/list, download the apktool4.1_armhf.zip for faster decompiling and reompiling
Dark Nexus

Dark Nexus said:
Here is the link of apktool which runs straight on your phone http://code.google.com/p/apktool/downloads/list, download the apktool4.1_armhf.zip for faster decompiling and reompiling
Dark Nexus
Click to expand...
Click to collapse
All aside from the apk tool is not downloading. Any other option?
Sent from SgY Evo-x 4.2 using xda-developers app .... btw, i'm a girl, don't call me sir... ;p

Here is direct download link http://apktool.googlecode.com/files/apktool4.1_armhf.zip
Hit thanks if you like
Dark Nexus

with apktools i can easyly decompiling apk.. but problem in compiling.. can anyone guide me how to compile apk..

Related

Decompiling ICS 3.32.401.5 APK's using apktool.jar (APKMnanager) update

I have been playing arround with the issue of not being able to decompile the apks from OS 3.32 roms.
The issue seems to be when decompiling the systemui.apk you are getting the following errors:
--------------------------------------------------------------------------
|04/03/2012 -- 23:59:11.09|
--------------------------------------------------------------------------
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b05)
Java HotSpot(TM) Client VM (build 22.1-b02, mixed mode, sharing)
Could Not Find C:\APKManager\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find C:\APKManager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.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:48)
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:120)
at brut.apktool.Main.main(Main.java:57)
This points to erros in Backsmaling and the backsmali files being too old. I then hunted arround and found a neat little tool to deompile apks and the jar files to make them editable. This did not work either giving me the same error. I then found an update backsmali.jar and smali.jar ver 1.3.2 from here: and it decompiled the systemui.apk perfectly.
Can we intergrate the newer versions of the smali 1.3.2 files into apk manager to decompile ICS roms? This is a bit beyond me!
Progress update:
Ok I have download the source apktool using ubuntu. The next stage is to download API15 and add it into the source then rebuild, but not sure how to do that yet. I know I have API15 on my Windows PC but dont know what files I need to update apktool to API15. Will keep working on it though!
Yep, it's a problem right now. Check out this issue:
http://code.google.com/p/android-ap... Type Status Priority Milestone Owner Summary
Someone posted a hacked apktool.jar which seems to work but I'm not sure if I trust the results.
rmk40 said:
Yep, it's a problem right now. Check out this issue:
http://code.google.com/p/android-ap... Type Status Priority Milestone Owner Summary
Someone posted a hacked apktool.jar which seems to work but I'm not sure if I trust the results.
Click to expand...
Click to collapse
Can I ask why you do not trust the results?
I have tried with the hacked version and so far I am now able to decompile and compile the systemui.apk with out any problems! But still got errors compiling framework-res.apk so still some issues there! All I did was modify value.xml file to enable crt animation!
Hi, for to decompile all apk must remove classes.dex from this apk and decompile with apktool1.4.2.....after compile with 1.4.3 and reinsert classes.dex into the apk
same problem with me,also looking for help.
rmk40 said:
Yep, it's a problem right now. Check out this issue:
http://code.google.com/p/android-ap... Type Status Priority Milestone Owner Summary
Someone posted a hacked apktool.jar which seems to work but I'm not sure if I trust the results.
Click to expand...
Click to collapse
In this way,decomplie is ok,but re-complie still has problem
I ive noticed that you cant compile with this just yet. Looks as if we are going to have to wait for a rebuilt tool!
From what I can see the current apktool.jar was built with API14. ICS 4.03 is built with API15. What we need is to have the apktool.jar updated with API5. This involves building the apktool from source which I believe is available but I dont know how to do this
Source code link here:
Ok I have download the source apktool using ubuntu. The next stage is to download API15 and add it into the source then rebuild, but not sure how to do that yet. I know I have API15 on my Windows PC but dont know what files I need to update apktool to API15. Will keep working on it though!
where is this said hacked apktool?
oh nm i found it in that post...
says it only works 0n 4.0.3 tho hmmm i will try with the 4.0.4 gapps anyways and see
GhostXSeries said:
Ok I have download the source apktool using ubuntu. The next stage is to download API15 and add it into the source then rebuild, but not sure how to do that yet. I know I have API15 on my Windows PC but dont know what files I need to update apktool to API15. Will keep working on it though!
Click to expand...
Click to collapse
I don't know either
Unfortunately I chose to learn flash ActionScript 2 years ago (it was useful at the time - I had Samsung Tocco Lite and made flash themes for it) but since moving to Android I realised flash doesn't do a lot of good when working with java so at some point I really need to learn java
Sent from my HTC Sensation XE with Beats Audio Z715e using xda premium
I dont know what to do here, I have updated my sdk, made sure i installed theright framework. done everything from replacing the aapt file to replacing the apktool file. Its ridiculous that compiling the SystemUI.apk has to be this difficult, if it can be decompiled easily why cant the reverse be just as simple??
I cant get SystemUI.apk to compile, it starts the process then just errors out.
Has anybody found a workaround for this? Updating my SDK and aapt and apktool didn't work for me.
Sent from my HTC Sensation using Tapatalk
It looks as if we need to download the source of apktool from git. Add in API15 and the updated smali and backsmali tools, then recompile the apk tool. Unfortunitly this is a little out of my leauge.
If anybody is able to do this it would be awsome!
Out of my skill range as well
Sent from my HTC Sensation using Tapatalk
Do you think it would be possible to simply edit the pngs of systemui without decompiling and recompiling by taking out the .9 pngs to edit those with the .9 editor?
Sent from my HTC Sensation using Tapatalk
GhostXSeries said:
It looks as if we need to download the source of apktool from git. Add in API15 and the updated smali and backsmali tools, then recompile the apk tool. Unfortunitly this is a little out of my leauge.
If anybody is able to do this it would be awsome!
Click to expand...
Click to collapse
Maybe PM leedroid, I think he already done it but I'm not sure so don't take that as gospel truth, just he hinted at it in a post
Sent from my HTC Sensation XE with Beats Audio Z715e using xda premium

[Q][OffTopic] Basic requirements for decompiling and recompiling apks

Hey guys what are the basic things we need to decompile and recompile apk? And which is the best tool for this task?
Please tell in detain
Thanks annoying bee
Sent from my HTC powered with Minimilised ROM
Annoying Bee said:
Hey guys what are the basic things we need to decompile and recompile apk? And which is the best tool for this task?
Please tell in detain
Thanks annoying bee
Sent from my HTC powered with Minimilised ROM
Click to expand...
Click to collapse
Hi..
Best tool will be apktool.. on windows or on linux..
Apktool for it.. Check details on the original thread for it..
Its pretty simple..
with latest apktool you can not only decompile and recompile apks but also jar files using apktool ... by
Code:
apktool d <nameofile>
or
Code:
apktool b <nameoffile>
Annoying Bee said:
Hey guys what are the basic things we need to decompile and recompile apk? And which is the best tool for this task?
Please tell in detain
Thanks annoying bee
Sent from my HTC powered with Minimilised ROM
Click to expand...
Click to collapse
Check this:
http://stackoverflow.com/questions/1249973/decompiling-dex-into-java-sourcecode
akshat.shenoy said:
Hi..
Best tool will be apktool.. on windows or on linux..
Apktool for it.. Check details on the original thread for it..
Its pretty simple..
with latest apktool you can not only decompile and recompile apks but also jar files using apktool ... by
Code:
apktool d <nameofile>
or
Code:
apktool b <nameoffile>
Click to expand...
Click to collapse
Yeah i used it but problems in recompiling apks! So i modded apktool on my own.

Do not enter.

Mod is down: The new thread: HERE
Moderators, feel free to delete this post.
Good Start Man, Hope someone will advise very soon.
Thanks for your effort.:good:
Only de- and recompiling will not really lead to anything.
You have to solve each error here step by step. And as you can see there are many entries missing when recompiling against a framework from a different device and/or Android version.
This means that resolving the missing entries (like simply deleting them in each file) won't help because even if the recompile succeeds it will never run because of errors in the dependencies of the apk etc..
you should specify where you've changed
Tried almost everything but i cant get it working. Also tried VRTheme ZIP but it doesnt work too, it doesn't recognize the 9.png files and show the UI stretched... This is not my work, its for Not-i, Majdinj, Zai89 and other amazing themers for this amazing device (sorry if i forgot other users). I've seen it in S2 forums (Themes and Themed roms too) with the TW2013 UI for 4.1.2 so i dont think it will be very hard to an experienced themer. Thanks for the support. Good Luck to everyone!
You are compiling a a 4.2.2-based apk file with 4.1.2 installed framework, if you see in another thread they must have same version or it is themed apk file.
Can just use X-plore open apk as zip file n copy all the themes but not xml to another apk open as zip file.
not much changes wif just a framework.res.apk n options is alittle too small to fit it..
so no point to make a mod just framework.res.apk
@galaxynote2
The pictures in the attachment aren't useful!
If you want to change the png's, then take them from the original apk out!
Don't decompile it!
So, never use 9.png's from decompiled apk!
Try it again with the 9.png's from the original apk. Just copy them from the apk to your new one. Don't decompile it.
If you try to add some 9.png (from decompiled source), then they looks ugly with the vrtheme system...
(and can't build it with apktool too...)
@tkari4 thank you for the answer! I will try again now..
galaxynote2 said:
@tkari4 thank you for the answer! I will try again now..
Click to expand...
Click to collapse
@galaxynote2
Not working, sorry never made something like that.
The solution for your problem:
Install the 4.2 framework-res.apk (command in the CMD window: apktool if c:/framework-res.apk)
Now decompile your 4.2 framework-res.apk
From the decompiled folders you can add the 9.png's to your 4.1 farmework-res.apk
Install the 4.1 framework-res.apk again
Build your apk and so must work...
tkari4 said:
@galaxynote2
Not working, sorry never made something like that.
The solution for your problem:
Install the 4.2 framework-res.apk (command in the CMD window: apktool if c:/framework-res.apk)
Now decompile your 4.2 framework-res.apk
From the decompiled folders you can add the 9.png's to your 4.1 farmework-res.apk
Install the 4.1 framework-res.apk again
Build your apk and so must work...
Click to expand...
Click to collapse
@tkari4 some progress (attached files). That is my result putting the non-decompiled images in a vr-theme:
Popups are still bugged, 9.png resizing doesnt worked.
Action bars themes (Holo Light and Holo Dark) are now working!
Almost all buttons, checks and ticks are now converted and working.
What to do:
Fix the bugged popups
Convert Text fields (wich are 9.png too so its the same as the popups problems...)
__________________________________________________________________________________________
Can you provide me an S4 framework? Im using the Touchwiz 2013 theme for 4.2.2 Galaxy S3 flasheable zip for converting. I cant find the S4 framework-res to download.
galaxynote2 said:
@tkari4
Can you provide me an S4 framework? Im using the Touchwiz 2013 theme for 4.2.2 Galaxy S3 flasheable zip for converting. I cant find the S4 framework-res to download.
Click to expand...
Click to collapse
Yeah, must have the original apk and decompile it with the 4.2 framework.
You can find it here: http://forum.xda-developers.com/showthread.php?t=2272392
tkari4 said:
Yeah, must have the original apk and decompile it with the 4.2 framework.
You can find it here: http://forum.xda-developers.com/showthread.php?t=2272392
Click to expand...
Click to collapse
@tkari4 Ok, downloaded... (Slow connection).
So, first i need to install the recently downloaded framework in apktool and then decompile my 4.1.2 Note Framework?
Nevermind! Recompiled without problems! I've modified some pngs to se if it works and worked, so now im porting the fully theme. Thank you!
galaxynote2 said:
After all S4 mods for our Note, this is the last touch to have the new Touchwiz Interface in this amazing device.
Click to expand...
Click to collapse
You are gonna be rocked,,
Waiting for download link, As I understand without TW interface out grear Note is useless.
Thanks for your effort and share.:good:
mjrifath said:
You are gonna be rocked,,
Waiting for download link, As I stand without TW interface out grear Note is useless.
Thanks for your effort and share.:good:
Click to expand...
Click to collapse
Could you don't quote the whole thread next time please? Just click the reply button thats all
Juhan Jufri said:
Could you don't quote the whole thread next time please? Just click the reply button thats all
Click to expand...
Click to collapse
Thanks for the info mate. Post edited:laugh:
When you realese this mod?
____________
YES WE SCAN!!!
This thread has to be closed since no updates from OP or there is no any valid MOD
mjrifath said:
This thread has to be closed since no updates from OP or there is no any valid MOD
Click to expand...
Click to collapse
for people who can't wait , you can try flashing this one
http://forum.xda-developers.com/showthread.php?t=2297906
el5arsawi said:
for people who can't wait , you can try flashing this one
http://forum.xda-developers.com/showthread.php?t=2297906
Click to expand...
Click to collapse
Thats for 4.2.2
Please op just provide the s4 style launcher
Sent from my GT-I9100 using xda app-developers app

[Q] best tool to decompile/recompile files?

which is the best tool to decompile/recompile files??? because i have tried apk multi tool (which was working good for a week and now when i try to recompile files the changes i made are not there!) tickle my andoid (i'm using this as of now and i don't know why but what ever changes i made in framework.jar after decompiling is not seen after recompiling)
so which is a better and more reliable tool to decompile/recompile files??? and how can i solve above problem
In my opinion the best tool for decompile /compile apk is apktool
Use apk tool or apk multi tool and for more info see this thread
http://forum.xda-developers.com/showthread.php?t=2603096
Sent from my GT-I9070 using Tapatalk
Apktool
shashanksetty said:
which is the best tool to decompile/recompile files??? because i have tried apk multi tool (which was working good for a week and now when i try to recompile files the changes i made are not there!) tickle my andoid (i'm using this as of now and i don't know why but what ever changes i made in framework.jar after decompiling is not seen after recompiling)
so which is a better and more reliable tool to decompile/recompile files??? and how can i solve above problem
Click to expand...
Click to collapse
For me Apktool is the best tool to decompile or recompile apks..
---------- Post added at 11:05 AM ---------- Previous post was at 11:02 AM ----------
shashanksetty said:
which is the best tool to decompile/recompile files??? because i have tried apk multi tool (which was working good for a week and now when i try to recompile files the changes i made are not there!) tickle my andoid (i'm using this as of now and i don't know why but what ever changes i made in framework.jar after decompiling is not seen after recompiling)
so which is a better and more reliable tool to decompile/recompile files??? and how can i solve above problem
Click to expand...
Click to collapse
Apktool is also available in Mobile version... Just search on Google....

help needed for porting miui from patchrom

HI
I am trying to port miui rom using patchrom.i have every thing set up.the only problem is i dont know anything abt smali. so i request the devs to make a guide to understand smali and what is patching and how to patch smali while porting miui rom using patchrom.
pramodsn28 said:
HI
I am trying to port miui rom using patchrom.i have every thing set up.the only problem is i dont know anything abt smali. so i request the devs to make a guide to understand smali and what is patching and how to patch smali while porting miui rom using patchrom.
Click to expand...
Click to collapse
Here you are... http://forum.xda-developers.com/showthread.php?t=1777999
It´s simply...you have to use apktool to smali/baksmali the framework,jar / services.jar etc to unify the jar code of both roms in one jar
how to patch
FrozendMind said:
Here you are... http://forum.xda-developers.com/showthread.php?t=1777999
It´s simply...you have to use apktool to smali/baksmali the framework,jar / services.jar etc to unify the jar code of both roms in one jar
Click to expand...
Click to collapse
while porting with patchrom i get old_smali,new_smali,dst_smali_orig,dst_smali_patched:,reject.in temp folder
now i have to compare and patch smali code.now which folders i need to use to compare and patch smali files.
The easier method is compile the zip without modify the smali and fix it after if there is some error .The common error in patchrom its only the RIL
Hope porting will soon complete
Sent from my GT-I8262 using XDA Premium 4 mobile app

Categories

Resources