'Allow [application name] to allow and manage phone call and READ_PHONE_STATE permissions

I have a Unity application (v5.2.4) created for Android that asks for permission to “create and manage phone calls” on Android (v6.0.1). Some studies seem to show that this may be due to READ_PHONE_STATE.

So, I removed the READ_PHONE_STATE permission after building the apk, repackaged it, and the message no longer appeared.

I am not 100% sure what puts READ_PHONE_STATE in the application, unity forums say that READ_PHONE_STATE was deduced in unity v5.2.

The app also uses the urban airship and grep for READ_PHONE_STATE showing the ticket file in the city airship.

$ grep "READ_PHONE_STATE" -Rl . 
./Submodules/ua-unity-plugin/build/intermediates/lint-cache/api-versions-6-23.0.1.bin

What would I like to know what is permission in a manifest?

+5
source share
1 answer

You can use the manifest merge report if it was a native Android. Try this blog post: Hey, where did these permissions come from?

I know for sure that Unity uses this permission for analytical purposes. I use Urbanairship in my current Android project for unity, and we don’t remember using this permission. But from grep, it looks like it's part of an intermediate manifest generated from the UA library.

0
source

Source: https://habr.com/ru/post/1623167/


All Articles