This is a tutorial to Deodex stock Rom
{ Disclaimer : This tutorial is to help people deodex their stock rom , I am no way responsible for bricking your device }
Requirement :
1. A Android SmartPhone with root access (" Dah")
2. A Pc
Tools Required :
1. ADB in an working PC
2. Android Kitchen
3. Root Explorer in Mobile ( Preferably 'Solid Explorer ')
4 .Custom Recovery ( CWM preferred )
Tutorial :
Step 1:
Make an Nandroid Backup
( In case something goes wrong , you can always come back )
Step 2:
Connect your Android device to PC
Start ADB
type : " adb devices " to make sure the device is detected
type : " adb pull /system/app "
this pull's all the files inside the system/app directory to the current ADB directory
Move these files to a folder named "app"
type : " adb pull /system/framework "
this pull's all the files inside the system/framework directory to the current ADB directory
Move these files to a folder named "framework"
Now We got the necessary files
Step 3 :
Move the folders "app" and " folder " to the Android kitchen working folder
Place the folders inside " WORKING_deodex/system "
Open the Android kitchen " Google it "
Select option " 0 " -advanced option
Now select option " 11 " -De-odex files in your rom
Set the Correct API version by selecting the option " v "
Now select the option " b " to de-odex both folders
Zipalign the apks by selecting the option " 5 "
Now move the folders "app" and "framework" back to the adb folder
Step 4: [ Important Step ]
Go to the " sytem " folder of your device
And Select both " app " and " framework " folder
Now comes the tricky part "Delete both folders "
Don't worry if the devices " reboots " we will get to it
Step 5 :
Reboot into recovery
Mount the " /system " inside " mounts and storage " option
Now connect your device to pc
Wait for the Device to be detected
Now open ADB again in "cmd"
type : " adb shell "
type : " cd system "
type : " mkdir app "
type : " mkdir framework "
type : " exit "
Now we have created empty folders for the de-odexed filles
now type " adb push app /system/app "
Wait till all the files are pushed
now type " adb push framework /system/framework "
Again wait till the process is completed
now type " adb reboot "
Tadaaa " Your Stock rom is now deodexed "
First boot takes long time so " Please Wait "
Special Thanks To :
All the developers who created those tools:angel:
Yali developer said:
type : " adb pull /system/app "
this pull's all the files inside the system/app directory to the current ADB directory
Move these files to a folder named "app"
Click to expand...
Click to collapse
If the user following this guide has windows and has set ADB as a system variable the default path when performing this action is C:\Users\[Current Users Name]\. If they don't have it set as a variable they will either have to us the cd command to get to where they have the ADB tool saved or open a command prompt inn the folder they have the ADB tool in.
Yali developer said:
type : " adb pull /system/framework "
this pull's all the files inside the system/framework directory to the current ADB directory
Move these files to a folder named "framework"
Click to expand...
Click to collapse
Refer to the above comment.
Yali developer said:
Step 4: [ Important Step ]
Go to the " sytem " folder of your device
And Select both " app " and " framework " folder
Now comes the tricky part "Delete both folders "
Don't worry if the devices " reboots " we will get to it
Click to expand...
Click to collapse
This is a dangerous recommendation to give, especially if the user following this guide didn't pay attention that they need a recovery. And if you are going to tell the user to use a recovery then tell them how to create a flashable zip out of the files they have just created. This can be done with the kamome tool in the Sony cross-device development.
Side note, full flashable zip files for all the versions of android the Xperia M has received can be found in the Themes & Apps section.
Another side note, a guide on how to deodex the system partition has already been created. This too can be found in the Themes & Apps section.
Related
I followed this
(Setting up the Android SDK
Download the file from above
Unzip to your desktop
Take the "android-sdk-windows" folder and move it to the root of your hard drive (C:\)
Right click on My Computer and click properties
Select the Advanced Tab or Advanced System Setting (Vista/Windows 7)
Select Environment Variables...
Press New
For Variable Name type: adb
For Variable Value type: C:\android-sdk-windows\tools)
and when I try to do this
(1. Run SDK Setup.exe
2. If it gives you an error go to settings and click on "Force http//....."
3. Select all options and let it download and install)
I have issues cause I dont have the SDK Setup.exe I have searched for it and can not find it, please help thanks Davey
also I installed the windows version
http://developer.android.com/sdk/index.html
If you've added the tools folder to your path, you don't need to install anything, just type "adb <command>" in the cmd prompt and you're good to go.
if you talking about this
For Variable Name type: adb
For Variable Value type: C:\android-sdk-windows\tools)
yes i have done it and it still wont work. I have my phone is debugging and on charge only and when i open the cmd and type in adb it gives me is not recoginzied as an internal or external command, operable program or batch file,
then when i type (android-sdk-windows\tools) it gives me the system cannot find the path specified. I am lost
ok So on my other computer I got some progress, I opened sdk manager and got it all updated and the only real problem i am having now is (this is dumb) but I dont know my sdk name, like when it says
cd C:\**your sdk name**\tools (Press Enter)
I have been trying C:\android-sdk-windows\tools
thanks for the help! Davey
thank you I got it running now!!!!!! I did what you said and added it to the path not just a new varibable, thank you very much!!!
I just posted this in General but realized this might be a more appropriate place for it ..
Anyone else not like the unicorn as the "ROM Control" icon on Juggernaut 5.0?
No offense to the creator .. unicorns just aren't my thing.
Here is a Settings.apk that changes the icon to something a little more standard looking.
Prerequisites
Root
ADB
Something to mount /system/ as writable (I use ES File Explorer)
Instructions
1. Place the attached "Settings.apk" in the folder where you have ADB setup (usually either "tools" or "platform-tools" in your SDK folder)
2. Type "cmd" in Run Dialog
3. Type cd and then type the path to the folder where you have ADB setup
Example
Code:
cd c:/android/android-sdk/platform-tools/
4. On your phone, mount system as writable (IMPORTANT : Your system must be writable or you will get a read-only error in the command prompt)
5. Push the modified "Settings.apk" to the /system/app/ folder
Code:
adb push Settings.apk /system/app/
You may or may not get some Force Closes after doing this - IT'S OKAY!
6. Reboot your phone - the fastest way is just type "adb reboot" since you already have the command prompt up and are in the correct directory.
Congratulations! You changed your ROM Control icon!
Hey so if anyone knows how to test roms on android sdk emulator with your pc please help me!
I found a really old guide from modaco and the problem I first enountered was that it wouldn't give me some ID number or something on cmd.
So a step-by-step guide would be great!
I have the same problem too...
what can we do?
Old topic but my answer would help for people using search button or google
1. Download the Android SDK (which includes the emulator) from here.
2. Extract the downloaded zip.
3. Run a command prompt, and change to the 'tools' directory of the SDK (or add the tools directory to your path).
4. Type 'android list target'
5. Note the 'id' number of the '1.5' target (in my case it's '2')
6. Type 'android create avd -n enhanced -t 2' (substitute 2 with the target number determined above if required)
7. You will be prompted to create a hardware profile. This is optional, but I selected 'yes' and accepted the defaults for everything except RAM, where I gave it 256MB. wink.gif
8. Download and unzip THIS image file.(in this step you can just use your own rom)
9. Copy the above file to the location of the enhanced.avd directory ('C:\Documents and Settings\<user>\.android\enhanced.avd' on Windows XP, and 'C:\Users\<user>\.android\enhanced.avd' on Windows Vista).
10. You're ready! Type 'emulator -avd enhanced' to run! Note: inital boot may take a few minutes!
If you get Java errors, you need to download the JDK for your system from here!
Mac OSX
1. Download the Android SDK (which includes the emulator) from here.
2. Extract the downloaded zip.
3. Run Terminal, and change to the 'tools' directory of the SDK (or add the tools directory to the path settings in ~/.profile).
4. Type './android list target'
5. Note the 'id' number of the '1.5' target (in my case it's '2')
6. Type './android create avd -n enhanced -t 2' (substitute 2 with the target number determined above if required)
7. You will be prompted to create a hardware profile. This is optional, but I selected 'yes' and accepted the defaults for everything except RAM, where I gave it 256MB. wink.gif
8. Download and unzip this image file.(again, here is where you can use your custom rom)
9. Copy the above file to ~/.android/avd/enhanced.avd/system.img (e.g. if you saved it to and unzipped it to downloads enter 'cp ~/Downloads/system.img ~/.android/avd/enhanced.avd/system.img')
10. You're ready! Type './emulator -avd enhanced' to run! Note: inital boot may take a few minutes!
If you get Java errors, you need to download the JDK for your system from here!
Help me please........
I've downloaded the android studio & sdk tool separately (both from official website)
Now my question is : can I use them together??......if yes.....then tell me the process
Why do u people just copy and paste the stuff from other websites?
Pls. Do specify in ur own way or pls make a video on this!!
For those who want to deodex the Stock Rom of Samsung Galaxy Y and having a problem deodexing the Email.apk/Email.odex of Galaxy Y here is a tutorial on how to deodex it successfully. I already tried this process on my own device and it worked perfectly.
What you will need is:
1. baksmali.jar (not my work so credit's not mine)
2. smali.jar (not my work also)
3. java.awt.jar (not mine either)
4. xUltimate-v2.3.3.zip (definitely not my work)
5. Busybox Installer (must be the latest version. this is downloadable for free from the android market)
6. files from \system\app and \system\framework of you phone (most importantly)
Instruction:
1. Download all the attached files at the bottom of this post. Wait until the download finishes.
2. Extract xUltimate-v2.3.3.zip by right-clicking it and selecting "Extract to xUltimate-v2.3.3.zip\"
3. Connect your phone to your computer (just make sure that "USB debugging" option of your phone is checked. To see if it's checked go to Menu -> Settings -> Applications -> Development and there you will see "USB debugging" option, it must be checked)
4. Go to xUltimate-v2.3.3 folder (this is what you extracted in step #2). Run "Main.exe" and wait until the options shows.
5. When options are already shown, type "1" in your keyboard then press enter. Wait until it finishes then press enter to continue.
6. This type type "2" in your keyboard and wait until it finishes then press again enter to continue.
7. Before proceeding to the next step we will remove first the "Email.odex" in the "orig_app" folder to avoid error in the process of deodexing the other odex files. To do this, go to "orig_app" folder then find the file "Email.odex" then move it into your desktop by right-clicking the file and selecting "cut" then right-click on desktop and select "paste"
8. Go back to xUltimate program and select now the option #3 by typing "3" on your keyboard and press enter. Wait until it finishes and press enter to continue.
9. Type "4" in your keyboard and press. Wait again until it finishes and close the xUltimate program when it's finished.
10. In this step we will manually deodex Email.apk/Email.odex so that we can include it in pushing the deodexed files in your phone. Go to your drive C: and make there a folder named "missingchord". After creating a folder go to "xUltimate" folder then "jar" folder then find this files there baksmali.jar, smali.jar, and java.awt.jar copy the following files then paste those three files in the "missingchord" folder.
11. Go to "orig_framework" folder and find this files bouncycastle.odex, core.odex, ext.odex, framework.odex, android.policy.odex, services.odex, core-junit.odex, twframework.jar, and twframework.odex then copy those files and paste it in the "missingchord" folder.
12. Find the "Email.odex" file that to move into your dekstop then copy it then paste it in "missingchord" folder.
13. Open command prompt. To do this go to start -> run then type cmd then press enter. Command prompt should be open by this time
14. Type this in the command prompt
Code:
cd c:\missingchord
then this (choose from the two codes below if which of it will work for you)
Code:
java -jar baksmali.jar -c :java.awt.jar:twframework.jar -x Email.odex
or
Code:
java -jar baksmali.jar -c :java.awt.jar:twframework.jar -a 10 -x Email.odex
15. Wait until it finishes without error. Then type this again in command prompt
Code:
java -jar smali.jar out
16. Wait until step #15 finishes without error. Find for the file "out.dex" inside "missingchord" folder then rename it to "classes.dex"
17. Go to "orig_app" and find for "Email.apk" then add "classes.dex" (from the "missingchord" folder) inside the "Email.apk". To open "Email.apk" you can use WinRar or any other similar software. Save the "Email.apk" after you successfully added the "classes.dex" inside the "Email.apk" file.
18. Copy "Email.apk" and paste it in the "done_app" inside "xUltimate" folder
19. Copy the "done_app" and "done_framework" into your sdcard
19. In xUltimate folder look for "jar" folder then right-click it and select "Open command prompt here". If you don't know how to "open command prompt here" then try to search it in the web.
20. At this point, i'm assuming that you already installed the latest version of busybox on your phone and your phone is still connected in your computer. When the command prompt is open type this following code one at a time.
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
21. Your phone will automatically reboot. Wait for it until it finish rebooting. Then check all you applications if there are missing application.
22. You have now deodexed rom. Enjoy!
Note: If you got an error in step #20 in cp /sdcard/done_app/* /system/app/ command then you must restart you computer and try again step #20 after restarting you computer.
For those who have tried this guide and got a problem, please allow me to know it so that i can help you resolve your problem.
Please press "Thanks" if you find this thread useful
PS: Those attached files are not my work so no credit goes to me.
missingchord said:
For those who want to deodex the Stock Rom of Samsung Galaxy Y and having a problem deodexing the Email.apk/Email.odex of Galaxy Y here is a tutorial on how to deodex it successfully. I already tried this process on my own device and it worked perfectly.
What you will need is:
1. baksmali.jar (not my work so credit's not mine)
2. smali.jar (not my work also)
3. java.awt.jar (not mine either)
4. xUltimate-v2.3.3.zip (definitely not my work)
5. Busybox Installer (must be the latest version. this is downloadable for free from the android market)
6. files from \system\app and \system\framework of you phone (most importantly)
Instruction:
1. Download all the attached files at the bottom of this post. Wait until the download finishes.
2. Extract xUltimate-v2.3.3.zip by right-clicking it and selecting "Extract to xUltimate-v2.3.3.zip"
3. Connect your phone to your computer (just make sure that "USB debugging" option of your phone is checked. To see if it's checked go to Menu -> Settings -> Applications -> Development and there you will see "USB debugging" option, it must be checked)
4. Go to xUltimate-v2.3.3 folder (this is what you extracted in step #2). Run "Main.exe" and wait until the options shows.
5. When options are already shown, type "1" in your keyboard then press enter. Wait until it finishes then press enter to continue.
6. This type type "2" in your keyboard and wait until it finishes then press again enter to continue.
7. Before proceeding to the next step we will remove first the "Email.odex" in the "orig_app" folder to avoid error in the process of deodexing the other odex files. To do this, go to "orig_app" folder then find the file "Email.odex" then move it into your desktop by right-clicking the file and selecting "cut" then right-click on desktop and select "paste"
8. Go back to xUltimate program and select now the option #3 by typing "3" on your keyboard and press enter. Wait until it finishes and press enter to continue.
9. Type "4" in your keyboard and press. Wait again until it finishes and close the xUltimate program when it's finished.
10. In this step we will manually deodex Email.apk/Email.odex so that we can include it in pushing the deodexed files in your phone. Go to your drive C: and make there a folder named "missingchord". After creating a folder go to "xUltimate" folder then "jar" folder then find this files there baksmali.jar, smali.jar, and java.awt.jar copy the following files then paste those three files in the "missingchord" folder.
11. Go to "orig_framework" folder and find this files bouncycastle.odex, core.odex, ext.odex, framework.odex, android.policy.odex, services.odex, core-junit.odex, twframework.jar, and twframework.odex then copy those files and paste it in the "missingchord" folder.
12. Find the "Email.odex" file that to move into your dekstop then copy it then paste it in "missingchord" folder.
13. Open command prompt. To do this go to start -> run then type cmd then press enter. Command prompt should be open by this time
14. Type this in the command prompt
Code:
cd c:\missingchord
then this (choose from the two codes below if which of it will work for you)
Code:
java -jar baksmali.jar -c :java.awt.jar:twframework.jar -x Email.odex
or
Code:
java -jar baksmali.jar -c :java.awt.jar:twframework.jar -a 10 -x Email.odex
15. Wait until it finishes without error. Then type this again in command prompt
Code:
java -jar smali.jar out
16. Wait until step #15 finishes without error. Find for the file "out.dex" inside "missingchord" folder then rename it to "classes.dex"
17. Go to "orig_app" and find for "Email.apk" then add "classes.dex" (from the "missingchord" folder) inside the "Email.apk". To open "Email.apk" you can use WinRar or any other similar software. Save the "Email.apk" after you successfully added the "classes.dex" inside the "Email.apk" file.
18. Copy "Email.apk" and paste it in the "done_app" inside "xUltimate" folder
19. Copy the "done_app" and "done_framework" into your sdcard
19. In xUltimate folder look for "jar" folder then right-click it and select "Open command prompt here". If you don't know how to "open command prompt here" then try to search it in the web.
20. At this point, i'm assuming that you already installed the latest version of busybox on your phone and your phone is still connected in your computer. When the command prompt is open type this following code one at a time.
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
21. Your phone will automatically reboot. Wait for it until it finish rebooting. Then check all you applications if there are missing application.
22. You have now deodexed rom. Enjoy!
Note: If you got an error in step #20 in cp /sdcard/done_app/* /system/app/ command then you must restart you computer and try again step #20 after restarting you computer.
For those who have tried this guide and got a problem, please allow me to know it so that i can help you resolve your problem.
Please press "Thanks" if you find this thread useful
PS: Those attached files are not my work so no credit goes to me.
Click to expand...
Click to collapse
Can I use this if maps and phonesky has a error?
Jay_SEAN said:
Can I use this if maps and phonesky has a error?
Click to expand...
Click to collapse
Well, I tested from my side with the Play Store and it worked. Make a backup with CWM and try it.
Hello here is a guide to Recover Deleted files from the internal memory for your Note II
You Need
1.Rooted Android phone ( In my case i used Note 2 SPH-L900 )
2.Install busybox ( Note : my busybox is installed at system/xbin )
3.Drivers Installed on your computer
4.Download Cygwin [ http://www.cygwin.com/install.html ] install to C:\cygwin - make sure you install with pv and util-linux - Make sure to open Cygwin once to make sure that the /bin folder is created. Also create a folder called "NoteII" under C:\cygwin...this will come in use later for the export of the .RAW file
5. Download Recuva [ http://www.piriform.com/recuva/download ]. This is the Software going to recover your file , or you can use your favourite Data recovery software . But i suggest Recuva
6. Install android SDK tool kit so you have access to ADB - I installed mine inside the root of Cygwin - C:\cygwin\android-SDK
Steps :
1. Take your rooted phone . Go to Setting->Developer Options -> Tick on Stay awake and USB debugging
2.Connect your Phone to the Computer , Let the driver Install .
3.Click Start -> Run ,
Type " CMD " Press Enter
5.Dos Window will open up Now Type " cd c:\cygwin\android-SDK\platform-tools " Press Enter (note the path is where you installed SDK on C:\)
6. Type " adb devices " Press Enter
** Make sure it returning out Some numbers (IMEI) under list of devices
7.Type " adb Shell mount " Press Enter
Now this is something important , After the command adb shell mount it will give a long List you need to fine "dev/block/mmcblkop"xx" /data(or user data "
Note : The xx can be any number
In SPH-L900 its " mmcblk0p17 " = userdata Partition .
The last two number (xx) will change from mobile to mobile . Just note the partition name . In our case its " mmcblk0p17 "
You can also download Partition Table apk from the market and it will give you a layout of what each partition is.
8.Close the CMD window . Go to My Computer->C:/->cygwin->Open Cygwin Terminal - this is where you installed the Cygwin terminal and click on the Cygwin.bat to launch terminal
9.Type " export PATH=/cygdrive/c/cygwin/android-SDK/platform-tools:$PATH " Press Enter
10.Type " adb forward tcp:5555 tcp:5555 " Press Enter
11.Type " adb shell " Press Enter
12.Type " su " Press Enter
13.Grant Superuser Right on your Phone
14.Type " /system/xbin/busybox nc -l -p 5555 -e /system/xbin/busybox dd if=/dev/block/mmcblk0p17 " Press Enter
15.Minimize the window , Open another cygwin Terminal i.e. My Computer->C:/->cygwin->Open Cygwin Terminal
16.Type " export PATH=/cygdrive/c/cygwin/android-SDK/platform-tools:$PATH " Press Enter
17.Type " adb forward tcp:5555 tcp:5555 " Press Enter
18.Type " cd /NoteII " Press Enter
19.Type " nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p17.raw " Press Enter
20. Now let it Run this will take long time for me it took me One hour to complete
21.After it Compltes Click start->Run Type " cmd " Press Enter
22. Type " cd c:\cygwin\NoteII\ " Press Enter
23.Type " VhdTool.exe /convert mmcblk0p17.raw " Press Enter
24.Now Close Everything .. Right Click My Comuter->Manage
25.Now Select Storage-->Disk Management.
26.In the menu select Action-->Attach VHD.
27.For Location enter " c:\cygwin\NoteII\mmcblk0p17.raw " and select the OK button.
28.Right-click on the name (e.g. "Disk 1") to the left of the Unallocated space and select Initialize Disk.
29.Select the GPT (GUID Partition Table) radio button and select the OK button.
30.Right-click on the Unallocated space and select New Simple Volume...
31.In the Wizard select Next>, leave the default for the volume size, select Next>, select a drive letter (e.g. K), select Next>, MAKE SURE to select
the 'Do not format this volume' radio button, select Next>, select Finish.
32.A box will pop up asking you to format the drive. You DO NOT want to format the drive at this time.
33.Right-click on the RAW space and select Format... MAKE SURE to change the File system to FAT32. Set the Allocation unit size dropdown to 'Default.' MAKE SURE that the Perform a quick format checkbox is CHECKED. You do not want to overwrite the entire new drive with all zeroes (0's) and destroy your data. Quick Format means that it will only attempt to destroy the index for the drive by establishing a new index. Without this box checked the Windows operating system will write zeroes (0's) across the entire volume, potentially destroying your data. Select the OK button.
34.A box will pop up saying that Formatting this volume will erase all data on it. That would be doubly true if you actually didn't check the 'Perform a quick format' checkbox. Double check that you actually did check the box and select the OK button.
35.Open the Piriform Recuva application. In the wizard select the 'Next >' button. Select the 'Other' radio button and select Next >. Select the 'In a specific location' radio button and enter: k:\ (assuming K is the drive letter you chose...) Select the Next > button. Select the Enable Deep Scan checkbox.
36.The application may take about an hour to do the 'Deep Scan.'
37.Once the application has returned its results you can choose which files to recover using the checkboxes. Select the 'Recover...' button and choose the location to which you wish to output your files.
This is not my work , i just gathered information and used some Copy/Paste. Have a nice day - followed instructions from this thread and modified some steps for our phone - http://forum.xda-developers.com/showthread.php?t=2140410
Note : Im not Responsible if you brick your phone . I did this and it worked for me . So im Sharing with you guys. Hit the thanks button if it helped at all!