Use ParceledListSlice to paginate response from getPackagesForOpsForDevice binder API
In a previous similar security bug fix ag/31434165 we imposed a threshold on the number of attributed op entries returned for a single package. But in this bug, the POC app created attributed op entries for hundreds of packages which caused TransactionTooLargeException in getPackagesForOpsForDevice binder API. So the fix is to add pagination in the binder response by using ParceledListSlice. Bug: 416490321 Test: Use the POC app in the bug report, verified after the fix there was no more crashes from SystemUi and the device could boot successfully. Flag: EXEMPT security bug fix (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2c637955ab388773c234268ceb108372eaab2200) Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:aff2a8f38eb45e2c8f3321570e050c336a45b4bb Merged-In: If4590160d1d743f58c1aed3f923d3668a8936c57 Change-Id: If4590160d1d743f58c1aed3f923d3668a8936c57
Loading
Please register or sign in to comment