platform_system_core/rootdir/asan_extract.rc
Andreas Gampe df5496aa65 ASAN-Extract
Add init script and shell script to unzip a tar containing ASAN
libraries on boot.

Bug: 36458146
Test: m && m SANITIZE_TARGET=address
Test: manual (build steps for tar missing)
Change-Id: I1bcf332f86c5bf2e0333cbe3def684999c1002f8
2017-03-31 16:02:24 -07:00

6 lines
219 B
Text

# When /data is available, look for /system/asan.tar.gz and potentially extract.
on post-fs-data
exec - system system -- /system/bin/asan_extract
on early-boot && property:asan.restore_reboot=1
powerctl reboot