Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Jellybean180's avatar
Jellybean180
Explorer
1 year ago
Solved

Manifest permission error that aren't in the manifest.

 

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:installLocation="auto">
  <application android:label="@string/app_name" android:icon="@mipmap/app_icon" android:allowBackup="false">
    <activity android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" android:configChanges="locale|fontScale|keyboard|keyboardHidden|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" android:launchMode="singleTask" android:name="com.unity3d.player.UnityPlayerActivity" android:excludeFromRecents="true" android:exported="true">
      <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
        <category android:name="com.oculus.intent.category.VR" />
      </intent-filter>
      <meta-data android:name="com.oculus.vr.focusaware" android:value="true" />
    </activity>
    <meta-data android:name="unityplayer.SkipPermissionsDialog" android:value="false" />
    <meta-data android:name="com.samsung.android.vr.application.mode" android:value="vr_only" />
    <meta-data android:name="com.oculus.ossplash.background" android:value="black" />
    <meta-data android:name="com.oculus.telemetry.project_guid" android:value="d1e26e17-a7a3-4487-b8d3-9945b1a2d10a" />
    <meta-data android:name="com.oculus.supportedDevices" android:value="quest2|questpro|eureka" />
  </application>
  <uses-feature android:name="android.hardware.vr.headtracking" android:version="1" android:required="true" />
</manifest>

 

Hello,

I'm having an issue that didn't exist in my last project. I'm trying to upload my apk and I'm getting a permission error.

The upload could not be completed because your application contains the following Android permissions that are not supported: - android.permission.READ_PHONE_STATE Please remove the following permissions and upload your application binary again.

I've had this error before but it was easy to fix. I've gone to Meta - Tools - Update Manifest and I have the manifest in plugins/android/manifest. The permission error that I'm getting isn't in the manifest. Is there something I'm missing? Thank you for any help.

  • I think I've found the solution. I added <uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove" /> into the Manifest and now the APK file was accepted. I'm going to contact Meta/Oculus and check to see if this is an okay thing to do just to be sure.

1 Reply

Replies have been turned off for this discussion
  • I think I've found the solution. I added <uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove" /> into the Manifest and now the APK file was accepted. I'm going to contact Meta/Oculus and check to see if this is an okay thing to do just to be sure.