Apexd: Add RAII wrapper for device-mapper entry

Wrap release/free of device-mapper device in an RAII type.

Test: mmma system/apex/apexd
Test: adb push system/apex/apexd/apexd_testdata/test.apex /data/local/tmp && adb shell 'setenforce 0 ; cmd apexservice installPackage /data/local/tmp/test.apex && cmd apexservice mountPackage /data/apex/com.android.example.apex@1.apex'
Change-Id: I50f794d5b4a37d95ca511d2406e640c0345d677d
1 file changed
tree: 62588eadc463fa0ec8be63790d52623b0fdb624a
  1. apexd/
  2. apexer/
  3. testdata/
  4. Android.bp
  5. OWNERS
  6. PREUPLOAD.cfg