Don't allow modification to the AIDL interfaces when SDK is finalized

When the SDK is finalized, modification (including backward compatible
changes) to the AIDL interfaces is prohibited.

Modification can only be made in the non-finalized branch, e.g. master,
by introducing a new version.

Bug: 130011602
Test: manual
Set PLATFORM_VERSION_CODENAME to REL and `m netd_aidl_interface-cpp`
Fails with following error.
Check equality of out/soong/.intermediates/system/netd/server/netd_aidl_interface-api/dump and system/netd/server/binder/api/1
FAILED: out/soong/.intermediates/system/netd/server/netd_aidl_interface-api/checkapi_dump.timestamp
diff -r system/netd/server/binder/api/1 out/soong/.intermediates/system/netd/server/netd_aidl_interface-api/dump && touch out/soong/.intermediates/system/netd/server/netd_aidl_interface-api/checkapi_dump.timestamp
diff -r system/netd/server/binder/api/1/android/net/INetd.aidl out/soong/.intermediates/system/netd/server/netd_aidl_interface-api/dump/android/net/INetd.aidl
92a93,96
>   void firewallAddUidInterfaceRules(in @utf8InCpp String ifName, in int[] uids);
>   void firewallRemoveUidInterfaceRules(in int[] uids);
>   void trafficSwapActiveStatsMap();

Change-Id: I6229e6e6d19153564939e9fb9ea19a1177c2279c
1 file changed