To read security codes via diagnostic port:
1. Power on the phone.
2. Type *#0808# and select 'DM+MODEM+ADB'.
3. Connect the phone to PC with USB cable, install drivers if needed.
4. Press 'Read Codes DIAG' button to read security codes