Add developer options check for Traceur services
This change adds a check for enabled developer options in TraceService
and StopTraceService before handling any intents. It also modifies
StopTraceService so that it only passes an intent to TraceService if the
intent is related to stopping traces.
Bug: 204992293
Test: Manually verified that:
- Developer options must be enabled to stop/start a trace.
- 3rd party apps cannot send an intent to StopTraceService to
start a trace.
- Ongoing traces are stopped if developer options are disabled.
Change-Id: I3dbe42221964438f7102f4468208e37d7dd1d51b
3 files changed