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

Commit 0bac41a0 authored by Kangping Dong's avatar Kangping Dong Committed by Gerrit Code Review
Browse files

Merge "[Thread] add an override_apex for Thread HAL with simulation RCP" into main

parents ce06c8ba 2bc926ed
Loading
Loading
Loading
Loading
+30 −2
Original line number Diff line number Diff line
@@ -90,10 +90,20 @@ prebuilt_etc {
    installable: false,
}

filegroup {
    name: "com.android.hardware.threadnetwork_manifest",
    srcs: ["manifest.json"],
}

filegroup {
    name: "com.android.hardware.threadnetwork_file_contexts",
    srcs: ["file_contexts"],
}

apex {
    name: "com.android.hardware.threadnetwork",
    manifest: "manifest.json",
    file_contexts: "file_contexts",
    manifest: ":com.android.hardware.threadnetwork_manifest",
    file_contexts: ":com.android.hardware.threadnetwork_file_contexts",
    key: "com.android.hardware.key",
    certificate: ":com.android.hardware.certificate",
    updatable: false,
@@ -110,3 +120,21 @@ apex {
        "android.hardware.thread_network.prebuilt.xml", // permission
    ],
}

prebuilt_etc {
    name: "threadnetwork-service-simulation-rcp.rc",
    src: "threadnetwork-service-simulation-rcp.rc",
    installable: false,
}

// Thread HAL service which uses a simulation RCP (i.e. ot-rcp),
// typically used in emulator devices.
override_apex {
    name: "com.android.hardware.threadnetwork-simulation-rcp",
    base: "com.android.hardware.threadnetwork",
    prebuilts: [
        "threadnetwork-service-simulation-rcp.rc",
        "threadnetwork-default.xml",
        "android.hardware.thread_network.prebuilt.xml",
    ],
}
+3 −0
Original line number Diff line number Diff line
service vendor.threadnetwork_hal /apex/com.android.hardware.threadnetwork/bin/hw/android.hardware.threadnetwork-service spinel+hdlc+forkpty:///apex/com.android.hardware.threadnetwork/bin/ot-rcp?forkpty-arg=1
    class hal
    user thread_network