ANDROID: wakeupbypass: Add vendor hook for batteryswap
Implemented a hook to check if battery swap is enabled in alarm timer suspend routine. During a battery swap, it is crucial to ensure that the device remains in a suspended state, relying on a limited backup power source. It is essential to prevent any unintended awakenings in this state, as they could potentially lead to sudden surges in the power consumption, ultimately resulting in a device shutdown. Hence, we disable alarmtimer IRQs when in batteryswap mode. Bug: 290881352 Bug: 292547215 Respin Bug: b/292547215 Change-Id: I31dc30d9a3168bb1356cccba49f0a70fd6b73782 Signed-off-by:Vatsal Parasrampuria <vp9924@zebra.com> (cherry picked from commit b4b7d228)
Loading
Please sign in to comment