summaryrefslogtreecommitdiff
path: root/2.0/default
diff options
context:
space:
mode:
authorTapas Dey <tdey@codeaurora.org>2020-05-06 10:37:54 +0530
committerTapas Dey <tdey@codeaurora.org>2020-05-21 10:42:59 +0530
commitcaa7ca612a8f57ca4e2f020d030f5d21e84ed4ad (patch)
tree8dce70df4a27e314065ff18433b6162a8ff41fd4 /2.0/default
parentbdd6847f89e15a51d2ab676a4f3cb1e9ebc80baa (diff)
NFC: Fix compilation issuesHEADsugisawa-pn5xx
Modified code to fix build errors. Removed inclusion of unwanted library from build rules. Change-Id: I2d56bfb9b36249a5bb6841119974bd743f20f93e
Diffstat (limited to '2.0/default')
-rw-r--r--2.0/default/Android.bp3
-rw-r--r--2.0/default/NqNfc.cpp4
-rw-r--r--2.0/default/service.cpp7
3 files changed, 11 insertions, 3 deletions
diff --git a/2.0/default/Android.bp b/2.0/default/Android.bp
index de5fef5..c7b3d35 100644
--- a/2.0/default/Android.bp
+++ b/2.0/default/Android.bp
@@ -8,10 +8,10 @@ cc_binary {
"service.cpp",
"Nfc.cpp",
"NqNfc.cpp",
+ "NxpNfcLegacy.cpp",
],
shared_libs: [
"nfc_nci.nqx.default.hw",
- "se_nq_extn_client",
"libhidlbase",
"libutils",
"liblog",
@@ -19,6 +19,7 @@ cc_binary {
"android.hardware.nfc@1.1",
"android.hardware.nfc@1.2",
"vendor.nxp.hardware.nfc@2.0",
+ "vendor.nxp.nxpnfclegacy@1.0",
],
header_libs: [
"libhardware_headers",
diff --git a/2.0/default/NqNfc.cpp b/2.0/default/NqNfc.cpp
index 4e2cd03..8e07a6f 100644
--- a/2.0/default/NqNfc.cpp
+++ b/2.0/default/NqNfc.cpp
@@ -85,12 +85,12 @@ Return<bool> NqNfc::setVendorParam(const ::android::hardware::hidl_string &key,
return phNxpNciHal_setSystemProperty(key, value);
}
-Return<bool> NqNfc::resetEse(uint64_t resetType) {
+Return<bool> NqNfc::resetEse(uint64_t /* resetType */) {
NFCSTATUS status = NFCSTATUS_FAILED;
bool ret = false;
ALOGD("NqNfc::resetEse Entry");
- status = phNxpNciHal_resetEse(resetType);
+ status = phNxpNciHal_resetEse();
if(NFCSTATUS_SUCCESS == status) {
ret = true;
status = NFCSTATUS_SUCCESS;
diff --git a/2.0/default/service.cpp b/2.0/default/service.cpp
index 1ed3aca..f5d820a 100644
--- a/2.0/default/service.cpp
+++ b/2.0/default/service.cpp
@@ -32,6 +32,7 @@
#include <hidl/LegacySupport.h>
#include "Nfc.h"
#include "NqNfc.h"
+#include "NxpNfcLegacy.h"
using android::hardware::nfc::V1_2::INfc;
using android::hardware::nfc::V1_2::implementation::Nfc;
@@ -39,6 +40,8 @@ using android::hardware::configureRpcThreadpool;
using android::hardware::joinRpcThreadpool;
using vendor::nxp::hardware::nfc::V2_0::INqNfc;
using vendor::nxp::hardware::nfc::V2_0::implementation::NqNfc;
+using vendor::nxp::nxpnfclegacy::V1_0::INxpNfcLegacy;
+using vendor::nxp::nxpnfclegacy::V1_0::implementation::NxpNfcLegacy;
using android::OK;
using android::sp;
using android::status_t;
@@ -55,6 +58,10 @@ int main() {
status = nq_nfc_service->registerAsService();
ALOGE_IF(status != OK, "Error while registering nqnfc vendor service: %d", status);
+ sp<INxpNfcLegacy> nxp_nfc_legacy_service = new NxpNfcLegacy();
+ status = nxp_nfc_legacy_service->registerAsService();
+ ALOGE_IF(status != OK, "Error while registering NxpNfcLegacy vendor service: %d", status);
+
joinRpcThreadpool();
return status;
}