I need help now with deodexing!!!!

Last Updated:

  1. 1324356565

    1324356565 Well-Known Member This Topic's Starter

    Jul 22, 2010
    Likes Received:
    Alright so, I am currently deodexing my phone and went through all the processes from manually doing it, I reached option 4 where all the frame is being deodexed and it cant get passed step 30 out of 42. It says something about out of memory error and java heap space. I turned to google and found this.


    If your Java program is running out of memory, there are several things you can do.
    1. <LI itxtvisited="1">Make unused objects garbage collectable. <LI itxtvisited="1">Avoid excessive object creation. <LI itxtvisited="1">Allocate more memory for the heap.
    2. 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.
    • <LI itxtvisited="1">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.

    I know nothing of java and this is like a foreign language to me. Can someone please explain to me what I need to do to get this to work. Thanks.

  2. GregTard

    GregTard Well-Known Member

    Aug 18, 2010
    Likes Received:
    You probably shouldn't be manually deodexing your phone if you don't understand those terms. Lots of tools are made to take the tech out of rooting, deodexing, and installing ROMs so I would suggest one of those methods.

    If would go to the thread that you received instructions for to get help or use one of the below methods.

    To deodex, you can use 928Droid's Deodexing deodexing theme or you can deodex manually with this tutorial.

    You can also use P3's Tranquility 2.3.7 or drod2169's rubiX Focused 0.3 which are blurless ROMs that will deodex you as well (2 for 1).
  3. Phone Gnome

    Phone Gnome Well-Known Member

    Oct 1, 2010
    Likes Received:
    Try updating your Java program.

Share This Page