Delete READ_PHONE_STATE Unity 5.5

Hello I have Unity 5.5 and well it is been a couple of weeks since I updated my app, previously when I had Unity 5.1 I got this problem that turn around the forums with the read_phone_state, but I’ve seen that they fixed on unity 5.2 however when I updated my project from 5.1 to 5.5 when I build the apk I keeps getting the bloody read_phone_state, anyone knows how to remove it?

Same here, it seems that it not depends on the unity version cause i’ve published a version with no problem but today I updated the sdk Tools and now i’m facing this issue too.

This issue was in UNITY 5.6, I worked about 2 days Finally I found an issue it was I new version ANDROID SDK then I deleted the last version of Android SDK, then downloaded a > SDK Tools, Revision 25.2.5 then it’s working good !!

I had this same problem using Unity 2017.1.2f1 and Android SDK 26.0.2. When I added uses-sdk android:minSdkVersion=“16” android:targetSdkVersion=“25” to all AndroidManifest.xml files then READ_PHONE_STATE no longer generated.

@jayadratha
No I am not usign, Frabirc for crashes, I will update to Unity 2017 to see if that helps I will post my resulst if they are succesful. Hehe

See this: Unity Issue Tracker - [Android] READ_PHONE_STATE permission is added in the AndroidManifest.xml file using latest (26.0.2) SDK

Yo can also use:

<manifest ......... xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove" />

This removed the specified attributes from the merged manifest.

Merge Multiple Manifest Files

@Russel, where did you put these lines ? Because i’m facing the same issue. And tools:node is not recognized…

Hi all, I had this problem in Unity 5.6.1f1. And after trying a lot of fixes, I found that when we using Android Internal Build system, this build system automatically adds READ_PHONE_STATE to manifest file.
We can resolve this issue by switch Android build system to Grade.

I have made it!!!
Inside Plugins/Android/GoogleMobileAdsPlugin/AndroidManifest, I open it with visual studio and replace the original item "uses-sdk android:minSdkVersion=“14” android:targetSdkVersion=“19” " with "uses-sdk android:minSdkVersion=“16” android:targetSdkVersion=“27” ".
Then both permission pop-ups “Allow to make and manage phone calls” and “read phone status” are removed. Thx All