summaryrefstree
path: root/vendor/etc/init/odm_build_fingerprint.rc
blob: 3d0644268030546a51d6c6e634acfafc6b46dd78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
service odm_build_fingerprint /vendor/bin/odm_build_fingerprint
    class main
    user root
    group shell system
    disabled
    oneshot

on late-fs && property:ro.build.version.incremental=*
    start odm_build_fingerprint

on post-fs-data && property:ro.product.brand=HONOR
    setprop ro.product.odm.name ${ro.odm.magic.product.name}
    setprop ro.product.odm.device ${ro.odm.magic.product.device}
    setprop ro.odm.build.version.incremental ${ro.odm.magic.version.incremental}

on post-fs-data && property:ro.product.brand=Android
    wait_for_prop init.svc.odm_build_fingerprint stopped
    setprop ro.product.odm.name ${ro.odm.magic.product.name}
    setprop ro.product.odm.device ${ro.odm.magic.product.device}
    setprop ro.odm.build.version.incremental ${ro.odm.magic.version.incremental}


# those is to set ro.product.xx_for_attestation in gsi image, and need to be set earlier
# but should after service odm_build_fingerprint have set ${ro.odm.magic.product.name}
on zygote-start && property:ro.product.brand=Android
    setprop ro.product.name_for_attestation ${ro.odm.magic.product.name}
    setprop ro.product.model_for_attestation ${ro.odm.magic.product.model}
    setprop ro.product.device_for_attestation ${ro.odm.magic.product.device}
    setprop ro.product.brand_for_attestation ${ro.product.odm.brand}
    setprop ro.product.manufacturer_for_attestation ${ro.product.odm.brand}