title: Fatal Exception: java.lang.SecurityException: Missing permission to insert badges
body: <p>I am new in Android development, I am facing below exception on some of the device after publishing it on play store. It is completly unknown exception for me. This exception force stop/crash my application.</p>
  
  <p><strong>Complete stacktrace logged:</strong></p>
  
  <pre><code>Exception java.lang.SecurityException: Missing permission to insert badges
  android.os.Parcel.readException (Parcel.java:1553)
  android.database.DatabaseUtils.readExceptionFromParcel (DatabaseUtils.java:185)
  android.database.DatabaseUtils.readExceptionFromParcel (DatabaseUtils.java:137)
  android.content.ContentProviderProxy.insert (ContentProviderProxy.java:476)
  android.content.ContentResolver.insert (ContentResolver.java:1213)
  android.content.AsyncQueryHandler$WorkerHandler.handleMessage (AsyncQueryHandler.java:96)
  android.os.Handler.dispatchMessage (Handler.java:102)
  android.os.Looper.loop (Looper.java:211)
  android.os.HandlerThread.run (HandlerThread.java:61)
  </code></pre>
  
  <p>As mentioned above exception dose not contains any part of code that relate to my application, and also I am not found any satisfactory solution for above issue. </p>
  
  <p><strong>EDIT:</strong> 
  I am using an external library(SDK) for push notification, after adding that my App start showing 11 new permission on play store 'Required permission' section when I am going to update my app</p>
  
  <p><strong>Some of those permissions are:</strong></p>
  
  <pre><code>    com.htc.launcher.permission.READ_SETTINGS
      com.htc.launcher.permission.UPDATE_SHORTCUT
      com.huawei.android.launcher.permission.CHANGE_BADGE
      com.huawei.android.launcher.permission.READ_SETTINGS
      com.huawei.launcher.permission.WRITE_SETTINGS
      com.sec.android.provider.badge.permission.READ
      com.sec.android.provider.badge.permission.WRITE
      com.sonyericsson.home.permission.BROADCAST_BADGE
      com.sonymobile.home.permission.PROVIDE_INSERT_BADGE
  </code></pre>
  
  <p>I am not added these permission in my own manifest file, So that I modified my <strong>'AndroidManifest'</strong> file by adding following line of code into application tag:</p>
  
  <pre><code>&lt;application
       &lt;--some code--&gt;
      tools:replace="android:icon, android:allowBackup"
      &gt;
  </code></pre>
  
  <p>and use a .jar file of SDK instead of compile it like </p>
  
  <p>compile 'com.abc.xyz:3.+@aar' //suggested for android studio in (build.gradle)</p>
  
  <p>After applying above process those permission are removed and I upload my Application.</p>
  
  <p>Only These thing I have performed into my new version of app. I also looked that library project recentally and it contains a folder <strong>'shortcutbadger'</strong> that contains some sub-folder and .class file internally</p>
  
  <p><strong>Is due to above changes I am start receiving that exception ? please explain/help!</strong></p>