Search Issue Tracker
Fixed
Fixed in 2021.3.45f1, 2022.3.48f1, 6000.0.1f1, 7000.0.0a1
Votes
2
Found in
2021.3.43f1
2022.3.45f1
6000.0.0b16
7000.0.0a1
Issue ID
UUM-69911
Regression
Yes
[Android] With the latest Unity 6 editor, default APK permissions are not being set correctly
*Steps to reproduce:*
Repro steps:
1. Create a new project and a new empty scene
2. Build an APK with Unity 6000.0.0b11 and XR Plugin Mgmt 4.4.1 installed
3. Run “aapt dump permissions <yourapkname.apk>”
4. Observe the presence of android.permission.READ_PHONE_STATE
APKs built with Unity 6 will not be submissible to the Meta Quest store with this permission present.
Additional steps:
5. Remove the XR Plugin Mgmt package and rebuild the APK
6. Observe the new APK no longer contains android.permission.READ_PHONE_STATE
7. Reinstall the XR Plugin Mgmt 4.4.1 package, re-open the project with Unity 2022.3.16 or newer, and rebuild the apk
8.Observe the new APK still does not contain android.permission.READ_PHONE_STATE
It appears the combination of both Unity 6000.0.0b11 and XR Plugin Mgmt 4.4.1 results in the prohibited permission being added to the built apk.
*Actual results:*
APK contains invalid permissions
*Expected results:*
Permissions should be correct
*Reproducible with versions:*
The first version with this changes is {{2023.3.0b7}} , maybe you could try and see if {{2023.3.0b6}} doesn't have the "{{{}targetSdkVersion < 4{}}}" issue.
*Not reproducible with versions:*
Versions prior to 2023.3.0b7. QA tried this with 0b6 and could not reproduce.
*Tested on (OS):* Windows, Mac
*Regression?:* Yes
*Regression version:* 2023.3.0b7 (ebadad6d577d)
-
howe_ru
Jul 30, 2024 20:29
Workaround to block it, add:
<uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove"/>
to the bottom of your custom AndroidManifest.xml.
Many Chat GPT prompts died to bring us this information. -
Hypnotoad0
May 14, 2024 07:13
Issue still happens with unity 6000.0.1f1
-
yusufalibrahim1994
May 01, 2024 16:44
I still get this issue with unity 6000.0.1f1 !!
-
yusufalibrahim1994
Apr 21, 2024 23:43
Same issue for me, did you find a workaround to remove android.permission.READ_PHONE_STATE from the android Manifest in Unity 6?
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version 6000.0.1f1):
Android: Fix unexpected permissions when using .androidlibs
Resolution Note (fix version 2022.3.48f1):
Android: Fix addition of unexpected permissions when using .androidlibs