As i'm not allowed to post in the DEV section please feel free to move this post.
---
I built a script to unpack / replace content in the OEMinfo for P9 [plus] which i want to share.
It is far from being fool-proof and should only be used for educational purposes [i.e. finding out the usage of each element], please do not flash any generated oeminfo without validating manually with a hex-editor(!)
If someone can contribute on the list below please let me know.
---After fiddling with the oeminfo structure i've found out some common elements ----
primary sect,secondary sect,usage,PartitionCode
00007000,02007000,,0x008
00011000,02011000,Vendor,Region,0x012
00041000,02041000,,0x042
00042000,02042000,,0x043
00043000,02043000,rescue name/version,0x044
00049000,,,0x04a
0004d000,,,0x04e
00052000,,,0x053
00056000,,,0x057
00059000,,,0x05a
0005a000,,DeviceType,0x05b
0005c000,0205c000,some hex stuff,0x05d
0005d000,0205d000,empty?,0x05e
0005e000,0205e000,?,0x05f
00060000,,,0x061
00061000,02061000,PRF or empty,0x062
00062000,,,0x063
00064000,02064000,,0x065
00067000,,,0x068
00068000,02068000,,0x069
00069000,02069000,,0x06a
0006a000,0206a000,,0x06b
004b0000,024b0000,BootLogo,0x15f
00cb0000,02cb0000,LadeLogo,0x160
014b0000,024b0000,LadeLogo2,0x161
0005b000,0205b000,,
---
I built a script to unpack / replace content in the OEMinfo for P9 [plus] which i want to share.
It is far from being fool-proof and should only be used for educational purposes [i.e. finding out the usage of each element], please do not flash any generated oeminfo without validating manually with a hex-editor(!)
If someone can contribute on the list below please let me know.
---After fiddling with the oeminfo structure i've found out some common elements ----
primary sect,secondary sect,usage,PartitionCode
00007000,02007000,,0x008
00011000,02011000,Vendor,Region,0x012
00041000,02041000,,0x042
00042000,02042000,,0x043
00043000,02043000,rescue name/version,0x044
00049000,,,0x04a
0004d000,,,0x04e
00052000,,,0x053
00056000,,,0x057
00059000,,,0x05a
0005a000,,DeviceType,0x05b
0005c000,0205c000,some hex stuff,0x05d
0005d000,0205d000,empty?,0x05e
0005e000,0205e000,?,0x05f
00060000,,,0x061
00061000,02061000,PRF or empty,0x062
00062000,,,0x063
00064000,02064000,,0x065
00067000,,,0x068
00068000,02068000,,0x069
00069000,02069000,,0x06a
0006a000,0206a000,,0x06b
004b0000,024b0000,BootLogo,0x15f
00cb0000,02cb0000,LadeLogo,0x160
014b0000,024b0000,LadeLogo2,0x161
0005b000,0205b000,,
from xda-developers http://ift.tt/2bdjPn4
via IFTTT
No comments:
Post a Comment