Skip to content

Commit

Permalink
Removing "QUERY_ALL" Permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixRoh committed Nov 21, 2022
1 parent ff83b2b commit bf7f71e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions Nreal/Assets/NRSDK/Editor/Scripts/AndroidManifest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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'.");
Expand Down
12 changes: 6 additions & 6 deletions Nreal/ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -241,22 +241,22 @@ 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
AndroidIsGame: 1
AndroidEnableTango: 0
androidEnableBanner: 1
androidUseLowAccuracyLocation: 0
androidUseCustomKeystore: 0
androidUseCustomKeystore: 1
m_AndroidBanners:
- width: 320
height: 180
Expand Down

0 comments on commit bf7f71e

Please sign in to comment.