Is there any way to access aidl-based HAL service from some platform service without using hidden API so that the service can be placed into product partition? I currently use below way (from link) to connect to HAL, it works, but the service can only be built into system partition (because ServiceManager is hidden class):
var binder = ServiceManager.waitForDeclaredService(HAL_SERVICE_NAME)
var hal = IMyHal.Stub.asInterface(binder)