218
edits
Changes
Adding flag to include stopped packages.
am broadcast -a com.android.vending.INSTALL_REFERRER \
-n org.mozilla.fennec/org.mozilla.gecko.distribution.ReferrerReceiver \
-f 32 \
--es "referrer" "utm_source=mozilla&utm_medium=testmedium&utm_term=testterm&utm_content=testsigned&utm_campaign=distribution"
</pre>
This will fetch the "testsigned.jar" distribution.
(The -f 32 flag makes sure this intent is sent to stopped packages.)
Telemetry will be recorded for the download: <code>FENNEC_DISTRIBUTION_DOWNLOAD_TIME_MS</code> records the download time in milliseconds, and <code>FENNEC_DISTRIBUTION_CODE_CATEGORY</code> records the result. The value will be one of these: