Add device side mainline module detection

Bug: 142286159
Test: make sts
Test: make cts/apps/MainlineModuleDetector
Test: install MainlineModule Detector and trigger intent
Test: make cts
Test: run cts with the detection logic temporarily applied
Change-Id: Ib0cd61b007274a7ab18ac0be035c1e9a332392bd
6 files changed