androidapdusim-card

Send APDU commands to SIM card in android 11


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


Solution

  • It seems that Google didn't actually intend to deprecate the feature, according to their support statements. However, they mistakenly left the deprecated tag in subsequent API versions. They issued a "nofix" status, likely because someone didn't respond appropriately when asked "for more information."

    A subsequent bug report was filed, inquiring about the methods developers should adopt as alternatives. In typical issue-tracker fashion, it was marked "fixed" with the comment "The development team has resolved the issue you reported." This directly contradicts both the "nofix" of the earlier report and the persistent deprecated tag.

    In all likelihood, they won't take action unless another bug report is filed. But when you do, you risk being scorned because "the bug was already reported" or seeing your report remain unresolved for years. I could've probably resolved the issue in the time it took to pen this, but that would mean a pull request, and frankly, my stomach isn't up to that right now.

    While "deprecated" implies a suggestion not to use the feature, the absence of suggested alternatives means I wouldn't be overly concerned about it.