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:
Steven Moreland
2022-04-04 22:11:35 +00:00
committed by Ray Chi
parent b09d68a2ea
commit e91347a53b

View File

@@ -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;
}
}
}