title: Not allowed to start service Intent without permission - sender does not get permissions
body: <p>I'm working with Mark Murphy's excellent Commonsware books - but it's a lot to digest. I built the 'FakePlayer' app (pretends to be an mp3 player). It contains a service. As a learning experience I tried to write a trivial app (has only a button) whose click handler does:</p>
  
  <pre><code>Intent i = new Intent();
  i.setAction("com.example.cwfakeplayer.MyPlayerService");
  Context context = getApplicationContext();
  context.startService(i);
  </code></pre>
  
  <p>It worked fine - the service start ok. I noticed Eclipse complaining about no permission on the service, so I updated the service's manifest by adding 2 lines, android:permissions and android:exported:</p>
  
  <pre><code>    &lt;service 
          android:name="MyPlayerService"
          android:permission="com.example.fakeplayer.permission.MY_PLAYER_PERMISSION"
          android:exported="true"
         &lt;intent-filter&gt;
              &lt;action android:name="com.example.fakeplayer.MyPlayerService"&gt;&lt;/action&gt;
         &lt;/intent-filter&gt;
        &lt;/service&gt;
  </code></pre>
  
  <p>I reloaded the player app onto the device (I'm using a Galaxy S2) using 'debug' under eclipse. It seemed to work; the starter app caused a permission exception, which I expected.</p>
  
  <p>I then added to the starter app's manifest (to give it the permission):</p>
  
  <pre><code>&lt;manifest
    ...
    &lt;uses-sdk ....
    ....
    &lt;uses-permission android:name="com.example.fakeplayer.permission.MY_PLAYER_PERMISSION" /&gt;
  </code></pre>
  
  <p>I reloaded the starter app onto the device (using debug under Eclipse). Still get the permission error in the starter app.</p>
  
  <p>I removed both apps from the device and reinstalled (using debug...), service app first, then starter. Still get perm error.</p>
  
  <p>I am working my way through the 'how to use a remote service' section of Mr. Murphy's Advanced Android book, so I realized this is not the best way perhaps to work across apps. </p>
  
  <p>I did a 'adb shell dumpsys package', located the starter app, and found it had 'permissionsFixed=false' and no 'grantedPermissions' section. I take this to mean the manifest change in the starter app did not manage to get the perm added to the app. But I have no idea why. As a learning experience, it's generated only confusion so far....</p>
  
  <p>Any clues greatly appreciated! Thanks!</p>