[NFC]modify NFC card emulation guide. 60/98660/2
authorjk.pu <jk.pu@samsung.com>
Fri, 18 Nov 2016 06:46:18 +0000 (15:46 +0900)
committerEditor Lionbridge <TizenEditor.SEL@lionbridge.com>
Fri, 18 Nov 2016 08:38:04 +0000 (10:38 +0200)
PS2: [LB] Reviewed

Change-Id: I1169f61f1b94afaafea3727ac43a42186bcfaf9d
Signed-off-by: jk.pu <jk.pu@samsung.com>
org.tizen.guides/html/web/connectivity/nfc_w.htm

index 9509727..e9ea27c 100644 (file)
@@ -434,29 +434,47 @@ adapter.cardEmulationMode = &quot;OFF&quot;;
 <pre class="prettyprint">
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
 &lt;widget xmlns:tizen=&quot;http://tizen.org/ns/wdigets&quot; xmlns=&quot;http://www.w3.org/ns/widgets&quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id=&quot;http://yourdomain/basicapp&quot; version=&quot;1.0.0&quot; viewmodes=&quot;maximized&quot; &gt;
-&nbsp;&nbsp;&nbsp;&lt;profile name=&quot;wearable&quot; /&gt;
-&nbsp;&nbsp;&nbsp;&lt;tizen:application id=&quot;ZmAk4fxZWY.basicapp&quot; package=&quot;ZmAk4fxZWY&quot; required_version=&quot;2.3.1&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;icon src=icon.png&quot;/&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;name&gt;basicapp&lt;/name&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;metadata key=&quot;http://tizen.org/metadata/nfc_cardemulation&quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value=&quot;/res/wgt/wallet.xml&quot;/&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id=&quot;http://yourdomain/NFCtest&quot; version=&quot;1.0.0&quot; viewmodes=&quot;maximized&quot;&gt;
+&nbsp;&nbsp;&nbsp;&lt;profile name=&quot;wearable&quot;/&gt;
+&nbsp;&nbsp;&nbsp;&lt;tizen:application id=&quot;ZmAk4fxZWY.NFCtest&quot; package=&quot;ZmAk4fxZWY&quot; required_version=&quot;2.3.1&quot;/&gt;
+&nbsp;&nbsp;&nbsp;&lt;icon src=&quot;icon.png&quot;/&gt;
+&nbsp;&nbsp;&nbsp;&lt;name&gt;NFCtest&lt;/name&gt;
+&nbsp;&nbsp;&nbsp;&lt;tizen:privilege name=&quot;http://tizen.org/privilege/nfc.common&quot;/&gt;
+&nbsp;&nbsp;&nbsp;&lt;tizen:privilege name=&quot;http://tizen.org/privilege/nfc.cardemulation&quot;/&gt;
+&nbsp;&nbsp;&nbsp;&lt;tizen:app-control&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tizen:src name=&quot;index.xml&quot; reload=&quot;enable&quot;/&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tizen:operation name=&quot;http://tizen.org/appcontrol/operation/nfc/card_emulation/host_apdu_service&quot;/&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tizen:uri name=&quot;nfc://secure/HCE/aid/A0000000041010&quot;/&gt;
+&nbsp;&nbsp;&nbsp;&lt;/tizen:app-control&gt;
+&nbsp;&nbsp;&nbsp;&lt;tizen:metadata key=&quot;http://tizen.org/metadata/nfc_cardemulation&quot;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value=&quot;/res/wgt/wallet.xml&quot;/&gt;
 &lt;/widget&gt;
 </pre>
-<ul><li>The <span style="font-family: Courier New,Courier,monospace;">metadata</span> element must contain the <span style="font-family: Courier New,Courier,monospace;">key</span> and <span style="font-family: Courier New,Courier,monospace;">value</span> attributes.</li>
+<ul><li>The <span style="font-family: Courier New,Courier,monospace;">tizen:app-control</span> element must contain the <span style="font-family: Courier New,Courier,monospace;">tizen:src</span> and <span style="font-family: Courier New,Courier,monospace;">tizen:operation</span>  and <span style="font-family: Courier New,Courier,monospace;">tizen:uri</span> elements:
+<ul>
+<li>The <span style="font-family: Courier New,Courier,monospace;">tizen:src</span> element must contain the <span style="font-family: Courier New,Courier,monospace;">name</span> attribute that defines the page to be handled. The <span style="font-family: Courier New,Courier,monospace;">reload</span> attribute is optional.</li>
+<li>The <span style="font-family: Courier New,Courier,monospace;">tizen:operation</span> element must be <span style="font-family: Courier New,Courier,monospace;">http://tizen.org/appcontrol/operation/nfc/card_emulation/host_apdu_service</span>.</li>
+<li>The <span style="font-family: Courier New,Courier,monospace;">tizen:uri</span> element must be <span style="font-family: Courier New,Courier,monospace;">nfc://secure/HCE/aid/&lt;specific AID&gt;</span>.</li>
+</ul></li>
+<li>The <span style="font-family: Courier New,Courier,monospace;">tizen:metadata</span> element must contain the <span style="font-family: Courier New,Courier,monospace;">key</span> and <span style="font-family: Courier New,Courier,monospace;">value</span> attributes:
+<ul>
 <li>The <span style="font-family: Courier New,Courier,monospace;">key</span> attribute must be <span style="font-family: Courier New,Courier,monospace;">http://tizen.org/metadata/nfc_cardemulation</span>.</li>
 <li>The <span style="font-family: Courier New,Courier,monospace;">value</span> attribute must contain the AID XML file path.
 <p>The <span style="font-family: Courier New,Courier,monospace;">value</span> attribute is a relative path starting from the application root path.</p></li>
 </ul>
 </li>
+</ul>
+</li>
 <li><p>The metadata element points to an AID XML file. The following is an example of the file with an AID declaration:</p>
 <pre class="prettyprint">
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
-&lt;application name=&quot;ZmAk4fxZWY.basicapp&quot;&gt;
+&lt;application name=&quot;NFCtest&quot;&gt;
 &nbsp;&nbsp;&nbsp;&lt;wallet&gt;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;aid-group category=&quot;payment&quot;&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;aid aid=&quot;325041592E5359532E4444463031&quot;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;se_type=&quot;hce&quot; unlock=&quot;false&quot; power=&quot;sleep&quot;/&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;aid aid=&quot;A0000000041010&quot; se_type=&quot;hce&quot; unlock=&quot;false&quot; power=&quot;on&quot;/&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/aid-group&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;aid-group category=&quot;other&quot;&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;aid aid=&quot;D4100000030001&quot; se_type=&quot;hce&quot; unlock=&quot;false&quot; power=&quot;on&quot;/&gt;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/aid-group&gt;
 &nbsp;&nbsp;&nbsp;&lt;/wallet&gt;
 &lt;/application&gt;