Forum Discussion

GamerRoman22's avatar
GamerRoman22
Explorer
11 months ago
Solved

FAIL_FORBIDDEN_PERMISSION Developer Hub error READ_PHONE_STATE Error

I have no other errors besides this one when I upload my build to the alpha production stage. The error says this: FAIL_FORBIDDEN_PERMISSION The upload could not be completed because your application...
  • Digibix's avatar
    11 months ago

    Yes, there seems to be a change on Unity 2022.3.xx in one of the latest lts version that seems to add that permision.

    To fix it you can modify for AndroidManifest in your project (search for it) and at the bottom, just before the </manifest> tag,  add the following line:

     

     <uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove" />

     

    you will need to add the tools at the top of the manifest... like this:

     

    <?xml version="1.0" encoding="utf-8" standalone="no"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto"
    xmlns:tools="http://schemas.android.com/tools">

     

    with that change it will remove that permision at build time.