android
  #1  
Old 12-20-2008, 11:38 PM
Soaa Soaa is offline
Member
 
Join Date: Jan 2008
Posts: 251
Default Research and development: custom fonts.

One of my biggest wishes for BlueWave updates was custom font support. Now Samsung obviously isn't adding this in for us, so we'll have to work this on our own.

I've confirmed that the P2 uses fonts in TTF format, and that these fonts are not encrypted in the firmware update images. Have a look at these screenshots.

Here's Bitstream Vera Sans, in normal style:



And here's an offset within YPP2.RSC:



See the similarity?

We can probably just overwrite the P2's default fonts with custom fonts and reflash. As long as we don't change the file size and move things around, it should be a fairly safe mod.

I'll give it a shot and let you know how it goes.

Update 1:

I tried replacing the first font with Deja Vu Sans, but when I tried flashing it, it threw an error 'Invalid Resource'. I'm thinking there might be a CRC check somewhere.

Update 2:

It seems like the hash they're using to check YPP2.RSC isn't standard: I tried CRC32, md5 and SHA-1, as well as others, and the digests haven't been found in YPP2.ROM. However, looking through YPP2.ROM, I found the string 'Invalid resource' along with some binary code around it. If I can dissassemble it and bypass the check, we might get a YPP2.ROM that allows flashing of custom resources.

Last edited by Soaa; 12-21-2008 at 10:10 AM.
Reply With Quote

Advertisement [Remove Advertisement]

  #2  
Old 12-21-2008, 05:31 PM
Soaa Soaa is offline
Member
 
Join Date: Jan 2008
Posts: 251
Default

Bump for interest. o3o



I got a font out of the P2, but now I have to get a font in. I'll try dissassembling the ROM and see if I can find anything interesting there.
Reply With Quote

  #3  
Old 12-22-2008, 02:46 AM
johnboy's Avatar
johnboy johnboy is offline
Member
 
Join Date: Jan 2008
Posts: 387
Default

cool:-)... u are working pretty hard:-).. thats awesome... wow samsung did a good job of locking the p2.... this forum is like dead now... before the bluewaves came.. everyone used to be here.. now its just me and u..lol
Reply With Quote

  #4  
Old 12-22-2008, 09:14 AM
Soaa Soaa is offline
Member
 
Join Date: Jan 2008
Posts: 251
Default

Actually, Samsung did barely anything to lock the P2. Both update images are completely unencrypted, so all I need to do is remove a check or two.

I nop'd out too many things from the ROM and bricked my P2, lol. Good thing the recovery program is serving well so far.
Reply With Quote

  #5  
Old 12-23-2008, 10:19 AM
Hypnorino's Avatar
Hypnorino Hypnorino is offline
Member
 
Join Date: Dec 2006
Location: Glorious Nation of Kazakhstan
Posts: 220
Default

cool! that is pretty impressive what you've done!

I'm willing to help if I just knew how to extract things using a hexeditor.
Reply With Quote

  #6  
Old 12-26-2008, 09:58 PM
xinzhitan14's Avatar
xinzhitan14 xinzhitan14 is offline
Member
 
Join Date: Apr 2006
Location: +9:30GMT
Posts: 321
Default

interesting work you've done here. hmm, how abouts did you extract the fonts from the p2? is it all stored on the RSC file? if so we could find a way to import into it.
__________________
Samsung YP-P2 w. Shure E2C Black
iriver Clix 2GB w. Creative EP630BK
Samsung YP-D1/T8Z w. JVC HA-FX55W
Reply With Quote

  #7  
Old 12-27-2008, 08:17 AM
Soaa Soaa is offline
Member
 
Join Date: Jan 2008
Posts: 251
Default

I got a font out no problem, but when I tried to get a font in, it didn't accept it. Like I said, it's probably a check somewhere in the ROM.

Indeed the fonts are all in the RSC file.
Reply With Quote

  #8  
Old 12-27-2008, 11:11 PM
Soaa Soaa is offline
Member
 
Join Date: Jan 2008
Posts: 251
Default

Reprint from The P2 Zone.
Quote:
Thanks to joco's help with the CRC (man, it really was just a CRC), I've been able to create a somewhat valid RSC file with a custom font.



However, like I said, it's only still somewhat valid, because it seems to check each resource too, but only after flashing it. Which means I can flash one font at a time.

I'll keep you guys updated.
Reply With Quote

  #9  
Old 12-28-2008, 01:29 AM
moop's Avatar
moop moop is offline
Junior Member
 
Join Date: Dec 2008
Location: Germany
Posts: 8
Default

Looking really good, hope you'll be able to progress even further.
__________________
Player: Samsung P2 8GB White
Phones: Phonak Audéo 111 White
Reply With Quote

  #10  
Old 01-05-2009, 10:46 PM
Soaa Soaa is offline
Member
 
Join Date: Jan 2008
Posts: 251
Default

rscedit - the P2 font modding utility. Released today. Grab it here:

http://www.mediafire.com/?anmctm2yyj0

Be sure to read the README.txt file.

Enjoy!
Reply With Quote

  #11  
Old 01-06-2009, 12:41 AM
Teemu Teemu is offline
Banned
 
Join Date: Jun 2008
Posts: 49
Smile

TTF file is supposed to be dropped at rscedit.exe in windows explorer? I tested it bu it doesnt give me any YPP2.RSC file there is just the same YPP2.blank.RSC. Or is that blank file supposed to be used?

Edit: I tried it now with going to "Open with" on the font file and selected rscedit.exe. That made YPP2.RSC in the folder and im going to test in a sec does it work with my player.

Edit2: It worked!! Great job Soaa! I tried to take a picture of my p2 with cool font but camera was too bad =D. Thank you really much! By the way people who try this, if it doesnt show the font you installed go to options and font selection (there are 3 fonts what came with p2) and try each font. Font you installed will replace one of those. I tought first that it didnt work but then I just went to options and changed right font on!

Cool

Last edited by Teemu; 01-06-2009 at 08:56 AM.
Reply With Quote

  #12  
Old 01-06-2009, 09:58 AM
Soaa Soaa is offline
Member
 
Join Date: Jan 2008
Posts: 251
Default

Yeah, I forgot to mention, it changes the middle font.
Reply With Quote

  #13  
Old 01-06-2009, 02:26 PM
Soaa Soaa is offline
Member
 
Join Date: Jan 2008
Posts: 251
Default

Update: new utility allows flashing all three fonts. BE SURE TO READ THE NEW README. It contains important information on how to use the three utilities.

http://www.mediafire.com/?4mzjoxuilzv

Enjoy!
Reply With Quote

  #14  
Old 01-06-2009, 05:46 PM
Olley Olley is offline
Ultra Senior Member
 
Join Date: Dec 2008
Posts: 4,894
Default

This is great progress, Soaa. Well done!
Reply With Quote

  #15  
Old 01-07-2009, 04:52 PM
Music!'s Avatar
Music! Music! is offline
Junior Member
 
Join Date: Jul 2008
Posts: 45
Default

How out of the ordinary for hacks and mods to be made after the hype is long gone. Regardless of whether the p2 has a hype surrounding it or not anymore, it is an amusing feat to get the p2 to its full potential.
Congrats on continuing the p2 mod.
Small handful of people can boast about modding the p2. Did you, do you plan to, put your head together with the poster member who found the firmware mod? Should you continue to mod p2 features, maybe a quick look at the thread titled who can use this for firmware updating? could help you continue modding the p2.
__________________
New to the thread.
Reply With Quote

  #16  
Old 01-09-2009, 09:33 PM
Soaa Soaa is offline
Member
 
Join Date: Jan 2008
Posts: 251
Default

Shoot! I forgot to mention in the readme, that you need to rename the original RSC to "YPP2.orig.RSC".

This applies to the second release.
Reply With Quote

  #17  
Old 01-10-2009, 01:15 AM
arekieh arekieh is offline
Junior Member
 
Join Date: Dec 2008
Posts: 77
Default

can you explain more thoroughly how to do this?
Reply With Quote

  #18  
Old 01-10-2009, 05:31 AM
Hypnorino's Avatar
Hypnorino Hypnorino is offline
Member
 
Join Date: Dec 2006
Location: Glorious Nation of Kazakhstan
Posts: 220
Default

Finally a breakthrough!!! Well done, Sooa!!!!
Candara looks exquisite on the P2!
Thank you very much!!!!!!!!!!!!!!!! Do you think it will work on the T10?
Reply With Quote

  #19  
Old 01-10-2009, 10:21 AM
lebellium's Avatar
lebellium lebellium is offline
Samsung Moderator
 
Join Date: Sep 2007
Location: Paris
Posts: 3,605
Default

Worked fine for me!

I made a tuto in french for gmp3! Thanks Soaa


With the font Bauhaus 93
__________________
I'm French^^ *GenerationMP3 Samsung Moderator*

Last edited by lebellium; 01-10-2009 at 01:46 PM.
Reply With Quote

  #20  
Old 01-10-2009, 08:25 PM
Soaa Soaa is offline
Member
 
Join Date: Jan 2008
Posts: 251
Default

De rien, lebellium. Just my way of giving back to the community. Glad you're enjoying it. (:

I probably won't update this any more, unless I find more interesting things to hack in RSC, but it seems that joco's UCI editor will eliminate the need for that.

Now if only it'll work correctly!
Reply With Quote

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

Forum Jump



All times are GMT -5. The time now is 08:51 AM.