Closed Bug 1964497 Opened 2 months ago Closed 1 month ago

Remove some Firefox features when we're being used via Android Automotive

Categories

(Firefox for Android :: General, enhancement)

All
Android
enhancement

Tracking

()

RESOLVED FIXED
140 Branch
Tracking Status
firefox140 --- fixed

People

(Reporter: mkaply, Assigned: joberhauser)

References

Details

(Whiteboard: [fxdroid])

Attachments

(1 file)

We had a partner reach out about putting Firefox in cars.

We were able to make some simple modifications, like adding the right flag in our manifest, but they've made a few suggestions we should do so we work better in cars:

  1. Remove QR reader in URL bar.
  2. Remove printing functionality

Here's how we would detect android automotive:

val pm: PackageManager = requireContext().packageManager
val isAutomotive = pm.hasSystemFeature("android.hardware.type.automotive")
       if (isAutomotive) {
           // App is running on Android Automotive OS
       }else{
           // App is not running on Android Automotive OS
       }

Note this is NOT Android Auto, this is Android Automotive.

Whiteboard: [fxdroid]
Assignee: nobody → joberhauser
Attachment #9488757 - Attachment description: WIP: Bug 1964497 - Hiding QR code button when the device is android automotive → WIP: Bug 1964497 - Hiding QR code and print buttons when the device is android automotive
Attachment #9488757 - Attachment description: WIP: Bug 1964497 - Hiding QR code and print buttons when the device is android automotive → Bug 1964497 - Hiding QR code and print buttons when the device is android automotive
See Also: → 1948761
Pushed by joberhauser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/289d38cd3085 Hiding QR code and print buttons when the device is android automotive r=android-reviewers,007
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: