[HBOOT][11/14/12] JET - The Jewel/Evita Toolkit (Linux)

Search This thread

yarrimapirate

Senior Member
May 29, 2009
178
614
Vancouver, WA
Disclaimer: This is BETA. It works well, but may still set fire to your house if you anger it.


UPDATE 11/14/12 - Updated OP with SLS's fix for device detection.


JET - The Jewel/Evita Tool "kit."

JET performs several useful functions, including:
  • Downgrading your HBOOT to 1.12, allowing the use of LazyPanda instead of DirtyRacun (S-OFF without having to wipe the phone if you already have root) Note that this is unsupported by Team Unlimited, however it works just fine.
  • SuperCID (For downgrading firmware via RUU)
  • Partition/IMEI backup.
  • Detection of eMMC partitions on a phone stuck in Qualcomm download mode
  • Possible unbricking of your device (depending on circumstances)


JET is and always will be 100% open source and with full support given here on XDA.

Changelog
11/9/12 - Name change to better reflect the direction of this project. Ported to Evita. Rewrote device detection code.
11/1/2012 - Added SuperCID capability
10/24/2012 - Modified emmc_recover to catch stalls at "Wait device /dev/sdXXX......" and try to recover.
10/21/2012 - Added --recover and --unbrick command line options
10/19/2012 - Beta posted


Credits:
Credit for the original downgrading idea belongs to Mac_Gyver as seen in this post:
http://forum.xda-developers.com/showthread.php?t=1932914

This post refined that process and can still be referenced for manual downgrading:
http://forum.xda-developers.com/showpost.php?p=32761598&postcount=107

Closeone for code submissions and a steady flow of awesome ideas.

SouL Shadow for some slick logging code

Initial Testers (AKA People willing to let a total stranger intentionally brick their phone for SCIENCE!)
AZ Fadeout
benny3
kjcmusic17
michael.stollaire
My lovely wife (distract with shiny object, snatch phone, cackle wildly, proceed to brick)
Some local folks not on XDA


absolutelygrimm and 18th.abn for consulting on the Evita side of things.

The XDA community for rallying behind this project and offering support to your fellow members



Requirements

  • Unlocked bootloader and a recent TWRP already flashed. (RegawMOD Rooter works well for this)
  • A NATIVE Linux installation, or a LiveCD/Wubi install. Virtual Machines are NOT SUPPORTED.
    [*]A 32 bit Linux installation/CD, or install ia32-libs or ia32-libs-multiarch
  • Linux Kernel v3.0 or higher (Ubuntu 12.04 LiveCDs meet this requirement)
  • USB Debugging turned on



FAQ
Q: Help! The tool keeps saying "Failed to flash HBoot" repeatedly. What do I do?
A: This is a timing issue. If the tool can't get a good lock on your phone, it will give and error and then try again. It will keep trying until it locks onto the phone and can flash. In addition, it is safe to unplug and replug the USB cable during this step, even to another USB port.



Q: This thing is taking forever!! Is it supposed to?
A: The process usually takes about 10 minutes but can take 15 or longer depending. Unfortunately the process for flashing the bootloader is rather painful, and has to be done in very small pieces. Thank HTC for that one. Ubuntu is also partially to blame.



Q: Is this a bootable CD? Can I use this from Windows?
A: This is NOT a bootable LiveCD. A LiveCD version (with further enhancements) is in the works.


Q: Is there/Will there be a Windows version?
A: No. Nor are there plans to make a Windows native version. There are some inherent issues with the way Windows deals with USB devices that prohibits us from accessing QDL. If you're not comfortable trying/using Linux, I suggest you wait for the LiveCD to be finished.





Instructions:
  1. Boot Linux.
  2. Download attached package.
  3. Unzip to somewhere you have write access (/home/ubuntu for Ubuntu LiveCD users)
  4. Open terminal.
  5. cd to working directory.
  6. $ chmod +x jet
  7. $ sudo ./jet
  8. Follow the onscreen instructions.
  9. /happydance

Command Line Options
Code:
-b or --backup  :  Backup mode only  (make bakp4 and fsp4, don't force QDL)
-c or  --cidpreserve : Don't SuperCID the backup P4 file
-d or  --detect   :  Find device (/dev/sd?)
-r  or  --recover  :  Load HBOOT 1.12 and existing backup P4 (for people who stalled after QDL force)
-s or  --supercid : SuperCID mod for nonbricked phones
-u or --unbrick  :  Load existing backup P4 file ONLY.  (Quit QDL without downgrade)

To do:
  • P4 file generation from user entered MEID.
  • Merge both HW versions of JET and detect device at load.
  • LiveCD



Source:
You can follow code revisions for the shell script here:
https://github.com/yarrimapirate/JET

LiveCD Development is underway. You can follow the code here:
https://github.com/closeone/JET

I use a modified version of Fuses emmc_recover. I have forked his source here:
https://github.com/yarrimapirate/emmc_recover

A big Thank You to all who've sent donations! Caffeine and beer help generate code, and a few extra bucks convinces the wife it's worth the time I spend glued to my PC/phone. Your donation money is also being used to buy devices to further test/develop with. :good:
 

Attachments

  • jet-jewel-0.3.3b.zip
    933.6 KB · Views: 2,321
Last edited:

kjcmusic17

Senior Member
Oct 4, 2012
74
10
Never done anything like this, but I understand all the terminology and I'm pretty sure I understand what happens every step along the way. Never used Linux, but I can follow directions, so I think I might try this...
 

yarrimapirate

Senior Member
May 29, 2009
178
614
Vancouver, WA
Never done anything like this, but I understand all the terminology and I'm pretty sure I understand what happens every step along the way. Never used Linux, but I can follow directions, so I think I might try this...

PM me.... I'm about to start round 2 of testing and I need a couple more testers.
 

om4

Senior Member
Mar 29, 2008
2,531
907
In recovery waiting to be flashed
I'd volunteer but my partitions are borked somehow and now I have to try and back up my data so I can reinstall everything. Somehow this has to be the gf's fault, I caught her running as root the other day just so she could change the font color on the time. *sigh*
 
  • Like
Reactions: EVOMIKE025

Rydah

Inactive Recognized Contributor
Oct 4, 2008
5,515
2,084
Southern California
Now I feel comfortable with the idea of swapping my phone. I have 3 dead pixels, but feared getting a 1.5/1.9 hboot device! Thanks guys!


Sent From My HTC Evo 4G LTE, On The Now Network From Sprint!
 

cfbauer

Senior Member
Sep 22, 2011
122
34
San Diego
Thinking real hard about trying this. I'm no linux expert but I've used it full time for 5 years. Might give it a go if I have some free time this weekend.

Edit: Also, Yarr, do you have a PayPal account?

Edit2: LOL, on the web interface Yarr's PayPal is stupidly obvious. Not so much on Tapatalk.
 
Last edited:
  • Like
Reactions: EVOMIKE025

Top Liked Posts

  • There are no posts matching your filters.
  • 69
    Disclaimer: This is BETA. It works well, but may still set fire to your house if you anger it.


    UPDATE 11/14/12 - Updated OP with SLS's fix for device detection.


    JET - The Jewel/Evita Tool "kit."

    JET performs several useful functions, including:
    • Downgrading your HBOOT to 1.12, allowing the use of LazyPanda instead of DirtyRacun (S-OFF without having to wipe the phone if you already have root) Note that this is unsupported by Team Unlimited, however it works just fine.
    • SuperCID (For downgrading firmware via RUU)
    • Partition/IMEI backup.
    • Detection of eMMC partitions on a phone stuck in Qualcomm download mode
    • Possible unbricking of your device (depending on circumstances)


    JET is and always will be 100% open source and with full support given here on XDA.

    Changelog
    11/9/12 - Name change to better reflect the direction of this project. Ported to Evita. Rewrote device detection code.
    11/1/2012 - Added SuperCID capability
    10/24/2012 - Modified emmc_recover to catch stalls at "Wait device /dev/sdXXX......" and try to recover.
    10/21/2012 - Added --recover and --unbrick command line options
    10/19/2012 - Beta posted


    Credits:
    Credit for the original downgrading idea belongs to Mac_Gyver as seen in this post:
    http://forum.xda-developers.com/showthread.php?t=1932914

    This post refined that process and can still be referenced for manual downgrading:
    http://forum.xda-developers.com/showpost.php?p=32761598&postcount=107

    Closeone for code submissions and a steady flow of awesome ideas.

    SouL Shadow for some slick logging code

    Initial Testers (AKA People willing to let a total stranger intentionally brick their phone for SCIENCE!)
    AZ Fadeout
    benny3
    kjcmusic17
    michael.stollaire
    My lovely wife (distract with shiny object, snatch phone, cackle wildly, proceed to brick)
    Some local folks not on XDA


    absolutelygrimm and 18th.abn for consulting on the Evita side of things.

    The XDA community for rallying behind this project and offering support to your fellow members



    Requirements

    • Unlocked bootloader and a recent TWRP already flashed. (RegawMOD Rooter works well for this)
    • A NATIVE Linux installation, or a LiveCD/Wubi install. Virtual Machines are NOT SUPPORTED.
      [*]A 32 bit Linux installation/CD, or install ia32-libs or ia32-libs-multiarch
    • Linux Kernel v3.0 or higher (Ubuntu 12.04 LiveCDs meet this requirement)
    • USB Debugging turned on



    FAQ
    Q: Help! The tool keeps saying "Failed to flash HBoot" repeatedly. What do I do?
    A: This is a timing issue. If the tool can't get a good lock on your phone, it will give and error and then try again. It will keep trying until it locks onto the phone and can flash. In addition, it is safe to unplug and replug the USB cable during this step, even to another USB port.



    Q: This thing is taking forever!! Is it supposed to?
    A: The process usually takes about 10 minutes but can take 15 or longer depending. Unfortunately the process for flashing the bootloader is rather painful, and has to be done in very small pieces. Thank HTC for that one. Ubuntu is also partially to blame.



    Q: Is this a bootable CD? Can I use this from Windows?
    A: This is NOT a bootable LiveCD. A LiveCD version (with further enhancements) is in the works.


    Q: Is there/Will there be a Windows version?
    A: No. Nor are there plans to make a Windows native version. There are some inherent issues with the way Windows deals with USB devices that prohibits us from accessing QDL. If you're not comfortable trying/using Linux, I suggest you wait for the LiveCD to be finished.





    Instructions:
    1. Boot Linux.
    2. Download attached package.
    3. Unzip to somewhere you have write access (/home/ubuntu for Ubuntu LiveCD users)
    4. Open terminal.
    5. cd to working directory.
    6. $ chmod +x jet
    7. $ sudo ./jet
    8. Follow the onscreen instructions.
    9. /happydance

    Command Line Options
    Code:
    -b or --backup  :  Backup mode only  (make bakp4 and fsp4, don't force QDL)
    -c or  --cidpreserve : Don't SuperCID the backup P4 file
    -d or  --detect   :  Find device (/dev/sd?)
    -r  or  --recover  :  Load HBOOT 1.12 and existing backup P4 (for people who stalled after QDL force)
    -s or  --supercid : SuperCID mod for nonbricked phones
    -u or --unbrick  :  Load existing backup P4 file ONLY.  (Quit QDL without downgrade)

    To do:
    • P4 file generation from user entered MEID.
    • Merge both HW versions of JET and detect device at load.
    • LiveCD



    Source:
    You can follow code revisions for the shell script here:
    https://github.com/yarrimapirate/JET

    LiveCD Development is underway. You can follow the code here:
    https://github.com/closeone/JET

    I use a modified version of Fuses emmc_recover. I have forked his source here:
    https://github.com/yarrimapirate/emmc_recover

    A big Thank You to all who've sent donations! Caffeine and beer help generate code, and a few extra bucks convinces the wife it's worth the time I spend glued to my PC/phone. Your donation money is also being used to buy devices to further test/develop with. :good:
    12
    f-it I'm holding off for iivecd but reading all success stories, I'm definitely going to try on Saturday morning on windows desktop. If I have any questions I now we're to go?

    I would have said hold on for just a little bit longer, but I know that you've been waiting a while now. I'm sorry. To everyone that's been waiting, I apologize. It's been a semi-rough last couple of weeks. I've been writing, adapting, and testing for hours (I have people that can vouch for that) while coming across new (tiny) issue after the next. Again. There will be a live CD. I have a new test version almost ready. I'd like to do a runthrough with one of my testers (who's run through this several times) and see how things are working before I even consider posting.

    The fact that there's been promises, but no delivery by myself frustrates me to no end. Yes. Little tiny bits of my code have made it into yarr's tool, and I am happy about that, but I want to get the Live CD out to users.

    I do want to make this right. I'm not the kind of person that will sit and lie about progress. It's not who I am, and not what I do. I also am the kind of person that tries to release something that I would be proud of.

    Thank you all,
    ~co~
    10
    The "no one else can use our thing it's not open source it's better than the existing solution" etc crap in their OP really turned me right off. I read their OP and just about said to myself "You know, you can keep your awsome thing, I don't want it under those terms anyways. Rather stay s-off even if the downgrade-based trick wasn't available. It's just a phone. Get over yourselves."
    I'd rather work on or wait for some other way and make it open.

    Sent from my EVO using xda premium

    Development here is continuing regardless of others' opinions. I am porting this tool over to the HOX as well. I'm hoping to lean on SLS for his ideas and closeone to help build this whole package into a liveCD that has a number of uses.

    SLS nailed it however, right now I've gotta pay the bills, so I haven't looked at this very much.
    9
    Glad to hear people are having reasonably good experiences. I'm hoping 90% of these issues go away once I add some more code to emmc_recover.

    I haven't seen Cloaker post back, so I'm hoping he's resolved his issue.

    I started on this whole thing last weekend as something to do while waiting for my wife to go into labor with our 3rd. Well, she finally started tonight. Good timing. :D

    I'll probably be a bit spottier on posts this weekend, but I'll keep up as best I can.
    9
    So Sprint got my new phone in today.

    I've had it since this afternoon. I haven't even put my gmail accounts in yet, I've spent all night flashing and reflashing bootloaders onto it. :eek:

    The script is working very consistently here. I need to hear back from a couple more testers with their results and I think we may be ready!

    /happydance