Rewrite Masquerade for UID system ops [1/3]

Allow Substratum to offload a handful of functions
to system to support rootless operation

Credit @Surge1223 for cleaning up restartUI function
https://github.com/VelvetProject/packages_apps_masquerade/commit/3484db3dda1e7bf7e3f6fda049b903968f1506e7

Change-Id: I84edf02a4e154472940b9620b926f5ae1490c1a4
14 files changed
tree: 44882e38048b03d5acd7cca1c7cd3cec7d285247
  1. app/
  2. gradle/
  3. .gitignore
  4. .travis.yml
  5. Android.mk
  6. build.gradle
  7. gradle.properties
  8. gradlew
  9. gradlew.bat
  10. LICENSE.txt
  11. projekt.substratum.theme.xml
  12. README.md
  13. settings.gradle
README.md

masquerade

Build Status

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:

platform_manifest/default.xml: https://github.com/TipsyOs/platform_manifest/commit/fbff9ea598ec04f4f4a69687a8024770fefa83de

vendor_tipsy/config/common.mk: https://github.com/TipsyOs/vendor_tipsy/commit/2e72dc4eb3a206fad34e9c4f130e270180eab1c2