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

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

Implement getInterfaceHash/Version (health)

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
Merged-In: I01dda85890dae59082067e4b38c0f50d493cd22d
Change-Id: I01dda85890dae59082067e4b38c0f50d493cd22d
parent d7013fb9
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -115,5 +115,13 @@ public class HealthRegCallbackAidl {
        public void healthInfoChanged(HealthInfo healthInfo) throws RemoteException {
            mServiceInfoCallback.update(healthInfo);
        }
        @Override
        public String getInterfaceHash() {
            return IHealthInfoCallback.HASH;
        }
        @Override
        public int getInterfaceVersion() {
            return IHealthInfoCallback.VERSION;
        }
    }
}