Platform changes needed for CarrierAppUtils integration tests.
- Propagate fake carrier privilege rules set by TelephonyManager#setCarrierTestOverride to UiccProfile. This allows us to set rules for testing purposes that exercise the app hiding/ unhiding logic in CarrierAppUtils. - Move the location where CarrierAppUtils is invoked from SubscriptionInfoUpdater to UiccProfile once the rules have loaded. This is a more appropriate home either way as it is more closely tied to the precise place where rules have loaded, and since it coexists with other app logic that is tied to the platform rules. More importantly, moving it here ensures that CarrierAppUtils is invoked after a call to setCarrierTestOverride changes the privilege rules, which is needed to use this API for testing. Bug: 150399810 Test: Verified on local build and w/ new carrier app integration test Merged-In: Idfa5520f17c3e57712a666ffd67de9197ad4b1c7 Change-Id: Idfa5520f17c3e57712a666ffd67de9197ad4b1c7 (cherry picked from commit da07440f)
Loading
Please register or sign in to comment