Dex2Jar tutorial/help? - Android Software/Hacking General [Developers Only]

I found dex2jar that is intended to convert .dex files to human readable .class files in java. The tutorial however is not very complete and even after putting both the .apk and the dex2jar unzipped file into a folder and running the code in command prompt, all I receive is the opening of dex2jar.sh. I do not find the .jar file that should be generated in the same folder. Anybody with experience with dex2jar want to post a tutorial or some help?

1. dex2jar.sh file.apk
2. profit

I feel like an idiot right now. The sh file is for Linux computers, I am on windows, so I should have ran the batch file.

im going to bump this thread...
i am having some problems with dex2jar right now. ive been able to properly run baksmali, but for some reason im not able to run dex2jar.
im on windows 7, and ive tried saving the .zip file to a folder then unzipping with command prompt, and etc. however, this process does not unzip for me. maybe, i need to look up the unzip command lines to make sure, if im even entering the informaiton correctly. though, i assume that i could just unzip the .zip program into a folder using winace, or something. And, the dex2jar program would work the same. i might be wrong, but i manually unzipped dex2jar to a folder.
then, since my phone is rooted. I easily have access to classes.dex files. So, I put the classes.dex files in the same folders as the dex2jar files and etc.
now, i run command prompt and try to pull up all the directories to the dex2jar.bat and classes.dex files. after i have the directories set up. I run the command line of dex2jar.bat classes.dex
and usually gives me an error of
'java' not recognized on internet or/and external etce etc etc..
ive had the same error with baksmali, but i was doing something wrong, as in the file system and using the wrong command line.
i've tried moving up a few directories too the lib files, and running the dex2jar-0.0.7.8-SNAPSHOT.jar file, (or whatever it is called) in the command line with classes.dex and it gives an error, but the last line says batch (or something) is operational.
SORRY, for the lOOOOOOOnnnng run down, but i really need help.

@badmonopoly
Initially, I struggled a bit, but here's what i did to make it work (on XP)
1. Extract all the files in the zip file to a folder. You can use any extracting tool in windows.
2. Copy you .dex file to this folder.
3. Run setclasspath.bat. This should be run because this data is used in the next step.
4. Go to Windows Command prompt, change the folder path to the folder where you extracted the zip file in step 1 and run the command as follows:
dex2jar.bat classes.dex
5. Tada!! Your jar file will be ready in the same folder.
Hope this helps..
P.S.: You need to have Java installed on your Windows machine for this to work.

this is what you're looking for:
http://forum.xda-developers.com/showthread.php?t=873466

I got it all working but i have one problem probably a noob question but how do i get it back to a dex?
ok well nevermind smali and baksmali is way easier to use

jar2dex
HI I have got a serious problem and i have edited one of this but now i need to convert jar file to dex how ???? this is really serious for me plz help!!!

msri3here said:
@badmonopoly
Initially, I struggled a bit, but here's what i did to make it work (on XP)
1. Extract all the files in the zip file to a folder. You can use any extracting tool in windows.
2. Copy you .dex file to this folder.
3. Run setclasspath.bat. This should be run because this data is used in the next step.
4. Go to Windows Command prompt, change the folder path to the folder where you extracted the zip file in step 1 and run the command as follows:
dex2jar.bat classes.dex
5. Tada!! Your jar file will be ready in the same folder.
Hope this helps..
P.S.: You need to have Java installed on your Windows machine for this to work.
Click to expand...
Click to collapse
Great...........Nice Work

msri3here said:
@badmonopoly
Initially, I struggled a bit, but here's what i did to make it work (on XP)
1. Extract all the files in the zip file to a folder. You can use any extracting tool in windows.
2. Copy you .dex file to this folder.
3. Run setclasspath.bat. This should be run because this data is used in the next step.
4. Go to Windows Command prompt, change the folder path to the folder where you extracted the zip file in step 1 and run the command as follows:
dex2jar.bat classes.dex
5. Tada!! Your jar file will be ready in the same folder.
Hope this helps..
P.S.: You need to have Java installed on your Windows machine for this to work.
Click to expand...
Click to collapse
cant open the file.
file is corrupted
why??

Related

[RELEASE]{02/08/2007}MODIFIED Molski Devpack Kitchen for HTC Tornado [by Duke]

Hello ALL!
Here is the long awaited HTC Tornado ROM kitchen
This Kitchen is in actual fact the Molski DEVPACK kitchen but its been MODIFIED by myself, Duke_Stix in order to be compatible with the HTC tornado and to make rom editing and cooking easier for EVERYONE!
Please note, before anybody starts pointing fingers, FULL permission was obtained from molski himself before any modifications were made and full permission was obtained in order for me to release this kitchen as the initial kitchen was of course, by MOLSKI!
This was the first kitchen that i learnt to use so it was the first kitchen i modified!
There will also be a modified CORE kitchen released soon too once i can iron out any and all bugs.
Anyway:
Pretty simple to run really. heres a few instructions to get you all started:
Download the attached file: Molskis_Devpack_modified_for_tornado_by_duke_stix.exe
READ THE PDF FILE THAT IS IN C:\DEVPACK\tools\batch\readme
Here are steps:
1) RUN the executable file, you should end up with TWO folders, DEVPACK and Molski.biz Devpack. MOVE the 'DEVPACK' folder to the ROOT of your C: drive.
2) Place ANY nk.nbf that you wish to 'unpack' into the source folder of the DEVPACK folder. so.....
' C:\DEVPACK\source ' Contains your NK.NBF file
3) Go to your desktop and into the 'molski.biz devpack' folder, this has lots of little shortcuts in it.
4) first of all, click the 'dump rom' script.
5) Let it do its thing
6) in the C:\DEVPACK folder there should now be a new folder called......ROMDUMP! (<-- guess whats in here?!)
7) Edit as much as you wish, dont forget to get rid of the first two bytes in the initflashfiles.dat file before you build rom again
8) once you've clicked the 'build rom' script go back into c:\devpack\tools and in there should be nb2nbf_tornado.exe
9) open that, dont touch anything atthe top apart fro the output field, here, I would suggest selecting your desktop and you MUST issue the file name as 'nb.nbf'
10) below that click the tick box next to 'File #1:' it will allow you to select 'file #1' point it to c:\DEVPACK\ROMDUMP and to the file called 82040000-OS.nb
11) back in the nb2nbf program select 'OS' under image name
click translate
go to your desktop, move the nk.nbf file there into C:\DEVPACK\tools\RUU_2001
run the 'ROMUpdateUtility.exe'
and away you go! should start flashing
IT IS IMPORTANT THAT YOU READ THE README FILE! i will also attach it to the post
also, anyone willing to donate can send any paypal donations to [email protected] and reference them 'duke'! very much appreciated!lol
MIRROR:
http://www.megaupload.com/?d=VWCLXM6Z
ENJOY!
post any questions here
AND DO NOT FORGET TO READ THE README FILE!!!!!
ALSO READ: http:\\www.molski.biz
HAPPY COOKING!
duke_stix said:
How to use this Rom Cooking Pack:
I tried to make everything as simple as possible, still you definitely need to know what you are doing!
Step 1:
Extract the nk.nbf file from a Rom archive (all Rom archives can be opened with tools like WinRAR) into the X:\DEVPACK\source directory.
Step 2:
Execute the DUMP_ROM script when the script is finished a ROMDUMP folder is created in X:\DEVPACK, with all the .nb files found in the nk.nbf file, the 80040000-OS.nb file will be splitted into 2 template (.bin) files and the contents of the OS templates is placed in the “dump” folder.
Step 3:
When the script is finished you can start adding and deleting (watch out what you delete!) files in the dump folder.
Step 4:
Editing the initflashfiles.dat file!
Execute the EDIT_INITFLASHFILES script so the file gets copied to the ROMDUMP directory, a backup of this file is placed in the Backup folder inside the ROMDUMP directory!
This is a very important file, when the Wizard gets a hard-reset or is flashed to another Rom, this file builds the directory structure, copys files from Windows to (as example) the Program Files directory.
These are some examples from the initflashfiles.dat file:
root:-Directory("My Documents")
Directory("My Documents"):-Directory("My Pictures")
Directory("\Windows\Start Menu")ermDir("Programs")
Directory("\Windows\Start Menu")ermDir("Settings")
Directory("\Windows\Start Menu"):-File("Messaging.lnk","\Windows\tmail.lnk")
Directory("\Windows\Start Menu\Programs"):-File("File Explorer.lnk","\Windows\fexplore.lnk")
Directory("\My Documents\Templates"):-File("love.gif","\Windows\love.gif")
As you can see, not so tough as it looks, I am not going to explain every single line of this file, but will give you one example….just to make things a little bit easier to understand!
All files from the “dump” folder are basically placed in \Windows and get copied to other directories from this point, so when a shortcut is copied from \Windows to \Windows\Start Menu\Programs you will have a shortcut in both directories (but that’s not a big deal!).
I am going to explain this line, to let you know what this line actually does
Directory("\Windows\Start Menu\Programs"):-File("File Explorer.lnk","\Windows\fexplore.lnk")
The shortcut fexplore.lnk in \Windows gets copied to the \Windows\Start Menu\Programs directory and gets renamed to File Explorer.lnk
Very easy….isn’t it? J
So…after adding all files to the “dump” directory, adding the lines of the added files (IF needed) to the initflashfiles.dat file you can save this file, make sure the last line in this file is a blank line (otherwise your device will be stuck at the second Splash Screen)!!
Example:
When you want to add a program named ABC.exe to \Start Menu\Programs, just copy the ABC.exe file to to the “dump” folder and place a shortcut named ABC.lnk in the “dump” folder and add a line for ABC.lnk into the initflashfiles.dat file.
To create a shortcut for ABC.exe, simply open Notepad, create a line like this:
24#"\Windows\ABC.exe"
(the number can be different), save it as ABC.lnk and add this to the initflashfiles.dat file:
Directory("\Windows\Start Menu\Programs"):-File("Alphabet.lnk","\Windows\ABC.lnk")
In this example the shortcut ABC.lnk, that points to ABC.exe gets placed in Programs with the name Alphabet.
After saving the initflashfiles.dat file, open the file in WinHex and remove the first 2 bytes (FF FE)!
If you don’t remove these 2 bytes your device will also be stuck at the second Splash Screen!!
After removing the 2 bytes and saving the file you can copy it to the “dump” folder (overwrite the original initflashfiles.dat file….don’t worry, you still got the backup of the original file in the Backup folder)!
Step 5:
Editing the HV Files!
Okay, let’s say that the application used in the example (ABC.exe) has a few Registry Values and will not work without it, therefore we will need to edit the default.hv and/or user.hv files.
Execute the script CREATE_RGU_FILES, this will copy the default.hv and user.hv files from the “dump” folder into a directory called HV Files in the Romdump directory and convert the 2 .hv files into .rgu files so we can edit them with notepad.
When editing .rgu files there are 4 things that are very important!
Turn off Word Wrap in Notepad
The 1st line is a blank line, type “REGEDIT4” (without quotes) on this line
Make sure the last line of the file is a blank line
Make sure the files are saved in Unicode and not in ANSI
The Windows Mobile Registry has 4 keys:
[HKEY_CLASSES_ROOT] à These Registry keys gets insert in the default.rgu file
[HKEY_LOCAL_MACHINE] à These Registry keys gets insert in the default.rgu file
[HKEY_CURRENT_USER] à These Registry keys gets insert in the user.rgu file
[HKEY_USERS] à These Registry keys gets insert in the user.rgu file
When you are finished editing the .rgu files, execute the CREATE_HV_FILES, watch properly of the files get converted without errors, if everything went okay, copy the default.hv files from the HV Files directory to the “dump” folder (overwite the original files….don’t worry, you still got the backup of the original file in the Backup folder)!
Step 6:
Okay, by now we have extracted and dumped the nk.nbf file, added and/or removed files from the “dump” folder, edited the initflashfiles.dat file, added registry values in default.hv & user.hv and copied the 3 edited files to the “dump” folder.
Now we are (finally…) ready to build the Rom!
Execute the script BUILD_ROM and wait till it’s finished (will take a couple of minutes depending on the speed of the computer).
This script will add the modified “dump” folder to the OS template files (.bin files) and when that is done it will build the 8004000-OS.nb file from the OS template file.
[\QUOTE]
Click to expand...
Click to collapse
Click to expand...
Click to collapse
reserved yet again
Thanks a lot for this tool i'll look that when i will go at home.
Thanks for all your job
can't get to megaupload.
can you upload it to rapidshare? thanks for your work.
ericjm said:
can't get to megaupload.
can you upload it to rapidshare? thanks for your work.
Click to expand...
Click to collapse
http://rapidshare.com/files/46589256/Molskis_Devpack_modified_for_tornado_by_duke_stix.exe.html
burkay said:
http://rapidshare.com/files/46589256/Molskis_Devpack_modified_for_tornado_by_duke_stix.exe.html
Click to expand...
Click to collapse
thanks dude!
anyone tried this yet then?!
\
im awaiting feedback!
When I tried to dump rom, I get this
Splitting 80040000-OS.nb into .bin files....
Unable to open source image [80040000-OS.nb]
Creating Dump directory....
Dumping Rom content into dump directory....
Please wait a couple of minutes, depending of the speed of your computer!
Dump folder is ready in ROMDUMP directory!
Press any key to continue . . .
Why is it that I am unable to open source image ?
Looks like duke stix forgot to add a rename command in the batch file.
The wizard NBF WDATA start address for the OS is 80040000 and the tornado WDATA start address is 82040000, so rename 82040000-OS.nb to 80040000-OS.nb and it should work.
Phil
jm012a9749 said:
Looks like duke stix forgot to add a rename command in the batch file.
The wizard NBF WDATA start address for the OS is 80040000 and the tornado WDATA start address is 82040000, so rename 82040000-OS.nb to 80040000-OS.nb and it should work.
Phil
Click to expand...
Click to collapse
Actually im dumping using Mozbi Devpack for Wizard, thought it is the same, it works now.
Thanks
oioi
I'll get to changing that right now. didnt notice that!
Good tools and good explanations.
I dumped I rebuilt a Qtek ROM today for my wizard, and the advices of this thread were the biggest help.
Thanks and well done.
Customized ROM hanging in spash screen
Hello Duke,
I am currently in the process of customizing my own ROMs from other user builds thanks to the tools you provided. I am having problems though...I have used multiple nk.nbf (different os) files and dumped then rebuilded without modification just to make sure I have the technique correct. That is without modifying initflash or hv files and going right to rebuilding after dumping and I am hanging on the first screen. I then need to manually go to bootloader for reinstall.
I then checked with my modified ROMs following pdf religiously (ie deleting first 2 bytes and leaving last empty line-initflash...and adding REGEDIT4 and leaving last line saving as unicode-rgu...following instructions provided) and yet I continue to hang on the first screen.
Do you have any suggestions??
Thanks again,
vjgrace

Extracting CABS from EXE files

How does one go about extracting the CAB file from a desktop installation EXE file so I can have it with me when I want to Hard Reset ?
When you run setup.exe a folder is created in %ProgramFiles%\Microsoft ActiveSync\ with the cab's
If you unplug your device from ActiveSync, run setup.exe, click start - run and type %ProgramFiles%\Microsoft ActiveSync\ (and press return), locate the new folder, copy the cab file to somewhere else, delete the folder, connect the device to ActiveSync, copy the cab to your storage card and your all set
There is also a program called Universal Extractor that unpacks most stuff - Google it
U can use universal extractor in some cases, or after runnig exe on PC files can be found smwhere in async directory, or it creates folder for itself in Program files (both on PC). Or after it starts installing, dont click anything ad search for *.cab. AFAIK it should work (expcept few apps)
FileJuicer
Filejuicer works for Macs. It is a good program for us mac users to get cab files out of .exe. www.filejuicer.com
I use this program but it doesn't work with all the EXE files. It worked 7 out 10 of the files that I tried to extract the CAB. Give it a try.
Wow ALL great ideas ands methods.
I was able to grab them from the active sync folder.
Duh I should have thought of that I have done that on the other end ( ppc) but not desktop.
Thanks

How to sign a file? (Need Help)

I am looking for a run down on signing a file.
So far, I have taken other people files and just edited images from the apk moved them back and signed using Kitchen (Only way I know how)
So I am at a stand still here...
I want to add
app\Rosie.apk
and
system\com.htc.resources.apk
to a file so that I can change things a little more.
But have not had luck.
Can someone give the rest of us some steps?
Thanks.
are you on windows? if so, then use this batch script. unzip it and get to signing
how would you sign a zip on a mac?
mrchu001 said:
how would you sign a zip on a mac?
Click to expand...
Click to collapse
firstly, install java. then look inside the batch script and you'll see the basic layout for signing files from terminal.
EDIT: what it inside the script is this basic layout for signing, "java -jar signapk.jar testkey.x509.pem testkey.pk8 update.zip update_signed.zip"
replace "update.zip" with your zip file and update_signed.zip with your zip file with "signed" or something so you know it's signed appended before the .zip
darchstar said:
are you on windows? if so, then use this batch script. unzip it and get to signing
Click to expand...
Click to collapse
Yes, I am running windows. Thanks for the file! I will give it a try.
So I see the Sign.bat All I know so far, (Sorry, still new)
My folder will be laid out like this.
<update.zip>
<system>
<app>Rosie.apk</app>
<framework>com.htc.resources.apk</framework>
</system>
<update.zip>
But I dont know where to go from there?
I wonder if we counted, how many threads do you think were started here with this EXACT same question?
chaos67731 said:
Yes, I am running windows. Thanks for the file! I will give it a try.
So I see the Sign.bat All I know so far, (Sorry, still new)
My folder will be laid out like this.
<update.zip>
<system>
<app>Rosie.apk</app>
<framework>com.htc.resources.apk</framework>
</system>
<update.zip>
But I dont know where to go from there?
Click to expand...
Click to collapse
run the batch script from command prompt
darchstar said:
run the batch script from command prompt
Click to expand...
Click to collapse
I dont know how to do that or what it does.
I unziped the folder to my desktop but really dont know where to go from there.
I also dont know command prompt at all for the most part.
Only little things {cd} {*} things like that but even than its just at sight.
I looked http://forum.xda-developers.com/showthread.php?t=618874 and there does not seem to be a wiki or anything on this.
make a new folder where you'll want to zip all your files
copy the autosign.zip to this folder
unzip it.
zip up your files and update-script, name the zip update.zip and put them in this folder
run the batch script from command prompt
Code:
Sign.bat
you will now have a new zip called update_signed.zip, which is you signed update.zip
Does flipzmode's Kitchen do the same thing?
I know there is a sign part to it.
I have used it but not sure if it does the same thing.
When doing this is get an error.
It says it can not find the update script?
mrchu001 said:
how would you sign a zip on a mac?
Click to expand...
Click to collapse
Unzip this. Place the testsign.jar in the root directory of your Mac. Not the home (user) directory, but should be "Macintosh HD" or something of the sort. Then place the Android-Sign.app in /Applications. Even easier to make a shortcut to it in the dock. Whenever you want to sign a file, drag it to the Android-sign app, and it will sign it and put it in the same directory as the original, with "signed" at the end so you'll know which one is which.
For Mac there is an auto-sign program. Just put testsign.jar on the root of your computer hard drive (Macintosh HD) and it works. To sign a ROM, open the rom folder, select all the contents, right-click, and click Conpress. Rename archive.zip to whateveer you want. Drag it onto the Android Sign program and then wait for the program to close (when the dot goes away). There should be another file in the ROM folder called Archive-signed.zip. That is your signed zip.
...That's what I just posted.
ajones7279 said:
...That's what I just posted.
Click to expand...
Click to collapse
We posted it at like the same time I think he figured out how to do the actual signing, but he zipped the folder and not the contents. So... It was rom.zip>rom>contents of rom.
ajones7279 said:
Unzip this. Place the testsign.jar in the root directory of your Mac. Not the home (user) directory, but should be "Macintosh HD" or something of the sort. Then place the Android-Sign.app in /Applications. Even easier to make a shortcut to it in the dock. Whenever you want to sign a file, drag it to the Android-sign app, and it will sign it and put it in the same directory as the original, with "signed" at the end so you'll know which one is which.
Click to expand...
Click to collapse
this is great man!
many thanks!
No problem.
ok so im on windows. it says java not rec.. so im assuming i need to dl java. but would someone be able to leave a little more detailed how to on this. i figured most of it out. but idk if im spose to have the unziped auto-sign folder in my rom zip or outsided of my rom zip..
feefeeboomboom said:
ok so im on windows. it says java not rec.. so im assuming i need to dl java. but would someone be able to leave a little more detailed how to on this. i figured most of it out. but idk if im spose to have the unziped auto-sign folder in my rom zip or outsided of my rom zip..
Click to expand...
Click to collapse
You're using Stericson's autosign.bat correct?
I might be wrong but if you use Kitchen you can auto sign things and it works really good.

[Q] How to extract .img files? (system, cache, boot)

Hey guys, i've searched the forums for this although haven't really seen any that can teach or show me how. So, counting on the devs on our thread to help out a little, c'mon, give this noob something to wrack his brains with for a couple of weeks..
What are you extracting them from?
Woodrube said:
What are you extracting them from?
Click to expand...
Click to collapse
[GUIDE] Extract files from Nandroid backups
From an SBF you need this. (instructions provided by chops13)
1. moto android depacker http://i749.photobucket.com/albums/x...ba/screen2.jpg
http://modmymobile.com/forums/402-ge...13-2010-a.html
2. unyaffs for windows
http://boomtopper.blogspot.com/2009/...ws-binary.html
3. cygwin1.dll
http://www.dll-files.com/dllindex/dl....shtml?cygwin1
-
Step 1. - launch moto android depacker
2. Menu > Open From File > choose your .SBF rom file
3. Menu > Split to Folder
4. Put unyaffs and cygwin1.dll in the Folder that has now been created in windows explorer by the last Split to Folder action
5. Also inside that new folder (named like your SBF file automatically) you will see a bunch of .SMG files.
6. Take note of the .SMG filename with the largest amount of data. One will be significantly bigger than the others. This is where all your .apk's are stored.
7. Open command prompt
8. navigate to the location of this Folder with unyaffs, cygwin1.dll, and the other .smg files
9. Once you command prompt is inside that folder type: unyaffs <filename.smg>
10. For me the .SMG file that was the biggest was CG39.smg
11. You will then see that folder filling up with a bunch more folders as it extracts
12. One of the Folders will be "app"
12. Go into that folder and you will see all of you ROM .apk's Each apk is an app, that you can now manually install or remove to rebuild a customized image, etc.
Woodrube said:
What are you extracting them from?
Click to expand...
Click to collapse
You know the image files we have for our XT720s, i was thinking of extracting APKs from the ROM as i need an FM radio apk to try out, that's why i though of extracting them from my nandroid backups.. Is that possible?
3rdstring said:
[GUIDE] Extract files from Nandroid backups
From an SBF you need this. (instructions provided by chops13)
1. moto android depacker http://i749.photobucket.com/albums/x...ba/screen2.jpg
http://modmymobile.com/forums/402-ge...13-2010-a.html
2. unyaffs for windows
http://boomtopper.blogspot.com/2009/...ws-binary.html
3. cygwin1.dll
http://www.dll-files.com/dllindex/dl....shtml?cygwin1
-
Step 1. - launch moto android depacker
2. Menu > Open From File > choose your .SBF rom file
3. Menu > Split to Folder
4. Put unyaffs and cygwin1.dll in the Folder that has now been created in windows explorer by the last Split to Folder action
5. Also inside that new folder (named like your SBF file automatically) you will see a bunch of .SMG files.
6. Take note of the .SMG filename with the largest amount of data. One will be significantly bigger than the others. This is where all your .apk's are stored.
7. Open command prompt
8. navigate to the location of this Folder with unyaffs, cygwin1.dll, and the other .smg files
9. Once you command prompt is inside that folder type: unyaffs <filename.smg>
10. For me the .SMG file that was the biggest was CG39.smg
11. You will then see that folder filling up with a bunch more folders as it extracts
12. One of the Folders will be "app"
12. Go into that folder and you will see all of you ROM .apk's Each apk is an app, that you can now manually install or remove to rebuild a customized image, etc.
Click to expand...
Click to collapse
Seems simple enough.. Thanks!!
JiroPrinz8 said:
You know the image files we have for our XT720s, i was thinking of extracting APKs from the ROM as i need an FM radio apk to try out, that's why i though of extracting them from my nandroid backups.. Is that possible?
Click to expand...
Click to collapse
When I want to do something like this, I just flash the nandroid I want to extract from and once it sets up, I go into /system and pull the apks that I want out and copy them to a folder on my sdcard. Then I go into that ROM I will use and then go into the folder on the sdcard and install them there. If need be, I move them over to /system/app.
Worked for me a number of times but I create a "shopping list" before I flash the one I am extracting from, so I know what it is that I am looking for (and maybe pick a few that i might want to check out, like the 3g hotspot or Notification toggle).
Not all apps will cross over though. Depends on if they are signed or not and also several factors with the framework and the build.
As far as the FM radio apk, which ROM are you using b/c they are posted all over the place (2.1, 2.2dexters, 2.2 Kahls, 2.2Wanhu, Miui).
Yeah, i'm just trying to figure out which will work, i had the FMradio FC on me so tried to reinstall it, no luck, deleted the apk and dalvik cache for FM radio, then tried to install it, still no luck.. Any ideas guys?
You can also do it right on your phone with unyaffs from the market. I use it all the time. Works awsome.
easye420 said:
You can also do it right on your phone with unyaffs from the market. I use it all the time. Works awsome.
Click to expand...
Click to collapse
Very nice. Just checked it out.
Finally
3rdstring said:
[GUIDE] Extract files from Nandroid backups
From an SBF you need this. (instructions provided by chops13)
1. moto android depacker http://i749.photobucket.com/albums/x...ba/screen2.jpg
http://modmymobile.com/forums/402-ge...13-2010-a.html
2. unyaffs for windows
http://boomtopper.blogspot.com/2009/...ws-binary.html
3. cygwin1.dll
http://www.dll-files.com/dllindex/dl....shtml?cygwin1
-
Step 1. - launch moto android depacker
2. Menu > Open From File > choose your .SBF rom file
3. Menu > Split to Folder
4. Put unyaffs and cygwin1.dll in the Folder that has now been created in windows explorer by the last Split to Folder action
5. Also inside that new folder (named like your SBF file automatically) you will see a bunch of .SMG files.
6. Take note of the .SMG filename with the largest amount of data. One will be significantly bigger than the others. This is where all your .apk's are stored.
7. Open command prompt
8. navigate to the location of this Folder with unyaffs, cygwin1.dll, and the other .smg files
9. Once you command prompt is inside that folder type: unyaffs <filename.smg>
10. For me the .SMG file that was the biggest was CG39.smg
11. You will then see that folder filling up with a bunch more folders as it extracts
12. One of the Folders will be "app"
12. Go into that folder and you will see all of you ROM .apk's Each apk is an app, that you can now manually install or remove to rebuild a customized image, etc.
Click to expand...
Click to collapse
Finally, how to rebuild its (app, etc, bin,...) to CG39.smg?
Thank U very much :x
Who can help me, please?
leuleu9x said:
Finally, how to rebuild its (app, etc, bin,...) to CG39.smg?
Thank U very much :x
Click to expand...
Click to collapse
hi i have exatly same cuestion how to rebuild ?? i edit tts lang pico but now now to send to phone
thks in advance
I'm trying to extrack APKs, followed the instructions aforementioned but still receveing:
8 [main] unyaffs 5960 handle_exceptions: Exception: STATUS_ACCESS_VIOLATIO
N
2790 [main] unyaffs 5960 open_stackdumpfile: Dumping stack trace to unyaffs.e
xe.stackdump
error
Anyone can help me? thanks
What command did you use ?
unyaffs works on *.img. For *.apk use apktool.
Sent from my Nexus 4 using xda premium
omartelinho said:
I'm trying to extrack APKs, followed the instructions aforementioned but still receveing:
8 [main] unyaffs 5960 handle_exceptions: Exception: STATUS_ACCESS_VIOLATIO
N
2790 [main] unyaffs 5960 open_stackdumpfile: Dumping stack trace to unyaffs.e
xe.stackdump
error
Anyone can help me? thanks
Click to expand...
Click to collapse
I am too got the same error, till I cant extract the CG2.smg file
pls help anybody
omartelinho said:
I'm trying to extrack APKs, followed the instructions aforementioned but still receveing:
8 [main] unyaffs 5960 handle_exceptions: Exception: STATUS_ACCESS_VIOLATIO
N
2790 [main] unyaffs 5960 open_stackdumpfile: Dumping stack trace to unyaffs.e
xe.stackdump
error
Anyone can help me? thanks
Click to expand...
Click to collapse
Same error here. Did you guys solve this??

Android APK analysis Easy way !!!

I am new in this forum... please help me to make my tut more effective and easy. and ya sorry for my bad bad bad English !!
Lets start the tut..
Software You Need.
1. Winrar
2. Dex2Jar
3. jd-gui (Java Code Decompilation)
4. .Net Framework 2.0 or version 3 (Recommanded if your using XP)
1.You need to extract codes and resources from the .apk file. Download and Install winrar
open your apk file with winrar. Check screenshot below
Step 2
Now we need to convert .dex (Dalvik Executable) into .jar file
copy your .dex file in same in dex2jar folder and open cmd and locate the dex2jar directory.
type this command in cmd:
>>> "dex2jar.bat classes.dex" without quotes
After successfully you converted your dex file into jar.
Step 3
Now we need to extract .class files from converted .jar file
Now select classes_dex2jar.jar file and Click Extract files " wait until the extraction process compelete"
Step 4
Now open classes_dex2jar folder. Now look all around there are lots of .dex files.
now we need to open .class files for Analysing the Decompiled Code. !!!
Now Open "jd-gui.exe"
Now Open any .class file you want u can easily read All codes...
Please comment and Say thanks.... if you think this tutorial see helpfull for you..
Great.. it works !!!!!!!
thank u :laugh:

Categories

Resources