Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check if install is from Samsung app store

I know how to check:

 packageManager.getInstallerPackageName(pContext.getPackageName())

I know from other StackOverflow answers and my apps in the wild that:

Google Play returns: com.android.vending

Amazon returns: com.amazon.venezia

If I install with adb I get null value returned from getInstallerPackageName(). Anyone know how to test if install is from Samsung App store?

like image 355
Stanley Avatar asked Oct 03 '22 19:10

Stanley


1 Answers

According to the Samsung forum thread getInstallerPackageName will return 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 Stepniewski Samsung Developers

This is also what I get using a small test application.

like image 123
orcy Avatar answered Oct 12 '22 11:10

orcy