forked from mozilla-b2g/gaia
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make an apns_conf-local.xml and update the .json file. Clarify the README. r=kaze, a=21
- Loading branch information
1 parent
e7e40d2
commit 83ca96b
Showing
4 changed files
with
25 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
Two APN (Access Point Name) databases are used: | ||
Three APN (Access Point Name) databases are used: | ||
|
||
* the Android database is the *de facto* standard we rely on; | ||
* the Gnome database is probably less up-to-date but has a bit more information. | ||
* the Android database `/shared/resources/apn/apns_conf.xml` is the *de facto* standard we rely on; | ||
* a local database `/shared/resources/apn/apns_conf-local.xml` with the same format we merge with the above, used for where Google is lacking. Ideally this file should be empty as everything should be put upstream; | ||
* the Gnome database `/shared/resources/apn/serviceproviders.xml` is probably less up-to-date but has a bit more information. | ||
|
||
A fourth file `/shared/resources/apn/operator-variant.xml` is also used. | ||
|
||
These files are only used to test and merge these APN databases. | ||
|
||
The `/shared/resources/apn.json/` file is a JSON version of the Android database, with a few additional informations from the Gnome APN database (e.g. voicemail number). | ||
The `/shared/resources/apn.json` file is a JSON version of the Android database, with a few additional informations from the Gnome APN database (e.g. voicemail number). | ||
|
||
To regenerate the .json file, start from the parent directory a webserver. Like this: | ||
|
||
cd .. ; python -m SimpleHTTPServer 4104 | ||
|
||
If this file is found, it will be used as is by the `index.html` file; if not present, the `index.html` file will generate a new one. | ||
Then load http://0.0.0.0:4104/apn | ||
This should regenerate the .json file into the left part of the page, and you can cut & paste this to your editor. | ||
|
||
TODO: make this automatic. Patches Welcome™ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters