dimanche 28 décembre 2014

Install an app using ADB and set originating uri or referrer


ok i was offline a couple of days so here is my edit ! first of all thanks for your help it is most appreciated.


im in need of some help in setting a referrer for an app on android. il'l elaborate : when you refer to an app on the google play using a link something like this : https://play.google.com/store/apps/details?id=someoneElseApp&referrer=myReferer and then if someone enters the link and downloading it , it is listed that i referred it and i can tell the someoneElseApp that i referred to him this user.


now i have another case where a client comes to me with a device and i install the app manually myself . however i still want google play to know i installed it locally as if the referer was mine . how do i manually (it is called side-loading to my understanding) install an app and tell google play that im it's referrer . then i saw this on the pm command in adb install with this arguments and thought it works:



pm install <APK Path> --originating-uri <URI>
pm install <APK Path> --referrer <URI>

pm install --originating-uri <URI> <APK Path>
pm install --referrer <URI> <APK Path>


i attached here the documentation for pm install command :



pm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] [-s] [-f]

[--algo <algorithm name> --key <key-in-hex> --iv <IV-in-hex>]

[--originating-uri <URI>] [--referrer <URI>] PATH


any help would be welcome thx!





Aucun commentaire:

Enregistrer un commentaire