Separate OTA data usage from SYSTEM_UID.
Prior to this CL, Process.OTA_UPDATE_UID was included with SYSTEM_UID for the purposes of per-app data usage in the DataUsageList. With this change, it is now separated into its own category. This change also deletes the duplicate ic_system_update* icons and moves the one implementation into SettingsLib. Fixes: 70640191 Test: manually verified locally that there is an item in the list with the proper title. Required setting up a custom OTA for my test device. Change-Id: Iecc45648f68a12c9f8e2370577ab017863e7fcb2
This commit is contained in:
committed by
Doris Ling
parent
7d257171dc
commit
5efb70ac18
@@ -33,6 +33,7 @@ import android.net.ConnectivityManager;
|
||||
import android.net.NetworkPolicy;
|
||||
import android.net.NetworkTemplate;
|
||||
import android.os.Bundle;
|
||||
import android.os.Process;
|
||||
import android.os.UserHandle;
|
||||
import android.os.UserManager;
|
||||
import android.provider.Settings;
|
||||
@@ -362,7 +363,8 @@ public class DataUsageList extends DataUsageBaseFragment {
|
||||
category = AppItem.CATEGORY_USER;
|
||||
}
|
||||
}
|
||||
} else if (uid == UID_REMOVED || uid == UID_TETHERING) {
|
||||
} else if (uid == UID_REMOVED || uid == UID_TETHERING
|
||||
|| uid == Process.OTA_UPDATE_UID) {
|
||||
collapseKey = uid;
|
||||
category = AppItem.CATEGORY_APP;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user