Closed Bug 796744 Opened 12 years ago Closed 6 years ago

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

Categories

(Firefox OS Graveyard :: Gaia, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: ghtobz, Unassigned)

Details

(Whiteboard: [label:permissions])

[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?
Component: Gaia → Gaia::Apps Management
Component: Gaia::Apps Management → Gaia
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.