Jump to content


Photo

Auto-LiMPoT -- A tool for automatic MIUI porting

* * * * * 2 votes

  • Please log in to reply
46 replies to this topic

#1
Master_T

Master_T

    Addict

  • Members
  • PipPipPipPipPip
  • 594 posts

Auto-LiMPoT: the Automated Liquid Miui Porting Tool


Hi guys.
I had some free time on my hand, so I decided to try and automate the guide written by Lens_Flare on "how to port a MIUI N1 rom to liquid".

The result is Auto-LiMPoT: the Automated Liquid Miui Porting Tool !

Posted Image
Posted Image




What it does:
It takes as input a working MIUI rom for Liquid (preferred would be the latest version by either me, Lens_Flare or iKrautDroid) and the latest MIUI rom for the N1 (Nexus One) and creates a working port of the N1 rom for the liquid (hopefully :D)

How to use it:
Just select the 2 input rom and an output file name for your port, click "Build Rom" and cross your fingers :)

Requirements:
The tool requires both Java and .NET v4.0 installed on the machine to work

Special thanks:
Thanks to Lens_Flare for his guide, iKrautDroid for stimulating my renowned interest in MIUI and all of this awesome community... you guys are great! Posted Image

IMPORTANT NOTES/BUGS:
This tool is HIGHLY UNTESTED (I've only tested it to do one port: 2.3.16 --> 2.3.23, so if you encounter any bugs, let me know!
Also: it is not guaranteed to work with the next MIUI release... the only way to test that is to try ;)

Sourcecode, Download link & website:
https://autolimpot.codeplex.com/

(click on "downloads" to download the tool ready to use, sourcecode is a bit messy at the moment)

CHANGELOGS:

Current:

v.1.1b
*Proper fix for failed java check (no more crash on NullReferenceException)



Older:

v.1.1
+Now patches updater-script with correct packager name and version number
+Added option to choose position of java.exe manually if not found automatically

v.1.0
+Initial release



Hope you enjoy
Master_T

Edited by Master_T, 02 April 2012 - 09:21 AM.

  • 2

#2
iKrautDroid

iKrautDroid

    Addict

  • Members
  • PipPipPipPipPip
  • 686 posts
  • Gender:Male
  • Devices:ZTE Skate, HD2, Galaxy S
Awesome, just really awesome!

  • 0

#3
siggey

siggey

    Diehard

  • Members
  • PipPipPipPip
  • 425 posts
  • Devices:ACER A1 LIQUID
You are great!! Thank you!

  • 0
Posted Image

#4
Ciotto

Ciotto

    Newbie

  • Members
  • Pip
  • 48 posts
really nice

  • 0

#5
youpi666

youpi666

    Enthusiast

  • Members
  • PipPipPip
  • 208 posts
Doesn't work, error on java verif.
I have last version of java, .net framework 4, seven x64.

  • 0

#6
Master_T

Master_T

    Addict

  • Members
  • PipPipPipPipPip
  • 594 posts

Doesn't work, error on java verif.
I have last version of java, .net framework 4, seven x64.


Weird, tho I took the subroutine that searches for java from stackoverflow... I'll try to figure it out, if I can't I'll code a workaround to let you manually select the path to java.exe

EDIT:

Before I look into it, do you have the JRE (Java Runtime Enviroment) or only the JDK (Java development Kit)? Because as of v.1.0 the program only checks for the JRE

Edited by Master_T, 31 March 2012 - 09:49 AM.

  • 0

#7
Master_T

Master_T

    Addict

  • Members
  • PipPipPipPipPip
  • 594 posts
Released v.1.1
It allows you to choose the path to java.exe manually if not found automatically
Also now patches updater-script correctly.
Download links are on codeplex

  • 0

#8
youpi666

youpi666

    Enthusiast

  • Members
  • PipPipPip
  • 208 posts
I have the JRE ;)
Same probelm with the 1.1 :/

  • 0

#9
Master_T

Master_T

    Addict

  • Members
  • PipPipPipPipPip
  • 594 posts

I have the JRE ;)
Same probelm with the 1.1 :/


But v.1.1 asks for the java path manually if you don't have it O.o Can you give me the exact error? Also, can you confirm that you have administrative rights on the machine? Just as a test, try to right click on the exe and "run as administrator". I think there's something weird happening with your registry here....

  • 0

#10
bobanbg

bobanbg

    Newbie

  • Members
  • Pip
  • 20 posts
hey master! your program seems to compile perfectly roms, but they don't boot... there must be some problem in compiling service.jar..




however fantastic idea!! :)

Edited by bobanbg, 31 March 2012 - 06:30 PM.

  • 0

#11
youpi666

youpi666

    Enthusiast

  • Members
  • PipPipPip
  • 208 posts

But v.1.1 asks for the java path manually if you don't have it O.o Can you give me the exact error? Also, can you confirm that you have administrative rights on the machine? Just as a test, try to right click on the exe and "run as administrator". I think there's something weird happening with your registry here....


I always use the "run as administrator' for this kind of think ;)
The 1.1 doesn't ask for the java path, seems to bug before. i have made a screenshot : http://www.hostingpi...898145error.png

as bobanbg say however it's a fantastic idea ;)

  • 0

#12
Master_T

Master_T

    Addict

  • Members
  • PipPipPipPipPip
  • 594 posts
@bobanbg: I tried the 2.3.16 --> 2.3.23 conversion and it worked for me. Can you tell me exactly which input ROMs you used, so I can try myself?

@youpi66: NullReference exception... it seems that either the application can't access the registry, or the Java key is not found. Can you please open regedit and tell me if the following keys are present:

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\ --> look on the right for the value "Current Version"

If that is present, look for:

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\<value_of_the_CurrentVersion_key>\ --> look on the right for the value "JavaHome"

If you don't have those keys or they are empty, I think your java installation is broken somehow... if not, there's something wrong with the application. At any rate, I'll release a properly fixed version soon (tomorrow if I have time).

  • 0

#13
youpi666

youpi666

    Enthusiast

  • Members
  • PipPipPip
  • 208 posts
Very good clues !

Firefox had install the 32 bits version of java, so this is not good for the app.

windows 7 x64 must have java 64 bits ;)
now it's work.

  • 0

#14
Master_T

Master_T

    Addict

  • Members
  • PipPipPipPipPip
  • 594 posts
Well, I just tried to port 2.3.23 --> 2.3.30 and it works.

However, it is true that the first boot fails (bootloop). However, this also happens to me with iKrautDroid Roms, not just the ones generated by auto-limpot. Solution: when the phone bootloops, just remove battery, replace it and restart phone, it will now boot normally.
EDIT: found out my SDcard was fu*ked up, after formatting it the rom boots correctly on first flash. I can confirm porting to 2.3.30 works, I'm running it now, everything seems fine.

Also: v.1.1b is out on codeplex, introduces the proper fix for failed java check (no more nullreferenceexception)

Edited by Master_T, 02 April 2012 - 04:16 PM.

  • 0

#15
egguibs

egguibs

    Newbie

  • Members
  • Pip
  • 23 posts
  • Devices:Acer Liquid
hello ! i tried to use your software but i have absolutely no results i tried numerous miui ports , n1 roms but it always not booting i saw that you used ikrautdroid to pour miui 2.3.16 to 23 but i wanted to know what n1 rom you used or maybe you know what is my problem ! thank you !

  • 0

#16
Master_T

Master_T

    Addict

  • Members
  • PipPipPipPipPip
  • 594 posts
I use the N1 roms from here:

http://miuiandroid.com/community/

The first boot sometimes fails for me too, but I just remove & reinsert battery and reboot and it works.
Also:
Make sure you wipe all before flashing
Try to use the previous version for porting. IE: if you want 2.3.30 use a 2.3.23 base liquid rom as imput.
I can confirm both 2.3.16-->2.3.23 and 2.3.23-->2.3.30 work. (I'm using 2.3.30 as we speak, been using it for a week now, all is fine)

Edited by Master_T, 09 April 2012 - 09:02 AM.

  • 0

#17
egguibs

egguibs

    Newbie

  • Members
  • Pip
  • 23 posts
  • Devices:Acer Liquid
thank you for your answer my problem is really wierd i tried the 2.3.23 version you uploaded it works pretty well i tried to use your version as a basis to other port it don't work ! finally i uses the n1 version from miuiandroid so done the same port 23-->30 than you it don't work T-T so i suppose the problem is on my computer
i wiped all every try

  • 0

#18
Master_T

Master_T

    Addict

  • Members
  • PipPipPipPipPip
  • 594 posts

thank you for your answer my problem is really wierd i tried the 2.3.23 version you uploaded it works pretty well i tried to use your version as a basis to other port it don't work ! finally i uses the n1 version from miuiandroid so done the same port 23-->30 than you it don't work T-T so i suppose the problem is on my computer
i wiped all every try


This is really wierd, I'm running .30 right now, obtained from my .23 and miuiandroid .30 for N1... don't know what to tell you frankly.

  • 0

#19
weeo

weeo

    Addict

  • Members
  • PipPipPipPipPip
  • 607 posts
  • Gender:Male
  • Devices:ZTE Blade & Galaxy Nexus
Gonna try with the MiUiV4

  • 0
Who said other phones cant have Ice Cream Sandwich?
Spreading the fun on Android 4.0.3
Check out my YouTube for Androidy Things: www.youtube.com/theandroidcity
Check out my blog for Androidy new, reviews and other: www.theandroidcity.wordpress.com

#20
Master_T

Master_T

    Addict

  • Members
  • PipPipPipPipPip
  • 594 posts

Gonna try with the MiUiV4


Good luck, but I'm warning you: will most likely not work ;) This tool is designed for GB roms.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users