I have system-level app with android:sharedUserId="android.uid.system" (UID: 1000).
Device is not rooted! INSTALL_PACKAGES permission is included to Manifest.
Can I install downloaded *.apk silently?
You don't need ROOT permissions to get the list of Installed Apps. You can do it with android PackageManager.
The Android app not installed error can be combated after resetting app permissions. Go to Settings > Apps > Reset App Preferences/Reset Application Permissions. After this, third-party software can be installed on your device.
I`ve found the issue.
android.permission.INSTALL_PACKAGES
" permission.signapk.jar
" with certificate that I`ve got from manufacturer of my device. pm install /.../app.apk
" without "su". It works!
P.S. Updating application using just "pm install" doesn`t replace existing application with new one, but returns exit_value = 0. So to update there are two ways:
pm install -r /.../app.apk
";pm uninstall com.mydomain.myapp
" (you need "android.permission.DELETE_PACKAGES
" permission) and then install new one.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With