# Unauthorized access to libmedia.so

**URL:** <https://forums.unrealengine.com/t/unauthorized-access-to-libmedia-so/387902>\
**Category:** Platform & Builds\
**Tags:** access, unreal-engine, Android, packaging-projects, gear-vr, question\
**Created:** [March 14, 2017, 2:50pm UTC](https://forums.unrealengine.com/t/unauthorized-access-to-libmedia-so/387902 "2017-03-14T14:50:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gaidline](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gaidline/32/754668_2.png) [@Gaidline](https://forums.unrealengine.com/u/Gaidline)\
**Post date:** [March 14, 2017, 2:50pm UTC](https://forums.unrealengine.com/t/unauthorized-access-to-libmedia-so/387902/1 "2017-03-14T14:50:09Z")

</div>

When I run my game on Android I get a message

```
Detected problem with app native libraries (please consult log for detail):
libvrapiimpl.so: unauthorized access to "/system/lib/libmedia.so"

```

In my log I found:

```
W/linker(6352): library "/system/lib/libmedia.so" ("/system/lib/libmedia.so") needed or dlopened by "/data/app/com.oculus.systemdriver-1/lib/arm/libvrapiimpl.so" is not accessible for the namespace "classloader-namespace" - the access is temporarily granted as a workaround for http://b/26394120, note that the access will be removed in future releases of Android.

```

but this is only a warning. The problem occured when I upgraded my device to Android 7. Should I add some special permission to the Android manifest if I want to use `libmedia.so`?

[Here](https://forums.oculus.com/es/discussion/50307/need-help-with-a-libvrapiimpl-libmedia-error-on-android-n-phone) I found the exact problem but according to [this](https://forums.unrealengine.com/showthread.php?62024-Modify-AndroidManifest-xml) I need to rebuild UnrealBuildTool. Is there another way to solve this issue?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [March 15, 2017, 3:11pm UTC](https://forums.unrealengine.com/t/unauthorized-access-to-libmedia-so/387902/2 "2017-03-15T15:11:06Z")

</div>

Hello Koralgoll,

From looking at the links you provided, have you tried what fixed the issue for brockheinz on the Oculus forums? He mentioned that having “Debuggable” in the manifest caused this issue for him. Have you tried this in any other projects that have Gear VR enabled or is it only in your project?

---

<div class="post-metadata">

**Author:** ![Gaidline](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gaidline/32/754668_2.png) [@Gaidline](https://forums.unrealengine.com/u/Gaidline)\
**Post date:** [March 16, 2017, 3:57pm UTC](https://forums.unrealengine.com/t/unauthorized-access-to-libmedia-so/387902/3 "2017-03-16T15:57:07Z")

</div>

I tried to remove `android:debuggable="true"` from Android Manifest under Intermediate/Android but those files are overwritten while building .apk. I have not changed this from source code. However I disabled the Oculus Rift plugin in the editor and the problem seems to be gone for now.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [March 16, 2017, 5:47pm UTC](https://forums.unrealengine.com/t/unauthorized-access-to-libmedia-so/387902/4 "2017-03-16T17:47:20Z")

</div>

The Oculus Rift plugin shouldn’t be required for Gear VR, so if disabling this plugin resolves the issue, that should be a valid fix. Does this work for you?

---

<div class="post-metadata">

**Author:** ![Gaidline](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gaidline/32/754668_2.png) [@Gaidline](https://forums.unrealengine.com/u/Gaidline)\
**Post date:** [March 17, 2017, 3:04pm UTC](https://forums.unrealengine.com/t/unauthorized-access-to-libmedia-so/387902/5 "2017-03-17T15:04:20Z")

</div>

With the Oculus Rift plugin disabled the error is not showing up, but when I enable the plugin again the error is not showing up either. My app is working fine now but I guess it is not a proper solution.
