OSDN Git Service

Hide app if it shares uid with whitelisted app
authorLei Yu <jackqdyulei@google.com>
Thu, 5 Apr 2018 20:38:58 +0000 (13:38 -0700)
committerLei Yu <jackqdyulei@google.com>
Thu, 5 Apr 2018 22:13:07 +0000 (15:13 -0700)
commitf82d22afbb7f1daf1a2291577045a5d76db597eb
treebf1010bd375acd93deddf1cba8a4ab8456f80067
parentcf60ff7e08e4f10e653210bcd4105156bcca86ff
Hide app if it shares uid with whitelisted app

Statsd blame app based on uid, which may mapping to multiple packages.
If there is one app in whitelist, then we shouldn't blame other apps
in anomaly detection.

Change-Id: Ib546e207eb113cef9ef5fecb1138e61558e9cf55
Fixes: 77560853
Test: RunSettingsRoboTests
src/com/android/settings/fuelgauge/batterytip/AnomalyDetectionJobService.java
tests/robotests/src/com/android/settings/fuelgauge/batterytip/AnomalyDetectionJobServiceTest.java