cancel
Showing results for 
Search instead for 
Did you mean: 

FAIL_FORBIDDEN_PERMISSION Developer Hub error READ_PHONE_STATE Error

GamerRoman22
Explorer

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 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. The log says this: 

2024-08-03T21:58:36.097Z [DEBUG] Run args: {"appId":"26165759013071717","apkPath":"C:\\Users\\rcper\\OneDrive\\Desktop\\Gorilla Flag First Version\\First Version.apk","channel":"ALPHA:quest2only|questproonly|quest3+","draft":true,"excludeAddons":false,"inheritAssetFiles":false,"isODH":true,"uploadFromEngine":false,"token":"(removed)","uploadConcurrency":null,"platform":"ANDROID_6DOF","disableProgressBar":true}
2024-08-03T21:58:36.367Z [DEBUG] Server log: {"app_id":"26165759013071717","client":"ODH","log_level":"DEBUG","event_name":"COMMAND_PARAMS","stack_trace":"at Object._log (C:\\snapshot\\D_Zfull-fbsource\\edenfs\\redirections\\arvr\\js\\temp\\build-ovr-platform-util\\lib\\ovr_platform_util.js)\nat Object.debug (C:\\snapshot\\D_Zfull-fbsource\\edenfs\\redirections\\arvr\\js\\temp\\build-ovr-platform-util\\lib\\ovr_platform_util.js)\nat C:\\snapshot\\D_Zfull-fbsource\\edenfs\\redirections\\arvr\\js\\temp\\build-ovr-platform-util\\lib\\ovr_platform_util.js\nat processTicksAndRejections (node:internal/process/task_queues:96:5)","extra":"{\"appId\":\"26165759013071717\",\"apkPath\":\"C:\\\\Users\\\\rcper\\\\OneDrive\\\\Desktop\\\\Gorilla Flag First Version\\\\First Version.apk\",\"channel\":\"ALPHA:quest2only|questproonly|quest3+\",\"draft\":true,\"excludeAddons\":false,\"inheritAssetFiles\":false,\"isODH\":true,\"uploadFromEngine\":false,\"token\":\"(removed)\",\"uploadConcurrency\":null,\"platform\":\"ANDROID_6DOF\",\"disableProgressBar\":true,\"os\":\"{\\\"platform\\\":\\\"win32\\\",\\\"arch\\\":\\\"x64\\\",\\\"type\\\":\\\"Windows_NT\\\"}\",\"cli_version\":\"1.98.0.000001\",\"compatibility_version\":2,\"session_id\":\"26165759013071717_2024-08-03T21:58:36.095Z\",\"command\":\"upload-quest-build\",\"app_id\":\"26165759013071717\"}","platform":"ANDROID_6DOF","cli_version":"1.98.0.000001","session_id":"26165759013071717_2024-08-03T21:58:36.095Z","binary_id":"","duration":null,"is_patch_upload":0,"duration_since_session_start":271}
2024-08-03T21:58:37.552Z [WARN] 
🟡 WARNINGS:
• Quest 1 support is automatically disabled for apps created after 04/30/2024. Please refer to this post for more details: https://developer.oculus.com/blog/changes-coming-quest-1-2023-meta/
• Your manifest includes the following permissions restricted by Oculus:
 - android.permission.WRITE_EXTERNAL_STORAGE
 - android.permission.READ_EXTERNAL_STORAGE
 - android.permission.READ_MEDIA_AUDIO
 - android.permission.READ_MEDIA_VIDEO
 - android.permission.READ_MEDIA_IMAGES
 - android.permission.ACCESS_MEDIA_LOCATION
 - android.permission.READ_MEDIA_IMAGE
Please remove these permissions if they are not needed by your application. If they are needed, you must include justification in the “Notes for the Reviewer” field when submitting your application for review. Failure to provide justification will result in the rejection of your application.
• This app contains both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) libraries. This consumes extra storage and increases download times.  Consider updating your build to target 64-bit only.
2024-08-03T21:58:37.552Z [ERROR] Server log: {"app_id":"26165759013071717","client":"ODH","log_level":"ERROR","event_name":"UPLOAD_PREVALIDATION_FAILURE","stack_trace":"at Object._log (C:\\snapshot\\D_Zfull-fbsource\\edenfs\\redirections\\arvr\\js\\temp\\build-ovr-platform-util\\lib\\ovr_platform_util.js)\nat Object.error (C:\\snapshot\\D_Zfull-fbsource\\edenfs\\redirections\\arvr\\js\\temp\\build-ovr-platform-util\\lib\\ovr_platform_util.js)\nat C:\\snapshot\\D_Zfull-fbsource\\edenfs\\redirections\\arvr\\js\\temp\\build-ovr-platform-util\\lib\\ovr_platform_util.js\nat processTicksAndRejections (node:internal/process/task_queues:96:5)","extra":"{\"errors\":[\"The upload could not be completed because your application contains the following Android permissions that are not supported:\\n - android.permission.READ_PHONE_STATE\\nPlease remove the following permissions and upload your application binary again.\"],\"warnings\":[\"Quest 1 support is automatically disabled for apps created after 04/30/2024. Please refer to this post for more details: https://developer.oculus.com/blog/changes-coming-quest-1-2023-meta/\",\"Your manifest includes the following permissions restricted by Oculus:\\n - android.permission.WRITE_EXTERNAL_STORAGE\\n - android.permission.READ_EXTERNAL_STORAGE\\n - android.permission.READ_MEDIA_AUDIO\\n - android.permission.READ_MEDIA_VIDEO\\n - android.permission.READ_MEDIA_IMAGES\\n - android.permission.ACCESS_MEDIA_LOCATION\\n - android.permission.READ_MEDIA_IMAGE\\nPlease remove these permissions if they are not needed by your application. If they are needed, you must include justification in the “Notes for the Reviewer” field when submitting your application for review. Failure to provide justification will result in the rejection of your application.\",\"This app contains both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) libraries. This consumes extra storage and increases download times.  Consider updating your build to target 64-bit only.\"],\"time\":549,\"os\":\"{\\\"platform\\\":\\\"win32\\\",\\\"arch\\\":\\\"x64\\\",\\\"type\\\":\\\"Windows_NT\\\"}\",\"cli_version\":\"1.98.0.000001\",\"compatibility_version\":2,\"session_id\":\"26165759013071717_2024-08-03T21:58:36.095Z\",\"command\":\"upload-quest-build\",\"app_id\":\"26165759013071717\",\"platform\":\"ANDROID_6DOF\"}","platform":"ANDROID_6DOF","cli_version":"1.98.0.000001","session_id":"26165759013071717_2024-08-03T21:58:36.095Z","binary_id":"","duration":549,"is_patch_upload":0,"duration_since_session_start":1456}
2024-08-03T21:58:37.793Z [ERROR] 
 
:cross_mark: 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.
2024-08-03T21:58:37.793Z [ERROR] Server log: {"app_id":"26165759013071717","client":"ODH","log_level":"ERROR","event_name":"USER_ERROR","stack_trace":"UserVisibleError: • The upload could not be completed because your application contains the following Android permissions that are not supported:\n - android.permission.READ_PHONE_STATE\nPlease remove the following permissions and upload your application binary again.\n    at C:\\snapshot\\D_Zfull-fbsource\\edenfs\\redirections\\arvr\\js\\temp\\build-ovr-platform-util\\lib\\ovr_platform_util.js\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)","extra":"{\"error\":\"• The upload could not be completed because your application contains the following Android permissions that are not supported:\\n - android.permission.READ_PHONE_STATE\\nPlease remove the following permissions and upload your application binary again.\",\"os\":\"{\\\"platform\\\":\\\"win32\\\",\\\"arch\\\":\\\"x64\\\",\\\"type\\\":\\\"Windows_NT\\\"}\",\"cli_version\":\"1.98.0.000001\",\"compatibility_version\":2,\"session_id\":\"26165759013071717_2024-08-03T21:58:36.095Z\",\"command\":\"upload-quest-build\",\"app_id\":\"26165759013071717\",\"platform\":\"ANDROID_6DOF\"}","platform":"ANDROID_6DOF","cli_version":"1.98.0.000001","session_id":"26165759013071717_2024-08-03T21:58:36.095Z","binary_id":"","duration":null,"is_patch_upload":0,"duration_since_session_start":1697}

Thank you for your time.

14 REPLIES 14

can u tell me exactly where the oculus options is and everything please ?

 

If you have the Unity Meta XR All-in-One SDK package installed, you shoud have a Meta menu on top....

meta.png

After you run the Create store-compatible AndroidManifest.xml option search for AndroidManifest.xml on your assets...

Procat_0-1728345770626.png help?

 

 

I tried that, and it didn’t work

you tried both ways?