use <add-resource> to add

Another error during a build. I’ve covered this before, using a different technique to remove that line. This time I really want the line to stay and work, so let’s take a look at the error:

[CODE]
device/samsung/tblte-common/overlay/frameworks/base/core/res/res/values/config.xml:424: error: Resource does not already exist in overlay at ‘config_deviceHardwareWakeKeys’; use <add-resource> to add.
[/CODE]

So, I opened device/samsung/tblte-common/overlay/frameworks/base/core/res/res/values/config.xml, and changed this:

[CODE]
<!– Hardware keys present on the device with the ability to wake, stored as a bit field.
This integer should equal the sum of the corresponding value for each
of the following keys present:
1 – Home
2 – Back
4 – Menu
8 – Assistant (search)
16 – App switch
32 – Camera
64 – Volume rocker
For example, a device with Home, Back and Menu keys would set this
config to 7. –>
<integer name =”config_deviceHardwareWakeKeys”>65</integer>
[/CODE]

To this:

[CODE]
<!– Hardware keys present on the device with the ability to wake, stored as a bit field.
This integer should equal the sum of the corresponding value for each
of the following keys present:
1 – Home
2 – Back
4 – Menu
8 – Assistant (search)
16 – App switch
32 – Camera
64 – Volume rocker
For example, a device with Home, Back and Menu keys would set this
config to 7. –>
<add-resource type=”integer” name=”config_deviceHardwareWakeKeys”>65</add-resource>
[/CODE]

Notice that it now has a tag to add that resource, since it did not exist already. This did clear up the error. The vote is still out if that method was an acceptable fix.

Linux – keep it simple.

5 Replies to “use add-resource to add”

Leave a Reply

Your email address will not be published. Required fields are marked *