Smali2java - Decompile Smali Files To Java
This is not my work - I am just sharing this programme which some people may find interesting
smali2java is based on smali files generated by apktool v1.5.0 with baksmali v1.3.4. smali2java depends on information such as code line number(.line keyword) and varialbe name(.local keyword) etc. Thus it can furthest reduce orignal java source code. The reduced java code will keep orignal variable names. The code sequence will be the same as orignal java code too. And also for this reason, this tool has limitaion. It only works for those smali files that have line numbers and varialbe name. Some java compiler options can eliminate these information from bytecodes.
Screenshots in spoiler
{
"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"
}
Note - This is probably only useful just to compare for learning - Its unlikely you will be able to build anything from this
Download - Here
Original Website - Here
finally !!! thanks for sharing
But What About Compiling
myaservip said:
But What About Compiling
Click to expand...
Click to collapse
as stated in the op
unlikey you will be able to compile the java files - its just for learning and comparing java to smali but you can always try if you want
thankssssssss
EMINEM786 said:
thankssssssss
Click to expand...
Click to collapse
please just press the thanks button instead of creating clutter in a thread and also dont quote the entire op
okkk
marcussmith2626 said:
please just press the thanks button instead of creating clutter in a thread and also dont quote the entire op
Click to expand...
Click to collapse
Related
for first I wanted to thank @darkcracker for this very useful giude
THIS GUIDE IS FOR PORTING GAMES TO ARMV6 MOBILES
THE GAME MUST BE BASED ON UNITY ENGINE
ORIGINAL THREAD http://forum.xda-developers.com/showthread.php?t=2128480
INFORMATION:
This tutorial is only for educational needs
only unit based games will convert
test on unity engine 3.x only not sure about v4
notepad++ http://notepad-plus-plus.org/download/v6.3.2.html
WINRAR http://www.win-rar.com/download.html?&L=0
IF U CONVERTED A PAID GAME KEEP IT FOR UR SELF ONLY POST FREE GAMES
CREDITS: DARKCRACKER (FOR SHARING THE GUIDE)
PRESS THANKS IF HELPED
I see u are trying to contribute something op ... but u should never copy paste the whole guide
If u want to share a guide u should give some info and tips about it if u have any and then give a link to original thread for more info
Edit it out
{
"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"
}
=========HOLO-UBUNTU========theme
sanny5 said:
i see u are trying to contribute something op ... But u should never copy paste the whole guide
if u want to share a guide u should give some info and tips about it if u have any and then give a link to original thread for more info
edit it out
=========holo-ubuntu========theme
Click to expand...
Click to collapse
thank you for guiding me
post edited
Hi everyone :victory:
So, first of all, I'm not a java developper, I never done any java in my life, only C and C++, and i'm used to have .c/.cpp files along with .h files.
That being said, I can still understand the syntax of Java, however I don't fully understand how Eclipse is supposed to work.
I've followed a few guides on the web in order to get started and to be ready to compile APK from pre-existing code (I just want to modify a Xposed Module), and here's what I've done.
Install Eclipse
Install ADT
Update ADT and install Android SDK
Get the xposed module code from GitHub
I've then went to File -> New Project --> Android Folder --> Android Project from Existing Code, and I've selected the xposed module folder.
So far everything works, I've even found how to add the XposedBridgeAPI.jar in my project (not an easy thing to do and I'm not sure i've done it the correct way, but no more Eclipse error about Xposed functions )
But I now encounter another problem which is that I can't find a way to import this library : Android-DirectoryChooser into my project :crying:
{
"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"
}
I've tried to follow the instructions given on the GitHub :
Import the project into your favorite IDE and add android.library.reference.1=/path/to/Android-DirectoryChooser/library to your project.properties.
Click to expand...
Click to collapse
but it doesn't change anything ... :silly:
I've been struggling with this for hours now, can someone tell me what I've done wrong or what to do ?
Thank you in advance.
Regards,
Azsde.
Edit : I found the solution, I just needed to make a '' libs'' folder at the Root of my project, with my jar inside
Note : I am Sharing the work of forumber2.All the credits goes to him A little intoduction by him
forumber2 said:
APK to Java Viewer
{
"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 all!
As you know, we can view and save java classes in classes.dex via some tools. And we have enough guides (like this; http://goo.gl/QkK6P7 ) but it requires effort so, I made this small tool for lazy people
This script will show the java files in your apk/jar (framework). Instructions as below:
1. Download the zip in Attachments.
2. Extract Java-Viewer.zip anywhere on your PC.
3. Put your an apk or jar (framework) in "Input".
4. Execute "Run_me_first.bat"
5. Follow Instructions (in tool)
**JRE is required
**IMPORTANT: DO NOT leave spaces when you name your apk files, e.g. "123 abc.zip" is a no go, "123abc.zip" is the correct way,
Bugs;
-After converting dex to jar, the script ends suddenly. Thats why you need execute View_Java.bat after finish Run_me_first.bat script
-jd-gui can't decompile all smali files.
Applications are used;
-JD-GUI 0.3.6
-7zip
-dex2jar-0.0.9.15
Credits;
@Ryuinferno for his "Sign-em!" thread style
@lickarock for his guide and his screenshot
Click to expand...
Click to collapse
Downloads Here
Orginal Threads
Hi
Need to know something rudimentary.
Is it possible to design/modify the look and feel of the Firefox OS from the device simulator? Not the apps, but the entire Firefox OS GUI.
Thanks.
arjunm009 said:
Hi
Need to know something rudimentary.
Is it possible to design/modify the look and feel of the Firefox OS from the device simulator? Not the apps, but the entire Firefox OS GUI.
Thanks.
Click to expand...
Click to collapse
Hi arjunm009,
FirefoxOS development name is b2g (boot2gecko) there is a beautiful diagram on Mozilla's pages advising how the layers work, see https://developer.mozilla.org/en-US/Firefox_OS/Platform/Architecture
{
"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"
}
Gonk is the Hardware Abstraction Layer for the drivers
Gecko is the Rendering Engine
Gaia is the GUI, and the part you are interested in.
It is possible to modify Gaia, and Mozilla have a very detailed guide located just here: https://developer.mozilla.org/en-US/Firefox_OS/Developing_Gaia
You can also grab the B2G source code and only pull down Gaia this would then let you modify, or even fix and pass back upstream to Mozilla.
You would then need a way to get your changes into the emulator, you can do this on a live device by entering the Gaia directory and typing make gaia, and then reset gaia.
However, on the emulator Mozilla offer the following detailed tutorial on how to see your gui changes in realtime on the emulator running on Firefox:
https://developer.mozilla.org/en-US/Firefox_OS/Developing_Gaia/Making_Gaia_code_changes
thanks a lot. this would get me started.
I've been searching the web for information on how to decrypt lua files from an APK package that are encrypted with XXTEA block cipher (cocos2d game engine). When trying to retrieve the key that is used I've imported the libgame.so in IDA Pro but I'm having trouble decompiling it so I can read/understand the code better. My IDA Pro decompile plugins are failing and I don't have the knowledge on how to fix it (only started using the program today).
Is there anyone who can help me figuring out what the used key is and maybe help me understand on how to do it on my particular APK file.
The 'tutorials' I've been reading into are:
https://reverseengineering.stackexchange.com/questions/21759/decrypting-lua-files
https://forum.xda-developers.com/showthread.php?p=12853986#post12853986
https://boards.libre.io/threads/dec...er-in-lua-file-from-cocos2d-lua-games.297552/
https://boards.libre.io/threads/decrypting-lua-files.238916/
The APK I'm trying is:
http://www.filedropper.com/warofcolonyv212android42-apkpurecom
Any pointers on how to proceed with this are really appreciated!
janjaapy said:
I've been searching the web for information on how to decrypt lua files from an APK package that are encrypted with XXTEA block cipher (cocos2d game engine). When trying to retrieve the key that is used I've imported the libgame.so in IDA Pro but I'm having trouble decompiling it so I can read/understand the code better. My IDA Pro decompile plugins are failing and I don't have the knowledge on how to fix it (only started using the program today).
Is there anyone who can help me figuring out what the used key is and maybe help me understand on how to do it on my particular APK file.
The 'tutorials' I've been reading into are:
https://reverseengineering.stackexchange.com/questions/21759/decrypting-lua-files
https://forum.xda-developers.com/showthread.php?p=12853986#post12853986
https://boards.libre.io/threads/dec...er-in-lua-file-from-cocos2d-lua-games.297552/
https://boards.libre.io/threads/decrypting-lua-files.238916/
The APK I'm trying is:
http://www.filedropper.com/warofcolonyv212android42-apkpurecom
Any pointers on how to proceed with this are really appreciated!
Click to expand...
Click to collapse
{
"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"
}
I think key is "@#k./%9l[w~!o"