# Is READ\_PHONE\_STATE now a required permission?

**URL:** <https://devforum.zoom.us/t/is-read-phone-state-now-a-required-permission/64709>\
**Category:** Android\
**Created:** [February 22, 2022, 8:55pm UTC](https://devforum.zoom.us/t/is-read-phone-state-now-a-required-permission/64709 "2022-02-22T20:55:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![a.diament](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/a.diament/32/3259_2.png) [@a.diament](https://devforum.zoom.us/u/a.diament)\
**Post date:** [February 22, 2022, 8:55pm UTC](https://devforum.zoom.us/t/is-read-phone-state-now-a-required-permission/64709/1 "2022-02-22T20:55:41Z")

</div>

**Description**  
We have a custom ui app, on version 5.7.6.1918. Recently one of our users has not been able to start calls. The device logs contained this message and stack trace.

```auto
Java.Lang.SecurityException: getCallState: Neither user 10428 nor current process has android.permission.READ_PHONE_STATE. ---> Android.Util.AndroidException: Remote stack trace:
	at android.app.ContextImpl.enforce(ContextImpl.java:2178)
	at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:2206)
	at android.content.ContextWrapper.enrSelfPermforceCallingOission(ContextWrapper.java:905)
	at com.android.server.telecom.TelecomServiceImpl.canReadPhoneState(TelecomServiceImpl.java:2323)
	at com.android.server.telecom.TelecomServiceImpl.access$300(TelecomServiceImpl.java:78)

   --- End of inner exception stack trace ---
  at Java.Interop.JniEnvironment+InstanceMethods.CallIntMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x0006e] in <617ecae5129441ed8a3bc4af0a25ab13>:0 
  at Android.Runtime.JNIEnv.CallIntMethod (System.IntPtr jobject, System.IntPtr jmethod, Android.Runtime.JValue* parms) [0x0000e] in <f1fe9407d64e43458f1908eca13252aa>:0 
  at US.Zoom.Sdk.IMeetingServiceInvoker.JoinMeetingWithParams (Android.Content.Context p0, US.Zoom.Sdk.JoinMeetingParams p1, US.Zoom.Sdk.JoinMeetingOptions p2) [0x000a1] in <da10882630b14c8695ac5591ac4d7846>:0 

```

The zoom docs do not list READ\_PHONE\_STATE as a required permission. But this behaviour suggests that it is?

**Which Android Meeting SDK version?**  
5.7.6.1918

**Smartphone (please complete the following information):**

- Device: Google Pixel 3XL
- OS: Android 12, API 31

---

<div class="post-metadata">

**Author:** ![a.diament](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/a.diament/32/3259_2.png) [@a.diament](https://devforum.zoom.us/u/a.diament)\
**Post date:** [February 22, 2022, 9:53pm UTC](https://devforum.zoom.us/t/is-read-phone-state-now-a-required-permission/64709/2 "2022-02-22T21:53:19Z")

</div>

I’m wondering if this is an Android 12 problem? Some devices running 12 seem to work fine, but some do not. On the ones that do not, even f I add the missing permission, I the get an error about the ScreenShareServiceForSDK

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 24, 2022, 6:07pm UTC](https://devforum.zoom.us/t/is-read-phone-state-now-a-required-permission/64709/3 "2022-02-24T18:07:49Z")

</div>

Hi @a.diament,

Are you able to reproduce this crash on any older versions of Android? We do not yet have support for Android 12, so if this is only reproducible on that version we will need to wait for support to be added.

Thanks!

---

<div class="post-metadata">

**Author:** ![a.diament](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/a.diament/32/3259_2.png) [@a.diament](https://devforum.zoom.us/u/a.diament)\
**Post date:** [February 24, 2022, 6:17pm UTC](https://devforum.zoom.us/t/is-read-phone-state-now-a-required-permission/64709/4 "2022-02-24T18:17:08Z")

</div>

@jon.zoom only on Android 12 so far

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 25, 2022, 9:58pm UTC](https://devforum.zoom.us/t/is-read-phone-state-now-a-required-permission/64709/5 "2022-02-25T21:58:09Z")

</div>

Hi @a.diament,

Thanks for confirming. In that case, let’s see if this is still reproducible once Android 12 support is released and we can revisit if needed. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![a.diament](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/a.diament/32/3259_2.png) [@a.diament](https://devforum.zoom.us/u/a.diament)\
**Post date:** [March 13, 2022, 12:37pm UTC](https://devforum.zoom.us/t/is-read-phone-state-now-a-required-permission/64709/6 "2022-03-13T12:37:16Z")

</div>

@jon.zoom Using the latest Android 12 support sdk 5.9.6.4777 we are still reproducing this on Android 12 phones. It works on pixel 3, but not on samsung s10 or s21.

Should we add permission READ\_PHONE\_STATE? The documentation for the Android meeting SDK doesn’t mention that it is required as far as I can see.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [March 14, 2022, 11:41pm UTC](https://devforum.zoom.us/t/is-read-phone-state-now-a-required-permission/64709/7 "2022-03-14T23:41:32Z")

</div>

Hi @a.diament,

Thanks for confirming. For now, you can add that permission to prevent the crash as a temporary fix. we’ll need to investigate why this was added and update our documentation. I’ll be sure to keep you updated.

Thanks!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [March 16, 2022, 11:32pm UTC](https://devforum.zoom.us/t/is-read-phone-state-now-a-required-permission/64709/8 "2022-03-16T23:32:03Z")

</div>

Hi @a.diament,

This permission was intentionally added as part of our effort to add Android 12 support. We will update our documentation soon to reflect this permission.

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [April 16, 2022, 9:32am UTC](https://devforum.zoom.us/t/is-read-phone-state-now-a-required-permission/64709/9 "2022-04-16T09:32:37Z")

</div>

Closed on April 16, 2022, 9:32am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
