Search Issue Tracker

Won't Fix

Votes

14

Found in

5.1.1f1

Issue ID

706569

Regression

Yes

[Android] Several unnecessary permissions are added to app manifest

Android

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 2Core functionality majorly impacted

In Unity 5.1, the following permissions are added to AndroidManifest.xml even when these permissions are not required for the app.

- android.permission.INTERNET
- android.permission.READ_PHONE_STATE
- android.permission.ACCESS_NETWORK_STATE

In the previous versions, these permissions are added only when required.

Comments (13)

  1. 4f2b3ac6beed6e71fe7acf1b13492313?d=mm

    mylastggColto

    Nov 09, 2017 10:38

    Hello!
    Unity is adding these three permissions

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

    as soon as I put a custom AndroidManifest.xml in the project to be merged.

    Steps to reproduce:
    - Create new Unity project
    - Add this manifest (Plugins/Android/ManifestTest/AndroidManifest.xml)

    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.manifest.test" android:versionName="1.0.0">
    </manifest>

    - Deploy on device
    - Unity has added above three permissions for no reason since this is a completely blank project and I'm not using any third party library or dll.

    ---

    Considerations:
    - I'm using Unity2017 Free, I'll try with a licensed Plus version when I get the chance

    Can you please advice?

  2. C2a27df4a6e6a14f4e7b1f750af27fda?d=mm

    Ewanuk

    May 29, 2017 19:01

    Pretty scummy to force hardware stats collection...

  3. 3a2ad9c71b4ba0175391740a8a94aa20?d=mm

    sampenguin

    Nov 22, 2016 04:17

    Why won't this be fixed? Or can someone please point me to the setting in Unity Pro that disables the generation of these permissions in an empty project?

  4. 1823d874fe6080a72b22ec42c1dbb3e4?d=mm

    movra

    Aug 15, 2015 08:50

    Explanation is here:

    "For 5.2 release, READ_PHONE_STATE is fixed. However, INTERNET and ACCESS_NETWORK_STATE are related to hardware stats collection and can not be disabled unless you are a Pro user." - sschan

    http://forum.unity3d.com/threads/unity-5-1-adds-android-permission-read_phone_state-automatically-how-to-remove-it.333431/page-2#post-2226212

  5. Afc636fda09bbed0ff09510abe8e745b?d=mm

    PapaPoutine

    Aug 12, 2015 17:28

    I can not release to, 5.1 is like vista, hope 5.2 will be better !!

  6. 43629077bd30ebc40c6cd762287e0105?d=mm

    62316e

    Aug 02, 2015 22:48

    Any updates?

  7. 43629077bd30ebc40c6cd762287e0105?d=mm

    62316e

    Jul 31, 2015 12:47

    Any updates?

  8. 43629077bd30ebc40c6cd762287e0105?d=mm

    62316e

    Jul 30, 2015 11:50

    Would it be possible to get an explanation for the Won't Fix status?

  9. 8bb9310a61e6ca3ecf2f78ccffd85e30?d=mm

    PixelEnvision

    Jul 24, 2015 15:18

    I'd also appreciate an update regarding won't fix status...

  10. 52741ad2729e2ef7de489b8adf9c6f57?d=mm

    sandbaydev

    Jul 21, 2015 16:18

    my game has no permissions when I compile it using 5.0.3f2.

    when I compile it using 5.1.0f3, it requires permissions (100% absolutely the same source code):
    - android.permission.INTERNET
    - android.permission.READ_PHONE_STATE
    - android.permission.ACCESS_NETWORK_STATE

    Why "Won't fix"?

All about bugs

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