What .driver-metadata file is used in Android Things?

I noticed on Android Things contrib-drivers repo several of these .driver-metadata files (one in each folder with different drivers). Does anyone know what they are for?

Example: https://github.com/androidthings/contrib-drivers/blob/master/rainbowhat/.driver-metadata

Thanks!

+5
source share
1 answer

Perhaps Google is using a tool to automatically create a table of available drivers in its README repository.

You can see from this commit: https://github.com/androidthings/contrib-drivers/commit/194d09e8f4f0e0d5f8e0eef78ea26bdc8fa4fb5a

For each driver to create a type from the .driver-metadata file:

TYPE="RGB LED strip"

corresponds to the type column in the README table:

| RGB LED strip |

In addition, if a .driver-metadata has a different key, the value sample , this is also in the table (and if not, then there is no link to the sample).

This will mean (google side), if the driver has been added / updated, you will receive automatic updates elsewhere.

This is just theoretical, you need Googler to confirm :-)

+2
source

Source: https://habr.com/ru/post/1262614/


All Articles