From 10163d0dd25d637ac91f91cb8138d7dce07503fb Mon Sep 17 00:00:00 2001 From: Greg Kaiser Date: Fri, 19 Aug 2016 10:31:58 -0700 Subject: [PATCH] ContextHubService: Fix app query We now ask for the appId the user requested, instead of asking for no apps (asking for NANOAPP_VENDOR_ALL_APPS without pairing it with any vendors results in no apps). Bug: 30829899 Change-Id: I896af60814d55c7f8cb298c9142212bac5b06995 --- core/jni/android_hardware_location_ContextHubService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/jni/android_hardware_location_ContextHubService.cpp b/core/jni/android_hardware_location_ContextHubService.cpp index 62608cd199ca..d0c66a38ae4f 100644 --- a/core/jni/android_hardware_location_ContextHubService.cpp +++ b/core/jni/android_hardware_location_ContextHubService.cpp @@ -305,7 +305,7 @@ static void query_hub_for_apps(uint64_t appId, uint32_t hubHandle) { hub_message_t msg; query_apps_request_t queryMsg; - queryMsg.app_name.id = NANOAPP_VENDOR_ALL_APPS; + queryMsg.app_name.id = appId; msg.message_type = CONTEXT_HUB_QUERY_APPS; msg.message_len = sizeof(queryMsg); -- 2.11.0