Is it guaranteed that PackageManager.getInstallerPackageName()
always returns a not null
string?
PackageManager myapp= this.getPackageManager();
String installer = myapp.getInstallerPackageName("com.MyPackage");
if (installer == null) {
// ...
}
We are considering this option vs Google licensing. But the application should operate in offline mode without network access.