• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[TOOL] Auto-Deodexer/ROM builder 2.5.6.2 - UPDATED 02/04/2011

Search This thread

untermensch

Senior Member
Apr 4, 2009
480
622
Portland
this script is based on the work to Danesham90 and others see link

http://forum.xda-developers.com/showthread.php?t=598026

===============================================================================
Tested on the Samsung Vibrant, Script may need modification for other phones
===============================================================================

===============================================================================
Directions:
===============================================================================
the easy way:

1. turn on USB debugging
2. plug phone in to computer
3. run the script and follow the screen pormpts

the script will download everything needed to make a
signed deodexed clockwork flashable update.zip while also
adding root and the modified 3e recovery in the proccess.

===============================================================================
the hard way:

http://forum.xda-developers.com/showpost.php?p=10986893&postcount=28

================================================== =============================
Code:
/* This program is free software. It comes without any warranty, to
 * the extent permitted by applicable law. You can redistribute it
 * and/or modify it under the terms of the Do What The **** You Want
 * To Public License, Version 2, as published by Sam Hocevar. See
 * http://sam.zoy.org/wtfpl/COPYING for more details. */

UPDATED 02/03/2010

bug fix to signupdate.jar
clockwork script tweeks

UPDATED 02/02/2011

added upload to ROM to SDCard
added reboot recovery
added test sign all apk's in ROM - see README for details
added pull "/data/app/" and install "/data/app"

UPDATED 02/01/2011

added adb on by default toggle
added data wipe toggle
updated smali/baksmali to 1.2.6

UPDATED 01/31/2011

updated adb
fix similar filename deletion when using delete.txt
added barebones_delete.txt deletes everything that
does not cause phone to crash

UPDATED 01/29/2011

add "symlink dumpstate SYSTEM:bin/dumpmesg" to update-script.
add "symlink debuggerd SYSTEM:bin/csview" to update-script.
completed secondary method to make ROM from extracted Odin files.
see this post for instructions
http://forum.xda-developers.com/showpost.php?p=10986893&postcount=28

UPDATED 01/28/2011

added auto delete apk's (bloat removal), edit bin/example_delete.txt and rename to delete.txt
added auto add apk's (pre-install or update apk's) add apk's to bin/apks directory

UPDATED 01/23/2011

fix path error when space in user name

UPDATED 01/22/2011

updated TempRoot.exe to not trigger anti-virus
updated Superuser.apk
 

Attachments

  • Deodexer_2.5.6.2.zip
    4.5 MB · Views: 6,421
Last edited:

Whitehawkx

Retired Recognized Developer
Oct 13, 2010
2,447
9,270
Emerald City
Oooops, last minute change broke something, fixed and re-uploaded.

Thanks for the heads up. I was just testing this on KA5 for funsies. It looked like it went ok but there was a prob with temp root at the beginning and it looked like a few java errors at the end. I'll re-download and give it another go.

Edit: Ah, looks like it's working now. Temp root worked and it downloaded the modem and kernel.

Edit2: So it looked as though everything worked fine, but when I went to install it I got

E:Can't symlink /system/bin/cat
E:Failure at line15:
symlink toolbox SYSTEM:bin/cat
Installation aborted.
 
Last edited:
  • Like
Reactions: Master™

untermensch

Senior Member
Apr 4, 2009
480
622
Portland
Thanks for the heads up. I was just testing this on KA5 for funsies. It looked like it went ok but there was a prob with temp root at the beginning and it looked like a few java errors at the end. I'll re-download and give it another go.

Edit: Ah, looks like it's working now. Temp root worked and it downloaded the modem and kernel.

I just tested on my laptop and got a java out of memory error
while signing the rom so I increased the heap size which seems
to have fixed it.
 

Whitehawkx

Retired Recognized Developer
Oct 13, 2010
2,447
9,270
Emerald City
I just tested on my laptop and got a java out of memory error
while signing the rom so I increased the heap size which seems
to have fixed it.

Yea I got the same thing as well. Thanks again, will give it another go.

Update: The process was more in-depth when deodexing. Signing went through np and when I flashed through clockwork it worked (goodbye splash screen!). There must be some issue with KA5 though. It got through to the Galaxy S screen and then started vibrating and then blackscreen. T_T
 
Last edited:
  • Like
Reactions: untermensch

Whitehawkx

Retired Recognized Developer
Oct 13, 2010
2,447
9,270
Emerald City
Most useful tool EVAR!

I T W O R K E D~! :D

My final attempt last night did not shoot out the "signed_ROM.zip" at the end. I ran it again this morning on KA5 and when it finished I had the signed_ROM.zip in the folder. Put that on my internal, flashed through clockwork and viola! Doedexed KA5 with root and modded 3e recovery. I can't thank you enough Untermensch for putting this together for everyone.

"Give a man fish feed him for a day. Provide him with tools to fish and feed him for a lifetime." (Yea I tweaked it but you get the idea!) :D
 
  • Like
Reactions: untermensch

Whitehawkx

Retired Recognized Developer
Oct 13, 2010
2,447
9,270
Emerald City
I noticed one thing. During the deodexing process I got [null] on one file in the core.odex. After it had all finished up I looked in the framework folder and core.odex was still there. So am I correct in assuming that it did not doedex properly? Other than that everything else looks golden.
 
  • Like
Reactions: untermensch

Whitehawkx

Retired Recognized Developer
Oct 13, 2010
2,447
9,270
Emerald City
I noticed one thing. During the deodexing process I got [null] on one file in the core.odex. After it had all finished up I looked in the framework folder and core.odex was still there. So am I correct in assuming that it did not doedex properly? Other than that everything else looks golden.

I deleted the core.odex file and rebooted just to see what would happen and it soft bricked and is stuck at the Vibrant screen. So it seems the only issue lies in deodexing the core.jar at this point.
 

untermensch

Senior Member
Apr 4, 2009
480
622
Portland
I noticed one thing. During the deodexing process I got [null] on one file in the core.odex. After it had all finished up I looked in the framework folder and core.odex was still there. So am I correct in assuming that it did not doedex properly? Other than that everything else looks golden.

yep that was an baksmali error, likely you could run the script again and it
would baksmali OK.

this script is a real system stress test, any way I increased the java maxmem
setting for framework files to 1024m added error logging and the script will
now stop if there is an error. hopefully to prevent a broken ROM from being
released.
 

Whitehawkx

Retired Recognized Developer
Oct 13, 2010
2,447
9,270
Emerald City
yep that was an baksmali error, likely you could run the script again and it
would baksmali OK.

this script is a real system stress test, any way I increased the java maxmem
setting for framework files to 1024m added error logging and the script will
now stop if there is an error. hopefully to prevent a broken ROM from being
released.

can you reproduce this error? I have seen it once but cant reproduce it

Pretty sure the core.odex [null] error I got happened every time I ran the program. I ran it once after the 1:25am update and it happened. That is also the time it did not produce the signed_ROM.zip. I ran it again this morning after I saw the OP had been updated and it did produce the signed_ROM.zip but I still got the [null] error on core.odex. I'm going to Odin KA5 and do it again right now. I will let you know how it works out.

On a side note. I flashed the one I recieved this morning with everything being deodexed except the core.jar and it ran great until I deleted the odex file. Anywho, will test now. Also, not sure if this matters but I am running 32-bit Windows 7.

Update1: Initial news is good. Core.jar was deodexed properly with no errors. :) Will let you know how the entire process fairs once its completed.
 
Last edited:
  • Like
Reactions: untermensch

untermensch

Senior Member
Apr 4, 2009
480
622
Portland
Thanks for retesting, glad it worked, there are thousands of files being generated
an lots of java processes being spawned so there are bound to be an occasional
error. I have added an automatic retry when there is an error to the next version

should be posted some time tomorrow.
 

jellette

Inactive Recognized Developer
Sep 18, 2010
1,421
1,453
Tulsa, Oklahoma
I'm about 3/4 the way through testing this out - it seems to be working just fine with the exception that every command is appended with "ATTRIB" is not recognized as...
Hopefully it will work anyway.

One thing I noticed that might speed the script up in the beginning would be a root check, I have already rooted this rom but it still needed to run rageagainstthecage.
 
  • Like
Reactions: untermensch

Top Liked Posts

  • There are no posts matching your filters.
  • 25
    this script is based on the work to Danesham90 and others see link

    http://forum.xda-developers.com/showthread.php?t=598026

    ===============================================================================
    Tested on the Samsung Vibrant, Script may need modification for other phones
    ===============================================================================

    ===============================================================================
    Directions:
    ===============================================================================
    the easy way:

    1. turn on USB debugging
    2. plug phone in to computer
    3. run the script and follow the screen pormpts

    the script will download everything needed to make a
    signed deodexed clockwork flashable update.zip while also
    adding root and the modified 3e recovery in the proccess.

    ===============================================================================
    the hard way:

    http://forum.xda-developers.com/showpost.php?p=10986893&postcount=28

    ================================================== =============================
    Code:
    /* This program is free software. It comes without any warranty, to
     * the extent permitted by applicable law. You can redistribute it
     * and/or modify it under the terms of the Do What The **** You Want
     * To Public License, Version 2, as published by Sam Hocevar. See
     * http://sam.zoy.org/wtfpl/COPYING for more details. */

    UPDATED 02/03/2010

    bug fix to signupdate.jar
    clockwork script tweeks

    UPDATED 02/02/2011

    added upload to ROM to SDCard
    added reboot recovery
    added test sign all apk's in ROM - see README for details
    added pull "/data/app/" and install "/data/app"

    UPDATED 02/01/2011

    added adb on by default toggle
    added data wipe toggle
    updated smali/baksmali to 1.2.6

    UPDATED 01/31/2011

    updated adb
    fix similar filename deletion when using delete.txt
    added barebones_delete.txt deletes everything that
    does not cause phone to crash

    UPDATED 01/29/2011

    add "symlink dumpstate SYSTEM:bin/dumpmesg" to update-script.
    add "symlink debuggerd SYSTEM:bin/csview" to update-script.
    completed secondary method to make ROM from extracted Odin files.
    see this post for instructions
    http://forum.xda-developers.com/showpost.php?p=10986893&postcount=28

    UPDATED 01/28/2011

    added auto delete apk's (bloat removal), edit bin/example_delete.txt and rename to delete.txt
    added auto add apk's (pre-install or update apk's) add apk's to bin/apks directory

    UPDATED 01/23/2011

    fix path error when space in user name

    UPDATED 01/22/2011

    updated TempRoot.exe to not trigger anti-virus
    updated Superuser.apk
    2
    UPDATED 01/29/2011

    Instruction's for making ROM with out flashing to device

    first you need a linux box to mount the files

    EDIT:
    it has been reported that MagicISO will extract the files from the
    .rfs file system images.

    extract the Odin tar to your linux desktop
    make a tmp directory for the mount point
    open console
    Code:
    CD Desktop
    mount cache.rfs
    Code:
    sudo mount -o loop cache.rfs tmp
    copy /recovery/sec_csc.zip to desktop
    unmount cahce.rfs
    Code:
    sudo umount tmp
    make a directory for the system files
    mount factoryfs.rfs
    Code:
    sudo mount -o loop factoryfs.rfs tmp
    copy the system files to the directory for the system files
    unmount factoryfs.rfs
    Code:
    sudo umount tmp
    now move the system files, sec_csc.zip, modem.bin, zImage to the windows machine.
    place the system files in ROM/system
    place sec_csc.zip, modem.bin, zImage in the same directory as deoall.bat
    then run the script.
    2
    Oooops, last minute change broke something, fixed and re-uploaded.
    2

    UPDATED 01/28/2011

    added auto delete apk's (bloat removal), edit bin/example_delete.txt and rename to delete.txt
    added auto add apk's (pre-install or update apk's) add apk's to bin/apks directory
    2
    I'm about 3/4 the way through testing this out - it seems to be working just fine with the exception that every command is appended with "ATTRIB" is not recognized as...
    Hopefully it will work anyway.

    One thing I noticed that might speed the script up in the beginning would be a root check, I have already rooted this rom but it still needed to run rageagainstthecage.

    I just posted a new version that adds support for rooted phones, if su not found
    or permission denied the script then falls back to rageagainsthecage

    the only thing attrib does is hide the output directory for the decompiled smali
    files that command is standard on ms operating systems since DOS so it's
    weird that your getting an error, the new version removed the attrib command
    it was just cosmetic anyway.