based on kitrio branch, fix for permission issues on android 10+.
READ_PHONE_STATE is not enough to access full data, additional READ_PHONE_NUMBERS is required. Permissions got refactored into array, which should allow for easier modifications.
I've refactored code a bit - created grouping methods that may slightly better describe what is where accessed, and reduced nesting here and there.
alborrajo's default subscription id is included, but on condition getActiveSubscriptionInfoList returns non-empy list. I've included this change here, because my PR changes code a bit and merging would be tricky
based on kitrio branch, fix for permission issues on android 10+.
READ_PHONE_STATE is not enough to access full data, additional READ_PHONE_NUMBERS is required. Permissions got refactored into array, which should allow for easier modifications.
I've refactored code a bit - created grouping methods that may slightly better describe what is where accessed, and reduced nesting here and there.
alborrajo's default subscription id is included, but on condition getActiveSubscriptionInfoList returns non-empy list. I've included this change here, because my PR changes code a bit and merging would be tricky