Set correct uid when loading app icon in data usage UI.

work profile apps belongs to a different user. Set the correct uid when
loading the icon so the work profile badge is displayed.

Change-Id: I2ed27d6b83c1b42961500dc8d63475bf1f7eabcd
Fix: 38372681
Test: make RunSettingsRoboTests
This commit is contained in:
Fan Zhang
2017-05-24 16:04:23 -07:00
parent 07894014d5
commit 17d63964c7
4 changed files with 66 additions and 7 deletions

View File

@@ -111,4 +111,6 @@ public interface PackageManagerWrapper {
*/
void deletePackageAsUser(String packageName, IPackageDeleteObserver observer, int flags,
int userId);
int getPackageUidAsUser(String pkg, int userId) throws PackageManager.NameNotFoundException;
}