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

Commit aa04f142 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add dumpstate HAL APEX" into main am: 582a2010

parents 608781cf 582a2010
Loading
Loading
Loading
Loading
+38 −0
Original line number Diff line number Diff line
@@ -44,3 +44,41 @@ cc_binary {
        "-DLOG_TAG=\"android.hardware.dumpstate-service.example\"",
    ],
}

prebuilt_etc {
    name: "dumpstate-default.xml",
    src: "dumpstate-default.xml",
    sub_dir: "vintf",
    installable: false,
}

prebuilt_etc {
    name: "dumpstate-default.rc",
    src: ":gen-dumpstate-default.rc-for-apex",
    installable: false,
}

genrule {
    name: "gen-dumpstate-default.rc-for-apex",
    srcs: ["dumpstate-default.rc"],
    out: ["dumpstate-default-apex.rc"],
    cmd: "sed -E 's/\\/vendor\\/bin\\/hw/\\/apex\\/com.android.hardware.dumpstate\\/bin\\/hw/' $(in) > $(out)",
}

apex {
    name: "com.android.hardware.dumpstate",
    vendor: true,
    manifest: "apex_manifest.json",
    file_contexts: "apex_file_contexts",
    key: "com.android.hardware.key",
    certificate: ":com.android.hardware.certificate",
    updatable: false,

    binaries: [
        "android.hardware.dumpstate-service.example",
    ],
    prebuilts: [
        "dumpstate-default.rc",
        "dumpstate-default.xml",
    ],
}
+3 −0
Original line number Diff line number Diff line
(/.*)?                                          u:object_r:vendor_file:s0
/etc(/.*)?                                      u:object_r:vendor_configs_file:s0
/bin/hw/android\.hardware\.dumpstate-service\.example u:object_r:hal_dumpstate_default_exec:s0
 No newline at end of file
+4 −0
Original line number Diff line number Diff line
{
    "name": "com.android.hardware.dumpstate",
    "version": 1
}
 No newline at end of file