Files
build/core
Ulya Trafimovich 8edad8f7a3 Preserve <uses-library> order in dexpreopt.config files.
Library order is important because it is used to construct class loader
context, which is then written into OAT/ODEX files and chacked against
class loader context constructed by PackageManager on the device. If the
orders are different, dexpreopted code is rejected.

This CL fixes a few problems that caused reordering:

- 'filter' function arguments are swapped so that patterns list comes
  first, and the library list second

- JSON representation of class loader context is changed to avoid
  unmarshaling it to Go maps, which may reorder keys

- library list is no longer sorted (it's unclear why it was sorted)

Bug: 132357300
Test: lunch cf_x86_64_phone-userdebug && m && launch_cvd \
      adb wait-for-device && adb root && adb logcat \
      | grep -E 'ClassLoaderContext [a-z ]+ mismatch'
      # empty grep output, no errors
Change-Id: Ie76996d497e60da0948f1879d6db589ff3e968a2
2021-02-11 17:09:19 +00:00
..
2020-03-06 16:46:59 -08:00
2021-01-28 17:10:24 +01:00
2021-02-11 10:34:01 +00:00
2021-01-16 22:07:40 +00:00
2020-04-18 21:00:18 -07:00
2020-06-08 16:36:52 -07:00
2020-03-05 20:46:47 +00:00
2020-07-13 14:26:25 -07:00
2020-06-10 17:18:13 -07:00
2021-02-11 10:34:01 +00:00
2020-10-05 10:17:21 -07:00
2020-06-08 16:36:52 -07:00
2020-05-27 19:37:03 -07:00
2019-09-18 16:23:04 +00:00
2020-10-20 05:52:49 +00:00