Skip to content
Commit 8e39051b authored by Ayush Sharma's avatar Ayush Sharma
Browse files

Allow ROLE_SMS in managed profile conditionally

ROLE_SMS is only relevant in the managed profile if work profile telephony is enabled. If we enable ROLE_SMS in work profile with work profile telephony disabled, Work messaging app could access personal messages(since there is a single messaging database) and this gives user the perception that personal message data is leaking in to work profile.
Hence with this change ROLE_SMS would only be available in the work profile if work profile telephony is enabled.

Bug: 289197367
Test: atest android.devicepolicy.cts.telephony.WorkProfileTelephonyTest
atest android.devicepolicy.cts.ManagedSubscriptionsPolicyTest
Manual test(SMS role is not granted to OEM default messaging app when work profile telephony is not enabled)

Change-Id: Ia97fcb68140f537a65cfd465e1cb42799ea0f581
parent 96d1ec33
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment