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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user