title: Shortcuts for <activity-alias> disappear on Jelly Bean
body: <p>I've adopted a legacy app for a complete rewrite, and as a result, the starting activity has been renamed. To cope with users having placed a shortcut to my app from their home screen, I've added an <code>activity-alias</code> that points from the old name to the new.</p>
  
  <p>Previously:</p>
  
  <pre><code>&lt;activity
      android:name=".SplashScreenActivity"
      android:theme="@style/Theme.Styled.NoAnimation" /&gt;
  </code></pre>
  
  <p>Now:</p>
  
  <pre><code>&lt;activity
      android:name=".activities.StartActivity_"
      android:theme="@style/Theme.Styled.NoAnimation"&gt;
      &lt;intent-filter&gt;
          &lt;action android:name="android.intent.action.MAIN" /&gt;
          &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
      &lt;/intent-filter&gt;
  &lt;/activity&gt;
  &lt;activity-alias
      android:name=".SplashScreenActivity"
      android:exported="true"
      android:targetActivity=".activities.StartActivity_"/&gt;
  </code></pre>
  
  <p>This works great for various devices I tested between 2.1 and 4.0. On Jelly Bean (4.1 &amp; 4.2), however, I see that the default launcher is now removing the launch icon.</p>
  
  <p>What's worse is that in some tests, the upgrade <em>doesn't show the app whatsoever</em>, only revealing it from the application list on the <em>second</em> install. There seems to be no rhyme or reason; sometimes the app just goes missing.</p>
  
  <p>I've toyed with swapping the <code>IntentFilter</code>:</p>
  
  <pre><code>&lt;activity
      android:name=".activities.StartActivity_"
      android:theme="@style/Theme.Styled.NoAnimation" /&gt;
  &lt;activity-alias
      android:name=".SplashScreenActivity"
      android:exported="true"
      android:targetActivity=".activities.StartActivity_" &gt;
      &lt;intent-filter&gt;
          &lt;action android:name="android.intent.action.MAIN" /&gt;
          &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
      &lt;/intent-filter&gt;
  &lt;/activity-alias&gt;
  </code></pre>
  
  <p>ADB doesn't seem to like that very much:</p>
  
  <blockquote>
    <p>No Launcher activity found!<br>
    The launch will only sync the application package on the device!</p>
  </blockquote>
  
  <p>For completeness: adding the <code>IntentFilter</code> to both activity names keeps the home screen shortcut, but shows two apps in the applications list.</p>
  
  <p>How can I migrate and keep all my users satisfied?</p>