ReleaseEngineering/Archive/Update The Foxfooding Program IMEI Whitelist
This page is obsolete
The Foxfooding Program IMEI Whitelist as a listed of hashed IMEIs of Foxfooding devices that are allowed to receive updates on the "foxfood" channel. This list is maintained in Balrog as a strucuted piece of JSON. It was initially created as part of bug 1207313.
To make changes to it, follow these instructions:
- Determine which IMEI(s) need changes. IMEIs are hashed with SHA512, so you'll need the hashed version of each IMEI before you get started. To calculate this, you can use the "sha512sum" command (Linux) or "shasum -a 512" (OS X). Eg:
- Locate The "B2G-Foxfood-IMEI-Whitelist" blob in Balrog's admin UI.
- Click the "Download" link, save the file to your computer:
- Open up the saved file in a text editor
- Edit the file as needed
$ echo -n "123456789" | sha512sum ff3245abe317049ed1b8aa7aa2f4c4dcb8bf86f083ed67eb26b43e2fbe3ba8fdf759f9e2f46fcf2a06c2dfeddf0cedcd41a68034cd618b880785b34f759d1a69 - $ echo -n "123456789" | shasum -a 512 ff3245abe317049ed1b8aa7aa2f4c4dcb8bf86f083ed67eb26b43e2fbe3ba8fdf759f9e2f46fcf2a06c2dfeddf0cedcd41a68034cd618b880785b34f759d1a69 -
- If adding a new IMEI to the list:
- Copy and paste the first block, then edit the IMEI. For example, let's add "abcdef9876" to this whitelist:
{ "whitelist": [ { "imei": "abcdef123546" }, { "imei": "fedcba123546" }, { "imei": "fedcba654321" } ], "name": "B2G-Foxfood-IMEI-Whitelist", "schema_version": 3000 }
{ "whitelist": [ { "imei": "abcdef9876" }, { "imei": "abcdef123546" }, { "imei": "fedcba123546" }, { "imei": "fedcba654321" } ], "name": "B2G-Foxfood-IMEI-Whitelist", "schema_version": 3000 }
- Remove its block entirely. For example, let's remove "fedcba123456" from this whitelist:
{ "whitelist": [ { "imei": "abcdef123546" }, { "imei": "fedcba123546" }, { "imei": "fedcba654321" } ], "name": "B2G-Foxfood-IMEI-Whitelist", "schema_version": 3000 }
{ "whitelist": [ { "imei": "abcdef123546" }, { "imei": "fedcba654321" } ], "name": "B2G-Foxfood-IMEI-Whitelist", "schema_version": 3000 }
Notes
- To update the whitelist, the user needs permission "
/releases/:name
" with the "{"product":"B2G"}
option.