PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   Moto Droid X Themes (http://forum.ppcgeeks.com/forumdisplay.php?f=248)
-   -   BiGnAdAd {How To} Manually Deodex Your Froyo Droid X to Allow Custom Themes (http://forum.ppcgeeks.com/showthread.php?t=132429)

bignadad 08-27-2010 01:46 PM

BiGnAdAd {How To} Manually Deodex Your Froyo Droid X to Allow Custom Themes
 
You must be rooted & have Froyo 2.2!

This is a guide on manually deodexing, you phone. You will need to perform this if you plan on using developers theme's for Froyo. I have performed this 2 or 3 times on my DX without a problem. If you have questions feel free to ask :)

Quote:

Deodexed ROMs allow the developer to more easily customize the phone interface.

For example, if you want to change icons or application configuration files. They are not packaged up in a deoxed rom. This allows them to be edited after the ROM is distributed.

There are alot of rom modifications that can only be flashed overtop of a deoxed rom. This is because they need to edit the system files that are packaged in a odex rom. This is where you have to pay attention.

You should not have to do a nandroid backup to flash between odexed and deodexed roms. When you flash a rom you are basically overwriting the system. A nandroid backup is probably overkill, but it will definitely work. The more nand bakups the better.
What you'll need:
A Windows based machine
xUltimate v2.2
Patience

Process:

1. Unzip xUltimate v2.2, and launch "Main.exe"
2. If everything goes well xUlt should recognize the phone and make a connection. You now should see a list of options.
3. Run option 1. After option 1 is done, run option 2.
4. Now these well take a while. Run option 3.
5. IMPORTANT: After you have run option 3, you MUST navigate to the xUltimate folder and find "origi_frame" folder, and delete "guava.odex". It's a bad file, and interferes with deodexing process.
6. Now run option 4, and wait.
7. Exit xUltimate, and put the phone in USB mass storage.
8. Go back into the xUltimate folder and copy "done_frame", and "done_app", and move them to the root of the sdcard.
9. Open a command prompt, and do the following:

Code:

adb shell
su
stop
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
cp /sdcard/done_app/* /system/app/
cp /sdcard/done_frame/* /system/framework/
rm /system/app/*.odex
rm /system/framework/*.odex
mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
reboot

Your phone should now be deodexed!

You may notice an increase in speed, and you now have the ability to edit certain files with greater effects. (i.e. services.jar)

Credits Via Alldroid.net:
Rainabba and Mike919: For initially working with me to get a white clock, and later deodex.
toxman: For testing, and being a huge risk taker.
teenfaces: For letting me use his services.jar
And especially Xeudoxus: For letting me a guinea pig, for xUltimate, and answering my questions. And also for the making the xUltimate tool. It defiantly makes thing easier.

bignadad 08-27-2010 01:47 PM

Re: BiGnAdAd {How To} Manually Deodex Your Froyo Droid X - Allow Custom Themes
 
reserved....

aamon17 08-31-2010 01:31 PM

Re: BiGnAdAd {How To} Manually Deodex Your Froyo Droid X to Allow Custom Themes
 
Thanks Big. I tried it on my rooted Droid X, with the Froyo 2.2 leak installed. And I keep erroring out at step 4 when it tries to deodex framework.odex. See image . . . I've checked the host forum and no solution. I've tried it over and over.

Any thoughts?

http://www.dlggraphics.com/images/deodex_error.png

bignadad 08-31-2010 01:38 PM

Re: BiGnAdAd {How To} Manually Deodex Your Froyo Droid X to Allow Custom Themes
 
Quote:

Originally Posted by aamon17 (Post 1930138)
Thanks Big. I tried it on my rooted Droid X, with the Froyo 2.2 leak installed. And I keep erroring out at step 4 when it tries to deodex framework.odex. See image . . . I've checked the host forum and no solution. I've tried it over and over.

Any thoughts?

This is one thing i found. will continue to look into this

OutOfMemoryError

If your Java program is running out of memory, there are several things you can do.
  1. Make unused objects garbage collectable.
  2. Avoid excessive object creation.
  3. Allocate more memory for the heap.
  4. Choose an alternative technique (eg, caching).
First you should understand where things are in memory, and typical reasons for running out of memory. Stack and Heap

Memory is allocated in two regions.
  • The stack is where local variables (declared in methods and constructors) are allocated. Local varables are allocated when a method is entered, and deallocated when the method is exited. Because local variables are small, only primitive types and references, it is very unlikely that the stack will overflow, except in a case of unusually deep or infinite recursion.
  • The heap is where all objects are allocated with new. It is the heap that is more likely to run out of memory. There are several approaches to solving out-of-memory problems in the heap.
Make unused objects garbage collectable

Java's automatic garbage collection recycles an object's memory when there is no active reference to it. When you are finished using a large data structure, make sure there are no references to it. It's easy to leave a reference to unused object around. Assigning null to the reference at the root of the data structure may be sufficient.
I wrote a program which processed source programs in three phases, building a large data structure for the output of each phase. I carelessly kept references to the data structures from the first two phases, even tho I no longer needed them. I was surprised to run out of memory. Simply assigning null to these variables for the unused data structures solved my problem.

aamon17 08-31-2010 01:47 PM

Re: BiGnAdAd {How To} Manually Deodex Your Froyo Droid X to Allow Custom Themes
 
Quote:

Originally Posted by bignadad (Post 1930151)
This is one thing i found. will continue to look into this

Thank you sir . . .

HellRayzer 09-24-2010 07:21 PM

Re: BiGnAdAd {How To} Manually Deodex Your Froyo Droid X to Allow Custom Themes
 
does debug need to be on, and whatsync mode does the phone need to be in??

thanks

HellRayzer 09-24-2010 07:56 PM

Re: BiGnAdAd {How To} Manually Deodex Your Froyo Droid X to Allow Custom Themes
 
it gets to daemon started successfully.....then nothing. Am i doing some wrong?

bignadad 09-24-2010 11:04 PM

Re: BiGnAdAd {How To} Manually Deodex Your Froyo Droid X to Allow Custom Themes
 
Quote:

Originally Posted by HellRayzer (Post 1955766)
does debug need to be on, and whatsync mode does the phone need to be in??

thanks

Yes, Need to be in windows media sync

siff 09-25-2010 04:39 PM

Re: BiGnAdAd {How To} Manually Deodex Your Froyo Droid X to Allow Custom Themes
 
Alright i have a problem, I've made it thru everything up to the terminal commands. I accidentally deleted the apps before copying them (missed a step) now I have gone to menu-privacy-factory reset. It worked as it reset my phone to stock-ish. I still have the superuser app in the phone. The problem is my contacts do not populate the list when I hit the contacts button on the bottom of my screen. They're in there but do not auto-pop. Any help would be great!

bignadad 09-25-2010 05:57 PM

Re: BiGnAdAd {How To} Manually Deodex Your Froyo Droid X to Allow Custom Themes
 
Quote:

Originally Posted by siff (Post 1956349)
Alright i have a problem, I've made it thru everything up to the terminal commands. I accidentally deleted the apps before copying them (missed a step) now I have gone to menu-privacy-factory reset. It worked as it reset my phone to stock-ish. I still have the superuser app in the phone. The problem is my contacts do not populate the list when I hit the contacts button on the bottom of my screen. They're in there but do not auto-pop. Any help would be great!

You should try and perform a SBF

Instructions here

HellRayzer 09-26-2010 01:23 PM

Re: BiGnAdAd {How To} Manually Deodex Your Froyo Droid X to Allow Custom Themes
 
heres a dumb question...(kinda lost). How do i get my command promp to the $ or whatever i need to enter code?
right now i have c:\>
it says adb not recognized.

Thanks, Hell

bignadad 09-26-2010 02:19 PM

Re: BiGnAdAd {How To} Manually Deodex Your Froyo Droid X to Allow Custom Themes
 
Quote:

Originally Posted by HellRayzer (Post 1956893)
heres a dumb question...(kinda lost). How do i get my command promp to the $ or whatever i need to enter code?
right now i have c:\>
it says adb not recognized.

Thanks, Hell

Do you have the android-sdk-windows package on your pc?

if so, then navigate to it and go into tools folder
i usually create a shortcut to command prompt into that folder so it opens in that directory
Make sure that your droidx is plugged in and in windows sync mode
open command prompt and type in adb shell
that will get you to a $ prompt
typing su will get you o a # prompt

HellRayzer 09-26-2010 02:34 PM

Re: BiGnAdAd {How To} Manually Deodex Your Froyo Droid X to Allow Custom Themes
 
I have windows 7. I cant find the command prompt short cut. I do have sdk on pc. in tools folder i have no command manager. when i right click to add shortcut to cm where is is located?

bignadad 09-26-2010 02:42 PM

Re: BiGnAdAd {How To} Manually Deodex Your Froyo Droid X to Allow Custom Themes
 
Quote:

Originally Posted by HellRayzer (Post 1956958)
I have windows 7. I cant find the command prompt short cut. I do have sdk on pc. in tools folder i have no command manager. when i right click to add shortcut to cm where is is located?

I used windows 7 too... just click start...type in cmd and click and drag that command prompt shortcut to your tools folder

HellRayzer 09-26-2010 03:47 PM

Re: BiGnAdAd {How To} Manually Deodex Your Froyo Droid X to Allow Custom Themes
 
when i get to sdcard done app (putting it in right ) it tells me no such file or directory. went and checked both folders on on sd card.

HellRayzer 09-26-2010 03:49 PM

Re: BiGnAdAd {How To} Manually Deodex Your Froyo Droid X to Allow Custom Themes
 
when at command...do i do one line at a time <enter> or enter it all then <enter>????

HellRayzer 09-26-2010 05:00 PM

Re: BiGnAdAd {How To} Manually Deodex Your Froyo Droid X to Allow Custom Themes
 
think i got it...ran test everything passed except for odex, it had fail, does that mean it didn't work or odex failed because nothing is odexed anymore??

reneb 09-29-2010 02:42 PM

Re: BiGnAdAd {How To} Manually Deodex Your Froyo Droid X to Allow Custom Themes
 
I downloade xUltimate v2.2 [updated 9-15-2010.when I tried to unzip it with winrar it said it had 2 ERRORS in & of course wouldnt open it.PLEASE HELP ME DEODEX MY DROID X SO i CAN USE YOURS BADASS THEMES ! iMY DROID X IS ROOTED AFTER OTA 2.2 ,i ALSO HAVE KOUSHES BOOTSTRAP ,ROM MANAGER PREMIUM INSTALLED ! DO I HAVE TOO DEODEX,IF SO PLEASE TELL ANOTHER WAY .PLEASE HELP ME INSTALL UR THEMES $ I GIVE U MY WORD I WILL GIVE U NICE DONATION!P.S. I TRIED TO INSTALL UR THEME BEFORE & BRICKED MY FONE ,GOT A NEW ONE THOUGH. THANKS!!!!!!!!!!!:spin::help::banghead:

sonic23 10-04-2010 12:47 PM

Re: BiGnAdAd {How To} Manually Deodex Your Froyo Droid X to Allow Custom Themes
 
Im stuck at command prompt I cant get it to work... I open up CMD and i start typing and it just cant find it says adb is nto recongnized =( can some one help please

cwest06 10-06-2010 10:07 PM

Re: BiGnAdAd {How To} Manually Deodex Your Froyo Droid X to Allow Custom Themes
 
same here ^^^^^^^^^^^^^^^^^

skinshaman 12-17-2010 04:31 PM

Re: BiGnAdAd {How To} Manually Deodex Your Froyo Droid X to Allow Custom Themes
 
Everything worked for me up until step 9.Open a command prompt, and do the following: I am not the most computer savy person and Im not sure how to do this step correctly. When I open the cmd.exe and start to enter the code it says, "adb is not recognized as an internal or external command, operable program or batch file". What am I doing wrong here? any help on this would be greatly appreciated,
Thanks Graham

PeakyBoo 01-05-2011 02:13 AM

Re: BiGnAdAd {How To} Manually Deodex Your Froyo Droid X to Allow Custom Themes
 
Hey Bignadad,
Thank you for this info I appreciate it. Only have one problem. In the c-Prompt when I get to
cp /sdcard/done_app/* /system/app/ It says no such File or Directory???
I put the two file on my sdcard as per the instructions so its looking for system/apps,
I remember when I took java (Chubby here. lol) *=all but sometimes the file is to deep and
the parses stop at a lower level missing it by 1 or2files before. I know the system/apps is
only one level back so it should b able to find it. If I remember right, it was ./* for 1 level
and .//* for 2 or more. It went something like that, i think. Its was many years ago.
Can this b the case here. Or am I just an old man who didn't remember to good. Lol
Was wondering if u can help me with that.
Thanks again Bro for all ur help :-)
UPDATE;
Hey Big,
I was just wondering, now that I have the folders on my phone is it possible to use the
Terminal Emulator to push these thru instead of the adb. And if so can I get the instructions for that please?

PeakyBoo 01-05-2011 06:15 PM

Re: BiGnAdAd {How To} Manually Deodex Your Froyo Droid X to Allow Custom Themes
 
Hey Skinshaman,
You have to give it the full path to the folder first.
All the way to the jar folder. You must also start with "cd".
put a space then type the first folders name followed by "/".
Then the second folders name followed by"/" etc...
all the way to the "jar" folder. Mine For example ="c:>cd footlocker/droidxstuff/xultimate2.2.2/jar
Now hit enter. After that no more "cd" u are in the jar folder.
All you type once in the jar folder is the code that Bignadad gave us
"adb" enter "su" enter "stop" enter etc. Hope this helps. Happy deodexing:wink:

rpushong 04-01-2011 07:33 PM

Re: BiGnAdAd {How To} Manually Deodex Your Froyo Droid X to Allow Custom Themes
 
I have My Droid plugged in and I have it on Media Sync. With USB DEbugging on. It says:*Checking Scrpit Version....*
* Checking Phone ROM Build....*
* Waiting for Phone....*
And then it never goes on! My phone is plugged in and registered on my computer. Everytime i get a text it shows on my computer so i know its in. ANy help??


All times are GMT -4. The time now is 05:28 AM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0