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

Commit 46c12147 authored by Jiyong Park's avatar Jiyong Park
Browse files

Implement getInterfaceHash/Version for SoundTrigger

As the soundtrigger AIDL interface gets frozen for TM, java services
implementing the interface are required to implement getInterfaceHash
and getInterfaceVersion [1].

[1]
https://source.android.com/devices/architecture/aidl/stable-aidl#new-meta-interface-methods

Bug: 225941299
Test: m
Change-Id: I71f27131d2619cea2ae10a53c01ca883a459d159
parent bb73ba4e
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -357,5 +357,15 @@ public class SthalCli {
            config.base.sampleRate = 16000;
            return config;
        }

        @Override
        public int getInterfaceVersion() {
            return ISoundTriggerHw.VERSION;
        }

        @Override
        public String getInterfaceHash() {
            return ISoundTriggerHw.HASH;
        }
    }
}