Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

READ_PHONE_STATE added #58

Open
pvalium opened this issue Jan 26, 2017 · 6 comments
Open

READ_PHONE_STATE added #58

pvalium opened this issue Jan 26, 2017 · 6 comments

Comments

@pvalium
Copy link

pvalium commented Jan 26, 2017

When I compile for android, this sdk always adds read_phone_state permission. Is there any way to avoid this?

Thanks in advance

@JohnTube
Copy link

JohnTube commented Mar 3, 2017

"The Android build enforces READ_PHONE_STATE if the code has references to SystemInfo.deviceUniqueIdentifier."
source

This is being used by Facebook here.

I have this issue on Unity 5.3.3f1 but according to reports it starts with Unity 5.1.

@Argurth
Copy link

Argurth commented Jun 9, 2017

That's a big issue for us.
It's unacceptable that a society like facebook haven't fixed this yet.

@brandesign
Copy link

Same for us. Will this be changed in future?

@ianholing
Copy link

Same problem here, is this a bug or will be like this in future versions?

@pvalium
Copy link
Author

pvalium commented Jul 6, 2017

Finally, I download source code, remove this line, and recompiled, and it runs well.

@ilmarioranen
Copy link

ilmarioranen commented Oct 16, 2017

Having READ_PHONE_STATE -permission added is crazy stuff, nobody wants this dangerous-flagged permission in their app, unless they need to manipulate the phoning capabilities somehow. The prompt about this permission to the users could turn away the majority of potential users.

It seems this may be the cleanest workaround:
<uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove" /> [(https://stackoverflow.com/questions/41234205/warnings-your-apk-is-using-permissions-that-require-a-privacy-policy-android-p)]

(EDIT: I'm using Unity 2017.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants