compile source code - General Questions and Answers

Hey Guys I need to compile source code of a app and it is in java so apktool will not work and also don't advice eclipse if you can provide how to convert .java to smali that will also help

Noobdead said:
Hey Guys I need to compile source code of a app and it is in java so apktool will not work and also don't advice eclipse if you can provide how to convert .java to smali that will also help
Click to expand...
Click to collapse
Use the compiled bytecode .class file with dx
Then use baksmali to get .smali from .dex files
Code:
dx --dex --output=filename.dex compiled_file.class
baksmali filename.dex

Related

Howto decompile XML in resource of APK?

Hey guys, I've learnt how to decompile most of the class files through dexdump.
For details check this out:
http://zeaster.blogspot.com/2007/11/how-to-decompile-dex-file-on-android_28.html
But say I wanted to decompile edit an XML file in folder \res\xml\appwidget_info.xml and resign/package an apk file. How would I go about doing that?
I've heard something about opening it up in a hex editor and this is what I get (screenshot). I'm most interested in viewing/editing the android:updatePeriodMillis value. This is in relation to the 1x4 Calendar Widget not updaating properly. Any pointers will be helpful and much appreciated.
how to do that ??
Rotundjere said:
how to do that ??
Click to expand...
Click to collapse
read the date of the post
slap yourself
read http://forum.xda-developers.com/showthread.php?t=640592
Brut.all's apktool will decode and rebuild apks and jars
you won't get java code out of it instead you will get smali code
if only want to mess with xml's strings it will let you do that
Too funny
Effdee said:
read the date of the post
slap yourself
read http://forum.xda-developers.com/showthread.php?t=640592
Brut.all's apktool will decode and rebuild apks and jars
you won't get java code out of it instead you will get smali code
if only want to mess with xml's strings it will let you do that
Click to expand...
Click to collapse
Subtle yet absolutely hilarious.
I know even my post comes late, searched for Brut.all's apktool and seen this thread, still worth noting the humour.

Decompile & Compile apk

I use apktool for decompile and recompiling but howcome I can not recompile SecSettings.apk on JB 4.1.2 any new thing should be done? help please.

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

[Q] How to edit the source of an Apk file?

I do these works :
1-unzip the apk file
2-convert classes.dex to classes.jar with dex2jar
3-read source of jar file with java De compiler
Now I want to edit the .class file.
Can anyone help me ?
resettailor said:
I do these works :
1-unzip the apk file
2-convert classes.dex to classes.jar with dex2jar
3-read source of jar file with java De compiler
Now I want to edit the .class file.
Can anyone help me ?
Click to expand...
Click to collapse
Better use apktool or apk multi tool it's amazing in terms for apk decompiliation and compilation.
Try you can find most of it
Press thanks button if Helped!
It really helped!
Thanks!
nightwalker said:
Better use apktool or apk multi tool it's amazing in terms for apk decompiliation and compilation.
Try you can find most of it
Press thanks button if Helped!
Click to expand...
Click to collapse
resettailor said:
It really helped!
Thanks!
Click to expand...
Click to collapse
Really happy to know that

SystemUi_framework for devs

HERE IS THE SYSTEMUI.APK AND FRAMEWORK-RES.APK FOR DEVS TO ADD MODS.
CAN BE DECOMPILED AND COMPILED WITH APKTOOL WITHOUT ERRORS.
I AM USING BATCH APKTOOL.
https://androidfilehost.com/?fid=674106145207486704

Categories

Resources