platform_build_soong/dexpreopt
Ulya Trafimovich de962bd0a9 Fix host path for dexpreopted system server modules defined in Make.
Previously there was a discrepancy between the generated paths for
Soong modules that used "out/soong/system_server_jars" and Make modules
that used "out/system_server_jars". This happened because the default
output directory is $OUT/soong for the normal Soong config and jsut $OUT
for the reduced "null config" created by dexpreopt_gen.

As a result, class loader context for system server jars defined in Make
was referring to nonexistent jars, which caused non-fatal dex2oat errors
(the build was not broken, so the errors remained unnoticed):

  Failed to determine oat file name for dex location out/system_server_dexjars/[...]
  Could not open dex files from location: out/system_server_dexjars/[...]

Test: aosp_walleye-userdebug boots
Test: cherry-picked in master-arc-dev that has a Make system server jar
  arc-services, `lunch lunch cheets_x86-userdebug && m`, check that the
  generated dexpreopt.sh for arc-services contains paths starting with
  "out/soong/system_server_jars" rather than "out/system_server_jars".

Bug: 140712566
Change-Id: Ia7ea8ac383e32042c31d64971cdc8101ea3068cd
Merged-In: Ia7ea8ac383e32042c31d64971cdc8101ea3068cd
(cherry picked from commit 6cf2c0c197)
Exempt-From-Owner-Approval: cherry-pick of approved CL.
2020-04-28 08:31:35 +00:00
..
dexpreopt_gen Pass dexpreopt config structs by reference. 2020-02-13 17:46:48 +00:00
Android.bp Reland: Get the dex2oat host tool path from module dependency on the 2020-02-13 17:46:48 +00:00
OWNERS Add an owners file for dexpreopt files. 2018-12-18 20:28:06 +00:00
config.go Do all dexpreoptDisabled checks before registering a dex2oat host dep. 2020-02-13 17:46:48 +00:00
dexpreopt.go Fix host path for dexpreopted system server modules defined in Make. 2020-04-28 08:31:35 +00:00
dexpreopt_test.go Pass dexpreopt config structs by reference. 2020-02-13 17:46:48 +00:00
testing.go Reland: Get the dex2oat host tool path from module dependency on the 2020-02-13 17:46:48 +00:00