keymaster HAL uses "default" service name
The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.
Test: marlin boots
Bug: 33844934
Change-Id: I7c68c8b9ab0101b2f10ca20b9971a5bd34377168
diff --git a/Keymaster.cpp b/Keymaster.cpp
index 7119dcc..27a46e3 100644
--- a/Keymaster.cpp
+++ b/Keymaster.cpp
@@ -94,7 +94,7 @@
}
Keymaster::Keymaster() {
- mDevice = ::android::hardware::keymaster::V3_0::IKeymasterDevice::getService("keymaster");
+ mDevice = ::android::hardware::keymaster::V3_0::IKeymasterDevice::getService();
}
bool Keymaster::generateKey(const AuthorizationSet& inParams, std::string* key) {