OSDN Git Service

keymaster HAL uses "default" service name
authorChris Phoenix <cphoenix@google.com>
Wed, 25 Jan 2017 23:15:46 +0000 (15:15 -0800)
committerYifan Hong <elsk@google.com>
Fri, 24 Feb 2017 22:31:39 +0000 (14:31 -0800)
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

Keymaster.cpp

index 7119dcc..27a46e3 100644 (file)
@@ -94,7 +94,7 @@ bool KeymasterOperation::finish(std::string* output) {
 }
 
 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) {