Merge "Increase the max process count supported by BatteryStats" into main

This commit is contained in:
Dmitri Plotnikov
2023-07-06 19:33:05 +00:00
committed by Android (Google) Code Review

View File

@@ -16246,7 +16246,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++) {