What you are describing is known as "attribution" in the industry.
Android's permissions are annoying even to honest developers. It is a very common case that you want your app to hold back if the user is in a call or one starts. READ_PHONE_STATE is how you find out, but it gives far more information than is needed. An interesting contrast is that Android gives you all the information (calling numbers etc) while iOS only gives opaque ids.
Power management, mobile and firmware developer on Linux. Security developer at Aurora. Ex-biologist. mjg59 on Twitter. Content here should not be interpreted as the opinion of my employer. Also on Mastodon.
no subject
Date: 2017-01-20 03:17 am (UTC)Android's permissions are annoying even to honest developers. It is a very common case that you want your app to hold back if the user is in a call or one starts. READ_PHONE_STATE is how you find out, but it gives far more information than is needed. An interesting contrast is that Android gives you all the information (calling numbers etc) while iOS only gives opaque ids.