Deodexing? Fundamental and How to.


Well , since most customization for custom roms require a deodex device , lets first understand the fundamental of the file naming system in android devices. Below is the understanding of the odex and deodex file. Well some of us wanted to use stock rom but to have the ability to customized it with theme and a few other mods. So here a fundamental of it and how to deodex your system.

WHAT IS AN ODEX FILE?
In Android file system, applications come in packages with the extension .apk. These application packages, or APKs contain certain .odex files whose supposed function is to save space. These ‘odex’ files are actually collections of parts of an application that are optimized before booting. Doing so speeds up the boot process, as it preloads part of an application. On the other hand, it also makes hacking those applications difficult because a part of the coding has already been extracted to another location before execution.

THEN COMES DEODEX
Deodexing is basically repackaging of these APKs in a certain way, such that they are reassembled into classes.dex files. By doing that, all pieces of an application package are put together back in one place, thus eliminating the worry of a modified APK conflicting with some separate odexed parts.
In summary, Deodexed ROMs (or APKs) have all their application packages put back together in one place, allowing for easy modification such as theming. Since no pieces of code are coming from any external location, custom ROMs or APKs are always deodexed to ensure integrity.

HOW THIS WORKS
For the more geeky amongst us, Android OS uses a Java-based virtual machine for running applications, called the Dalvik Virtual Machine. A deodexed, or .dex file contains the cache used by this virtual machine (referred to as Dalvik-cache) for a program, and it is stored inside the APK. An .odex file, on the other hand, is an optimized version of this same .dex file that is stored next to the APK as opposed to inside it. Android applies this technique by default to all the system applications.
Now, when an Android-based system is booting, the davlik cache for the Davlik VM is built using these .odex files, allowing the OS to learn in advance what applications will be loaded, and thus speeds up the booting process.
By deodexing these APKs, a developer actually puts the .odex files back inside their respective APK packages. Since all code is now contained within the APK itself, it becomes possible to modify any application package without conflicting with the operating system’s execution environment.

ADVANTAGES & DISADVANTAGES
The advantage of deodexing is in modification possibilities. This is most widely used in custom ROMs and themes. A developer building a custom ROM would almost always choose to deodex the ROM package first, since that would not only allow him to modify various APKs, but also leave room for post-install theming.
On the other hand, since the .odex files were supposed to quickly build the dalvik cache, removing them would mean longer initial boot times. However, this is true only for the first ever boot after deodexing, since the cache would still get built over time as applications are used. Longer boot times may only be seen again if the dalvik cache is wiped for some reason.
For a casual user, the main implication is in theming possibilities. Themes for android come in APKs too, and if you want to modify any of those, you should always choose a dedoexed custom ROM.

GUIDE TO DEODEX YOUR DEVICE
##Your Device Must be rooted for this process
##You need android-sdk installed in your computer
##You need to install latest busybox in your phone
  Things needed:-

xUltimate ( Click here to download )

Let's Begin

1.Connect your phone to computer.(Make sure you have select USB debugging in Settings>Applications>Development)

2.Extract xUltimate v2.3.3.zip and Launch Main.exe

3.If everything goes well xUltimate should recognize the phone and make a connection.You now should see a list of options.

4.Select option (1) pull /system/app. Wait until it complete.

5.Select option (2)pull /system/framework. Wait until it complete.

6.Then select option (3) Deodex /system/app. Wait until it complete.
[If encounter any error. Find out which .odex file is it. Then remove .odex file from folder origi_app in xUltimate folder]

7.Then select option (4)Deodex /system/framework. Wait until it complete.

8.Now Exit from xUltimate.

9.Put the phone in USB mass storage.

10.Go to xUltimate folder and copy "done_frame", and "done_app", and move them to the root of the sdcard.

11.Now get out from USB storage mode.

12.Open Command prompt.
( Goto folder where android sdk installed. Then goto platform-tools folder in it. Right click on free space in folder while pressing shift key.Select open command prompt here.
Now enter commands. )

13.Enter following codes.
(if you are using adb shell in su for the first time, keep phone screen on. After entering "su" code, super user request prompt in phone. Press allow )

Code:
============================================================
adb shell
su
stop mount -o rw,remount /system/ /system/
cp /sdcard/done_app/* /system/app/
rm /system/app/*.odex
cp /sdcard/done_frame/* /system/framework/
rm /system/framework/*.odex
mount -o ro,remount /system/ /system/
reboot
============================================================
14.Now you have deodexed rom.

Google Android Hidden Secret Codes

So in this topic, you'll get several hidden secret codes which can be used in any Google Android mobile phone to access things which are not accessible by default.
FYI These codes have been obtained by decoding various .apk files present in the phone firmware. 

DISCLAIMER: This information is intended for experienced users. It is not intended for basic users, hackers, or mobile thieves. Please do not try any of following methods if you are not familiar with mobile phones. We'll not be responsible for the use or misuse of this information, including loss of data or hardware damage. So use it at your own risk.


*#*#4636#*#*
This code can be used to get some interesting information about your phone and battery. It shows following 4 menus on screen:
  • Phone information
  • Battery information
  • Battery history
  • Usage statistics

*#*#7780#*#*
This code can be used for a factory data reset. It'll remove following things:
  • Google account settings stored in your phone
  • System and application data and settings
  • Downloaded applications
It'll NOT remove:
  • Current system software and bundled applications
  • SD card files e.g. photos, music files, etc.
PS: Once you give this code, you get a prompt screen asking you to click on "Reset phone" button. So you get a chance to cancel your operation.

*2767*3855#
Think before you give this code. This code is used for factory format. It'll remove all files and settings including the internal memory storage. It'll also reinstall the phone firmware.
PS: Once you give this code, there is no way to cancel the operation unless you remove the battery from the phone. So think twice before giving this code.
*#*#34971539#*#*
This code is used to get information about phone camera. It shows following 4 menus:
  • Update camera firmware in image (Don't try this option)
  • Update camera firmware in SD card
  • Get camera firmware version
  • Get firmware update count
WARNING: Never use the first option otherwise your phone camera will stop working and you'll need to take your phone to service center to reinstall camera firmware.
*#*#7594#*#*
This one is my favorite one. This code can be used to change the "End Call / Power" button action in your phone. Be default, if you long press the button, it shows a screen asking you to select any option from Silent mode, Airplane mode and Power off.
You can change this action using this code. You can enable direct power off on this button so you don't need to waste your time in selecting the option.

*#*#273283*255*663282*#*#*
This code opens a File copy screen where you can backup your media files e.g. Images, Sound, Video and Voice memo.

*#*#197328640#*#*
This code can be used to enter into Service mode. You can run various tests and change settings in the service mode.

WLAN, GPS and Bluetooth Test Codes:
*#*#232339#*#* OR *#*#526#*#* OR *#*#528#*#* - WLAN test (Use "Menu" button to start various tests)
*#*#232338#*#* - Shows WiFi MAC address
*#*#1472365#*#* - GPS test
*#*#1575#*#* - Another GPS test
*#*#232331#*#* - Bluetooth test
*#*#232337#*# - Shows Bluetooth device address

*#*#8255#*#*
This code can be used to launch GTalk Service Monitor.

Codes to get Firmware version information:
*#*#4986*2650468#*#* - PDA, Phone, H/W, RFCallDate
*#*#1234#*#* - PDA and Phone
*#*#1111#*#* - FTA SW Version
*#*#2222#*#* - FTA HW Version
*#*#44336#*#* - PDA, Phone, CSC, Build Time, Changelist number

Codes to launch various Factory Tests:
*#*#0283#*#* - Packet Loopback
*#*#0*#*#* - LCD test
*#*#0673#*#* OR *#*#0289#*#* - Melody test
*#*#0842#*#* - Device test (Vibration test and BackLight test)
*#*#2663#*#* - Touch screen version
*#*#2664#*#* - Touch screen test
*#*#0588#*#* - Proximity sensor test
*#*#3264#*#* - RAM version

Record Android Screen With ScreenCast & Screen Recorder For Android

While the iPhone got its first screen recording app back in early 2010, Android is only getting a proper screen recording solution today. Well, it’s better late than never, as the screen recording app released today does a whole lot more than simple screen recording: it’s called ScreenCast & Screen Recorder and, well, it lets you record your phone’s screen and take screenshots.

From Android Market:
Screencast records your phone screen at high frame rates into a high quality MPEG4 video. This program includes a gallery to view, play, rename, delete and share your previously recorded videos from within the same user interface.
Screenshot and live streaming are under development and will be appearing soon.
Screencast requires a ***ROOTED*** device to operate properly.
Click here to root your phone if your phone not rooted yet.
We’ve personally tested the app on our rooted Samsung Galaxy Wonder GT-I8150 and can confirm that it works as advertised. We strongly recommend this app.


Because of it requires Superuser permissions, you must have a rooted Android smartphone for this to work. Download links below:


Download ScreenCast & ScreenRecord FREE


Download ScreenCast & ScreenRecord PAID [Cracked]
Mediafire
Jumbofiles
UFile