我知道怎么检查:
packageManager.getInstallerPackageName(pContext.getPackageName())
我从其他StackOverflow答案和我在野外的应用程序中了解到:
Google Play返回:com.android.vending
亚马逊回归:com.amazon.venezia
如果我使用adb安装,我会从getInstallerPackageName()返回null值.任何人都知道如何测试安装是否来自三星App Store?
最佳答案
根据Samsung forum thread getInstallerPackageName将返回null:
Actually,the value
is not being set (the method returns null) when you download an
application from SamsungApps. This method is an unreliable source of
information in this case.Regards,Artur
@H_301_33@
Stepniewski Samsung Developers这也是我使用小型测试应用程序的原因.