Plz check below classe & give me the suggestion for how to use them https://developer.android.com/reference/android/content/pm/PackageInstaller.html https://developer.android.com/reference/android/content/pm/PackageInstaller.Session.html
So please give me an example to install/update/remove app. Can it be possible that the new application will install in device profile owner?
The install method @amalBit provided did not work for me. It's strange since this is how it is implemented in the Google Sample.
This answer helped me to find a solution. I had to change some parts of the code. Here is my implementation:
This method can be called like this: