Skip to content

Commit

Permalink
[properties] set properties required for hybris per default. Contribu…
Browse files Browse the repository at this point in the history
…tes to JB#42316

Signed-off-by: Franz-Josef Haider <[email protected]>
  • Loading branch information
Franz-Josef Haider committed Jul 6, 2018
1 parent f7a60f6 commit ed6efde
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions minimedia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@
#include "allocator.h"
#include "services/services.h"

#define LOG_TAG "MinimediaService"
#include <cutils/properties.h>

// echo "persist.camera.shutter.disable=1" >> /system/build.prop
// echo "camera.fifo.disable=1" >> /system/build.prop
#define LOG_TAG "MinimediaService"

using namespace android;

Expand All @@ -50,6 +49,10 @@ main(int, char**)
sp<ProcessState> proc(ProcessState::self());
sp<IServiceManager> sm = defaultServiceManager();

// Disable things which break hybris once and for all.
property_set("persist.camera.shutter.disable", "1");
property_set("camera.fifo.disable", "1");

MediaPlayerService::instantiate();
CameraService::instantiate();

Expand Down

0 comments on commit ed6efde

Please sign in to comment.