onepf / OpenIAB

Open In-App Billing for Google Play, SlideMe, Amazon Store, Nokia Store, Samsung Apps, Yandex.Store, Appland, Aptoide, AppMall and Fortumo.
http://onepf.org/openiab/
Apache License 2.0
476 stars 171 forks source link

detects app store #413

Closed ghost closed 9 years ago

ghost commented 9 years ago

hi how OpenIAB Lib detects which app store installed the app?

RomanZhilich commented 9 years ago

Hello. First of all, it checks package installer using getInstallerPackageName(). However, you can influence library behavior using Options. See this for more details.

ghost commented 9 years ago

i want to add bazaar market to OpenIAB library. http://cafebazaar.ir/?l=en

the getInstallerPackageName() return null. what should i do ??

akarimova commented 9 years ago

@hamedjj

the getInstallerPackageName() return null. what should i do ??

does an application that you have installed from Bazaar Market return null?

ghost commented 9 years ago

yes

akarimova commented 9 years ago

I have a guess: the Bazaar Market client doesn't use android.permission.INSTALL_PACKAGES

and therefore cannot be an installer.

akarimova commented 9 years ago

To obtain the permission list, I used
aapt dump badging /Users/akarimova/Downloads/Bazaar-6.0.1.apk

ghost commented 9 years ago

Does android.permission.INSTALL_PACKAGES work for 3rd party markets? Bazaar doesn't install apps by itself and just opens installation intent for user to do the installation.