Enforce new permission requirements for getLine1Number
To move READ_PHONE_STATE from a runtime permission to a normal permission all sensitive APIs guarded by READ_PHONE_STATE must be moved to another permission. This commit updates the TelecomServiceImpl to enforce the new permission requirements for getLine1Number for apps targeting R+ while still supporting the previous READ_PHONE_STATE for apps targeting previous SDK versions. Bug: 136160623 Test: atest TelecomUnitTests:TelecomServiceImplTest Change-Id: I521c1e59f310819c42fe2699231f6a3f62cbf37f
Loading
Please register or sign in to comment