From 6b9bb2f47fc7a240b9c2cd5ea956b9cbfabf605c Mon Sep 17 00:00:00 2001 From: Ulises Mendez Martinez Date: Wed, 18 Dec 2024 15:01:38 +0000 Subject: [PATCH] ANDROID: Return a sorted list of protected modules * This makes sure the list remains sorted even after adding Kunit modules. Bug: 384899318 Fixes: 3694d8feac12 ("ANDROID: Add protected modules list") Change-Id: Icb92504b48433eab1e83c1b34145af0cdbe46f41 Signed-off-by: Ulises Mendez Martinez --- modules.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules.bzl b/modules.bzl index e772f156124f..5e613e7e78b2 100644 --- a/modules.bzl +++ b/modules.bzl @@ -208,4 +208,4 @@ def get_gki_protected_modules_list(arch = None): all_gki_modules = get_gki_modules_list(arch) + get_kunit_modules_list(arch) unprotected_modules = _COMMON_UNPROTECTED_MODULES_LIST protected_modules = [mod for mod in all_gki_modules if mod not in unprotected_modules] - return protected_modules + return sorted(protected_modules)