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
This commit is contained in:
Chris Phoenix 2017-01-25 15:15:46 -08:00 committed by Yifan Hong
parent d21cde6435
commit 9e8a577a63

View 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) {