Merge "servicemanager: Allow '/' character in service names." into stage-aosp-master am: 053019df21
am: 3ce418e1b5

Change-Id: Ib64d4cbbcf8f0cba4e639da480ae5640d187f62a
diff --git a/cmds/servicemanager/ServiceManager.cpp b/cmds/servicemanager/ServiceManager.cpp
index f35f360..4d5c76a 100644
--- a/cmds/servicemanager/ServiceManager.cpp
+++ b/cmds/servicemanager/ServiceManager.cpp
@@ -67,7 +67,7 @@
     if (name.size() > 127) return false;
 
     for (char c : name) {
-        if (c == '_' || c == '-' || c == '.') continue;
+        if (c == '_' || c == '-' || c == '.' || c == '/') continue;
         if (c >= 'a' && c <= 'z') continue;
         if (c >= 'A' && c <= 'Z') continue;
         if (c >= '0' && c <= '9') continue;