Fix bug 1793462 (part 1): add a resource to disable the "SIM network unlock" screen
authorDavid Brown <dab@google.com>
Tue, 21 Apr 2009 02:07:31 +0000 (19:07 -0700)
committerDavid Brown <dab@google.com>
Tue, 21 Apr 2009 02:07:31 +0000 (19:07 -0700)
commit09328f1bd9acf6b16a9cb79d7d9fa59d322ac6c2
tree012386c39e206d4603cf3f797188967575ef6f5d
parent2901f71e62770bfd9f689ff834be14bab8367c09
Fix bug 1793462 (part 1): add a resource to disable the "SIM network unlock" screen

Some networks may not have the concept of "unlocking a SIM", in which case
we should *not* show the "Sim network lock" screen even if we get an
EVENT_SIM_NETWORK_LOCKED message.

This change adds a boolean resource called ignore_sim_network_locked_events;
if true, the phone app will ignore EVENT_SIM_NETWORK_LOCKED events.
The default value is false, meaning that a EVENT_SIM_NETWORK_LOCKED event
will launch the IccNetworkDepersonalizationPanel, and prevent the user from
doing anything else until they enter a valid SIM network PIN (i.e. the
current behavior.)

To change this behavior, just set ignore_sim_network_locked_events to true
in a product-specific overlay file.

TESTED: faked an EVENT_SIM_NETWORK_LOCKED.
  With ignore_sim_network_locked_events=false, the
  IccNetworkDepersonalizationPanel came up normally.
  With ignore_sim_network_locked_events=true, nothing happened.
res/values/config.xml [new file with mode: 0644]
src/com/android/phone/PhoneApp.java