Skip to content Skip to sidebar Skip to footer

Android Integration Test Application Permissions

I'm looking a way to get current device's serial number in my integration tests. Now, when calling TelephonyManager manager = (TelephonyManager) getActivity().getSystemService(Cont

Solution 1:

You should check whether Read_Phone_State permission is added in your application's AndroidManifest.xml or not.

like This::

<uses-permissionandroid:name="android.permission.READ_PHONE_STATE"/>

If it is not there please add it, because your testcase can not have more privilege than your application.

Post a Comment for "Android Integration Test Application Permissions"