Move phone ID to extra for action provision

Previously, the phone ID was appended to the broadcast in DCT and sent
to ConnectivityManager. Instead of sending both as an action, send the
phone ID as an extra instead to make the action a protected broadcast.

Test: manually verify a SecurityException when action provision is sent
Test: atest DcTrackerTest
Bug: 172459128
Change-Id: Ic4129def86949d7191d15056852718dadbd72fba
Merged-In: Ic4129def86949d7191d15056852718dadbd72fba
This commit is contained in:
Sarah Chin 2020-11-25 12:15:14 -08:00
commit cabcbffad8

View file

@ -3152,9 +3152,9 @@ public class ConnectivityManager {
}
/**
* Set sign in error notification to visible or in visible
* Set sign in error notification to visible or invisible
*
* {@hide}
* @hide
* @deprecated Doesn't properly deal with multiple connected networks of the same type.
*/
@Deprecated