Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5198a550 authored by Snehal Koukuntla's avatar Snehal Koukuntla
Browse files

Move trusty coverage files to /data/vendor/trusty

Currently on the coverage builds of trusty, the coverage information is
being dumped at /data/local/tmp. But it has neverallow rules that forbid services from reading writing to it. Moving it to the recommended /vendor/data/ folder

Bug: 440261900
Change-Id: Ifa4c6248ee66836816346a43a95a714621e58fc2
parent c5daf763
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -176,7 +176,7 @@ int main(int argc, char* argv[]) {
        optarg = argv[optind];
    }
    if (optarg.size()==0) {
        optarg = "data/local/tmp";
        optarg = "data/vendor/trusty/coverage";
    }

    android::trusty::controller::Controller cur;
+2 −1
Original line number Diff line number Diff line
service trusty-coverage-controller /vendor/bin/trusty-coverage-controller -o /data/local/tmp
service trusty-coverage-controller /vendor/bin/trusty-coverage-controller -o /data/vendor/trusty/coverage
    class main
    user root
    group root
    disabled

on property:persist.trusty.coverage.enabled=1
    mkdir /data/vendor/trusty/coverage 0770 root root
    start trusty-coverage-controller

on property:persist.trusty.coverage.enabled=0