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
This commit is contained in:
Steven Moreland
2022-04-04 22:08:37 +00:00
parent df1fa99b01
commit ff46eb6627

View File

@@ -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) {