Add SMS role condition in checking SMS capable

Bug: 236669085
Test: atest android.devicepolicy.cts.DefaultSmsApplicationTest
Change-Id: Ida2837705998b5f440355bbb125c9096f4cc8ba5
Merged-In: Ida2837705998b5f440355bbb125c9096f4cc8ba5
(cherry picked from commit 023550e5c02c493b9692a5a468935855ed4fcc31)
1 file changed