Implement getInterfaceHash/Version (USB)
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: I00ced32a26fd1af7bc8cc23749d92ae90d5a5a0f
Merged-In: I00ced32a26fd1af7bc8cc23749d92ae90d5a5a0f
(cherry picked from commit 1b46333208)
This commit is contained in:
@@ -462,5 +462,15 @@ public final class UsbPortAidl implements UsbPortHal {
|
||||
+ operationID + " failed. err:" + retval);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInterfaceHash() {
|
||||
return IUsbCallback.HASH;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getInterfaceVersion() {
|
||||
return IUsbCallback.VERSION;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user