diff options
| author | 2025-01-08 07:14:20 -0800 | |
|---|---|---|
| committer | 2025-01-08 09:11:40 -0800 | |
| commit | 2bc155dedd1ce8c1d281d6e18d07452a98ee1832 (patch) | |
| tree | 670008d099874d6c6e6f07bf62b6e674fe08c749 /libs/androidfw/Util.cpp | |
| parent | 086613e083b54b51c534ae3562432f34980b3fb7 (diff) | |
LocationFudger: Avoid division by zero
Following internal discussions, this CL removes a rarely-occuring bug.
At latitudes -+90°, cos() is 0, leading to a division by zero.
This exception happens only if the device location (plus offset) is exactly at the North or South pole, so I assume it never happened in practice.
Change-Id: I6e91791e1b7e87ed88e48cff13a0af9b3a680908
Test: atest FrameworksMockingServicesTests:LocationFudgerTest
Bug: 388189593
Flag: EXEMPT Bug Fix
Diffstat (limited to 'libs/androidfw/Util.cpp')
0 files changed, 0 insertions, 0 deletions