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

Commit c2c6d4b3 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 7925568 from 8824d6c0 to tm-release

Change-Id: I7a27393a56749abf721d618249d40610ba77ba54
parents ba6b238f 8824d6c0
Loading
Loading
Loading
Loading
+32 −5
Original line number Diff line number Diff line
@@ -7,17 +7,40 @@ package {
    default_applicable_licenses: ["hardware_interfaces_license"],
}

cc_binary {
    name: "android.hardware.audio.service",
soong_config_module_type {
    name: "android_hardware_audio_config_default",
    module_type: "cc_defaults",
    config_namespace: "android_hardware_audio",
    bool_variables: [
        "run_64bit",
    ],
    properties: ["compile_multilib"],
}

    init_rc: ["android.hardware.audio.service.rc"],
    relative_install_path: "hw",
    vendor: true,
android_hardware_audio_config_default {
    name: "android_hardware_audio_config_defaults",

    soong_config_variables: {
        run_64bit: {
            conditions_default: {
                // Prefer 32 bit as the binary must always be installed at the same
                // location for init to start it and the build system does not support
                // having two binaries installable to the same location even if they are
                // not installed in the same build.
                compile_multilib: "prefer32",
            },
            compile_multilib: "64",
        },
    },
}

cc_binary {
    name: "android.hardware.audio.service",

    init_rc: ["android.hardware.audio.service.rc"],
    relative_install_path: "hw",
    vendor: true,

    srcs: ["service.cpp"],

    cflags: [
@@ -34,6 +57,10 @@ cc_binary {
        "libutils",
        "libhardware",
    ],

    defaults: [
        "android_hardware_audio_config_defaults",
    ],
}

// Legacy service name, use android.hardware.audio.service instead
+5 −5
Original line number Diff line number Diff line
@@ -65,10 +65,10 @@ bool matchDeviceName(int cameraIdOffset,

} // anonymous namespace

ExternalCameraProviderImpl_2_4::ExternalCameraProviderImpl_2_4() :
        mCfg(ExternalCameraConfig::loadFromCfg()),
        mHotPlugThread(this) {
    mHotPlugThread.run("ExtCamHotPlug", PRIORITY_BACKGROUND);
ExternalCameraProviderImpl_2_4::ExternalCameraProviderImpl_2_4()
    : mCfg(ExternalCameraConfig::loadFromCfg()) {
    mHotPlugThread = sp<HotplugThread>::make(this);
    mHotPlugThread->run("ExtCamHotPlug", PRIORITY_BACKGROUND);

    mPreferredHal3MinorVersion =
        property_get_int32("ro.vendor.camera.external.hal3TrebleMinorVersion", 4);
@@ -88,7 +88,7 @@ ExternalCameraProviderImpl_2_4::ExternalCameraProviderImpl_2_4() :
}

ExternalCameraProviderImpl_2_4::~ExternalCameraProviderImpl_2_4() {
    mHotPlugThread.requestExit();
    mHotPlugThread->requestExit();
}


+1 −1
Original line number Diff line number Diff line
@@ -102,7 +102,7 @@ private:
    sp<ICameraProviderCallback> mCallbacks = nullptr;
    std::unordered_map<std::string, CameraDeviceStatus> mCameraStatusMap; // camera id -> status
    const ExternalCameraConfig mCfg;
    HotplugThread mHotPlugThread;
    sp<HotplugThread> mHotPlugThread;
    int mPreferredHal3MinorVersion;
};

+1 −0
Original line number Diff line number Diff line
@@ -81,5 +81,6 @@ vintf_compatibility_matrix {
    ],
    kernel_configs: [
        "kernel_config_current_5.10",
        "kernel_config_current_5.15",
    ],
}
+17 −0
Original line number Diff line number Diff line
@@ -162,9 +162,26 @@ Add device specific permissions to the domain where the health HAL
process is executed, especially if a device-specific `libhealthd` is used
and/or device-specific storage related APIs are implemented.

Example (assuming that your health AIDL service runs in domain
`hal_health_tuna`:

```text
type hal_health_tuna, domain;
hal_server_domain(hal_health_tuna, hal_health)
type hal_health_tuna_exec, exec_type, vendor_file_type, file_type;

# allow hal_health_tuna ...;
```

If you did not define a separate domain, the domain is likely
`hal_health_default`. The device-specific rules for it is likely at
`device/<manufacturer>/<device>/sepolicy/vendor/hal_health_default.te`.
In this case, the aforementioned SELinux rules and types has already been
defined. You only need to add device-specific permissions.

```text
# allow hal_health_default ...;
```

### Implementing charger {#charger}

Loading