Jump to content


Photo

FXZ Script Generator


  • This topic is locked This topic is locked
43 replies to this topic

#1 SamuriHL

SamuriHL

    Android Warrior

  • Smod
  • 43,446 posts
  • Current Device(s):S21 Ultra, Pixel 6

Posted 25 November 2013 - 11:03 AM

This thread is no longer current or relevant.  A new HouseOfMoto-ScriptGenerator.jar is now included with the House of Moto.  
 

NOTE: Those looking for just an easy to use RSD Script Generator can go here: 

Please Login or Register to see this Hidden Content

 
ARCHIVED for reference:

 

 
Please do yourself a favor and read, read again, and read one more time before installing and using this tool.  If it's set up correctly, it's very easy to use.  But if you don't follow directions, it'll either not work or not do what you expect.  Failure to read and follow the directions is NOT a defect of the tool!
 
Mission statement for tool:

 

This tool generates scripts that can be used with the House of Moto (or in the case of the XML files it generates stand alone with RSD if you like) so that you can add support for a new phone that doesn't currently have a support file.  At the moment the FULL and KEEP-DATA scripts will be generated for RSD and Windows/Linux/Mac fastboot.  The fastboot scripts need to be run from the House of Moto at the moment.

 

 

Download:

o) FXZ-ScriptGenerator.jar (deprecated)

 

Install:

o) Copy the jar to your extracted FXZ folder. In the case of the House of Moto it'll be your HouseOfMoto\FXZ_xt#### folder.

 

NOTE: You *MUST* have the Java runtime installed.  It must be Java 7 (or higher).

 

USAGE:

o) The jar file is an executable jar.  If you have your JVM setup correctly, you should just be able to run it like any other program.  If you do not have your JVM setup correctly, you should fix that.   :)

o) Press the button to select your FXZ's xml file.  It will look something like VRZ_XT926_9.8.1Q-79-1_CFC.xml but specific to your FXZ.

o) Enter your phone's model (E.G. xt926 or xt1080, etc) in the text box

o) Press the Generate Scripts button

 

The generated scripts can then be flashed stand alone using RSD Lite or flashed using the House of Moto.


  • neckchop, hadeshorn9, matjmonk and 2 others like this

Non potest esse nisi unus


#2 SamuriHL

SamuriHL

    Android Warrior

  • Smod
  • 43,446 posts
  • Current Device(s):S21 Ultra, Pixel 6

Posted 25 November 2013 - 11:03 AM

RESERVED


Non potest esse nisi unus


#3 johnthehillbilly

johnthehillbilly

    Gear jammin' S-Mod

  • Smod
  • 6,470 posts
  • Twitter:@johnhillbilly
  • Google+:http://goo.gl/ColUJ .. johnthehillbilly@gmail.com
  • LocationSomewhere between here, and there...
  • Current Device(s):unlocked RAZR HD (xt926)... RAZR (xt912)

Posted 25 November 2013 - 11:07 AM

Downloading now.... :) Will report on how it works..... ( will try to make no comments on the "90's UI .... LOL )

Feeding my android addiction......... one phone at a time.....

jhf.png

If you are feeling generous and would like to buy me a drink.... coffee :)


#4 SamuriHL

SamuriHL

    Android Warrior

  • Smod
  • 43,446 posts
  • Current Device(s):S21 Ultra, Pixel 6

Posted 25 November 2013 - 11:11 AM

UI isn't my specialty anymore.  I'll improve it over time but I just wanted something that'd work for now.  I wanted to give people a tool to allow them to create custom FXZ scripts for their phone just by selecting what steps to use from the FXZ's built in script.  That way people can create their own "House of Moto support file" for any phone they want.  ;)


Non potest esse nisi unus


#5 King Howie

King Howie

    Minister of Jackbooted Thugs

  • Dedicated Supporter
  • PipPipPip
  • 882 posts
  • Current Device(s):Galaxy S4 GPE, Nexus 7 (2013)

Posted 25 November 2013 - 11:27 AM

UI isn't my specialty anymore. I'll improve it over time but I just wanted something that'd work for now. I wanted to give people a tool to allow them to create custom FXZ scripts for their phone just by selecting what steps to use from the FXZ's built in script. That way people can create their own "House of Moto support file" for any phone they want. ;)

awesome! I'll make one for my s4gpe 😜

#6 johnthehillbilly

johnthehillbilly

    Gear jammin' S-Mod

  • Smod
  • 6,470 posts
  • Twitter:@johnhillbilly
  • Google+:http://goo.gl/ColUJ .. johnthehillbilly@gmail.com
  • LocationSomewhere between here, and there...
  • Current Device(s):unlocked RAZR HD (xt926)... RAZR (xt912)

Posted 25 November 2013 - 11:28 AM

Ok... UI is.... functional... LOL .... (sorry Sam had to say it ... LOL ) Options for flashing work.... Creates good XML file Have screenshots if you want them posted...:)

Feeding my android addiction......... one phone at a time.....

jhf.png

If you are feeling generous and would like to buy me a drink.... coffee :)


#7 livinginkaos

livinginkaos

    I don't know what I'm doing anymore.....

  • Administrator
  • 15,282 posts
  • Google+:Hangouts - livinginkaos@gmail.com
  • LocationOregon
  • Current Device(s):Samsung S8+ / Pixel XL 128gb / iPhone 7+ 256gb / iPad Pro 12.9" / Samsung Chromrbook Plus / Pixel C / Nexus 6p 128gb / Nexus 6 / Nexus 6 on Fi / Nexus 9 / Moto 360^2 / Nvidia Shield TV Pro / Nvidia Shield Tablet / HTC EVODesign on FreedomPop / Chromecast / Surface Pro 3 i7 / Samsung Tab Pro 12.2 / Lenovo Win8 Tab / Eee Slate / '13 Nexus 7

Posted 25 November 2013 - 11:29 AM

What if I don't have an FXZ, where do I put it?

 

Ha ha , nice stuff Sam.  Adding to my tools !


  • matjmonk and johnthehillbilly like this

b2wvCBn.png

Sig by livinginkaos
Samsung S8+ / Pixel XL 128gb / iPhone 7+ 256gb / iPad Pro 12.9" / Samsung Chromrbook Plus / Pixel C / Nexus 6p 128gb / Nexus 6 / Nexus 6 on Fi / Nexus 9 / Moto 360^2 / Nvidia Shield TV Pro / Nvidia Shield Tablet / HTC EVODesign on FreedomPop / Chromecast / Surface Pro 3 i7 / Samsung Tab Pro 12.2 / Lenovo Win8 Tab / Eee Slate / '13 Nexus 7


#8 johnthehillbilly

johnthehillbilly

    Gear jammin' S-Mod

  • Smod
  • 6,470 posts
  • Twitter:@johnhillbilly
  • Google+:http://goo.gl/ColUJ .. johnthehillbilly@gmail.com
  • LocationSomewhere between here, and there...
  • Current Device(s):unlocked RAZR HD (xt926)... RAZR (xt912)

Posted 25 November 2013 - 11:33 AM

Please Login or Register to see this Hidden Content

 

Please Login or Register to see this Hidden Content

  74.04KB   234 downloads

Please Login or Register to see this Hidden Content

 

Please Login or Register to see this Hidden Content

  61.56KB   228 downloads Applied directly into HoM FXZ_xt912 directory...... Got same good results putting it in my extracted FXZ file as well..... (figured no point in more screenshots of the same thing, just in different directory) ..... Only difference is the filename....:)

Feeding my android addiction......... one phone at a time.....

jhf.png

If you are feeling generous and would like to buy me a drink.... coffee :)


#9 SamuriHL

SamuriHL

    Android Warrior

  • Smod
  • 43,446 posts
  • Current Device(s):S21 Ultra, Pixel 6

Posted 25 November 2013 - 11:34 AM

It's going to get enhanced greatly from here.  I need to work on the UI a bit before I add anymore options.  But, basically the next step is to obviously create the bat and sh scripts, as well.  Since this is java, it actually runs on Linux and Mac.  However, it doesn't exactly do them any good at the moment.  But if it generates the SH files it will. The next step is to add buttons to "Generate HoM Scripts".  Basically from an FXZ's xml, it'll autogenerate the KEEPDATA, FULL, and if a TZ partition exists, the UNIVERSAL scripts.  With options to generate RSD, fastboot windows, fastboot linux, fastboot mac or any combination.  But the basic code is laid down now so it's just a matter of enhancing it into a proper 1.0 release.


  • matjmonk and johnthehillbilly like this

Non potest esse nisi unus


#10 SamuriHL

SamuriHL

    Android Warrior

  • Smod
  • 43,446 posts
  • Current Device(s):S21 Ultra, Pixel 6

Posted 25 November 2013 - 11:36 AM

Oh, one other "feature" that's sort of hidden....Remember how a lot of FXZ's won't flash unless you remove "getvar" and "oem" lines?  Yea, well, load up the XML, don't change anything, and save it and it'll clean that crap up automagically.  


  • matjmonk, johnthehillbilly, livinginkaos and 2 others like this

Non potest esse nisi unus


#11 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 25 November 2013 - 02:02 PM

Just ran the jar on my Mac and it output a nice looking xml file. I had to Open the jar while holding the Control key down since you are not an authorized developer :)


  • johnthehillbilly likes this

#12 johnthehillbilly

johnthehillbilly

    Gear jammin' S-Mod

  • Smod
  • 6,470 posts
  • Twitter:@johnhillbilly
  • Google+:http://goo.gl/ColUJ .. johnthehillbilly@gmail.com
  • LocationSomewhere between here, and there...
  • Current Device(s):unlocked RAZR HD (xt926)... RAZR (xt912)

Posted 25 November 2013 - 02:07 PM

Just ran the jar on my Mac and it output a nice looking xml file. I had to Open the jar while holding the Control key down since you are not an authorized developer :)


Nice :) .... so it should work on my Ubuntu then..... (once I get it squared away, I'm just about ready to fix my Ubuntu with a friggin' hammer)......LOL

Feeding my android addiction......... one phone at a time.....

jhf.png

If you are feeling generous and would like to buy me a drink.... coffee :)


#13 SamuriHL

SamuriHL

    Android Warrior

  • Smod
  • 43,446 posts
  • Current Device(s):S21 Ultra, Pixel 6

Posted 25 November 2013 - 03:34 PM

Just ran the jar on my Mac and it output a nice looking xml file. I had to Open the jar while holding the Control key down since you are not an authorized developer :)

 

LMAO!  Well then you'll love what's coming next.  Remember when we needed scripts?  Me either.  ;)


Non potest esse nisi unus


#14 SamuriHL

SamuriHL

    Android Warrior

  • Smod
  • 43,446 posts
  • Current Device(s):S21 Ultra, Pixel 6

Posted 25 November 2013 - 03:35 PM

Nice :) .... so it should work on my Ubuntu then..... (once I get it squared away, I'm just about ready to fix my Ubuntu with a friggin' hammer)......LOL

 

Good cause mine is screwed up, too, and the next utility will need to be tested.  See hint above.  ;)


Non potest esse nisi unus


#15 soocold

soocold

    OC & OCD Specialist

  • Smod
  • 8,736 posts
  • Google+:amcsocold@gmail.com
  • LocationTouching something electronic
  • Current Device(s):LG G4, Nexus 6

Posted 25 November 2013 - 04:12 PM

I'm getting flash backs of when you first released a tool for ICS leaks on the bionic. I had a thought along the lines of "...it'll never work...."
;-)

N


pveoVTW.png

sig by jayrod

 

2760259.png

 

The Rules-Follow them.

Do you like our forum? Do you call it your second home? Help us with the upkeep


#16 SamuriHL

SamuriHL

    Android Warrior

  • Smod
  • 43,446 posts
  • Current Device(s):S21 Ultra, Pixel 6

Posted 25 November 2013 - 04:21 PM

Oh it works.  ;)  Once I get all the UI crap out of the way and learn how to make it do what I want, I can build us a proper tool.  I'm sick of batch files.  I want one tool that works on all 3 platforms.  The RSD people will use this tool to generate scripts.  The people that want a push the button tool will use the new tool I'm writing based on some of the work I did on this one.  fastboot is the way forward.


Non potest esse nisi unus


#17 SamuriHL

SamuriHL

    Android Warrior

  • Smod
  • 43,446 posts
  • Current Device(s):S21 Ultra, Pixel 6

Posted 25 November 2013 - 05:02 PM

A little teaser.  My new application reads the FXZ's xml file, allows you to select the operations you want to perform from the xml, and then at the moment I have it spitting out what the fastboot commands would be:

 

C:\Android\RAZR_HD\Downloads\VRZ_XT926_9.8.1Q-79-1_CFC.xml\Windows\fastboot flash partition
C:\Android\RAZR_HD\Downloads\VRZ_XT926_9.8.1Q-79-1_CFC.xml\Windows\fastboot flash sbl1
C:\Android\RAZR_HD\Downloads\VRZ_XT926_9.8.1Q-79-1_CFC.xml\Windows\fastboot flash sbl2
C:\Android\RAZR_HD\Downloads\VRZ_XT926_9.8.1Q-79-1_CFC.xml\Windows\fastboot flash sbl3
C:\Android\RAZR_HD\Downloads\VRZ_XT926_9.8.1Q-79-1_CFC.xml\Windows\fastboot flash rpm
C:\Android\RAZR_HD\Downloads\VRZ_XT926_9.8.1Q-79-1_CFC.xml\Windows\fastboot flash tz
C:\Android\RAZR_HD\Downloads\VRZ_XT926_9.8.1Q-79-1_CFC.xml\Windows\fastboot flash aboot
C:\Android\RAZR_HD\Downloads\VRZ_XT926_9.8.1Q-79-1_CFC.xml\Windows\fastboot flash boot
C:\Android\RAZR_HD\Downloads\VRZ_XT926_9.8.1Q-79-1_CFC.xml\Windows\fastboot flash system
C:\Android\RAZR_HD\Downloads\VRZ_XT926_9.8.1Q-79-1_CFC.xml\Windows\fastboot flash recovery
C:\Android\RAZR_HD\Downloads\VRZ_XT926_9.8.1Q-79-1_CFC.xml\Windows\fastboot flash modem
C:\Android\RAZR_HD\Downloads\VRZ_XT926_9.8.1Q-79-1_CFC.xml\Windows\fastboot flash devtree
C:\Android\RAZR_HD\Downloads\VRZ_XT926_9.8.1Q-79-1_CFC.xml\Windows\fastboot flash logo
C:\Android\RAZR_HD\Downloads\VRZ_XT926_9.8.1Q-79-1_CFC.xml\Windows\fastboot flash cdrom
C:\Android\RAZR_HD\Downloads\VRZ_XT926_9.8.1Q-79-1_CFC.xml\Windows\fastboot erase modemst1
C:\Android\RAZR_HD\Downloads\VRZ_XT926_9.8.1Q-79-1_CFC.xml\Windows\fastboot erase modemst2
C:\Android\RAZR_HD\Downloads\VRZ_XT926_9.8.1Q-79-1_CFC.xml\Windows\fastboot flash fsg
C:\Android\RAZR_HD\Downloads\VRZ_XT926_9.8.1Q-79-1_CFC.xml\Windows\fastboot erase cache
C:\Android\RAZR_HD\Downloads\VRZ_XT926_9.8.1Q-79-1_CFC.xml\Windows\fastboot erase userdata
C:\Android\RAZR_HD\Downloads\VRZ_XT926_9.8.1Q-79-1_CFC.xml\Windows\fastboot erase tombstones

 

That's all generated from unselecting a bunch of stuff from the FXZ's xml file.  Instead of spitting it out to my debug window, I will spawn a process for each command and run it.  Also, the Windows in the path is generated, as well, based on the detected OS.  So the new Moto FXZ's have Windows, Darwin, and Linux directories that contain the proper fastboot binary.  I will make packages available to add to older FXZ's to replicate this (OMAP will get moto-fastboot, HD/M will get fastboot-snapdragon).  You'll extract your FXZ, extract the support package for the older FXZ's if necessary, drop the jar in your FXZ dir, and run it.  You can pick any RSD script to work from but it works fine with the one that Moto ships with their FXZ.  The prototype I've got running now only has the ability to select the partitions...it doesn't yet have built in "KEEP DATA" "FULL" buttons.  Future enhancement.  I may release it tonight for those that want more new toys to play with.


  • johnthehillbilly likes this

Non potest esse nisi unus


#18 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 25 November 2013 - 05:12 PM

awk/sed/grep and some regex :)



#19 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 25 November 2013 - 05:13 PM

I can easily start up one of my Ubuntu VM's for testing there too.



#20 SamuriHL

SamuriHL

    Android Warrior

  • Smod
  • 43,446 posts
  • Current Device(s):S21 Ultra, Pixel 6

Posted 25 November 2013 - 05:26 PM

awk/sed/grep and some regex :)

 

Oh hell no.  JAVA.  :)  I'm done with scripts.  Too limiting.  I need full programming languages for the stuff I wanna accomplish going forward.  I want a util you can just drop into an FXZ and give the user full control over what they flash.


  • matjmonk likes this

Non potest esse nisi unus





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users