From 5c78ae3d1d511a8cccf2165b237b479db4fead9f Mon Sep 17 00:00:00 2001 From: Ashutosh Joshi Date: Wed, 1 Mar 2017 15:15:23 -0800 Subject: [PATCH] Pass on the Apps Query Response to clients. Keep the message interface for backwards compatibility. Bug: 35170375 Test: Verify that clients receive the query apps response. Change-Id: I689ce0086e2122068471b7df79107d38e53e8dcf --- .../core/jni/com_android_server_location_ContextHubService.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/core/jni/com_android_server_location_ContextHubService.cpp b/services/core/jni/com_android_server_location_ContextHubService.cpp index 27d2b6d66aec3..c976fe55a922a 100644 --- a/services/core/jni/com_android_server_location_ContextHubService.cpp +++ b/services/core/jni/com_android_server_location_ContextHubService.cpp @@ -331,7 +331,9 @@ struct ContextHubServiceCallback : IContexthubCallback { virtual Return handleAppsInfo( const android::hardware::hidl_vec& apps) { + TransactionResult result = TransactionResult::SUCCESS; handleQueryAppsResponse(apps,mContextHubId); + passOnOsResponse(mContextHubId, CONTEXT_HUB_QUERY_APPS, result, nullptr, 0); return android::hardware::Void(); }