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

Commit ff46eb66 authored by Steven Moreland's avatar Steven Moreland
Browse files

Implement getInterfaceHash/Version (CHRE)

As these interfaces get frozen, java services
implementing the interfaces are required to implement getInterfaceHash
and getInterfaceVersion [1]

[1]
https://source.android.com/devices/architecture/aidl/stable-aidl#new-meta-interface-methods

Bug: 190577319
Test: m
Change-Id: I009330ca16d68593f26785e81afb11d7752b0c20
parent df1fa99b
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -389,6 +389,15 @@ public abstract class IContextHubWrapper {
                    mCallback.handleTransactionResult(transactionId, success);
                });
            }
            @Override
            public String getInterfaceHash() {
                return android.hardware.contexthub.IContextHubCallback.HASH;
            }

            @Override
            public int getInterfaceVersion() {
                return android.hardware.contexthub.IContextHubCallback.VERSION;
            }
        }

        ContextHubWrapperAidl(android.hardware.contexthub.IContextHub hub) {