Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2114590c authored by yutingfang's avatar yutingfang Committed by Android Build Coastguard Worker
Browse files

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:bd1eff349d514a53838df08ae097380d21c08c67
Merged-In: If4590160d1d743f58c1aed3f923d3668a8936c57
Change-Id: If4590160d1d743f58c1aed3f923d3668a8936c57
parent 67769a49
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment