Merge changes Iccfe3bd4,I6380245b,I20d9f2fe

* changes:
  adb: Remove most C-style allocations
  adb: Modernize the service creation
  adb: Preserve the original mount flags when remounting