I am building an application that requires these both permissions to install and uninstall apks silently. My app is going to run in non rooted application. How to get these two permissions!!.
I have added in manifest file
<uses-permission android:name="android.permission.DELETE_PACKAGES"/>
<uses-permission android:name="android.permission.INSTALL_PACKAGES"/>
These permissions doesn't work when i execute these commands to uninstall an apk from my application
Runtime.getRuntime().exec("pm uninstall packagename");
Please help me through these, i have saw one application doing installation and uninstallation without any prompt successfully in my phone(non-rooted). Can anyone tell me, how this is possible?