commit | 10163d0dd25d637ac91f91cb8138d7dce07503fb | [log] [tgz] |
---|---|---|
author | Greg Kaiser <gkaiser@google.com> | Fri Aug 19 10:31:58 2016 -0700 |
committer | Greg Kaiser <gkaiser@google.com> | Fri Aug 19 10:31:58 2016 -0700 |
tree | 6c18d00470edde0932be4fb7d5123e098072bdba | |
parent | fe6d4f518a34aa620eda9fe36365c2f750e6c67f [diff] |
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
diff --git a/core/jni/android_hardware_location_ContextHubService.cpp b/core/jni/android_hardware_location_ContextHubService.cpp index 62608cd..d0c66a3 100644 --- a/core/jni/android_hardware_location_ContextHubService.cpp +++ b/core/jni/android_hardware_location_ContextHubService.cpp
@@ -305,7 +305,7 @@ 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);