Unity-Contacts-List icon indicating copy to clipboard operation
Unity-Contacts-List copied to clipboard

android.permission.READ_PHONE_STATE, not really needed?

Open imBop opened this issue 8 years ago • 0 comments

First and for most, thank you for this plugin, its a huge time saver!

When added this plugin to Unity I noticed there was the READ_PHONE_STATE permission, which is not the nicest of permissions. so I looked at the src to see why/when it is used. It is only used at the ContactsList.java in the fillSimInfo function: activity.getSystemService(Context.TELEPHONY_SERVICE).

In this function some strings are set with the sim info: myNumber, simSerialNumber, networkOperator, networkCountryIso. but after they got assigned nothing is happening with them (they don't call or be called).

The application runs the same when removing this entire function (its links and the permission). So is there a reason why it is used?

Don't want to sound like a nag here, just curious.

imBop avatar Feb 13 '17 12:02 imBop