1029 lines
35 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2015/2016 Motorola Mobility, Lenovo Company -->
<validation match="ro.boot.device">
<!-- device describes a version of mapping logic applicable to a matching device -->
<!-- the device string to do case-insensitive substring match against "name" is
to be queried from property indicated by "match", or its BL equivalent -->
<!-- incremented version tells boot script to update the validation tags from this file -->
<device name="dubai" version="0.9">
<!-- Features list variable hardware components for this device -->
<features>
<string-array name=".features">
<!-- RF banding -->
<item>radio</item>
<!-- RAM size -->
<item>ram</item>
<!-- Storage size -->
<item>storage</item>
<!-- Dual SIM function -->
<item>dualsim</item>
<!-- Front color -->
<item>frontcolor</item>
<!-- Fingerprint sensor -->
<item>fps</item>
<!-- Near Field Communication function -->
<item>nfc</item>
<!-- eCompass -->
<item>ecompass</item>
</string-array>
</features>
<!-- Attributes list allowed values for features -->
<attributes>
<string-array name=".attributes">
<!-- range is a comma-separated list of allowed string values -->
<item>.range</item>
<!-- cmdline items must be exported to kernel cmdline, with prefix given in the value -->
<item>.cmdline</item>
<!-- chosen items must be exported to kernel devtree, with prefix given in the value -->
<item>.chosen</item>
<!-- system items must be exported as system property, with prefix given in the value -->
<item>.system</item>
<!-- same format as before, plus new attribute ".auto" -->
<!-- auto indicates BL should auto-fill respective tag if it is empty -->
<!-- this can work either using "hwid", "hwprobe" or "uspace" method -->
<item>.auto</item>
</string-array>
</attributes>
<!-- Constraints describe interpretation of attributes, and may contain data to feed to BL -->
<constraints>
<!-- look up value by matching "hwid" table, combination with current device,
then parsing out field indicated by "index",
and then translating the field as prescribed by "map" -->
<string name="radio/.auto">key=hwid;index=2;map=1:ROW,3:ROW</string>
<string name="radio/.cmdline">androidboot.</string>
<string name="radio/.system">ro.vendor.hw.</string>
<string-array name="radio/.range">
<item>ROW</item>
</string-array>
<!-- use result of ram HW detection to fill the field -->
<string name="ram/.auto">key=hwprobe;index=__ram</string>
<string name="ram/.system">ro.vendor.hw.</string>
<string-array name="ram/.range">
<item>6GB</item>
<item>8GB</item>
<item>12GB</item>
</string-array>
<!-- use result of storage HW detection to fill the field -->
<string name="storage/.auto">key=hwprobe;index=__storage</string>
<string name="storage/.system">ro.vendor.hw.</string>
<string-array name="storage/.range">
<item>128GB</item>
<item>256GB</item>
</string-array>
<string name="dualsim/.auto">default=true</string>
<string name="dualsim/.system">ro.vendor.hw.</string>
<string-array name="dualsim/.range">
<item>true</item>
<item>false</item>
</string-array>
<!-- frontcolor has to be programmed explicitly -->
<string name="frontcolor/.system">ro.vendor.hw.</string>
<string-array name="frontcolor/.range">
<item>gray</item>
<item>red</item>
<item>other</item>
</string-array>
<string name="fps/.auto">default=true</string>
<string name="fps/.chosen">mmi,</string>
<string name="fps/.system">ro.vendor.hw.</string>
<string-array name="fps/.range">
<item>true</item>
<item>false</item>
</string-array>
<string name="ecompass/.auto">default=true</string>
<string name="ecompass/.chosen">mmi,</string>
<string name="ecompass/.system">ro.vendor.hw.</string>
<string-array name="ecompass/.range">
<item>true</item>
</string-array>
<string name="nfc/.auto">key=hwid;index=2;map=1:false,3:st</string>
<string name="nfc/.chosen">mmi,</string>
<string name="nfc/.system">ro.vendor.hw.</string>
<string-array name="nfc/.range">
<item>false</item>
<item>st</item>
</string-array>
</constraints>
<mappings>
<!-- Products describe mapping of feature combinations to marketing names,
to be set in property indicated by "export" -->
<products export="ro.vendor.product.display" default="">
</products>
<!-- Variants describe mapping of feature combinations to device fingerprints,
to be set in property indicated by "export" -->
<variants export="ro.vendor.hw.variant" append="ro.vendor.product.device,ro.vendor.product.name,ro.product.device,ro.product.name">
<!-- ... same format as before ... -->
</variants>
<!-- SKUs describe mapping of feature combinations to factory SKUs,
to be set in property indicated by "export" -->
<skus export="ro.vendor.product.hardware.sku.variant">
<!-- ... same format as variants/products ... -->
<variant name="n">
<string name="dualsim">false</string>
</variant>
<variant name="dn">
<string name="dualsim">true</string>
</variant>
</skus>
</mappings>
</device>
<device name="jordan" version="1.1">
<!-- Features list variable hardware components for this device -->
<features>
<string-array name=".features">
<!-- RF banding -->
<item>radio</item>
<!-- RAM size -->
<item>ram</item>
<!-- Storage size -->
<item>storage</item>
<!-- Dual SIM function -->
<item>dualsim</item>
<!-- Front color -->
<item>frontcolor</item>
<!-- Fingerprint sensor -->
<item>fps</item>
<!-- Near Field Communication function -->
<item>nfc</item>
<!-- eCompass -->
<item>ecompass</item>
</string-array>
</features>
<!-- Attributes list allowed values for features -->
<attributes>
<string-array name=".attributes">
<!-- range is a comma-separated list of allowed string values -->
<item>.range</item>
<!-- cmdline items must be exported to kernel cmdline, with prefix given in the value -->
<item>.cmdline</item>
<!-- chosen items must be exported to kernel devtree, with prefix given in the value -->
<item>.chosen</item>
<!-- system items must be exported as system property, with prefix given in the value -->
<item>.system</item>
<!-- same format as before, plus new attribute ".auto" -->
<!-- auto indicates BL should auto-fill respective tag if it is empty -->
<!-- this can work either using "hwid", "hwprobe" or "uspace" method -->
<item>.auto</item>
</string-array>
</attributes>
<!-- Constraints describe interpretation of attributes, and may contain data to feed to BL -->
<constraints>
<!-- look up value by matching "hwid" table, combination with current device,
then parsing out field indicated by "index",
and then translating the field as prescribed by "map" -->
<string name="radio/.auto">key=hwid;index=2;map=1:VZW,2:ROW</string>
<string name="radio/.cmdline">androidboot.</string>
<string name="radio/.system">ro.vendor.hw.</string>
<string-array name="radio/.range">
<item>VZW</item>
<item>ROW</item>
</string-array>
<!-- use result of ram HW detection to fill the field -->
<string name="ram/.auto">key=hwprobe;index=__ram</string>
<string name="ram/.system">ro.vendor.hw.</string>
<string-array name="ram/.range">
<item>8GB</item>
<item>12GB</item>
</string-array>
<!-- use result of storage HW detection to fill the field -->
<string name="storage/.auto">key=hwprobe;index=__storage</string>
<string name="storage/.system">ro.vendor.hw.</string>
<string-array name="storage/.range">
<item>128GB</item>
<item>256GB</item>
</string-array>
<string name="dualsim/.auto">default=true</string>
<string name="dualsim/.system">ro.vendor.hw.</string>
<string-array name="dualsim/.range">
<item>true</item>
<item>false</item>
</string-array>
<!-- frontcolor has to be programmed explicitly -->
<string name="frontcolor/.system">ro.vendor.hw.</string>
<string-array name="frontcolor/.range">
<item>gray</item>
<item>red</item>
<item>other</item>
</string-array>
<string name="fps/.auto">default=true</string>
<string name="fps/.chosen">mmi,</string>
<string name="fps/.system">ro.vendor.hw.</string>
<string-array name="fps/.range">
<item>true</item>
<item>false</item>
</string-array>
<string name="ecompass/.auto">default=true</string>
<string name="ecompass/.chosen">mmi,</string>
<string name="ecompass/.system">ro.vendor.hw.</string>
<string-array name="ecompass/.range">
<item>true</item>
</string-array>
<string name="nfc/.auto">default=true</string>
<string name="nfc/.chosen">mmi,</string>
<string name="nfc/.system">ro.vendor.hw.</string>
<string-array name="nfc/.range">
<item>true</item>
</string-array>
</constraints>
<mappings>
<!-- Products describe mapping of feature combinations to marketing names,
to be set in property indicated by "export" -->
<products export="ro.vendor.product.display" default="motorola edge+">
</products>
</mappings>
</device>
<device name="banks" version="1.2">
<!-- Features list variable hardware components for this device -->
<features>
<string-array name=".features">
<!-- RF banding -->
<item>radio</item>
<!-- RAM size -->
<item>ram</item>
<!-- Storage size -->
<item>storage</item>
<!-- Dual SIM function -->
<item>dualsim</item>
<!-- Camera imager resolution -->
<item>imager</item>
<!-- Front color -->
<item>frontcolor</item>
<!-- Fingerprint sensor -->
<item>fps</item>
<!-- Near Field Communication function -->
<item>nfc</item>
<!-- eCompass -->
<item>ecompass</item>
<!-- Digital TV function -->
<item>dtv</item>
<!-- SKU variant -->
<item>sku_variant</item>
<!-- uwb -->
<item>uwb</item>
</string-array>
</features>
<!-- Attributes list allowed values for features -->
<attributes>
<string-array name=".attributes">
<!-- range is a comma-separated list of allowed string values -->
<item>.range</item>
<!-- cmdline items must be exported to kernel cmdline, with prefix given in the value -->
<item>.cmdline</item>
<!-- chosen items must be exported to kernel devtree, with prefix given in the value -->
<item>.chosen</item>
<!-- system items must be exported as system property, with prefix given in the value -->
<item>.system</item>
<!-- same format as before, plus new attribute ".auto" -->
<!-- auto indicates BL should auto-fill respective tag if it is empty -->
<!-- this can work either using "hwid", "hwprobe" or "uspace" method -->
<item>.auto</item>
</string-array>
</attributes>
<!-- Constraints describe interpretation of attributes, and may contain data to feed to BL -->
<constraints>
<!-- look up value by matching "hwid" table, combination with current device,
then parsing out field indicated by "index",
and then translating the field as prescribed by "map" -->
<string name="radio/.auto">key=hwid;index=2;map=1:NA,2:ROW,3:PRC</string>
<string name="radio/.cmdline">androidboot.</string>
<string name="radio/.system">ro.vendor.hw.</string>
<string-array name="radio/.range">
<item>NA</item>
<item>ROW</item>
<item>PRC</item>
</string-array>
<!-- use result of ram HW detection to fill the field -->
<string name="ram/.auto">key=hwprobe;index=__ram</string>
<string name="ram/.system">ro.vendor.hw.</string>
<string-array name="ram/.range">
<item>8GB</item>
</string-array>
<!-- use result of storage HW detection to fill the field -->
<string name="storage/.auto">key=hwprobe;index=__storage</string>
<string name="storage/.system">ro.vendor.hw.</string>
<string-array name="storage/.range">
<item>64GB</item>
<item>128GB</item>
</string-array>
<string name="dualsim/.cmdline">androidboot.</string>
<string name="dualsim/.auto">default=true</string>
<string name="dualsim/.system">ro.vendor.hw.</string>
<string-array name="dualsim/.range">
<item>true</item>
<item>false</item>
</string-array>
<string name="imager/.auto">default=12MP</string>
<string name="imager/.chosen">mmi,</string>
<string name="imager/.system">ro.vendor.hw.</string>
<string-array name="imager/.range">
<item>12MP</item>
</string-array>
<!-- frontcolor has to be programmed explicitly -->
<string name="frontcolor/.system">ro.vendor.hw.</string>
<string-array name="frontcolor/.range">
<item>mercury</item>
<item>tin</item>
<item>gold</item>
<item>other</item>
</string-array>
<string name="fps/.auto">default=true</string>
<string name="fps/.chosen">mmi,</string>
<string name="fps/.system">ro.vendor.hw.</string>
<string-array name="fps/.range">
<item>true</item>
</string-array>
<string name="ecompass/.auto">default=true</string>
<string name="ecompass/.chosen">mmi,</string>
<string name="ecompass/.system">ro.vendor.hw.</string>
<string-array name="ecompass/.range">
<item>true</item>
</string-array>
<string name="nfc/.auto">default=ese_nq</string>
<string name="nfc/.chosen">mmi,</string>
<string name="nfc/.system">ro.vendor.hw.</string>
<string-array name="nfc/.range">
<item>ese_nq</item>
</string-array>
<string name="dtv/.auto">default=false</string>
<string name="dtv/.chosen">mmi,</string>
<string name="dtv/.system">ro.vendor.hw.</string>
<string-array name="dtv/.range">
<item>false</item>
</string-array>
<string name="sku_variant/.cmdline">androidboot.</string>
<string-array name="sku_variant/.range">
<item>n</item>
</string-array>
<string name="uwb/.auto">default=true</string>
<string name="uwb/.chosen">mmi,</string>
<string name="uwb/.system">ro.vendor.hw.</string>
<string-array name="uwb/.range">
<item>true</item>
<item>false</item>
</string-array>
</constraints>
<mappings>
<!-- Variants describe mapping of feature combinations to device fingerprints,
to be set in property indicated by "export" -->
<variants export="ro.vendor.hw.variant">
</variants>
<!-- Products describe mapping of feature combinations to marketing names,
to be set in property indicated by "export" -->
<products export="ro.vendor.product.display" default="motorola razr (2021)">
</products>
<!-- SKUs describe mapping of feature combinations to factory SKUs,
to be set in property indicated by "export" -->
<skus export="ro.vendor.product.hardware.sku.variant" default="dn">
<!-- ... same format as before ... -->
<variant name="n">
<string name="dualsim">false</string>
<string name="nfc">ese_nq</string>
</variant>
<variant name="dn">
<string name="dualsim">true</string>
<string name="nfc">ese_nq</string>
</variant>
</skus>
</mappings>
</device>
<device name="berlna" version="1.3">
<!-- Features list variable hardware components for this device -->
<features>
<string-array name=".features">
<!-- RF banding -->
<item>radio</item>
<!-- RAM size -->
<item>ram</item>
<!-- Storage size -->
<item>storage</item>
<!-- Dual SIM function -->
<item>dualsim</item>
<!-- Front color -->
<item>frontcolor</item>
<!-- Fingerprint sensor -->
<item>fps</item>
<!-- Near Field Communication function -->
<item>nfc</item>
<!-- eCompass -->
<item>ecompass</item>
</string-array>
</features>
<!-- Attributes list allowed values for features -->
<attributes>
<string-array name=".attributes">
<!-- range is a comma-separated list of allowed string values -->
<item>.range</item>
<!-- cmdline items must be exported to kernel cmdline, with prefix given in the value -->
<item>.cmdline</item>
<!-- chosen items must be exported to kernel devtree, with prefix given in the value -->
<item>.chosen</item>
<!-- system items must be exported as system property, with prefix given in the value -->
<item>.system</item>
<!-- same format as before, plus new attribute ".auto" -->
<!-- auto indicates BL should auto-fill respective tag if it is empty -->
<!-- this can work either using "hwid", "hwprobe" or "uspace" method -->
<item>.auto</item>
</string-array>
</attributes>
<!-- Constraints describe interpretation of attributes, and may contain data to feed to BL -->
<constraints>
<!-- look up value by matching "hwid" table, combination with current device,
then parsing out field indicated by "index",
and then translating the field as prescribed by "map" -->
<string name="radio/.auto">key=hwid;index=2;map=1:VZW,2:NA,3:ROW</string>
<string name="radio/.cmdline">androidboot.</string>
<string name="radio/.system">ro.vendor.hw.</string>
<string-array name="radio/.range">
<item>VZW</item>
<item>NA</item>
<item>ROW</item>
</string-array>
<!-- use result of ram HW detection to fill the field -->
<string name="ram/.auto">key=hwprobe;index=__ram</string>
<string name="ram/.system">ro.vendor.hw.</string>
<string-array name="ram/.range">
<item>6GB</item>
<item>8GB</item>
</string-array>
<!-- use result of storage HW detection to fill the field -->
<string name="storage/.auto">key=hwprobe;index=__storage</string>
<string name="storage/.system">ro.vendor.hw.</string>
<string-array name="storage/.range">
<item>128GB</item>
<item>256GB</item>
</string-array>
<string name="dualsim/.auto">default=true</string>
<string name="dualsim/.system">ro.vendor.hw.</string>
<string-array name="dualsim/.range">
<item>true</item>
<item>false</item>
</string-array>
<!-- frontcolor has to be programmed explicitly -->
<string name="frontcolor/.system">ro.vendor.hw.</string>
<string-array name="frontcolor/.range">
<item>tromso</item>
<item>other</item>
</string-array>
<string name="fps/.auto">default=true</string>
<string name="fps/.chosen">mmi,</string>
<string name="fps/.system">ro.vendor.hw.</string>
<string-array name="fps/.range">
<item>true</item>
<item>false</item>
</string-array>
<string name="ecompass/.auto">default=true</string>
<string name="ecompass/.chosen">mmi,</string>
<string name="ecompass/.system">ro.vendor.hw.</string>
<string-array name="ecompass/.range">
<item>true</item>
</string-array>
<string name="nfc/.auto">default=st</string>
<string name="nfc/.chosen">mmi,</string>
<string name="nfc/.system">ro.vendor.hw.</string>
<string-array name="nfc/.range">
<item>st</item>
</string-array>
</constraints>
<mappings>
<!-- Products describe mapping of feature combinations to marketing names,
to be set in property indicated by "export" -->
<products export="ro.vendor.product.display" default="motorola edge (2021)">
</products>
<!-- Variants describe mapping of feature combinations to device fingerprints,
to be set in property indicated by "export" -->
<variants export="ro.vendor.hw.variant" append="ro.vendor.product.device,ro.vendor.product.name,ro.product.device,ro.product.name">
<!-- ... same format as before ... -->
</variants>
<!-- SKUs describe mapping of feature combinations to factory SKUs,
to be set in property indicated by "export" -->
<skus export="ro.vendor.product.hardware.sku.variant">
<!-- ... same format as variants/products ... -->
<variant name="n">
<string name="dualsim">false</string>
<string name="nfc">st</string>
</variant>
</skus>
</mappings>
</device>
<device name="berlin" version="1.4">
<!-- Features list variable hardware components for this device -->
<features>
<string-array name=".features">
<!-- RF banding -->
<item>radio</item>
<!-- RAM size -->
<item>ram</item>
<!-- Storage size -->
<item>storage</item>
<!-- Dual SIM function -->
<item>dualsim</item>
<!-- Front color -->
<item>frontcolor</item>
<!-- Fingerprint sensor -->
<item>fps</item>
<!-- Near Field Communication function -->
<item>nfc</item>
<!-- eCompass -->
<item>ecompass</item>
</string-array>
</features>
<!-- Attributes list allowed values for features -->
<attributes>
<string-array name=".attributes">
<!-- range is a comma-separated list of allowed string values -->
<item>.range</item>
<!-- cmdline items must be exported to kernel cmdline, with prefix given in the value -->
<item>.cmdline</item>
<!-- chosen items must be exported to kernel devtree, with prefix given in the value -->
<item>.chosen</item>
<!-- system items must be exported as system property, with prefix given in the value -->
<item>.system</item>
<!-- same format as before, plus new attribute ".auto" -->
<!-- auto indicates BL should auto-fill respective tag if it is empty -->
<!-- this can work either using "hwid", "hwprobe" or "uspace" method -->
<item>.auto</item>
</string-array>
</attributes>
<!-- Constraints describe interpretation of attributes, and may contain data to feed to BL -->
<constraints>
<!-- look up value by matching "hwid" table, combination with current device,
then parsing out field indicated by "index",
and then translating the field as prescribed by "map" -->
<string name="radio/.auto">key=hwid;index=2;map=1:VZW,2:NA,3:ROW</string>
<string name="radio/.cmdline">androidboot.</string>
<string name="radio/.system">ro.vendor.hw.</string>
<string-array name="radio/.range">
<item>VZW</item>
<item>NA</item>
<item>ROW</item>
</string-array>
<!-- use result of ram HW detection to fill the field -->
<string name="ram/.auto">key=hwprobe;index=__ram</string>
<string name="ram/.system">ro.vendor.hw.</string>
<string-array name="ram/.range">
<item>6GB</item>
<item>8GB</item>
</string-array>
<!-- use result of storage HW detection to fill the field -->
<string name="storage/.auto">key=hwprobe;index=__storage</string>
<string name="storage/.system">ro.vendor.hw.</string>
<string-array name="storage/.range">
<item>128GB</item>
<item>256GB</item>
</string-array>
<string name="dualsim/.auto">default=true</string>
<string name="dualsim/.system">ro.vendor.hw.</string>
<string-array name="dualsim/.range">
<item>true</item>
<item>false</item>
</string-array>
<!-- frontcolor has to be programmed explicitly -->
<string name="frontcolor/.system">ro.vendor.hw.</string>
<string-array name="frontcolor/.range">
<item>emerald</item>
<item>stout</item>
<item>white</item>
<item>other</item>
</string-array>
<string name="fps/.auto">default=true</string>
<string name="fps/.chosen">mmi,</string>
<string name="fps/.system">ro.vendor.hw.</string>
<string-array name="fps/.range">
<item>true</item>
<item>false</item>
</string-array>
<string name="ecompass/.auto">default=true</string>
<string name="ecompass/.chosen">mmi,</string>
<string name="ecompass/.system">ro.vendor.hw.</string>
<string-array name="ecompass/.range">
<item>true</item>
</string-array>
<string name="nfc/.auto">default=st</string>
<string name="nfc/.chosen">mmi,</string>
<string name="nfc/.system">ro.vendor.hw.</string>
<string-array name="nfc/.range">
<item>st</item>
</string-array>
</constraints>
<mappings>
<!-- Products describe mapping of feature combinations to marketing names,
to be set in property indicated by "export" -->
<products export="ro.vendor.product.display" default="motorola edge 20">
<product name="motorola edge &#x8f7b;&#x5962;&#x7248;">
<string name="ro.boot.carrier">ctcn</string>
</product>
</products>
<products-1 export="ro.vendor.product.display.plain_text" default="motorola edge 20">
<product name="motorola edge &#x8f7b;&#x5962;&#x7248;">
<string name="ro.boot.carrier">ctcn</string>
</product>
</products-1>
<!-- Variants describe mapping of feature combinations to device fingerprints,
to be set in property indicated by "export" -->
<variants export="ro.vendor.hw.variant" append="ro.vendor.product.device,ro.vendor.product.name,ro.product.device,ro.product.name">
<!-- ... same format as before ... -->
</variants>
<!-- SKUs describe mapping of feature combinations to factory SKUs,
to be set in property indicated by "export" -->
<skus export="ro.vendor.product.hardware.sku.variant">
<!-- ... same format as variants/products ... -->
<variant name="n">
<string name="dualsim">false</string>
<string name="nfc">st</string>
</variant>
<variant name="dn">
<string name="dualsim">true</string>
<string name="nfc">st</string>
</variant>
</skus>
</mappings>
</device>
<device name="xpeng" version="0.8">
<!-- Features list variable hardware components for this device -->
<features>
<string-array name=".features">
<!-- RF banding -->
<item>radio</item>
<!-- RAM size -->
<item>ram</item>
<!-- Storage size -->
<item>storage</item>
<!-- Dual SIM function -->
<item>dualsim</item>
<!-- Front color -->
<item>frontcolor</item>
<!-- Fingerprint sensor -->
<item>fps</item>
<!-- Near Field Communication function -->
<item>nfc</item>
<!-- eCompass -->
<item>ecompass</item>
<!-- Display port -->
<item>displayport</item>
</string-array>
</features>
<!-- Attributes list allowed values for features -->
<attributes>
<string-array name=".attributes">
<!-- range is a comma-separated list of allowed string values -->
<item>.range</item>
<!-- cmdline items must be exported to kernel cmdline, with prefix given in the value -->
<item>.cmdline</item>
<!-- chosen items must be exported to kernel devtree, with prefix given in the value -->
<item>.chosen</item>
<!-- system items must be exported as system property, with prefix given in the value -->
<item>.system</item>
<!-- same format as before, plus new attribute ".auto" -->
<!-- auto indicates BL should auto-fill respective tag if it is empty -->
<!-- this can work either using "hwid", "hwprobe" or "uspace" method -->
<item>.auto</item>
</string-array>
</attributes>
<!-- Constraints describe interpretation of attributes, and may contain data to feed to BL -->
<constraints>
<!-- look up value by matching "hwid" table, combination with current device,
then parsing out field indicated by "index",
and then translating the field as prescribed by "map" -->
<string name="radio/.auto">key=hwid;index=2;map=1:ROW,2:CHINA</string>
<string name="radio/.cmdline">androidboot.</string>
<string name="radio/.system">ro.vendor.hw.</string>
<string-array name="radio/.range">
<item>ROW</item>
<item>CHINA</item>
</string-array>
<!-- use result of ram HW detection to fill the field -->
<string name="ram/.auto">key=hwprobe;index=__ram</string>
<string name="ram/.system">ro.vendor.hw.</string>
<string-array name="ram/.range">
<item>6GB</item>
<item>8GB</item>
<item>12GB</item>
</string-array>
<!-- use result of storage HW detection to fill the field -->
<string name="storage/.auto">key=hwprobe;index=__storage</string>
<string name="storage/.system">ro.vendor.hw.</string>
<string-array name="storage/.range">
<item>128GB</item>
<item>256GB</item>
</string-array>
<string name="dualsim/.auto">default=true</string>
<string name="dualsim/.system">ro.vendor.hw.</string>
<string-array name="dualsim/.range">
<item>true</item>
<item>false</item>
</string-array>
<!-- frontcolor has to be programmed explicitly -->
<string name="frontcolor/.system">ro.vendor.hw.</string>
<string-array name="frontcolor/.range">
<item>MIRAGE</item>
<item>SEA ICE</item>
<item>other</item>
</string-array>
<string name="fps/.auto">default=true</string>
<string name="fps/.chosen">mmi,</string>
<string name="fps/.system">ro.vendor.hw.</string>
<string-array name="fps/.range">
<item>true</item>
<item>false</item>
</string-array>
<string name="ecompass/.auto">default=true</string>
<string name="ecompass/.chosen">mmi,</string>
<string name="ecompass/.system">ro.vendor.hw.</string>
<string-array name="ecompass/.range">
<item>true</item>
</string-array>
<string name="nfc/.auto">key=hwid;index=2;map=1:st,2:false</string>
<string name="nfc/.chosen">mmi,</string>
<string name="nfc/.system">ro.vendor.hw.</string>
<string-array name="nfc/.range">
<item>st</item>
<item>false</item>
</string-array>
<string name="displayport/.auto">default=true</string>
<string name="displayport/.system">ro.vendor.hw.</string>
<string name="displayport/.chosen">mmi,</string>
<string-array name="displayport/.range">
<item>true</item>
<item>false</item>
</string-array>
</constraints>
<mappings>
<!-- Variants describe mapping of feature combinations to device fingerprints,
to be set in property indicated by "export" -->
<variants export="ro.vendor.hw.variant" append="ro.vendor.product.device,ro.vendor.product.name,ro.product.device,ro.product.name">
<!-- ... same format as before ... -->
</variants>
<!-- SKUs describe mapping of feature combinations to factory SKUs,
to be set in property indicated by "export" -->
<skus export="ro.vendor.product.hardware.sku.variant">
<!-- ... same format as variants/products ... -->
<variant name="dn">
<string name="dualsim">true</string>
<string name="nfc">st</string>
</variant>
<variant name="n">
<string name="dualsim">false</string>
<string name="nfc">st</string>
</variant>
<variant name="d">
<string name="dualsim">true</string>
<string name="nfc">false</string>
</variant>
</skus>
</mappings>
</device>
<device name="tundra" version="0.5">
<!-- Features list variable hardware components for this device -->
<features>
<string-array name=".features">
<!-- RF banding -->
<item>radio</item>
<!-- RAM size -->
<item>ram</item>
<!-- Storage size -->
<item>storage</item>
<!-- Dual SIM function -->
<item>dualsim</item>
<!-- Front color -->
<item>frontcolor</item>
<!-- Fingerprint sensor -->
<item>fps</item>
<!-- Near Field Communication function -->
<item>nfc</item>
<!-- eCompass -->
<item>ecompass</item>
<!-- Display port -->
<item>displayport</item>
</string-array>
</features>
<!-- Attributes list allowed values for features -->
<attributes>
<string-array name=".attributes">
<!-- range is a comma-separated list of allowed string values -->
<item>.range</item>
<!-- cmdline items must be exported to kernel cmdline, with prefix given in the value -->
<item>.cmdline</item>
<!-- chosen items must be exported to kernel devtree, with prefix given in the value -->
<item>.chosen</item>
<!-- system items must be exported as system property, with prefix given in the value -->
<item>.system</item>
<!-- same format as before, plus new attribute ".auto" -->
<!-- auto indicates BL should auto-fill respective tag if it is empty -->
<!-- this can work either using "hwid", "hwprobe" or "uspace" method -->
<item>.auto</item>
</string-array>
</attributes>
<!-- Constraints describe interpretation of attributes, and may contain data to feed to BL -->
<constraints>
<!-- look up value by matching "hwid" table, combination with current device,
then parsing out field indicated by "index",
and then translating the field as prescribed by "map" -->
<string name="radio/.auto">key=hwid;index=2;map=1:ROW,2:CHINA</string>
<string name="radio/.cmdline">androidboot.</string>
<string name="radio/.system">ro.vendor.hw.</string>
<string-array name="radio/.range">
<item>ROW</item>
<item>CHINA</item>
</string-array>
<!-- use result of ram HW detection to fill the field -->
<string name="ram/.auto">key=hwprobe;index=__ram</string>
<string name="ram/.system">ro.vendor.hw.</string>
<string-array name="ram/.range">
<item>6GB</item>
<item>8GB</item>
<item>12GB</item>
</string-array>
<!-- use result of storage HW detection to fill the field -->
<string name="storage/.auto">key=hwprobe;index=__storage</string>
<string name="storage/.system">ro.vendor.hw.</string>
<string-array name="storage/.range">
<item>128GB</item>
<item>256GB</item>
<item>512GB</item>
</string-array>
<string name="dualsim/.auto">default=true</string>
<string name="dualsim/.system">ro.vendor.hw.</string>
<string-array name="dualsim/.range">
<item>true</item>
<item>false</item>
</string-array>
<!-- frontcolor has to be programmed explicitly -->
<string name="frontcolor/.system">ro.vendor.hw.</string>
<string-array name="frontcolor/.range">
<item>barberry</item>
<item>other</item>
</string-array>
<string name="fps/.auto">default=true</string>
<string name="fps/.chosen">mmi,</string>
<string name="fps/.system">ro.vendor.hw.</string>
<string-array name="fps/.range">
<item>true</item>
<item>false</item>
</string-array>
<string name="ecompass/.auto">default=true</string>
<string name="ecompass/.chosen">mmi,</string>
<string name="ecompass/.system">ro.vendor.hw.</string>
<string-array name="ecompass/.range">
<item>true</item>
</string-array>
<string name="nfc/.auto">key=hwid;index=2;map=1:nq,2:ese_nq</string>
<string name="nfc/.chosen">mmi,</string>
<string name="nfc/.system">ro.vendor.hw.</string>
<string-array name="nfc/.range">
<item>ese_nq</item>
<item>nq</item>
<item>false</item>
</string-array>
<string name="displayport/.auto">default=true</string>
<string name="displayport/.system">ro.vendor.hw.</string>
<string name="displayport/.chosen">mmi,</string>
<string-array name="displayport/.range">
<item>true</item>
<item>false</item>
</string-array>
</constraints>
<mappings>
<!-- Variants describe mapping of feature combinations to device fingerprints,
to be set in property indicated by "export" -->
<variants export="ro.vendor.hw.variant" append="ro.vendor.product.device,ro.vendor.product.name,ro.product.device,ro.product.name">
<!-- ... same format as before ... -->
</variants>
<!-- SKUs describe mapping of feature combinations to factory SKUs,
to be set in property indicated by "export" -->
<skus export="ro.vendor.product.hardware.sku.variant">
<!-- ... same format as variants/products ... -->
<variant name="dn">
<string name="dualsim">true</string>
<string name="nfc">nq</string>
</variant>
<variant name="n">
<string name="dualsim">false</string>
<string name="nfc">nq</string>
</variant>
<variant name="de">
<string name="dualsim">true</string>
<string name="nfc">ese_nq</string>
</variant>
<variant name="e">
<string name="dualsim">false</string>
<string name="nfc">ese_nq</string>
</variant>
</skus>
</mappings>
</device>
</validation>