Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,808,000 Members 48,813 Now Online
XDA Developers Android and Mobile Development Forum

[WIP]LOGO.bin File Format and Modding

Tip us?
 
demkantor
Old
#11  
demkantor's Avatar
Recognized Contributor
Thanks Meter 2,751
Posts: 5,773
Join Date: Nov 2011
Location: mpls
Flashing a bad LOGO.bin did send me to the QHSUB_DLOAD mode and I tired rebooting holding down all three buttons. It did seem to work but after a bit it seemed to just boot on its own. Then I just used an adb shell to run dd commands to flash the proper .bin and all has been well since then
Still have been to busy with our newborn to look into anything deeper but between this thread and the one by @chillstep1998 and treChoy and other it looks to be all good!
Glad all is coming together on this end, keep up the great work all
The Following 2 Users Say Thank You to demkantor For This Useful Post: [ Click to Expand ]
 
m9j_cfALt
Old
#12  
m9j_cfALt's Avatar
Junior Member
Thanks Meter 9
Posts: 19
Join Date: Oct 2013
Location: Didwana
dear thread creater.. i tell u what is that zeros after anything.
actualy android reads anything in block size.. like this
4,4,4,4,4.....
or 8,8,8,8,8.....
or 16,16,16,16...
or....
or...
or...
or 512,512,512,512...
or......

so.. if block size is 512 then it would read 512 bytes first..
now think what if there is only 50 or 51 bytes.. if will be a error.. if it has code to handle errors.. it is slow.
this is called alignment.. we say header is aligned to 512 bytes.
to make alignment it would add padding of NULLs(chr(0) in vb)

same nulls for the end of file to make it aligned to some size.
thank you.
The Following User Says Thank You to m9j_cfALt For This Useful Post: [ Click to Expand ]
 
updateing
Old
#13  
Senior Member - OP
Thanks Meter 166
Posts: 176
Join Date: Aug 2012
Location: Wuhan

 
DONATE TO ME
Quote:
Originally Posted by m9j_cfALt View Post
dear thread creater.. i tell u what is that zeros after anything.
actualy android reads anything in block size.. like this
4,4,4,4,4.....
or 8,8,8,8,8.....
or 16,16,16,16...
or....
or...
or...
or 512,512,512,512...
or......

so.. if block size is 512 then it would read 512 bytes first..
now think what if there is only 50 or 51 bytes.. if will be a error.. if it has code to handle errors.. it is slow.
this is called alignment.. we say header is aligned to 512 bytes.
to make alignment it would add padding of NULLs(chr(0) in vb)

same nulls for the end of file to make it aligned to some size.
thank you.
Thanks! I know there are some alignment rules, but didn't expect them to be here. I've seen aligning the whole file to 4 bytes or so, but little do I know that a section header needs alignment as well. I guess that's because this LOGO.bin is used in such a low-level "environment" that we don't have enough time & space to handle the non-aligned data. Am I right?
Sony Xperia TX with OmniROM 4.4
If you like my work, please consider buying me some beer
 
Reive
Old
#14  
Reive's Avatar
Member
Thanks Meter 162
Posts: 60
Join Date: Jul 2013
Location: Palermo

 
DONATE TO ME
Quote:
Originally Posted by updateing View Post
Thanks! I know there are some alignment rules, but didn't expect them to be here. I've seen aligning the whole file to 4 bytes or so, but little do I know that a section header needs alignment as well. I guess that's because this LOGO.bin is used in such a low-level "environment" that we don't have enough time & space to handle the non-aligned data. Am I right?
Hi man!
Do you know how change the battery animation when the phone is charging(when is off)?
I've tried to change the imgs in /res/images/charger, but you know, it doesn't work eheheh...
Can you help me?
Attached Files
File Type: rar charger icons.rar - [Click for QR Code] (11.6 KB, 3 views)
 
updateing
Old
#15  
Senior Member - OP
Thanks Meter 166
Posts: 176
Join Date: Aug 2012
Location: Wuhan

 
DONATE TO ME
Quote:
Originally Posted by Reive View Post
Hi man!
Do you know how change the battery animation when the phone is charging(when is off)?
I've tried to change the imgs in /res/images/charger, but you know, it doesn't work eheheh...
Can you help me?
I don't have a OPO to test, all these analysis are theoretical. So I may not be able to help. Sorry...
Sony Xperia TX with OmniROM 4.4
If you like my work, please consider buying me some beer
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes