Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Ed Roid
Old
#11  
Ed Roid's Avatar
Senior Member
Thanks Meter 23
Posts: 105
Join Date: Apr 2011
Hi,

I just bought a Chacha for my wife and i would like to mod the battery. The problem is that i can't make UOT kitchen work with this phone. I uploaded to kitchen files from 1.54_EU and 1.57_Asia and got same SHTF error each time. Though I have used uot kitchen many times for my Desire without one problem, this time i'm really stuck.

Does someone know if it's possible or not to cook a zip on UOT kitchen from a Chacha rom ? If the answer is yes, what am I doing wrong ?
HTC Desire

HBoot AlphaRev 1.8 CM7 r2 (145 - 5 - 287 MB) S-Off - Radio 32.49.00.32U_5.11.05.27 - Recovery 4Ext Touch
 
Alex C.
Old
#12  
Alex C.'s Avatar
Recognized Contributor
Thanks Meter 458
Posts: 1,033
Join Date: Aug 2011
Location: Bochum
Quote:
Originally Posted by Ed Roid View Post
Hi,

I just bought a Chacha for my wife and i would like to mod the battery. The problem is that i can't make UOT kitchen work with this phone. I uploaded to kitchen files from 1.54_EU and 1.57_Asia and got same SHTF error each time. Though I have used uot kitchen many times for my Desire without one problem, this time i'm really stuck.

Does someone know if it's possible or not to cook a zip on UOT kitchen from a Chacha rom ? If the answer is yes, what am I doing wrong ?
Get the files from your ROM (it's ROM specific) using a file explorer (copy-paste to your SD card).
 
Ed Roid
Old
(Last edited by Ed Roid; 30th April 2012 at 11:56 AM.)
#13  
Ed Roid's Avatar
Senior Member
Thanks Meter 23
Posts: 105
Join Date: Apr 2011
Quote:
Originally Posted by Alex C. View Post
Get the files from your ROM (it's ROM specific) using a file explorer (copy-paste to your SD card).
Thanks Alex. I did what you suggest. I got them by 'adb pull ...', by file explorer to sd card, extracted them from a 1.54_eu zip, nothing works ... Same error each time.
I tried the same battery mod with the 1.33_eu zip (extracted from 1.33_eu ruu) and got no problem with this one. But no way for 1.54_eu, uot kitchen didn't work with it ... Don't know if it is possible, though it seems to me that some may have succeeded with this rom if i believe some screen shots.
HTC Desire

HBoot AlphaRev 1.8 CM7 r2 (145 - 5 - 287 MB) S-Off - Radio 32.49.00.32U_5.11.05.27 - Recovery 4Ext Touch
 
Alex C.
Old
#14  
Alex C.'s Avatar
Recognized Contributor
Thanks Meter 458
Posts: 1,033
Join Date: Aug 2011
Location: Bochum
Hmm, weird. It should work, as I've had the same ROM and changed some icons inside.

Do you get errors when uploading all 3 files? Or only for some specific file?

Gingerbread with sense rom: framework-res.apk, SystemUI.apk and com.htc.resources.apk
 
Ed Roid
Old
(Last edited by Ed Roid; 30th April 2012 at 02:47 PM.)
#15  
Ed Roid's Avatar
Senior Member
Thanks Meter 23
Posts: 105
Join Date: Apr 2011
Maybe the problem is specific to battery mod with this rom ? I'm going to try another mod with the same rom just to be sure of that.
HTC Desire

HBoot AlphaRev 1.8 CM7 r2 (145 - 5 - 287 MB) S-Off - Radio 32.49.00.32U_5.11.05.27 - Recovery 4Ext Touch
 
Ed Roid
Old
(Last edited by Ed Roid; 30th April 2012 at 02:01 PM.)
#16  
Ed Roid's Avatar
Senior Member
Thanks Meter 23
Posts: 105
Join Date: Apr 2011
I've tried an icon mod and i got SHTF error too with 1.54 files ... The errors occur when compiling SystemUI.apk.

Are you sure you made some mods on exact same rom ? Just to guess if i'm doing something wrong ...
HTC Desire

HBoot AlphaRev 1.8 CM7 r2 (145 - 5 - 287 MB) S-Off - Radio 32.49.00.32U_5.11.05.27 - Recovery 4Ext Touch
 
Ed Roid
Old
(Last edited by Ed Roid; 1st May 2012 at 11:06 AM.)
#17  
Ed Roid's Avatar
Senior Member
Thanks Meter 23
Posts: 105
Join Date: Apr 2011
Ok, it took me a pair of hours but i have the great satisfaction to have found a workaround ! I share it below with whoever would be interested.

I observed with more attention than i did before the error.log of uot kitchen and i saw that the issue seemed to be with the res/drawable-mdpi/battery_low_battery.jpg file of SystemUI.apk.
I compared 1.54_eu SystemUI.apk to 1.33_eu SystemUI.apk and saw that in this one it was named res/drawable-mdpi/battery_low_battery.png.
I knew that 1.33_eu SystemUI.apk was ok for cooking, so here is what i did :

- decompile 1.54_eu SystemUI.apk with apktool
- in the decompiled apk, replace res/drawable-mdpi/battery_low_battery.jpg with res/drawable-mdpi/battery_low_battery.png of 1.33_eu SystemUI.apk
- recompile SystemUI with apktool
- copy resources.arsc of the newly compiled SystemUI.apk into the original SystemUI.apk
- in the original SystemUI.apk, replace res/drawable-mdpi/battery_low_battery.jpg with res/drawable-mdpi/battery_low_battery.png of 1.33_eu SystemUI.apk

Modified as described, the 1.54_eu SystemUI.apk is now ok for cooking in uot kitchen along with the other needed files (framework-res.apk and com.htc.resources.apk). I tested it with a battery mod, it cooked and flashed ok !
No need to do the mod yourself, you can download the result below : you have modified 1.54_eu SystemUI.apk to use with uot kitchen and a CM7 style battery mod ready to flash with CWM into a 1.54_eu rom (don't forget to hit thanks if you use these files, this SystemUI.apk file has cost me many hours of googling and brain storming ! )
Attached Thumbnails
Click image for larger version

Name:	CM7Battery.png
Views:	88
Size:	4.3 KB
ID:	1032921   Click image for larger version

Name:	device-2012-05-01-115658.png
Views:	115
Size:	33.1 KB
ID:	1034366   Click image for larger version

Name:	device-2012-05-01-115747.png
Views:	134
Size:	178.8 KB
ID:	1034367  
Attached Files
File Type: apk SystemUI.apk - [Click for QR Code] (498.9 KB, 28 views)
File Type: zip UOT_1.54_eu_CM7Battery.zip - [Click for QR Code] (2.92 MB, 34 views)
HTC Desire

HBoot AlphaRev 1.8 CM7 r2 (145 - 5 - 287 MB) S-Off - Radio 32.49.00.32U_5.11.05.27 - Recovery 4Ext Touch
The Following User Says Thank You to Ed Roid For This Useful Post: [ Click to Expand ]
 
Alex C.
Old
#18  
Alex C.'s Avatar
Recognized Contributor
Thanks Meter 458
Posts: 1,033
Join Date: Aug 2011
Location: Bochum
Congrats man!

Now I'm wondering why would HTC switch to the non-transparency enabled .jpg format instead of keeping to the official .png.
 
max1309
Old
#19  
Junior Member
Thanks Meter 1
Posts: 17
Join Date: Jan 2012
Location: Avesnes / Helpe
Quote:
Originally Posted by Ed Roid View Post

I observed with more attention than i did before the error.log of uot kitchen and i saw that the issue seemed to be with the res/drawable-mdpi/battery_low_battery.jpg file of SystemUI.apk.
I compared 1.54_eu SystemUI.apk to 1.33_eu SystemUI.apk and saw that in this one it was named res/drawable-mdpi/battery_low_battery.png.
Hi,

I've tried to use in UOT your systemUI.apk file. It works with battery mod, but only with it.
If you try to add another mod such as emoticon or icons, it fails.
It seems because there is emot*.JPG files in framework-res.apk according to the SHTF log, so the problem is quite similar.

But I'm not able to sovle it as you did...
 
Ed Roid
Old
#20  
Ed Roid's Avatar
Senior Member
Thanks Meter 23
Posts: 105
Join Date: Apr 2011
Quote:
Originally Posted by max1309 View Post
It seems because there is emot*.JPG files in framework-res.apk according to the SHTF log, so the problem is quite similar.
You're right, compared to 1.33_eu framework-res.apk many png files have been changed to jpg, including all emot*.png.
The same technique i used for SystemUI.apk should be ok, so i'll give it a try as soon as i have enough time. There will be no jpg left, neither in SystemUI.apk, nor in framework-res.apk or com.htc.resources.apk !
Stay tuned, i'll be back !
HTC Desire

HBoot AlphaRev 1.8 CM7 r2 (145 - 5 - 287 MB) S-Off - Radio 32.49.00.32U_5.11.05.27 - Recovery 4Ext Touch

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...