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

-

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. 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. Ewanuk

    May 29, 2017 19:01

    Pretty scummy to force hardware stats collection...

  3. 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. 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. PapaPoutine

    Aug 12, 2015 17:28

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

  6. 62316e

    Aug 02, 2015 22:48

    Any updates?

  7. 62316e

    Jul 31, 2015 12:47

    Any updates?

  8. 62316e

    Jul 30, 2015 11:50

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

  9. PixelEnvision

    Jul 24, 2015 15:18

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

  10. 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"?

Add comment

Log in to post comment