fix test failure by wrapping createContextAsUser with catch block
android growler reported some new test failures in android.telephony2.cts.TelephonyManagerNoPermissionTest due to a recent change in TelecomManager#enforceCallingPackage. The test failed at the createContextAsUser API call in callingUidMatchesPackageManagerRecords. I've added a try/catch around the createContextAsUser and the method will throw a SE if the catch block is executed. I've also fixed some log spew in isPrivilegedUid Test: manual Bug: 258729003 Change-Id: I0877a8410349cfe613d05cd71a615704ca5b2720
Loading
Please register or sign in to comment