Here's a quick way to find the SPC.
On the pc just type:

adb logcat > C:\dump.txt

on the phone dialer enter:
##123456#

then search with a text/hex editor for the string "sec_code" (without the quotes)
And there you have it nice and simple

BillA