commit | 6891900af59bfb773b281fc651968417a157fb1e | [log] [tgz] |
---|---|---|
author | ykhung <ykhung@google.com> | Wed Nov 29 11:09:10 2023 +0800 |
committer | ykhung <ykhung@google.com> | Wed Nov 29 16:59:17 2023 +0800 |
tree | aaafb46e0395d43a78df29ea65df738efcc04e60 | |
parent | 4b2a0526284c3e0433f063af490b0fff14ce26d9 [diff] |
Protect failed setUidPolicy() and avoid storing invalid UIDs Add protection for the setUidPolicy() failed case to avoid invalid UIDs to crash the caller process, and avoid storing the invalid UIDs to SharedPreferences if it is failed to setUidPolicy() Bug: 306329984 Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.fuelgauge" Change-Id: I5c14434708b82ba3c238c2338d47085c2ce244e0