Google Play Referrer API Sample

InstallReferrerClientImpl

  private static final int PLAY_STORE_MIN_APP_VER = 80837300;
  private static final String SERVICE_PACKAGE_NAME = "com.android.vending";
  private static final String SERVICE_NAME =
      "com.google.android.finsky.externalreferrer.GetInstallReferrerService";
  private static final String SERVICE_ACTION_NAME =
      "com.google.android.finsky.BIND_GET_INSTALL_REFERRER_SERVICE";