Fixed the race condition when multi sim config changed

Fixed a regression introduced by ag/17715925. If the
config update event arrives earlier than multi sim
config changed event, the device crashes.

Fixed by using the internal registration rather than
the broadcast receiver, which can make multi sim
config changed event arrived earlier.

Also discard the clear config event if phone id is
invalid.

Fix: 267722067
Test: atest CarrierConfigLoaderTest
Test: Boot up test + basic phone functionality tests
Change-Id: I292663f7fb1c59c4ff3c6ecf55304251c5cae3b2
2 files changed