Xperia Ray ST18i - CWM - install zip from sdcard, error message: This package is for "ST18i,..." devices; this is a "".? I am working on an Xperia Ray ST18i otherwise known as urushi, unlocked, rooted, last running stock 4.0.4.
I was unable to install CWM with ROM manager app, which said it was incompatible with ST18i.  I tried to install TWRP, same response.  I tried to install CWM with x-Parts app, it said that it installed, but there was nothing there.  Finally I found a tip to use the installer of older version of CWM, 5.027.  I installed it, and it worked.  The installer app recognized the device as an ST18i.  I tested that I could reboot into recovery and operate it.  Made nandroid backup.  

Now attempting to install carbon rom 4.4.x.
Copied zip to sd card.
I extracted the boot.img, installed with fastboot, which responded with Flash operation complete.
Rebooted into recovery.
Wipe data.
Wipe cache. 
Wipe dalvik.
Install zip.
Select zip file.
CWM starts installing.

Finding update package...
Opening update package...
Installing update...
However, aborts with error message: This package is for "ST18i,ST18a,urushi" devices; this is a "".
(Status 7)  Installation Aborted.  

Now it appears that the package is correct, the device is an ST18i.  But it appears that CWM thinks the device is a "".  

I tried the option "toggle script asserts" to disable, but it made no difference.  (not sure if that is relevant) 

Elsewhere on the web for someone who had a problem because the name in the package did not did not match name on device, I read some advice about decompressing the zip and editing the updater-script, and re-zipping it and pushing it to the sd card to flash.
However, what would I even put in there for the device type, "" ?  

Or is it possible to comment out that check altogether? 

Or is there a way to correctly specify to CWM what kind of device it is?   

Or is there another solution?  

(and as an aside, is there a better recovery for the Xperia Ray than CWM 5.027?) 

Thank you for your assistance.
I found an answer here:
http://forum.xda-developers.com/showpost.php?p=30908422&amp;postcount=186

Edit the updater-script, but don't try to fix it - remove the condition altogether since I know I'm on the correct device.  

Thanks adulfo!  

PS. bizarrely, after powering down, when I returned to recovery, a different version (6.0.5.1) of recovery came up rather than 5.027.  Possibly x-Parts had improperly installed CWM, and the second install 5.027 made it possible to access it, because after originally installing with x-Parts I could not boot into recovery.  (Although that does not make sense either because x-Parts says it installs recovery into the system, and it is erased by flashing a ROM)

Still, I don't know why CWM did not recognize the device as an ST18i (and thereby failed the script), especially since it had done so during the installation of CWM recovery.