[Q][OffTopic] Basic requirements for decompiling and recompiling apks - HTC Pico (Explorer)

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.

Related

[Q] how to?

friends, can you tell me how to create themes for karbonn a1(android2.2.2)? will i need to download any software?
AW: [Q] how to?
tanushanand007 said:
friends, can you tell me how to create themes for karbonn a1(android2.2.2)? will i need to download any software?
Click to expand...
Click to collapse
Xda has tutorials how to decompile the framework and how to theme it. You need the apktool or something similar to decompile the apps for example the framework or launcher.
-star- said:
Xda has tutorials how to decompile the framework and how to theme it. You need the apktool or something similar to decompile the apps for example the framework or launcher.
Click to expand...
Click to collapse
thnxxx
thanks for the info
you can find here:
http://forum.xda-developers.com/sitesearch.php?q=how to decompile the framework

(Q) how to compile and decompile apk???

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..

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

smali help

hello everyone
i searched a lot but couldnt find anything so postiong here
i was trying to add some featues to home.apk and i got some errors while recompiling
so i tried decompile and recompile without editing anything...i didnt even open the decompiled home apk folder LOL
but i am getting lots of smali errors only in styles.xml
i think that apktool removes some templates from styles.xml i dont know what it means i just got it from my search
so can someone help me in fixing that error....
@serajr
 @SpaceCaker
 @marcussmith2626
 @iSiddharth
Either wrong framework loaded or using wrong apktool version
And please stop abusing the mention system - I won't reply to anymore mentions
marcussmith2626 said:
Either wrong framework loaded or using wrong apktool version
And please stop abusing the mention system - I won't reply to anymore mentions
Click to expand...
Click to collapse
Ah sorry
But what do u mean by WRONG apktool version??
abhishekr700 said:
Ah sorry
But what do u mean by WRONG apktool version??
Click to expand...
Click to collapse
use
gingerbread/ics/jb 1.5.2
https://code.google.com/p/android-apktool/downloads/list
jb/kitkat/lolipop apktool rc3
https://bitbucket.org/iBotPeaches/apktool/downloads
use correct framework-res
plus any other framework eg tw-framework
Use Advanced APK Tools for decompiling the APK files and you can also use the Attached Dex Editor to edit classes.dex files.....
Advanced APK tools is specially made for Xperia devicex. (use your "framework-res.apk" to install firmware in Advanced APK Tools)
(Drag and drop classes.dex in "Quick-Baksmali.cmd" to decompile and drag and drop the output folder is "Quick-Smali.cmd" to recompile.
Advanced APK Tools : http://forum.xda-developers.com/showthread.php?t=2639400

[HELP] JAVA problem

Hello everyone,
I have some problems with the tool to decompile the apk. I wanted to apply these two guides:
http://forum.xda-developers.com/goo.../how-to-add-ambient-display-settings-t2942838
http://forum.xda-developers.com/goo.../mod-3-power-menu-stock-5-0-1-deodex-t2997128
But I get this when I start decompilation:
http://pastebin.com/eNrejMCh
Some help / suggestions?
Which apk decompiler do you use ? The output said the decompiler could not read / decompile the arsc file from your apk
F4uzan said:
Which apk decompiler do you use ? The output said the decompiler could not read / decompile the arsc file from your apk
Click to expand...
Click to collapse
I use apkstudio-2.0.3b-windows, systemUI.apk and framework-res.apk come from Android M
ZenPluS said:
I use apkstudio-2.0.3b-windows, systemUI.apk and framework-res.apk come from Android M
Click to expand...
Click to collapse
As far as I know, Android M is still unsupported for such operation (decompiling apk, etc) so you might want to wait until the decompiler become compatible with M releases
F4uzan said:
As far as I know, Android M is still unsupported for such operation (decompiling apk, etc) so you might want to wait until the decompiler become compatible with M releases
Click to expand...
Click to collapse
uhh okay, thanks for your help! :good:
ZenPluS said:
uhh okay, thanks for your help!
Click to expand...
Click to collapse
Happy to help ! Do post again if you encounter another issue

Categories

Resources