diff options
author | Mathias Agopian <mathias@google.com> | 2011-05-26 21:52:39 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-05-27 16:35:11 -0700 |
commit | c12b7ba81ec3b486f21394810d827258ba888ee4 (patch) | |
tree | 5de67d889b0084a54ec5678636d8b5bd3ec22888 /cmds/system_server | |
parent | a8607644026b5cd0860a897e80e491de41b64232 (diff) | |
download | frameworks_base-c12b7ba81ec3b486f21394810d827258ba888ee4.zip frameworks_base-c12b7ba81ec3b486f21394810d827258ba888ee4.tar.gz frameworks_base-c12b7ba81ec3b486f21394810d827258ba888ee4.tar.bz2 |
sensorservice can now be ran standalone
Change-Id: I6e757f31f1e020046038e5ab84e71b8689a0aed3
Diffstat (limited to 'cmds/system_server')
-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 |