Closed
Bug 1220773
Opened 8 years ago
Closed 7 years ago
Expose Android getInstallerPackageName within Fennec
Categories
(Firefox for Android Graveyard :: General, defect, P1)
Tracking
(firefox45 affected, firefox50 fixed)
RESOLVED
FIXED
Firefox 50
People
(Reporter: rnewman, Assigned: sebastian)
References
Details
(Whiteboard: [MobileAS])
Attachments
(1 file)
PackageManager.getInstallerPackageName returns the package that installed us. We can use this to determine if we were sideloaded or installed via Play (or Amazon, or F-Droid, or…). This will allow us to tailor our updater behavior, amongst other things. Things to check: * Do we always get a package name on all Android versions? * What happens when we're preinstalled but expect to be updated via Play? * Does the package change each time an APK is installed? For example, is it null for the preinstall, then change to com.android.vending after the first Play update? * Can it change back to null if a user sideloads after installing via Play? We might consider exposing this value literally to Balrog in update checks.
Reporter | ||
Updated•8 years ago
|
Summary: Expose Android install location within Fennec → Expose Android getInstallerPackageName within Fennec
Assignee | ||
Updated•8 years ago
|
Blocks: fennec-nightly-aurora-on-gp
Assignee | ||
Comment 1•8 years ago
|
||
I wonder if we could use Telemetry to get an idea of what getInstallerPackageName() returns for devices in the wild. Is this feasible? (In reply to Richard Newman [:rnewman] from comment #0) > We might consider exposing this value literally to Balrog in update checks. Could we use this to get the same statistics?
Assignee | ||
Comment 2•8 years ago
|
||
(In reply to Sebastian Kaspari (:sebastian) from comment #1) > I wonder if we could use Telemetry to get an idea of what > getInstallerPackageName() returns for devices in the wild. Is this feasible? Seems like rnewman already filed this: bug 1221646
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → s.kaspari
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•7 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/67134/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/67134/
Attachment #8774689 -
Flags: review?(esawin)
Attachment #8774689 -
Flags: review?(ahunt)
Assignee | ||
Comment 4•7 years ago
|
||
I still need to test this extensively (I'll probably have to fake some of the data) but I already share the patch to get your feedback.
Updated•7 years ago
|
Attachment #8774689 -
Flags: review?(esawin) → review+
Comment 5•7 years ago
|
||
Comment on attachment 8774689 [details] Bug 1220773 - Do not run our updater if app was installed from Google Play. https://reviewboard.mozilla.org/r/67134/#review63964 ::: mobile/android/base/java/org/mozilla/gecko/updater/UpdateServiceHelper.java:135 (Diff revision 1) > Log.e(LOGTAG, "Failed to create update url: ", e); > return null; > } > } > > - public static boolean isUpdaterEnabled() { > + public static boolean isUpdaterEnabled(Context context) { Can be final.
Comment 6•7 years ago
|
||
Comment on attachment 8774689 [details] Bug 1220773 - Do not run our updater if app was installed from Google Play. https://reviewboard.mozilla.org/r/67134/#review64120
Attachment #8774689 -
Flags: review?(ahunt) → review+
Assignee | ||
Comment 7•7 years ago
|
||
Comment on attachment 8774689 [details] Bug 1220773 - Do not run our updater if app was installed from Google Play. Review request updated; see interdiff: https://reviewboard.mozilla.org/r/67134/diff/1-2/
Pushed by s.kaspari@gmail.com: https://hg.mozilla.org/integration/autoland/rev/64c473c3414f Do not run our updater if app was installed from Google Play. r=ahunt,esawin
Comment 9•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/64c473c3414f
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox50:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 50
Assignee | ||
Updated•7 years ago
|
Whiteboard: [MobileAS s1.1]
Updated•7 years ago
|
Priority: -- → P1
Whiteboard: [MobileAS s1.1] → [MobileAS]
Updated•7 years ago
|
Iteration: --- → 1.1
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•