From 2f90ea69976d19873f5ba31ed34c074d698066b3 Mon Sep 17 00:00:00 2001 From: DaVinci9196 <150454414+DaVinci9196@users.noreply.github.com> Date: Wed, 11 Dec 2024 02:28:08 +0800 Subject: [PATCH] Don't set install_referrer to the public store URL (#2622) Google doesn't set this either if the referrer is the store app itself. Some apps (Twitch) show confusing information if we do. --- .../finsky/externalreferrer/GetInstallReferrerService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vending-app/src/main/java/com/google/android/finsky/externalreferrer/GetInstallReferrerService.java b/vending-app/src/main/java/com/google/android/finsky/externalreferrer/GetInstallReferrerService.java index fd67908a0c..a59ad44f9f 100644 --- a/vending-app/src/main/java/com/google/android/finsky/externalreferrer/GetInstallReferrerService.java +++ b/vending-app/src/main/java/com/google/android/finsky/externalreferrer/GetInstallReferrerService.java @@ -18,9 +18,8 @@ public class GetInstallReferrerService extends Service { // https://developer.android.com/google/play/installreferrer/igetinstallreferrerservice @Override public Bundle getInstallReferrer(Bundle request) throws RemoteException { - String packageName = request.getString("package_name"); Bundle result = new Bundle(); - result.putString("install_referrer", "https://play.google.com/store/apps/details?utm_source=google-play&utm_medium=organic&id="+packageName); + result.putString("install_referrer", "utm_source=google-play&utm_medium=organic"); result.putLong("referrer_click_timestamp_seconds", 0); result.putLong("referrer_click_timestamp_server_seconds", 0); result.putLong("install_begin_timestamp_seconds", 0);