Handle permission check for multi-active SIMs devices.
For download and switch, if the caller can manage (has carrier privilege) on any active sub on any other slots && the caller can manage the active sub on the target slot or there is no active sub on the target slot, we allow the caller to continue download. Otherwise, we require user consent. For getting EID, we now check whether the caller has privilege on the target card with the given cardId. Other logic including the logic for single-active slot still keep the same. Also, open disable sub (switch to empty sub) to privileged carrier apps instead of just system. Bug: 36260308 Bug: 120621262 Test: unit test, test on phone Change-Id: Icfc0c9e9f4303876bceb1adbe217b39b538b347e
Loading
Please register or sign in to comment