summaryrefslogtreecommitdiff
path: root/cmds/service/service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cmds/service/service.cpp')
-rw-r--r--cmds/service/service.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/cmds/service/service.cpp b/cmds/service/service.cpp
index 09921e45d3..bc11256a73 100644
--- a/cmds/service/service.cpp
+++ b/cmds/service/service.cpp
@@ -69,11 +69,10 @@ static String8 good_old_string(const String16& src)
int main(int argc, char* const argv[])
{
bool wantsUsage = false;
- bool wantsVendorServices = false;
int result = 0;
while (1) {
- int ic = getopt(argc, argv, "vh?");
+ int ic = getopt(argc, argv, "h?");
if (ic < 0)
break;
@@ -82,9 +81,6 @@ int main(int argc, char* const argv[])
case '?':
wantsUsage = true;
break;
- case 'v':
- wantsVendorServices = true;
- break;
default:
aerr << "service: Unknown option -" << ic << endl;
wantsUsage = true;
@@ -92,10 +88,9 @@ int main(int argc, char* const argv[])
break;
}
}
-
- if (wantsVendorServices) {
- ProcessState::initWithDriver("/dev/vndbinder");
- }
+#ifdef VENDORSERVICES
+ ProcessState::initWithDriver("/dev/vndbinder");
+#endif
sp<IServiceManager> sm = defaultServiceManager();
fflush(stdout);
if (sm == NULL) {