Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e5a2ab7 authored by Brian Duddie's avatar Brian Duddie
Browse files

ContextHubService: Pass on query requests

Forward requests for the list of loaded apps to the HAL rather than
dropping them.

Bug: 37254981
Test: run CHQTS
Change-Id: I728fbb5aa1a49efe76bd2b49623bb1e60e21121c
parent d88676f3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1129,6 +1129,8 @@ jint nativeSendMessage(JNIEnv *env,
        if (appInstanceHandle == OS_APP_ID) {
            if (msgType == CONTEXT_HUB_LOAD_APP) {
                result = sendLoadNanoAppRequest(hubId, data, dataBufferLength);
            } else if (msgType == CONTEXT_HUB_QUERY_APPS) {
                result = db.hubInfo.contextHub->queryApps(hubId);
            } else {
                ALOGD("Dropping OS addresses message of type - %" PRIu32, msgType);
                result = Result::BAD_PARAMS;