IWifiChip.hal build error

481 views
Skip to first unread message

Abhilasha Dewangan

unread,
Jun 19, 2020, 11:29:15 AM6/19/20
to android-platform
Hi all,

I want to add a new argument to be passed from HalDeviceManager.java(framework layer) to 
/hardware/interfaces/wifi/1.0/IWifiChip.Hal for below API :

configureChip(ChipModeId modeId) generates (WifiStatus status);

But I get below error on compilation :

ERROR: android.hardware.wifi@1.3::IWifi has hash 95e9decbf7889805efcfadc45891d9352d493aca5461c351ca191ea49c8a737f which does not match hash on record. This interface has been frozen. Do not change it!

WARNING: Skipping android.hardware.wifi@1.3::IWifiStaIface because it could not be found or parsed or android.hardware.wifi@1.3 doesn't pass all requirements.


How does compiler know about the new argument added? How can I add new methods or arguments in HAL layer then ?


Thanks in advance,

Abhilasha

Vignesh Murugappan

unread,
Jun 22, 2020, 11:15:54 AM6/22/20
to android-platform
Hi Abhilasha,

Basically, Android will not allow us to change AOSP's hidl interfaces, we have to extend the HIDL to vendor partition to do our local changes. If you really want to do change in AOSP path (/hardware/interfaces/wifi/1.0/IWifiChip.hal), then you have to remove the recorded hash entry for android.hardware.wifi@1.3::IWifi in /hardware/interfaces/current.txt before building your change. Please experiment the same and let us know.

Thanks,
Vignesh.

Abhilasha Dewangan

unread,
Jun 24, 2020, 1:08:13 PM6/24/20
to android-platform
Thanks a lot for your response.
I will do the experiment and let you know.

Regards,
Abhilasha


On Friday, 19 June 2020 20:59:15 UTC+5:30, Abhilasha Dewangan wrote:
Reply all
Reply to author
Forward
0 new messages