From bf7f71e9e3fa6fc1c7dae63fd16fdc328998f9a1 Mon Sep 17 00:00:00 2001 From: Felix Rohmeier Date: Mon, 21 Nov 2022 15:55:16 +0100 Subject: [PATCH] Removing "QUERY_ALL" Permissions --- .../Assets/NRSDK/Editor/Scripts/AndroidManifest.cs | 14 +++++++------- Nreal/ProjectSettings/ProjectSettings.asset | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Nreal/Assets/NRSDK/Editor/Scripts/AndroidManifest.cs b/Nreal/Assets/NRSDK/Editor/Scripts/AndroidManifest.cs index e1856d45..b7bc7b90 100644 --- a/Nreal/Assets/NRSDK/Editor/Scripts/AndroidManifest.cs +++ b/Nreal/Assets/NRSDK/Editor/Scripts/AndroidManifest.cs @@ -154,13 +154,13 @@ internal void SetCameraPermission() internal void SetPackageReadPermission() { var manifest = SelectSingleNode("/manifest"); - if (!manifest.InnerXml.Contains("android.permission.QUERY_ALL_PACKAGES")) - { - XmlElement child = CreateElement("uses-permission"); - manifest.AppendChild(child); - XmlAttribute newAttribute = CreateAndroidAttribute("name", "android.permission.QUERY_ALL_PACKAGES"); - child.Attributes.Append(newAttribute); - } + //if (!manifest.InnerXml.Contains("android.permission.QUERY_ALL_PACKAGES")) + //{ + // XmlElement child = CreateElement("uses-permission"); + // manifest.AppendChild(child); + // XmlAttribute newAttribute = CreateAndroidAttribute("name", "android.permission.QUERY_ALL_PACKAGES"); + // child.Attributes.Append(newAttribute); + //} //else //{ // NRDebugger.Info("Already has the permission of 'android.permission.QUERY_ALL_PACKAGES'."); diff --git a/Nreal/ProjectSettings/ProjectSettings.asset b/Nreal/ProjectSettings/ProjectSettings.asset index 26083fa4..069015b7 100644 --- a/Nreal/ProjectSettings/ProjectSettings.asset +++ b/Nreal/ProjectSettings/ProjectSettings.asset @@ -161,9 +161,9 @@ PlayerSettings: iPhone: 0 tvOS: 0 overrideDefaultApplicationIdentifier: 1 - AndroidBundleVersionCode: 120 + AndroidBundleVersionCode: 1200 AndroidMinSdkVersion: 26 - AndroidTargetSdkVersion: 30 + AndroidTargetSdkVersion: 31 AndroidPreferredInstallLocation: 1 aotOptions: stripEngineCode: 1 @@ -241,14 +241,14 @@ PlayerSettings: useCustomLauncherManifest: 0 useCustomMainGradleTemplate: 0 useCustomLauncherGradleManifest: 0 - useCustomBaseGradleTemplate: 0 - useCustomGradlePropertiesTemplate: 0 + useCustomBaseGradleTemplate: 1 + useCustomGradlePropertiesTemplate: 1 useCustomProguardFile: 0 AndroidTargetArchitectures: 3 AndroidTargetDevices: 0 AndroidSplashScreenScale: 0 androidSplashScreen: {fileID: 0} - AndroidKeystoreName: C:/Users/FelixR/OneDrive - PlanB. GmbH/MRCS/Cube/pfcnreal.keystore + AndroidKeystoreName: C:/Users/Felix/OneDrive - PlanB. GmbH/MRCS/Cube/pfcnreal.keystore AndroidKeyaliasName: pfcnreal AndroidBuildApkPerCpuArchitecture: 0 AndroidTVCompatibility: 0 @@ -256,7 +256,7 @@ PlayerSettings: AndroidEnableTango: 0 androidEnableBanner: 1 androidUseLowAccuracyLocation: 0 - androidUseCustomKeystore: 0 + androidUseCustomKeystore: 1 m_AndroidBanners: - width: 320 height: 180