Phone Locks and Security Tutorial

This tutorial describes how to use the phone lock and security features in a Symbian platform device using the RMobilePhone functions.

Introduction

The RMobilePhone fucntions allows clients to:

  • get the security and lock capabilities of the phone

  • get the status of phone locks

  • be notified of security events

  • enter and change security codes

  • change the setting of a lock

Capabilities

The supported locks can be different in different modes:

  • in GSM, there are two locks associated with the SIM application, that is PIN1 and PIN2. The PIN1 can be enabled or disabled

  • in CDMA, a R-UIM (ICC card) has a PIN1 lock, but not all CDMA phones have a R-UIM. A Number Assignment Module lock is specific to CDMA networks.

  • in a multimode phone, the phone determines its ICC access policy. For example whether a GSM SIM can be accessed while the phone is in a CDMA mode.

To dynamically get the lock and security capabilities from the TSY for the current mode, call RMobilePhone::GetSecurityCaps().

Results

The function must return a bitmask of an RMobilePhone::TMobilePhoneSecurityCaps flag