Apexd: Refactor apexd.cc

Create a header and factor out the main function. No functional
change, in preparation to make the service call the main file.

Test: mmma system/apex/apexd
Test: pushd system/apex/apexd ; atest ; popd
Change-Id: Ib0ed40a5f1af6dbb11267ddc3aa87c5db522f1f9
4 files changed
tree: 34d29bc156cd20f0c1a7c05485f1eb3eefd87075
  1. apexd/
  2. apexer/
  3. testdata/
  4. Android.bp
  5. OWNERS
  6. PREUPLOAD.cfg