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
11-09-2018 06:45 AM
OculusPlatform\Scripts\IMicrophone.cs
OculusPlatform\Scripts\LivestreamingMicrophoneStatus.cs
OculusPlatform\Scripts\MicrophoneInput.cs
OculusPlatform\Scripts\MicrophoneInputNative.cs
Oculus\LipSync\Scripts\OVRLipSyncMicInput.cs
Oculus\VoiceMod\Scripts\Helpers\OVRMicInput.cs
12-17-2018 01:51 PM
12-17-2018 02:48 PM
12-18-2018 07:52 AM
01-23-2019 09:52 AM
01-23-2019 10:41 AM
01-30-2019 06:37 AM
timokorkalainen said:
I added <uses-permission android:name="android.permission.RECORD_AUDIO" tools:node="remove"/> to Android Manifest to make sure the permission is not asked for.
01-30-2019 08:03 AM
OVRMicInput.cs
OVRLipSyncMicInput.cs
These two scripts contain references to the Microphone class, which if called seems to trigger the mic permission request, so commenting the bits of code that reference it solves the issue.06-14-2019 03:28 AM
03-06-2020 09:46 AM