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

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

Merge "Camera: work with vintf toggle."

parents f16a70a9 7fd6ad80
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@
#include <CameraProvider.h>

#include <hidl/HidlTransportSupport.h>
#include <hidl/LegacySupport.h>
#include <utils/StrongPointer.h>

using android::hardware::configureRpcThreadpool;
@@ -32,6 +33,11 @@ int main()
{
    const char instance[] = "legacy/0";

    // TODO(b/34817742): use defaultServicePassthroughImplementation
    // so that the toggle is implemented correctly
    using ::android::hardware::details::blockIfBinderizationDisabled;
    blockIfBinderizationDisabled(ICameraProvider::descriptor, instance);

    ALOGI("Camera provider Service is starting.");

    configureRpcThreadpool(1, true /* callerWillJoin */);