Loading services/camera/libcameraservice/CameraService.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -171,6 +171,11 @@ static bool doesClientHaveSystemUid() { return (CameraThreadState::getCallingUid() < AID_APP_START); } // Enable processes with isolated AID to request the binder void CameraService::instantiate() { CameraService::publish(true); } void CameraService::onServiceRegistration(const String16& name, const sp<IBinder>&) { if (name != String16(kAppopsServiceName)) { return; Loading services/camera/libcameraservice/CameraService.h +3 −0 Original line number Diff line number Diff line Loading @@ -99,6 +99,9 @@ public: // Event log ID static const int SN_EVENT_LOG_ID = 0x534e4554; // Register camera service static void instantiate(); // Implementation of BinderService<T> static char const* getServiceName() { return "media.camera"; } Loading Loading
services/camera/libcameraservice/CameraService.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -171,6 +171,11 @@ static bool doesClientHaveSystemUid() { return (CameraThreadState::getCallingUid() < AID_APP_START); } // Enable processes with isolated AID to request the binder void CameraService::instantiate() { CameraService::publish(true); } void CameraService::onServiceRegistration(const String16& name, const sp<IBinder>&) { if (name != String16(kAppopsServiceName)) { return; Loading
services/camera/libcameraservice/CameraService.h +3 −0 Original line number Diff line number Diff line Loading @@ -99,6 +99,9 @@ public: // Event log ID static const int SN_EVENT_LOG_ID = 0x534e4554; // Register camera service static void instantiate(); // Implementation of BinderService<T> static char const* getServiceName() { return "media.camera"; } Loading