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.
Related
This is the theme I would like to apply. Ive only installed ones in zip form, and i tried to adb push this but i dont have the correct commands or its not the right way to install? Please help me get this to work
http://forum.xda-developers.com/showthread.php?t=716727
To copy a framework-res.apk to your phone:
Edit: MAKE A NANDROID BACKUP BEFORE ATTEMPTING THIS
1. Boot into clockwork recovery (hold volume down and power while phone is off then choose recovery)
2. Plug the phone into the usb port on your computer.
3. In clockworkmod, scroll down to partitions and select it.
4. Select "mount /system"
5. Now copy the framework-res.apk file that you want to put on your phone into the sdk tools folder from wherever you downloaded it.
6. While you have the tools folder open on your desktop, hold shift and right click somewhere inside the folder. Choose "open command window..."
7. Type the following command:
adb push framework-res.apk /system/framework/
8. When it finishes copying, go back to your phone and choose "unmount /system"
9. Now go into the command window and type:
adb reboot
Once your phone reboots, you should have the replaced framework-res images.
You want to mod the animated logo on your flytouch? Follow this tutorial to know how.
First, open ADB, and connect to your device:
adb connect xxx.xxx.xxx:5555
*xxx representing your device's IP
adb shell
*wait for shell to start then type:
su
*you may need to confirm the action on your device
If you haven't gotten lost yet, type these commands:
cd /system/framework
*if u want to copy to an SD then type:
cp /system/framework/framework-res.apk /sdcard/
*if you want to copy to a UDISK then type:
cp /system/framework/framework-res.apk /udisk/
Then, with this copied, unmount:
umount /udisk/
---- or -----
umount /sdcard/
and remove the device. Then plug it up to your computer, and open the folder. Navigate to the APK, and extract it using WinRAR.
The File system within the apk will look like this:
\assets
\META-INF
\res
AndroidManifest.xml
resources.arc
navigate to assets\images\
Rename android-logo-shine.png to android-logo-shine.png.old
Rename android-logo-mask.png to android-logo-mask.png.old
Then if you want no scrolling shine, input the shine file attached, otherwise un-rename it to use it.
Then create a boot logo. it can be big, but no bigger than 1000 kb. Try to not exceed... The pixel formatting varies with different systems. For my EPAD, 600,400 pixels were enough.
Then, add the boot logo, to assets/images/ and rename it to android-logo-shine.png
Making sure the files android-logo-shine.png and android-logo-mask.png exist within the directory /assests/images/ pack up the archive again, and copy it back to the SD Card.
Now, direct your attention to the ADB Shell. Plug your SD to the device, and type:
mv /system/framework/framework-res.apk /system/framework/framework-res.apk.old
cp /sdcard/framework-res.apk /system/framework
*you should now have the modified archive apk on your android device.
Finally, set the permissions to full:
chmod 777 framework-res.apk
Double check everything on last time. Open your file browser, and check that within /system/framework you have a framework-res.apk and a framework-res.apk.old. Also, check the permissions and make sure all the boxes are checked. If all looks good, reboot your device and see. If you did this right, you should see the initial android logo, then your custom file. If you somehow messed up, I AM NOT RESPONSIBLE FOR ANY DAMAGE INCURED BY THIS PROCESS.
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!
This is a how-to to get ATT LG Optimus Pro rooted USING THE FILES PROVIDED BY FIDDY619 AS IN HIS POST FOR THE REGULAR OPTIMUS G here http://forum.xda-developers.com/showthread.php?t=2181103.
So the files are not mine, but the how to is !!!!!!!!!!!!!! Since some people complained about how to use these files on Linux here it is.
I am reproducing my post here:
Thanks to fiddy619 (OP) for the script and files !!
After some failures, I got my ATT LG Optimus G Pro E980 - got today - on Ubuntu. Here is what I had to change to get the linux script Root.sh to work.
YOU MUST HAVE ADB INSTALLED AND WORKING. Your 'adb devices' command in terminal must return a device number or you will get device not found. In Ubuntu, adb is as easy as just downloading and extracting the files and adding the prprper path: see here
http://ubuntuforums.org/showthread.php?t=1918512.
When editing your path dont forget to
$ sudo gedit ~/.bashrc
Then add to the end of the file...after last line:
export PATH=${PATH}:${HOME}/android-sdk-linux/tools:${HOME}/android-sdk-linux/platform-tools
CHANGE the 'tools' and 'platform-tools' folder path to what your file location is. You MAY not need to do the android rules bit if your phone mounts.
FOR UBUNTU:
1. Download and extract files to your favorite location. You need to remember and know the path to the location.
2. The Root.sh uses adb to push the files 'busybox', 'su' and 'superuser.apk' to the phone. HOWEVER, the location of these files depends n where you saved them on the computer.
3. Open Root.sh.
4. Find "$ADB push busybox /data/local/tmp/busybox" and change the first 'busybox' (underlined) to proper location of your file on your Ubuntu. Thus, for me I changed the line as follows:
$ADB push /home/MyUserName/Downloads/Root-Universal-linux/busybox /data/local/tmp/busybox
5. Do this for the followng lines also, changing location of 'su' and 'Superuser.apk' based on where it is on you compu.
$ADB push su /system/xbin/su
$ADB push Superuser.apk /system/app/Superuser.apk
6. Click save to save script file.
7. Put phone in 'Charge Mode' and connect to computer.
8. To run the script open terminal and
$ sudo sh '''drag and drop Root.sh file here"
Hit Enter.
9. Adb will start and it MUST say device found for you to proceed.
10. The next four lines -after 'device found' that show are INSTRUCTIONS FOR YOU. So disconnect phone >>> Disable Usb debugging >>> Enable USB debugging>>> Plug phone back in. ESSENTIALLY DISCONNECT PHONE AND ENABLE DEBUGGING AND THEN RECONNECT.
11. It will do some stuff and show:
uid=0(root), gid=0(root)
"If uid=0(root), gid=0(root) is displayed"
"Press Enter to Continue once phone is running"
"If uid=0(root), gid=0(root) is NOT displayed"
"Press Ctrl+c to quit"
The stuff in quotes again are INSTRUCTIONS. The line before it is what you should see to follow instructions: So if "uid=0(root), gid=0(root)" shows before the instruction set, you are good to go and can press 'enter'.
12. It will push the require busybox/su/etc files and change permissions and reboot. IF YOU GET ANY ERROR HERE ABOUT 'su' file not found, or 'busybox' file not found, then check Root.sh for that you entere the location of the files properly in step 4.
13. After rebooting you should see supersu installed.
Bravo!!!!
HIT THE THANKS BUTTON !!!!
Worked perfectly for my Galaxy Tab3 7inch from T-Mobile (SM-T217T). I used Linux, but should work the same way with Windows/OSX:
1. Download Heimdall (incl. frontend, if you use Linux).
2. Download recovery file (CWM -ClockworkMod) for SM-T217S or SM-T217T and extract the zip/tar file so you will get the recovery image file (you should get a file called recovery.img). See attachment for file.
3. Download SuperUser (for getting root access later on) and save it to your external SD card on your Galaxy tab. See attachement for file. Please don't unzip the file, save the zip file as it is on your SD card.
4. Put SDCard into your GalaxyTab
5. Connect your Galaxy tab to your PC via USB and start it up in Download mode: Power + Volume DOWN.
6. Open Heimdall (under Linux as root).
7. Go to tab 'Utilitites'.
8. Click on 'Detect'.
9. Choose destination file for PIT file and click on 'Download'.
10. Then change tab to 'Flash'.
11. Open your PIT file and click on 'Add'.
12. Choose recovery as partition name and add the CWM file.
13. Click on start (I prefer to automatically reboot the device after flashing recovery, so I won't activate any of the options next to the start button such as 'No Reboot', etc.).
14. Your device should now reboot. Once in Android, please power off your device.
15. Start your device with Power + Volume UP, so recovery mode will be invoked.
16. Choose the menu point ‘load from external SD card’ and execute SuperUser file – see attachment. This will actually root your device.
17. Reboot your device and you should be rooted now….
Cheers
Christoph
Enable auto-start up when plugged in
If you want to enable the Galaxy Tab 3 7" (SM-T217T) to boot automatically, when you plug it into the charger please follow these steps:
1. Download a command line tool for Android.
2. Change to root via command 'su'.
3. Change to directory /system/bin via command 'cd /system/bin'.
4. Give write permission via command 'mount -o rw,remount -t yaffs2 /dev/block/mtdblock1 /system'.
5. Make a copy of the file 'lpm' via command 'mv lpm lpm.orig'.
6. Create a new file with the name 'lpm' via command 'vi lpm' (this also open the vi text editor).
7. Press 'i' to get via into insert mode.
8. Enter the following line of code:
#!/system/bin/sh
/system/bin/reboot
9. Press 'ESC' and enter 'ZZ' to save the file and to quit the vi editor.
10. Give required permission to the file via command 'chmod 755 lpm'.
11. Remove write permission via command 'mount -o ro,remount -t yaffs2 /dev/block/mtdblock1 /system'.
12. Check, whether lpm and lpm.orig file have the same permissions via 'ls -l *lpm*'.
Cheers
Christoph