title: Send message to custom service via adb
body: <p>I create simple android <a href="https://gitlab.com/Gluttton/DummyAndroid" rel="nofollow noreferrer">application</a> which contains one activity and service. The service is defined by <code>aidl</code> file and can receive calls from the activity via <code>Binder</code>. Everything works as expected.</p>
  
  <p>Now I deploy the application on device (also I've tried an emulator) and I want to send message to the service via <code>adb</code>:</p>
  
  <pre><code>$ adb shell service call \
      com.example.gluttton.dummyandroid/.DummyService 0 STR "Bingo!"
  </code></pre>
  
  <p>and got message that such service doesn't exist:</p>
  
  <blockquote>
    <p>service: Service com.example.gluttton.dummyandroid/.DummyService does
    not exist</p>
  </blockquote>
  
  <p>I try to check is my service launched:</p>
  
  <pre><code>$ adb shell service list
  </code></pre>
  
  <p>or</p>
  
  <pre><code>$ adb shell service check com.example.gluttton.dummyandroid/.DummyService
  </code></pre>
  
  <p>and got similar result.</p>
  
  <p>But at the same time I cat see my service using <code>dumpsys</code>:</p>
  
  <pre><code>$ adb shell dumpsys activity services Dummy
  ACTIVITY MANAGER SERVICES (dumpsys activity services)
    User 0 active services:
    * ServiceRecord{a1627b5 u0 com.example.gluttton.dummyandroid/.DummyService}
      intent={act=android.intent.action.MAIN     cat=[android.intent.category.LAUNCHER]     cmp=com.example.gluttton.dummyandroid/.DummyService}
      packageName=com.example.gluttton.dummyandroid
      processName=com.example.gluttton.dummyandroid
      baseDir=/data/app/com.example.gluttton.dummyandroid-1/base.apk
      dataDir=/data/data/com.example.gluttton.dummyandroid
      app=ProcessRecord{114da04c 20168:com.example.gluttton.dummyandroid/u0a126}
      createTime=-21m40s817ms startingBgTimeout=--
      lastActivity=-21m40s816ms restartTime=-21m40s816ms createdFromFg=true
      startRequested=true delayedStop=false stopIfKilled=false callStart=true lastStartId=1
  </code></pre>
  
  <p>Also I can start my service:</p>
  
  <pre><code>$ adb shell am startservice com.example.gluttton.dummyandroid/.DummyService
  Starting service: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.gluttton.dummyandroid/.DummyService }
  </code></pre>
  
  <p>and stop it:</p>
  
  <pre><code>$ adb shell am stopservice com.example.gluttton.dummyandroid/.DummyService
  Stopping service: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.gluttton.dummyandroid/.DummyService }
  Service stopped
  </code></pre>
  
  <p>So my question is where is my mistake and how to send message to my service via <code>adb</code>?</p>