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

add unics id to sim cards #78

Merged
merged 2 commits into from
Jul 26, 2024
Merged

add unics id to sim cards #78

merged 2 commits into from
Jul 26, 2024

Conversation

lesclaz
Copy link
Collaborator

@lesclaz lesclaz commented Jul 26, 2024

No description provided.

private fun getIccId(subscribedNetwork: SubscriptionInfo) =
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) subscribedNetwork.iccId else null
private fun getIccId(subscribedNetwork: SubscriptionInfo, manage: TelephonyManager?) =
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) subscribedNetwork.iccId else manage?.subscriberId

Check warning

Code scanning / Android Lint

Hardware Id Usage Warning

Using getSubscriberId to get device identifiers is not recommended
private fun mapSimCard(scope: SimCardCollectScope) = SimCard(
null,
scope.telephonyManager?.subscriberId,

Check warning

Code scanning / Android Lint

Hardware Id Usage Warning

Using getSubscriberId to get device identifiers is not recommended
@lesclaz lesclaz merged commit 4a096b2 into master Jul 26, 2024
5 checks passed
@lesclaz lesclaz deleted the lesclaz/add-unic-id branch July 26, 2024 10:20
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

Successfully merging this pull request may close these issues.

1 participant