title: Unknown permission in package for android GCM register
body: <p>I am trying to get registration id for android device but I am getting following warnings:</p>
  
  <pre><code>    02-21 18:23:46.437: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.437: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.437: W/PackageManager(1495): Not granting permission to package (protectionLevel flags)
  02-21 18:23:46.437: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.437: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.437: W/PackageManager(1495): Not granting permission to package (protectionLevel flags)
  02-21 18:23:46.445: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.445: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.445: W/PackageManager(1495): Not granting permission to package (protectionLevel flags)
  02-21 18:23:46.445: W/PackageManager(1495): Not granting permission to package (protectionLevel flags)
  02-21 18:23:46.445: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.445: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.445: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.445: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.453: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.453: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.453: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.453: W/PackageManager(1495): Not granting permission to package (protectionLevel flags)
  02-21 18:23:46.453: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.453: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.460: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.460: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.460: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.460: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.460: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.460: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.460: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.460: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.460: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.468: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.468: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.468: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.468: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.468: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.468: W/PackageManager(1495): Not granting permission to package (protectionLevel flags)
  02-21 18:23:46.468: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.468: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.468: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.468: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.476: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.476: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.476: W/PackageManager(1495): Not granting permission to package (protectionLevel flags)
  02-21 18:23:46.476: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.476: W/PackageManager(1495): Not granting permission to package (protectionLevel flags)
  02-21 18:23:46.484: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.484: W/PackageManager(1495): Not granting permission to package (protectionLevel flags)
  02-21 18:23:46.484: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.484: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.484: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.484: W/PackageManager(1495): Not granting permission to package (protectionLevel flags)
  02-21 18:23:46.484: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.484: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.484: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.484: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.492: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.492: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.492: W/PackageManager(1495): Not granting permission to package (protectionLevel flags)
  02-21 18:23:46.492: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.492: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.492: W/PackageManager(1495): Not granting permission to package (protectionLevel flags)
  02-21 18:23:46.500: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.500: W/PackageManager(1495): Unknown permission in package 
  02-21 18:23:46.500: W/PackageManager(1495): Unknown permission in package 
  </code></pre>
  
  <p>my application manifest file is as follows: </p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="package1.package2"
  android:versionCode="1"
  android:versionName="1.0" &gt;
  
  &lt;uses-sdk
      android:minSdkVersion="8"
      android:targetSdkVersion="8" /&gt;
  
  &lt;uses-permission android:name="com.google.android.c2dm.intent.REGISTRATION" /&gt;
  &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt;
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
  &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  
  &lt;permission
      android:name="package1.package2.permission.C2D_MESSAGE"
      android:protectionLevel="signature" /&gt;
  
  &lt;uses-permission android:name="package1.package2.permission.C2D_MESSAGE" /&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
      &lt;activity
          android:name=".MainActivity"
          android:label="@string/title_activity_main" 
          android:screenOrientation="portrait"&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="SampleActivity"
          android:label="@string/title_activity_main"
          android:screenOrientation="portrait" &gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="SearchResult"
          android:label="@string/title_activity_main"
          android:screenOrientation="portrait" &gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="ShowProduct"
          android:label="@string/title_activity_main" 
          android:screenOrientation="portrait"&gt;
      &lt;/activity&gt;     
  
      &lt;receiver
          android:name="package1.package2.GcmBroadcastReceiver"
          android:permission="com.google.android.c2dm.permission.SEND" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
              &lt;action android:name="com.google.android.c2dm.intent.REGISTRATION" /&gt;
              &lt;category android:name="package1.package2" /&gt;
          &lt;/intent-filter&gt;
  
      &lt;/receiver&gt;
      &lt;service android:name="package1.package2.GCMServiceHandler"&gt;&lt;/service&gt;
  &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>I am also getting error SERVICE_NOT_AVAILABLE when trying to register the device. </p>