Merge "Run boringssl tests according to ro.zygote" into main
This commit is contained in:
commit
a2bac909ce
4 changed files with 31 additions and 8 deletions
|
|
@ -16,6 +16,22 @@ package {
|
||||||
default_applicable_licenses: ["Android-Apache-2.0"],
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
prebuilt_etc {
|
||||||
|
name: "init.boringssl.zygote64_32.rc",
|
||||||
|
src: "init.boringssl.zygote64_32.rc",
|
||||||
|
sub_dir: "init/hw",
|
||||||
|
symlinks: [
|
||||||
|
"init.boringssl.zygote32.rc",
|
||||||
|
"init.boringssl.no_zygote.rc",
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
||||||
|
prebuilt_etc {
|
||||||
|
name: "init.boringssl.zygote64.rc",
|
||||||
|
src: "init.boringssl.zygote64.rc",
|
||||||
|
sub_dir: "init/hw",
|
||||||
|
}
|
||||||
|
|
||||||
prebuilt_etc {
|
prebuilt_etc {
|
||||||
name: "init.rc",
|
name: "init.rc",
|
||||||
src: "init.rc",
|
src: "init.rc",
|
||||||
|
|
@ -23,6 +39,8 @@ prebuilt_etc {
|
||||||
required: [
|
required: [
|
||||||
"fsverity_init",
|
"fsverity_init",
|
||||||
"platform-bootclasspath",
|
"platform-bootclasspath",
|
||||||
|
"init.boringssl.zygote64.rc",
|
||||||
|
"init.boringssl.zygote64_32.rc",
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
4
rootdir/init.boringssl.zygote64.rc
Normal file
4
rootdir/init.boringssl.zygote64.rc
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
on init && property:ro.product.cpu.abilist64=*
|
||||||
|
exec_start boringssl_self_test64
|
||||||
|
on property:apexd.status=ready && property:ro.product.cpu.abilist64=*
|
||||||
|
exec_start boringssl_self_test_apex64
|
||||||
8
rootdir/init.boringssl.zygote64_32.rc
Normal file
8
rootdir/init.boringssl.zygote64_32.rc
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
on init && property:ro.product.cpu.abilist32=*
|
||||||
|
exec_start boringssl_self_test32
|
||||||
|
on init && property:ro.product.cpu.abilist64=*
|
||||||
|
exec_start boringssl_self_test64
|
||||||
|
on property:apexd.status=ready && property:ro.product.cpu.abilist32=*
|
||||||
|
exec_start boringssl_self_test_apex32
|
||||||
|
on property:apexd.status=ready && property:ro.product.cpu.abilist64=*
|
||||||
|
exec_start boringssl_self_test_apex64
|
||||||
|
|
@ -459,14 +459,7 @@ on init
|
||||||
start vndservicemanager
|
start vndservicemanager
|
||||||
|
|
||||||
# Run boringssl self test for each ABI. Any failures trigger reboot to firmware.
|
# Run boringssl self test for each ABI. Any failures trigger reboot to firmware.
|
||||||
on init && property:ro.product.cpu.abilist32=*
|
import /system/etc/init/hw/init.boringssl.${ro.zygote}.rc
|
||||||
exec_start boringssl_self_test32
|
|
||||||
on init && property:ro.product.cpu.abilist64=*
|
|
||||||
exec_start boringssl_self_test64
|
|
||||||
on property:apexd.status=ready && property:ro.product.cpu.abilist32=*
|
|
||||||
exec_start boringssl_self_test_apex32
|
|
||||||
on property:apexd.status=ready && property:ro.product.cpu.abilist64=*
|
|
||||||
exec_start boringssl_self_test_apex64
|
|
||||||
|
|
||||||
service boringssl_self_test32 /system/bin/boringssl_self_test32
|
service boringssl_self_test32 /system/bin/boringssl_self_test32
|
||||||
reboot_on_failure reboot,boringssl-self-check-failed
|
reboot_on_failure reboot,boringssl-self-check-failed
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue