tools/genmcctable
0 → 100755
+67
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
* Spare 2 bits from country code to language code 7 bits for each character of country code would be enough. LANG_STRINGS[]'s max index is now increased to 63 (from 15). FYI, there are at least 3 dozens of languages in frameworks. * Lookup country's primary time zone from xml There are hundreds of time zones. Import all of them into MccTable wouldn't be a good idea. Now it gets the time zone ID from com.android.internal.R.xml.time_zones_by_country for MCCs without time zone assigned. As I see, the first entry matched in the xml would be the primary time zone for the specified country. We only need to assign time zones for countries that have more than one MCC and its time zone. * Add a script to update MccTable.java automatically By executing tools/genmcctable, any changes to mcc_table in Python code will be updated to the auto generated section of Java code. * Minor Changes - Fix indent of Java comment generated by Python - Set Chinese as the default language of Taiwan Change-Id: I8724d9e8d5b733a91d5ec9f42ff33b17c9d23eb0