mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 06:22:53 +00:00
Merge "Cleanup nfc service code." am: a91254d196
am: 8c2e2ce86d
Change-Id: Iec0e3d87ce30625fb5d574817a43e67f51d0a60a
This commit is contained in:
@@ -26,7 +26,7 @@ int main() {
|
||||
const char instance[] = "nfc_nci";
|
||||
ALOGI("Retrieving default implementation of instance %s.",
|
||||
instance);
|
||||
android::sp<INfc> service = INfc::getService(instance, true);
|
||||
android::sp<INfc> service = INfc::getService(instance, true /* getStub */);
|
||||
if (service.get() == nullptr) {
|
||||
ALOGE("INfc::getService returned NULL, exiting");
|
||||
return -1;
|
||||
@@ -35,7 +35,7 @@ int main() {
|
||||
instance, (service->isRemote() ? "REMOTE" : "LOCAL"));
|
||||
LOG_FATAL_IF(service->isRemote(), "Implementation is REMOTE!");
|
||||
ALOGI("Registering instance %s.", instance);
|
||||
service->registerAsService("nfc_nci");
|
||||
service->registerAsService(instance);
|
||||
ALOGI("Ready.");
|
||||
|
||||
ProcessState::self()->setThreadPoolMaxThreadCount(0);
|
||||
|
||||
Reference in New Issue
Block a user