12-02-2016 05:38 AM
Here are all the permissions appearing in build info:
android.permission.READ_EXTERNAL_STORAGE
android.permission.INTERNET
android.permission.WAKE_LOCK
android.permission.ACCESS_NETWORK_STATE
android.permission.RECORD_AUDIO
android.permission.WRITE_EXTERNAL_STORAGE
android.permission.READ_EXTERNAL_STORAGE
At this point, RECORD_AUDIO permission is not required but its included because of MicrophoneInput.cs script under OculusPlatform/Scripts. If I remove this file and related files which use Unity's Microphone class and build the app, RECORD_AUDIO permission is gone. It makes sense to include this file in a project which actually uses Microphone at some point. But I am never gonna need it. Shall I remove this file and related files (IMicrophone.cs, MicrophoneInputNative.cs)? Are there any other files in Platform SDK which should be removed to avoid bugs due to code dependency?
Please advice me how to fix this
Thanks
12-02-2016 08:20 AM
01-14-2018 08:05 AM
05-26-2018 03:00 AM
05-26-2018 03:04 PM
09-15-2018 10:11 AM
09-15-2018 12:22 PM
Truthveyor said:
I'm using Oculus Platform SDK 1.20.0. I had the same problem, and I removed the following files from the Oculus Platform SDK:
OculusPlatform\Scripts\IMicrophone.cs
OculusPlatform\Scripts\LivestreamingMicrophoneStatus.cs
OculusPlatform\Scripts\MicrophoneInput.cs
OculusPlatform\Scripts\MicrophoneInputNative.cs
Then I got errors from OculusPlatform\Scripts\CAPI.cs for missing LivestreamingMicrophoneStatus, so I commented out references to
LivestreamingMicrophoneStatus in CAPI.cs. There are no more errors, everything worked fine, and the "record audio permission" went away.
09-20-2018 02:34 PM
09-30-2018 02:53 PM
seatedmech said:
Truthveyor said:
I'm using Oculus Platform SDK 1.20.0. I had the same problem, and I removed the following files from the Oculus Platform SDK:
OculusPlatform\Scripts\IMicrophone.cs
OculusPlatform\Scripts\LivestreamingMicrophoneStatus.cs
OculusPlatform\Scripts\MicrophoneInput.cs
OculusPlatform\Scripts\MicrophoneInputNative.cs
Then I got errors from OculusPlatform\Scripts\CAPI.cs for missing LivestreamingMicrophoneStatus, so I commented out references to
LivestreamingMicrophoneStatus in CAPI.cs. There are no more errors, everything worked fine, and the "record audio permission" went away.
I did this as well, but my app is still requesting to use the microphone upon installation.
10-09-2018 01:39 AM