Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8c4983b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Check registerPassthroughServiceImplementation return status"

parents 03a1349f c7170174
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -31,7 +31,14 @@ using android::hardware::drm::V1_0::IDrmFactory;
int main() {
    ALOGD("android.hardware.drm@1.0-service starting...");
    configureRpcThreadpool(8, true /* callerWillJoin */);
    android::status_t status =
        registerPassthroughServiceImplementation<IDrmFactory>("drm");
    registerPassthroughServiceImplementation<ICryptoFactory>("crypto");
    LOG_ALWAYS_FATAL_IF(
        status != android::OK,
        "Error while registering drm service: %d", status);
    status = registerPassthroughServiceImplementation<ICryptoFactory>("crypto");
    LOG_ALWAYS_FATAL_IF(
        status != android::OK,
        "Error while registering crypto service: %d", status);
    joinRpcThreadpool();
}