[common][nfc][hce update] 95/157295/1
authorjh0219.han <jh0219.han@samsung.com>
Mon, 23 Oct 2017 15:30:45 +0000 (00:30 +0900)
committeryuanzhongyuan <zy123.yuan@samsung.com>
Tue, 24 Oct 2017 06:14:13 +0000 (14:14 +0800)
Change-Id: I2e17c2ced7cdb04b330c53064e154c9dbe0fcded

common/tct-nfc-tizen-tests/config.xml
common/tct-nfc-tizen-tests/nfcTest/nfcTest.wgt [new file with mode: 0644]
common/tct-nfc-tizen-tests/nfcTest/org.tizen.tbt_hcetestappa-1.0.0-arm.tpk [new file with mode: 0755]
common/tct-nfc-tizen-tests/pack.py
common/tct-nfc-tizen-tests/wallet.xml [new file with mode: 0755]

index 5aa11c13387a90a39cc0aeefbab4b85c3c0df769..7a618c2cbd2c3b67140f64a28a10475a5d1ce7bb 100755 (executable)
@@ -9,5 +9,12 @@
   <tizen:privilege name="http://tizen.org/privilege/nfc.tag"/>
   <tizen:privilege name="http://tizen.org/privilege/nfc.cardemulation"/>
   <tizen:application id="api1nfcTi0.WebAPINfcTests" package="api1nfcTi0" required_version="4.0"/>
+  <tizen:app-control>
+            <tizen:src name="index.html" reload="enable"/>
+            <tizen:operation name="http://tizen.org/appcontrol/operation/nfc/card_emulation/host_apdu_service"/>
+            <tizen:uri name="nfc://secure/HCE/aid/D4100000030002"/>
+    </tizen:app-control>
+    <tizen:metadata key="http://tizen.org/metadata/nfc_cardemulation"
+                value="wallet.xml"/>
   <tizen:setting screen-orientation="landscape"/>
 </widget>
diff --git a/common/tct-nfc-tizen-tests/nfcTest/nfcTest.wgt b/common/tct-nfc-tizen-tests/nfcTest/nfcTest.wgt
new file mode 100644 (file)
index 0000000..6e9ac2b
Binary files /dev/null and b/common/tct-nfc-tizen-tests/nfcTest/nfcTest.wgt differ
diff --git a/common/tct-nfc-tizen-tests/nfcTest/org.tizen.tbt_hcetestappa-1.0.0-arm.tpk b/common/tct-nfc-tizen-tests/nfcTest/org.tizen.tbt_hcetestappa-1.0.0-arm.tpk
new file mode 100755 (executable)
index 0000000..6dbb6c6
Binary files /dev/null and b/common/tct-nfc-tizen-tests/nfcTest/org.tizen.tbt_hcetestappa-1.0.0-arm.tpk differ
index e29187a0bae2e2dce107adc8fe9ecb8898559397..0ba04d0375ba7c3d95e4a8bc1f610fbaea8f0fbe 100755 (executable)
@@ -810,7 +810,9 @@ def buildPKGAPP(build_json=None):
         if not doCopy(os.path.join(BUILD_ROOT_SRC, "config.xml"),
                       os.path.join(BUILD_ROOT_SRC_PKG_APP, "config.xml")):
             return False
-
+        if not doCopy(os.path.join(BUILD_ROOT_SRC, "wallet.xml"),
+                      os.path.join(BUILD_ROOT_SRC_PKG_APP, "wallet.xml")):
+            return False    
     hosted_app = False
     if safelyGetValue(build_json, "hosted-app") == "true":
         hosted_app = True
diff --git a/common/tct-nfc-tizen-tests/wallet.xml b/common/tct-nfc-tizen-tests/wallet.xml
new file mode 100755 (executable)
index 0000000..0323dcb
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<application name="tct-nfc-tizen-tests">
+   <wallet>
+        <aid-group category = "payment">
+                <aid aid = "A0000000041020" se_type = "hce" unlock = "false" power = "on"/>
+        </aid-group>
+        <aid-group category = "other">
+                <aid aid = "D4100000030002" se_type = "hce" unlock = "false" power = "on"/>
+        </aid-group>
+   </wallet>
+</application>
\ No newline at end of file