diff options
Diffstat (limited to 'cmds/system_server/library/system_init.cpp')
-rw-r--r-- | cmds/system_server/library/system_init.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cmds/system_server/library/system_init.cpp b/cmds/system_server/library/system_init.cpp index b615764..a19711e 100644 --- a/cmds/system_server/library/system_init.cpp +++ b/cmds/system_server/library/system_init.cpp @@ -70,8 +70,11 @@ extern "C" status_t system_init() SurfaceFlinger::instantiate(); } - // Start the sensor service - SensorService::instantiate(); + property_get("system_init.startsensorservice", propBuf, "1"); + if (strcmp(propBuf, "1") == 0) { + // Start the sensor service + SensorService::instantiate(); + } // On the simulator, audioflinger et al don't get started the // same way as on the device, and we need to start them here |