v7.0.0 removes permissions from the main manifest
See original GitHub issue[REQUIRED] Step 1: Describe your environment
- Unity version: 2020.3.23
- Google Mobile Ads Unity plugin version: 7.0.0
- Platform: Android (iOS, Android, Unity Editor)
- Platform OS version: Android 9 (eg iOS 10, Android 9)
- Any specific devices issue occurs on: No specific devices
- Mediation ad networks used, and their versions: All mediations has the latest versions
[REQUIRED] Step 2: Describe the problem
Steps to reproduce:
Add this permission to the main AndroidManifest.xml file for example:
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />After building the project which includes Google Mobile Ads SDK version 7.0.0 the permission will be removed from the main manifest. The reason of this happening is AndroidManifest.xml file inside googlemobileads-unity.aar, which looks like this:
<?xml version="1.0" encoding="utf-8"?>Relevant Code:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.google.unity.ads" >
<uses-permission
android:name="android.permission.READ_PHONE_STATE"
tools:node="remove" />
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
tools:node="remove" />
<uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE"
tools:node="remove" />
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
Please let us know how to temporarily solve this issue, or please release fixed version as soon as possible.
Issue Analytics
- State:
- Created a year ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Remove extra unwanted permissions from manifest android
I have android app, I want to check that every permissions mentioned in Manifest is required or not? Basically I want remove unwanted ......
Read more ><activity> | Android Developers
Normally, the system clears a task, removing all activities from the stack ... see the Permissions section of the App manifest overview and ......
Read more >A way to stop unity for adding unwanted permissions when ...
Open the created android manifest file and add permissions you dont want with property of tools:node="remove" and it will override it! no ...
Read more >Detecting and Measuring Misconfigured Manifest in ...
ABSTRACT. The manifest file of an Android app is crucial for app security as it declares sensitive app configurations, such as access permissions....
Read more >0.53.0 - Unity SDK Release Notes - Magic Leap 2
Fixed workflow involving permissions declaration in AndroidManifest.xml. Permissions are no longer added or removed at build time, and are fully in the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for sharing your temporary solution. I tried described solution too, and that worked, but as I was not sure this solution will not harm other components of Google Mobile Ads Unity SDK I decided to use SDK version 6.1.2, because it doesn’t have this issue. Let’s wait for the official fix of this issue.
Fixed in 7.0.1.