Merge "Increase the max process count supported by BatteryStats" into udc-d1-dev

This commit is contained in:
Dmitri Plotnikov
2023-07-18 00:08:09 +00:00
committed by Android (Google) Code Review

View File

@@ -16244,7 +16244,7 @@ public class BatteryStatsImpl extends BatteryStats {
}
NP = in.readInt();
if (NP > 1000) {
if (NP > 10000) {
throw new ParcelFormatException("File corrupt: too many processes " + NP);
}
for (int ip = 0; ip < NP; ip++) {