I have an Android app that uses a WebView to enable users to install applications. Historically, applications installed from Android Market will have the installer value set to "com.google.android.feedback". With Google Play, this value is now "com.android.vending".
This value can be obtained by:
PackageManager pm = context.getPackageManager();
String installer = pm.getInstallerPackageName(pname);
The apps installed by my WebView have an installer value set to null. How can I set my own installer value, such as com.mydomain.store
?
You could try using setInstallerPackageName
.
But you would have to set the installer package name after the package is installed, and the installer package name would have to be empty/null.