Merge changes I81c799e9,Ifa66f25c

* changes:
  Migrate from aidl to manual implementation
  Add a helper function to get service runtime