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)
Tracking
(firefox46 fixed, firefox47 fixed)
RESOLVED
FIXED
mozilla47
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)
Assignee | ||
Comment 1•9 years ago
|
||
(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)
Assignee | ||
Comment 2•9 years ago
|
||
Short and sweet.
Review commit: https://reviewboard.mozilla.org/r/32705/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/32705/
Attachment #8712933 -
Flags: review?(margaret.leibovic)
Reporter | ||
Comment 3•9 years ago
|
||
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+
Assignee | ||
Comment 4•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/fcac60741f1af3fb5f670d0154e3d9a987e1d515
Bug 1236621 - Extract main APK permissions into included preamble. r=margaret
Comment 5•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 47
Assignee | ||
Comment 6•9 years ago
|
||
status-firefox46:
--- → fixed
Backed out in https://hg.mozilla.org/releases/mozilla-beta/rev/3120bbed5ff0 for android bustage
Flags: needinfo?(nalexander)
Comment 8•9 years ago
|
||
This just landed again in 46 so I'm marking it fixed. Hope it sticks this time!
Assignee | ||
Comment 9•9 years ago
|
||
(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)
Updated•6 years ago
|
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.
Description
•