Replace StringNetworkSpecifier & subId with TelephonyNetworkSpecifer
StringNetworkSpecifier is widely used to specify subscription id for the NetworkRequest. The raw string field introduce ambiguity and leave large space for bugs. With TelephonyNetworkSpecifer, we are able to settle down the type and value of the fields (although currently only one) and introduce validation to detect the bug in the beginning. Bug: 145993724 Test: atest FrameworksNetTests FrameworksTelephonyTests Change-Id: Ie4bf089f6a4a2a572add4a78e36710a84e574b01
Loading
Please register or sign in to comment