<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Unsupported Android permission and how to remove them]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1892&amp;type=atom" />
	<updated>2021-12-15T16:52:01Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1892</id>
		<entry>
			<title type="html"><![CDATA[Re: Unsupported Android permission and how to remove them]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7971#p7971" />
			<content type="html"><![CDATA[<p>Bingo!</p><p>I did fix the problem, reading the unity wiki I read that any call made to the Location APIs triggered ACCESS_FINE_LOCATION, ACCESS_BACKGROUND_LOCATION and ACCESS_COARSE_LOCATION to be added to the combined android manifest.</p><p>So I deleted all LocationService classes from OnlineMaps (OnlineMapsLocationServices and all base/generic basse/ editor).</p><p>The map works well for our needs now and does not block the build process anymore.</p>]]></content>
			<author>
				<name><![CDATA[nicholas]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1801</uri>
			</author>
			<updated>2021-12-15T16:52:01Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7971#p7971</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Unsupported Android permission and how to remove them]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7970#p7970" />
			<content type="html"><![CDATA[<p>Hi,</p><p>I already did, but it seems like some plugin in the OnlineMaps add those 3 permission even if there are not present in my custom manifest in Plugins/Android.</p><p>Furthermore, I found yesterday that this problem does not only occur on Android but IOS too (Long story short i&#039;m building my app for quest (the VR version) and android + ios (The mobile version)).</p><p>I could use AndroidStudio like I stated before to fix the permissions asked, but it would not fix it for IOS.</p><p>Do you have any idea if there is a place in the source code where all the persmissions are requested?</p><p>I already tried to set : requestPermissionRuntime = false; in the OnlineMapsLocationService.cs but the permissions still get added to the build (IOS and Android).</p>]]></content>
			<author>
				<name><![CDATA[nicholas]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1801</uri>
			</author>
			<updated>2021-12-15T14:54:55Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7970#p7970</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Unsupported Android permission and how to remove them]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7969#p7969" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Create your own AndroidManifest.xml and put it in Plugins / Android folder.<br /><a href="https://docs.unity3d.com/Manual/android-manifest.html">https://docs.unity3d.com/Manual/android-manifest.html</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-12-15T08:51:06Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7969#p7969</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Unsupported Android permission and how to remove them]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7968#p7968" />
			<content type="html"><![CDATA[<p>Hello,</p><p>While building for Oculus Quest (Unity 2020 LTS) Im getting this error:</p><p>ERROR: Validation identified the following errors:</p><p>The upload could not be completed because your application contains the following Android permissions that are not supported:<br />- android.permission.ACCESS_FINE_LOCATION<br />- android.permission.ACCESS_BACKGROUND_LOCATION<br />- android.permission.ACCESS_COARSE_LOCATION<br />Please remove the following permissions and upload your application binary again. </p><p>The thing is I don&#039;t need those features, I&#039;m only using the OnlineMap to show some location (Markers) on a world map.<br />I can&#039;t seem to find how to remove those permissions without passing the project through AndroidStudio and complicating my build workflow. Is there a simple solution?</p>]]></content>
			<author>
				<name><![CDATA[nicholas]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1801</uri>
			</author>
			<updated>2021-12-14T21:23:43Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7968#p7968</id>
		</entry>
</feed>
