Hi,
When using AR Foundation 6.0.1 and Unity 6000.b15, I found that it requires android’s READ_PHONE_STATE permission. Please tell me the reason and information for this. Due to Google Play Store data safety requirements, I would need to know this detail in order to publish it to users.
I have attached the manifest analysis by apkanalyzer. I know this permission was not needed when using Unity 2022.3 and ARFoundation 5.1.
This is unfortunately due to a regression in the Unity 6 Editor. The team responsible has been notified, and they’ve identified a fix. I’ve requested a public IssueTracker link so that you can track the progress of this issue.
Thanks will keep an eye on the issue tracker! I have the same issue where I can’t build for Meta Quest using Unity 6 because of this problem with android.permission.READ_PHONE_STATE issue
Try doing a clean build and see if that helps regenerate the .gradle files.
The issue was caused by not adding minSdk attribute on .gradle files from libraries, such as the ones used by ARFoundation. If minSdk is not present, Google adds some permissions such as READ_PHONE_STATE, that’s why you must always set it explicitly.