To use this template, the key differences from the CyanogenMod template are these two things:
Please make sure in AndroidManifest.xml (HeaderPackTemplate/theme/src/main/AndroidManifest.xml) of your theme, you REMOVE all other use-features for "cyanogenmod.theme", and replace it with this line.
<uses-feature android:name="org.cyanogenmod.theme.extensions" android:required="true"/>
Finally, please make sure that your theme's "res/values" folder (not under assets), you have added this to a strings.xml. In the sample APK above, I have named them "headers_whitelist.xml" (HeaderPackTemplate/theme/src/main/res/values/headers_whitelist.xml)
<string-array name="theme_component_whitelist">
<item>headers</item>
</string-array>
These two changes will allow for Play Store to filter your Header APK to distribute ONLY to ROMs with these specific commits...
(Please make sure that you have these 4 commits merged in your target rom to allow it to be VISIBLE on ROMs other than DU from Play Store!)
https://github.com/DirtyUnicorns/android_vendor_du/commit/b8781a263608eb6da2950de047724f29a1898db1