Masquerade is Substratum's background service that runs functions that should run on a completely separate thread. This alleviates the stress on the main app and allows for Substratum to run more smoothly.
How to add to ROM builds
If you are a ROM developer, by now you should know how to track new packages while building your ROM. However, if you don't - please follow these steps:
Add "masquerade" under PRODUCT_PACKAGES in "vendor/config/common.mk"
PRODUCT_PACKAGES += \ ...\ ...\ ...\ masquerade
Add the project path in "platform_manifest/default.xml"
<project path="packages/apps/masquerade" name="TeamSubstratum/masquerade" remote="github" revision="master" />
An example is found here: