Closed Bug 1236621 Opened 9 years ago Closed 9 years ago

Create a central place for permissions manifest entries

Categories

(Firefox Build System :: Android Studio and Gradle Integration, defect)

35 Branch
defect
Not set
normal

Tracking

(firefox46 fixed, firefox47 fixed)

RESOLVED FIXED
mozilla47
Tracking Status
firefox46 --- fixed
firefox47 --- fixed

People

(Reporter: Margaret, Assigned: nalexander)

References

Details

Attachments

(1 file)

While working on bug 1234629, I wanted to find a way to include our normal permissions manifest entries in the bouncer APK manifest. nalexander mentioned wanting to create a central place to declare these permissions, which would make it simpler to include these in the bouncer manifest. Over to you for more details about what you have in mind...
Flags: needinfo?(nalexander)
(In reply to :Margaret Leibovic from comment #0) > While working on bug 1234629, I wanted to find a way to include our normal > permissions manifest entries in the bouncer APK manifest. > > nalexander mentioned wanting to create a central place to declare these > permissions, which would make it simpler to include these in the bouncer > manifest. Over to you for more details about what you have in mind... My PUT here is: We already have a bunch of permissions XML snippets in the tree: https://dxr.mozilla.org/mozilla-central/search?tree=mozilla-central&q=path%3A*permissions*xml.in&redirect=true yields 4. Let's follow suit and extract the core permissions into mobile/android/base/FennecManifest_permissions.xml.in. Then let's #include that in m/a/b/AndroidManifest.xml.in; and include all the other permissions snippets as appropriate in mobile/android/bouncer/AndroidManifest.xml.in. That's a reasonable way to centralize the permissions. It's worth noting that this kind of sham permissions declaring doesn't get better with Gradle, since it's not a good idea to have a stub Gradle project only for permissions, since it's hard to make lint and other static analyzers work well with such configurations.
Flags: needinfo?(nalexander)
Comment on attachment 8712933 [details] MozReview Request: Bug 1236621 - Extract main APK permissions into included preamble. r?margaret https://reviewboard.mozilla.org/r/32705/#review29561
Attachment #8712933 - Flags: review?(margaret.leibovic) → review+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 47
This just landed again in 46 so I'm marking it fixed. Hope it sticks this time!
(In reply to Wes Kocher (:KWierso) from comment #7) > Backed out in https://hg.mozilla.org/releases/mozilla-beta/rev/3120bbed5ff0 > for android bustage As :lizzard says, this relanded: https://hg.mozilla.org/releases/mozilla-beta/rev/ae9d8448101f
Flags: needinfo?(nalexander)
Product: Firefox for Android → Firefox Build System
Target Milestone: Firefox 47 → mozilla47
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: