title: Can't install app com.android.mms on android (INSTALL_FAILED_DUPLICATE_PERMISSION)
body: <p>This is in the border of programming, so please delete the question if it's not correct posting it.</p>
  
  <p>Question is regarding the Android 5.0 Lollipop.</p>
  
  <p>Basically I've installed the "Messaging" app (com.android.mms) from inside another program (hide it pro). It's an older version of the android messaging. Then my Samsung s5 broke and I had to restore all apps into another similar Samsung. When trying to install the messaging app again (from inside or outside hide it pro) it fails with the error -505. Searching on the net I ended up by installing the android sdk and use adb to see if I could solve the issue. No luck: if I try to uninstall the app (which doesn't exist on the new phone) I get the error DELETE_FAILED_INTERNAL_ERROR.</p>
  
  <pre><code>$ adb uninstall /c/mfg/sms.apk
  * daemon not running. starting it now o
  * daemon started successfully *
  Failure [DELETE_FAILED_INTERNAL_ERROR]
  </code></pre>
  
  <p>If I try to install the app via adb I get the following result:</p>
  
  <pre><code>$ adb install /c/mfg/sms.apk
  3439 KB/s (2078237 bytes in 0.590s)
      pkg: /data/local/tmp/sms.apk
  Failure [INSTALL_FAILED_DUPLICATE_PERMISSION          
  perm=android.permission.MMS_SEND_OUTBOX_MSG pkg=com.android.mms]
  </code></pre>
  
  <p>I don't have the application on the phone, I can't put it to work and I can't get rid of the permissions. There's no way to uninstall on the phone since the app is not there and it won't let itself be installed. It doesn't appear on the Application Manager under "downloaded" or anywhere else.</p>
  
  <p>My question is: is there no way to wipe out the permissions WITHOUT having the application? What I wanted was an app that allowed me to delete the permissions, regardless of having the app or not. The phone is not rooted at the moment but if needed I can root it to solve the issue if it helps. Please advise.</p>