Allow emergency calls from secondary user's lockscreen.

Don't initialize PhoneGlobals when not needed. In general, it should
not be initialized in a secondary user context. All telephony service
access must be directed to the primary user.

NewOutgoingCallIntentBroadcaster eventually calls
sendBroadcastAsUser(... , USER_OWNER , ... ), which ensures that
the actually communication with RIL happens in user 0's phone process.

Bug: 15422958

Change-Id: I5034a48a6d877c44a89355fe776c7aef0a21ebbe
1 file changed