mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
android.hardware.camera.provider@2.4: set up /dev/vndbinder
am: b4488af17c
Change-Id: Id1900eb23ca664dabbff08c8af34f2aed2013eef
This commit is contained in:
@@ -37,6 +37,7 @@ cc_binary {
|
||||
shared_libs: [
|
||||
"libhidlbase",
|
||||
"libhidltransport",
|
||||
"libbinder",
|
||||
"liblog",
|
||||
"libutils",
|
||||
"android.hardware.camera.device@1.0",
|
||||
|
||||
@@ -19,11 +19,16 @@
|
||||
#include <android/hardware/camera/provider/2.4/ICameraProvider.h>
|
||||
#include <hidl/LegacySupport.h>
|
||||
|
||||
#include <binder/ProcessState.h>
|
||||
|
||||
using android::hardware::camera::provider::V2_4::ICameraProvider;
|
||||
using android::hardware::defaultPassthroughServiceImplementation;
|
||||
|
||||
int main()
|
||||
{
|
||||
ALOGI("Camera provider Service is starting.");
|
||||
// The camera HAL may communicate to other vendor components via
|
||||
// /dev/vndbinder
|
||||
android::ProcessState::initWithDriver("/dev/vndbinder");
|
||||
return defaultPassthroughServiceImplementation<ICameraProvider>("legacy/0", /*maxThreads*/ 6);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user