Don't use apexd when TARGET_FLATTEN_APEX == true

When TARGET_FLATTEN_APEX is true, apexd is not used to activate the
built-in flattened APEXes. Init simply bind-mounts /system/apex to
/apex.

When apexd is invoked for the flattened APEX (ro.apex.updatable is not
set or set to false), apexd just returns immediately without doing
anything but marking apexd as ready to let init to proceed without
waiting apexd.

Also, the 'critical' attribute is removed from apexd service, since
now apexd is now expected to exit. Otherwise, init will detect the exit
of apexd as crash and will refuse to boot.

Bug: 132413565
Test: marlin is bootable
Merged-In: I7d1e45b6d4c6d6594ce10817f5c5f139f10ac27f
Change-Id: I7d1e45b6d4c6d6594ce10817f5c5f139f10ac27f
(cherry picked from commit c47a88d64b87d65072b794a9514f9a0565308c37)
2 files changed
tree: 7a500b2d68aa128c63a35ef0acb64b07c36890f1
  1. apexd/
  2. apexer/
  3. docs/
  4. proto/
  5. shim/
  6. tests/
  7. CleanSpec.mk
  8. OWNERS
  9. PREUPLOAD.cfg