{"id":247,"date":"2011-05-19T05:00:03","date_gmt":"2011-05-19T08:00:03","guid":{"rendered":"http:\/\/gibraltarsf.com\/blog\/?p=247"},"modified":"2015-04-23T18:30:35","modified_gmt":"2015-04-23T21:30:35","slug":"card-emulation-changes-on-android-2-3-4","status":"publish","type":"post","link":"http:\/\/gibraltarsf.com\/blog\/?p=247","title":{"rendered":"Card emulation changes in Android 2.3.4"},"content":{"rendered":"<p>Android 2.3.4 Gingerbread is the latest officially released platform that was rolled out a couple of weeks ago to the Google Nexus S and Nexus One. The biggest feature upgrade is that video chat is now available on Google Talk for all those whose devices with a front-facing camera. This new update is a maintenance release that adds several bug fixes and patches to the Android 2.3 platform and it does not increment the API level, it uses the same API level 10 as 2.3.3<\/p>\n<p>Since the source code for 2.3.4 has already been pushed to the Android Open Source Project (AOSP), we\u2019ve been analyzing it and we found the some changes in the NFC Java Classes, mainly in card emulation features:<!--more--><\/p>\n<p><strong>New NFC-EE (Nfc Execution Environment) API&#8217;s as shared library<\/strong><\/p>\n<p>There are two new classes, NfcAdapterExtras and NfcExecutionEnvironment, implemented as a shared library in frameworks\/base\/nfc-extras. The NfcAdapterExtras class provides additional methods on an NfcAdapter for Card Emulation and management of the Nfc Execution Environment (EE). But the access to this functionality is limited because it depends on the NfcAdapter.getNfcAdapterExtrasInterface() method that was hidden with the &#8220;@hide&#8221; tag.<\/p>\n<p><a href=\"http:\/\/gibraltarsf.com\/blog\/wp-content\/uploads\/2011\/05\/NFCextras2.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-265\" title=\"NFCextras\" src=\"http:\/\/gibraltarsf.com\/blog\/wp-content\/uploads\/2011\/05\/NFCextras2.gif\" alt=\"NFCExtras class\" width=\"572\" height=\"626\" srcset=\"http:\/\/gibraltarsf.com\/blog\/wp-content\/uploads\/2011\/05\/NFCextras2.gif 572w, http:\/\/gibraltarsf.com\/blog\/wp-content\/uploads\/2011\/05\/NFCextras2-274x300.gif 274w\" sizes=\"auto, (max-width: 572px) 100vw, 572px\" \/><\/a><\/p>\n<p><strong>New ApduList class<\/strong> in the android.nfc package to create an array of APDU commands and send them to the SE. This class is also hidden with the &#8220;@hide&#8221; tag.<\/p>\n<p><strong>No more NfcSecureElement class<\/strong>. This class was used in 2.3.3 version as the primary API for managing all aspects of the Secure Element (SE) like open\/close the SE, get the SE unique identifier, and so on, but was deleted from this version, probably as result of this new &#8220;NFC-EE&#8221; paradigm. From now on,\u00a0 you need to define a &#8220;route&#8221; (such as a UICC via SWP or the embedded secure chip) to the SE instead of open it directly.<\/p>\n<p>So, what Google NFC software engineers said this past week at the company\u2019s I\/O developer conference about card emulation is true: there are no public APIs to card emulation. But definitely they are working on card emulation functionality and\u00a0 it&#8217;s already part of the new Android 2.3.4<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Android 2.3.4 Gingerbread is the latest officially released platform that was rolled out a couple of weeks ago to the Google Nexus S and Nexus One. The biggest feature upgrade is that video chat is now available on Google Talk for all those whose devices with a front-facing camera. This new update is a maintenance [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[21,22,3,4,23],"class_list":["post-247","post","type-post","status-publish","format-standard","hentry","category-sin-categoria","tag-android-2-3-4","tag-card-emulation","tag-nexus-s","tag-nfc","tag-secure-element"],"_links":{"self":[{"href":"http:\/\/gibraltarsf.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/gibraltarsf.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/gibraltarsf.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/gibraltarsf.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/gibraltarsf.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=247"}],"version-history":[{"count":28,"href":"http:\/\/gibraltarsf.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/247\/revisions"}],"predecessor-version":[{"id":311,"href":"http:\/\/gibraltarsf.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/247\/revisions\/311"}],"wp:attachment":[{"href":"http:\/\/gibraltarsf.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/gibraltarsf.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=247"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/gibraltarsf.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}