Gaia is generating permissions using the permission manager API which makes any change to the permission manager complex because it will create a window of breakage. The solution is to update the permission manager so the database contains the app id and give time to gaia to use that then, in a second time, update the permission manager so checks for permissions will use the app id. Doing so will require re-generating a Gaia profile but it will be less annoying because the re-generation has to happen between the two commits and everything will be working in the meantime.
Created attachment 655394 [details] [diff] [review] Patch
Comment on attachment 655394 [details] [diff] [review] Patch s/find/found/
Temporary fix seems like it's not a blocker (plus it's done).