# Toggling camera throws SDKERR\_NO\_PERMISSION even when app has permission

**URL:** <https://devforum.zoom.us/t/toggling-camera-throws-sdkerr-no-permission-even-when-app-has-permission/64156>\
**Category:** Android\
**Created:** [February 10, 2022, 9:04pm UTC](https://devforum.zoom.us/t/toggling-camera-throws-sdkerr-no-permission-even-when-app-has-permission/64156 "2022-02-10T21:04:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pmogollon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pmogollon/32/15868_2.png) [@pmogollon](https://devforum.zoom.us/u/pmogollon)\
**Post date:** [February 10, 2022, 9:04pm UTC](https://devforum.zoom.us/t/toggling-camera-throws-sdkerr-no-permission-even-when-app-has-permission/64156/1 "2022-02-10T21:04:36Z")

</div>

**Description**  
When using custom UI and recording, a connected user cannot enable his mic or camera and an error is thrown SDKERR\_NO\_PERMISSION.

This appears to happen because the user has not accepted to be recorded in the prompt that should appear, but this prompt is never appearing and only the audio is heard saying that the meeting is being recorded.

**Which Android Meeting SDK version?**  
5.9.1.3674

If I go back to version 5.7.1.1268 it works without an issue.

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. From Zoom for desktop, start a meeting and begin recording it before SDK app joins.
2. From an Android SDK app, join the meeting.
3. Notice you will hear the “recording in progress” audible message on the SDK app but no consent dialog appears.
4. SDK user is unable to unmute or start video. canUnmuteMyAudio() and canUnmuteMyVideo() both return false.
5. Stop recording from desktop.
6. Notice SDK user still cannot unmute or start video.
7. Start recording from desktop again.
8. SDK app pops up consent dialog.
9. SDK user can now unmute and start video with no issues.

Related issue [Toggling A/v throws SDKERR\_NO\_PERMISSION - #18 by jon.lieblich](https://devforum.zoom.us/t/toggling-a-v-throws-sdkerr-no-permission/60062/18)

---

<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 11, 2022, 5:41pm UTC](https://devforum.zoom.us/t/toggling-camera-throws-sdkerr-no-permission-even-when-app-has-permission/64156/2 "2022-02-11T17:41:49Z")

</div>

Hi @pmogollon,

Are you by chance using Hilt in your app? If so, there is a known issue that will be resolved in the next SDK release. If not, this would be a different issue and is something we can investigate further.

Thanks!

---

<div class="post-metadata">

**Author:** ![pmogollon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pmogollon/32/15868_2.png) [@pmogollon](https://devforum.zoom.us/u/pmogollon)\
**Post date:** [February 11, 2022, 6:49pm UTC](https://devforum.zoom.us/t/toggling-camera-throws-sdkerr-no-permission-even-when-app-has-permission/64156/3 "2022-02-11T18:49:13Z")

</div>

Hi @jon.zoom,

Im not using it directly in my app. I dont think any of the packages is using it either.

---

<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 22, 2022, 7:07pm UTC](https://devforum.zoom.us/t/toggling-camera-throws-sdkerr-no-permission-even-when-app-has-permission/64156/4 "2022-02-22T19:07:36Z")

</div>

Hi @pmogollon,

Thanks for confirming. In that case, I’m not sure why you aren’t seeing the recording consent dialog. Can you please provide the encrypted SDK logs so that we can investigate further? They can be found under `sdcard/Android/${YOUR_APP}/logs`. To ensure you are getting the correct log file, you can use the `last_log_file_id.txt` file to identify the # of your most recently generated log file.

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:** [March 25, 2022, 5:08am UTC](https://devforum.zoom.us/t/toggling-camera-throws-sdkerr-no-permission-even-when-app-has-permission/64156/5 "2022-03-25T05:08:28Z")

</div>

Closed on March 25, 2022, 5:08am UTC

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