[Android Q&A, Help & Troubleshooting] ruizit0:
Hi all.

First of all, and dont know if this a kitchen bug or my problem, but here it goes.

I passed last days trying to get DSIXDA Kitchen working properly with HTC ONE X device, but i got some problems with updater-script.

I dont know if the problem comes from updater-script to update-script conversion when extracting rom, or from update-script to updater-script conversion when building the rom.

But the problem is, that the kitchen doesnt convert correctly the final updater-script, ill try to give some information about this to see if anyone can give me a clue.

PC Specs:

Windows 7 Professional X64

Java Path: C:\Program Files (x86)\Java\jdk1.6.0_20\bin

Cygwin and Java packages installed according the DSIXDA 1) Windows (2000, XP, Vista, 7) tutorial in his kitchen topic.

Rom that im using is MIUI ENG Sense based. (but i tryed with other roms like AOKP and the output updater-script keeps with the same problem.

Preparing Kitchen and testing stuff:

I setted up kitchen according DSIXDA tutorial, and it works ok.

Then to make kitchen compatible with HTC ONE X i used edify_defs file provided by theintelligent in here http://xdaforums.com/showthread.php?t=1885139

Extrated rom with all kitchen defaults, (updater to update conversion, etc)

Didnt made any changes to rom (just to test this) and build the rom with kitchen defaults again (zipalign,update to updater,sign, etc)

And the problem is in here:

Original updater-script:

format("ext4", "EMMC", "/dev/block/mmcblk0p12", "0");
mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/system");

(full updater-script: http://pastebin.com/GKHJCThk)

Kitchen converted updater-script:

format("ext4", "EMMC", "/dev/block/mmcblk0p12");
mount("ext4", "EMMC", "/dev/block/mmcblk0p12", "/system"); 0

(full updater-script: http://pastebin.com/vUdzKcm1)

The kitchen adds that '0' right there in front of mount line and doesnt add the complete string for format line.

If i flash the rom with the Kitchen updater-script i got this error:

-- Installing: /sdcard/Arquivo/roms/MIUI_X/endeavoru_signed_092512_200944.zip
Finding update package...
I:Update location: /sdcard/Arquivo/roms/MIUI_X/endeavoru_signed_092512_200944.zip
Opening update package...
Installing update...
line 4 col 20: syntax error, unexpected STRING, expecting $end
1 parse errors
E:Error in /sdcard/Arquivo/roms/MIUI_X/endeavoru_signed_092512_200944.zip
(Status 6)
Installation aborted.

So i removed that '0' that is in front of format line but it keeps giving my an error

-- Installing: /sdcard/Arquivo/roms/MIUI_X/endeavoru_signed_092612_125439_C1.zip
Finding update package...
I:Update location: /sdcard/Arquivo/roms/MIUI_X/endeavoru_signed_092612_125439_C1.zip
Opening update package...
Installing update...
script aborted: format() expects 4 args, got 3
format() expects 4 args, got 3
E:Error in /sdcard/Arquivo/roms/MIUI_X/endeavoru_signed_092612_125439_C1.zip
(Status 7)
Installation aborted.

(full recovery.log: http://pastebin.com/La8d1U6h)

So my solution was to replace that 2 lines from the kitchen updater-script to the original updater-script.

Now everything works ok, and no problems flashing.

So this is a kitchen problem ? edify_defs problem ? my pc problem ? my phone problem ?

I know i can solve my problem editing the updater-script before i build the rom, but this isnt supposed to happen, i think, the kitchen should convert it correctly, and automatically.

So im confused, its a kitchen problem or its my system problem ? I say this because i saw other people report cooking with sucess for HTC ONE X with DSIXDA Kitchen with no problems, so why i have this problem ? My HTC ONE X is different ?

I know i can round the problem editing mannualy the file, but my intention is to make things right, and make the kitchen work 100% to HTC ONE X.

If annyone can give me some clues and help, ill appreciate and maybe some users with my problem will appreciate to.

Thanks all :)