If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Change the way the permission DB (or local IDs) are assigned to preinstalled apps



Firefox OS
5 years ago
5 years ago


(Reporter: GH to BZ, Unassigned)


Firefox Tracking Flags

(Not tracked)


(Whiteboard: [label:permissions])



5 years ago
[GitHub issue by cgjones on 2012-09-26T07:23:14Z, https://github.com/mozilla-b2g/gaia/issues/5202]
CC @fabricedesre 

So https://bugzilla.mozilla.org/show_bug.cgi?id=785632 revealed a problem with our "user" build configuration: we install the /system apps on first-run, but we still have a prepopulated permissions DB.  The permissions DB refers to apps with local ID 1..., but those apps are actually installed with IDs 1001...

I had a hack to build/webapp-manifests.js that started assigning preinstall IDs at 1001 (instead of 1), but I realized that's badly wrong in eng builds because third-party apps will start being installed at ID 1001, colliding with the builtin apps.

I don't really have a good idea of what to do here.  To add a hack onto a hack, we could make the local ID assignment depend on which kind of build we're in, but ... yuck.

How close is the real m-c fix?


5 years ago
Component: Gaia → Gaia::Apps Management


5 years ago
Component: Gaia::Apps Management → Gaia


5 years ago
Blocks: 815411


5 years ago
No longer blocks: 815411
You need to log in before you can comment on or make changes to this bug.