platform_build_soong/dexpreopt
Ulya Trafimovich b358ebb759 Fix null pointer dereference in Soong on dexpreopt arc-services.
The null pointer dereference was caused by trying to get device name
from a config passed to dexpreopt. For Make modules, the config is a
stub that doesn't have a device name. The fix is to use build directory
instead of device name (it is provided both by the full config passed
to Soong modules and by the stub config passed to Make modules).

Test: walleye-userdebug boots.
Test: aosp_bertha_arm-userdebug builds and generates arc-services.odex.

Bug: 152193534
Change-Id: I7adc173646cae6eaee188c6672629a5a942aea06
Merged-In: I7adc173646cae6eaee188c6672629a5a942aea06
(cherry picked from commit 9790f1058b)
2020-03-23 17:13:07 +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 null pointer dereference in Soong on dexpreopt arc-services. 2020-03-23 17:13:07 +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