title: App cannot be launched, but seems to have installed
body: <p>I changed the manifest of my app, and now the app cannot be launched. No icon. However, when I check installed under setting Application Manager, I see it there!
  Whats going on???  I have used same permissions before. I just changed which app was MAIN and launcher. Now cannot see the app. Does not come up via Studio or show up in Apps device!!!!</p>
  
  <p>Update: created new app with same permissions and launches ok, so it does not really seem to be permissions ...</p>
  
  <pre><code> Installing com.mycomp.myapp
  DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.mycomp.myapp"
  pkg: /data/local/tmp/com.myapp.
  Success
    09-21 13:40:43.261      454-499/? W/PackageManager﹕ verifying app can be  installed or not
    09-21 13:40:49.171      454-499/? W/PackageManager﹕ Unknown permission android.permission.UPDATE_DEVICE_STATE in package com.mycomp.myapp
    09-21 13:40:49.171      454-499/? W/PackageManager﹕ Not granting permission  android.permission.PACKAGE_USAGE_STATS to package com.mycomp.myapp     (protectionLevel=18 flags=0x18be46)
  
  
  
  
  
   &lt;?xml version="1.0" encoding="utf-8"?&gt;
     &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.mycomp.myapp.test"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk
          android:minSdkVersion="8"
          android:targetSdkVersion="24" /&gt;
  
      &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;
      &lt;uses-permission android:name="android.permission.GET_TASKS" /&gt;
      &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_SETTINGS" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.UPDATE_DEVICE_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.BLUETOOTH" /&gt;
      &lt;uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /&gt;
      &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="android.permission.EXPAND_STATUS_BAR" /&gt;
      &lt;uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /&gt;
      &lt;uses-permission android:name="android.permission.REORDER_TASKS" /&gt;
      &lt;uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES"  /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/&gt;
      &lt;uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" /&gt;
      &lt;application
          android:allowBackup="true"
          android:excludeFromRecents="true"
          android:icon="@drawable/app_icon"
          android:label="@string/app_name"
          android:largeHeap="true"
          android:theme="@style/AppTheme" &gt;
          &lt;activity
              android:name="com.mycomp.myapp.test.SplashScreen"
              android:label="@string/app_name" &gt;
          &lt;/activity&gt;
  
          &lt;receiver android:name="com.mycomp.myapp.test.BootReceiver" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  
          &lt;service
              android:name="com.mycomp.myapp.test.CheckValuesSercice"
          android:exported="false" /&gt;
          &lt;service`enter code here`
              android:name="com.mycomp.myapp.test.TestService"
              android:exported="false" /&gt;
          &lt;service
              android:name="com.mycomp.myapp.test.ValuesService"
          android:exported="false" /&gt;
  
          &lt;activity
              android:name="com.mycomp.myapp.test.Guest"
              android:configChanges="orientation|keyboardHidden" &gt;
          &lt;intent-filter&gt;
  
              &lt;action android:name="android.intent.action.MAIN" /&gt;
              &lt;category android:name="android.intent.category.HOME" /&gt;
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="com.mycomp.myapp.test.SetUsageAccessToApp"
              android:configChanges="orientation|keyboardHidden" &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
      android:name="com.mycomp.myapp.test.MainActivity"
              android:configChanges="orientation|keyboardHidden" &gt;
      &lt;/activity&gt;
      &lt;activity
      android:name="com.mycomp.myapp.test.AddItems"
              android:configChanges="orientation|keyboardHidden|screenSize" &gt;
      &lt;/activity&gt;
      &lt;activity
         android:name="com.mycomp.myapp.test.TestValues"
              android:configChanges="orientation|keyboardHidden" &gt;
      &lt;/activity&gt;
      &lt;activity
      android:name="com.mycomp.myapp.test.Login"
              android:configChanges="orientation|keyboardHidden" &gt;
      &lt;/activity&gt;
      &lt;activity
      android:name="com.mycomp.myapp.test.HomeScreen"
              android:configChanges="orientation|keyboardHidden" &gt;
      &lt;/activity&gt;
      &lt;activity
      android:name="com.mycomp.myapp.test.Listings"
              android:configChanges="orientation|keyboardHidden" &gt;
      &lt;/activity&gt;
      &lt;activity
      android:name="com.mycomp.myapp.test.Authorizing"
              android:configChanges="orientation|keyboardHidden" &gt;
      &lt;/activity&gt;
      &lt;activity
      android:name="com.mycomp.myapp.test.ThemeActivity"
              android:configChanges="orientation|keyboardHidden" &gt;
      &lt;/activity&gt;
      &lt;activity
      android:name="com.mycomp.myapp.test.EditHelpMessage"
              android:configChanges="orientation|keyboardHidden" &gt;
      &lt;/activity&gt;
      &lt;activity
      android:name="com.mycomp.myapp.test.Test"
              android:configChanges="orientation|keyboardHidden" &gt;
          &lt;/activity&gt;
          &lt;activity
          android:name="com.mycomp.myapp.test.ForOther"
              android:configChanges="orientation|keyboardHidden" &gt;
         &lt;/activity&gt;
         &lt;/application&gt;
  
      &lt;/manifest&gt;
  </code></pre>
  
  <p>Here is log </p>
  
  <pre><code> Uploading file
  local path: C:\projects\MyProj\app\build\outputs\apk\app-debug.apk
  remote path: /data/local/tmp/com.mycomp.myapp
  Installing com.mycomp.myapp
  DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.mycomp.myapp"
  pkg: /data/local/tmp/com.mycomp.myapp
  Success
  </code></pre>
  
  <p>So now I can see it under Setting ->Application Manager.  But not under Apps on the device.</p>