Search Issue Tracker
Active
Fixed in 6000.0.1f1
Votes
1
Found in
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)
-
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
- [Linux] Editor can't find Audio Spatializer when using PS5AudioSpatializer plugin
- [VFX] Custom HLSL with 'int' parameter, without the 'in/out/inout' access modifier is not supported
- [Windows] Lens Flare doesn't work in the Lens Flare Showroom URP Sample Scene
- Crash on ujob_execute_job while using OverlapBoxCommand when collisions are more than maxHits
- The validity of the multiple handles can behave differently based on the load/release operations order, when multiple Addressables.LoadAssetAsync and Addressables.Release are used to load and release the same Addressable Asset
Resolution Note (fix version 6000.0.1f1):
Android: Fix unexpected permissions when using .androidlibs