In Android 11 (API level 30), these functions have been deprecated:
Is there any way to send an APDU command to a SIM card via the Android API above API level 30?
I have studied the Android API 30, but have not found any references to APDU commands
Well, it seems that Google actually didn't want to deprecate it according to their own support. Unfortunately they actually forgot to remove the deprecated
tag in any followup API versions, while issuing a "nofix" because somebody didn't react all that well when they asked "for more information".
A followup bug was filed where it was asked which methods a developer should use instead. This, in true issue-tracker style was marked "fixed" with the remark "The development team has fixed the issue that you have reported.", which directly conflicts with the "nofix" issued for the other bug report, as well as the deprecated
tag still being present.
In all probability they will do nothing unless you file yet another bug report. When you file a bug report you will be scorned because it the bug was already filed or it will just remain unresolved for years to come. In the time it took me to write this I could probably have fixed the issue, but that would require a pull request and my stomach just isn't up to that.
Deprecated doesn't mean you cannot use it, it means you shouldn't use it, but given that there are no alternatives indicated, I would not worry overly much about it.