Search Issue Tracker

By Design



Found in


Issue ID




[Android] READ_PHONE_STATE permission is added in the AndroidManifest.xml file using latest (26.0.2) SDK




Priority: 2Necessary for shipping a final release


Severity: 2No workaround

Steps to reproduce:

1) Update SDK to the latest version (26.0.2)
2) Download attached project '' and open in Unity
3) Build .apk file
4) Open 'AndroidManifest.xml' file (Temp/StagingArea/AndroidManifest.xml)

Expected result:READ_PHONE_STATE permission should not be added in the AndroidManifest.xml (check attachment 'AndroidManifest_created_with_26.0.2.xml')
Actual result: READ_PHONE_STATE permission is added in the AndroidManifest.xml (check attachment 'AndroidManifest_created_with.25.2.3.xml')

Reproduced with:
5.5.4p1, 5.6.2p1, 2017.1.0f1, 2017.2.0b1

Note: READ_PHONE_STATE permission wasn't added using 25.2.5 sdk

RESOLUTION: By design. The project includes a plugin (com.nerd.TapdaqUnityPlugin) which does not specify targetSdkVersion in its manifest. Thus android manifest merger correctly assumes that the SDK version is lower than 4 and implicitly grants the READ_PHONE_STATE permission. See The difference between 25.2.5 and 26.0.2 SDKs is that in the latter we use different manifest merger implementation which is more strict.

Comments (7)

  1. 27d7254dfc9beb2eb4f24a9c9fcad20b?d=mm


    Feb 26, 2018 17:49

    any solution for this annoying problem??

  2. F3c77979cdae1a536a976b78239f6758?d=mm


    Feb 22, 2018 00:49

    The remove command worked for me, but only in Android Studio/Gradle

  3. 7637bbcd7c3c7d4bc64405af0392c3c9?d=mm


    Nov 16, 2017 12:48

    You can also use:

    <manifest ......... xmlns:tools="">


    <uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove" />

    This removed the specified attributes from the merged manifest.

    More here:

  4. 3324dd777b99a08e05b6cfa61bad6356?d=mm


    Oct 25, 2017 14:42

    Please fix it !!!!

  5. Be04a49e2ccb7e63fd4be2d80907e354?d=mm


    Oct 17, 2017 22:20

    This is terrible!

    "Allow "UNITY APP" to make and manage phone calls" is not an OK popup to deal with at the start of a game launch!

  6. 5ee20f43478f548d4c699d89172a474a?d=mm


    Oct 12, 2017 10:45

    Please fix it!

  7. 5d9e61c1cbd4bcf889b70556390ebae4?d=mm


    Sep 25, 2017 08:53

    "By design" is not a sufficient solution for this issue. Unity should surface the manifests that are missing a target SDK to the user - OR BETTER - the target SDK in the Unity Android build settings should be used to add a targetSdkVersion entry in the manifests that are missing a target.

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.