From ab25580a978be3ee814ef84cfe8a45c7218452f7 Mon Sep 17 00:00:00 2001 From: Trey Moen Date: Thu, 4 Sep 2025 19:02:49 -0700 Subject: [PATCH] validations --- system/athena/athenad.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/system/athena/athenad.py b/system/athena/athenad.py index 43710905a6..94ca0be618 100755 --- a/system/athena/athenad.py +++ b/system/athena/athenad.py @@ -567,12 +567,18 @@ def getEsimProfiles(): @dispatcher.add_method def downloadEsimProfile(lpa_activation_code: str, profile_name: str): - HARDWARE.get_sim_lpa().download_profile(lpa_activation_code, profile_name) + lpa = HARDWARE.get_sim_lpa() + lpa.validate_lpa_activation_code(lpa_activation_code) + lpa.validate_nickname(profile_name) + lpa.download_profile(lpa_activation_code, profile_name) @dispatcher.add_method def setEsimProfile(iccid: str): - HARDWARE.get_sim_lpa().switch_profile(iccid) + lpa = HARDWARE.get_sim_lpa() + lpa.validate_iccid(iccid) + lpa.validate_profile_exists(iccid) + lpa.switch_profile(iccid) HARDWARE.reboot_modem()