Detecting whether the battery saving mode is enabled can be a challenge especially on Huawei devices. This question is a follow up question to this solution:
isPowerSaveMode() always returns false for Huawei devices
The solution leads to an exception for HUAWEI P30 (and other) devices because the suggested setting name can not be found. How can the power saving mode be detected on these devices?