cc_binary {
- name: "android.hardware.thermal@2.0-service.pixel",
+ name: "android.hardware.thermal@2.0-service.samsung",
defaults: [
"hidl_defaults",
],
vendor: true,
relative_install_path: "hw",
- vintf_fragments: ["android.hardware.thermal@2.0-service.pixel.xml"],
+ vintf_fragments: ["android.hardware.thermal@2.0-service.samsung.xml"],
init_rc: [
- "android.hardware.thermal@2.0-service.pixel.rc",
+ "android.hardware.thermal@2.0-service.samsung.rc",
],
srcs: [
"service.cpp",
+++ /dev/null
-service vendor.thermal-hal-2-0 /vendor/bin/hw/android.hardware.thermal@2.0-service.pixel
- interface android.hardware.thermal@2.0::IThermal default
- class hal
- user system
- group system
+++ /dev/null
-<manifest version="1.0" type="device">
- <hal format="hidl">
- <name>android.hardware.thermal</name>
- <transport>hwbinder</transport>
- <version>1.0</version>
- <version>2.0</version>
- <interface>
- <name>IThermal</name>
- <instance>default</instance>
- </interface>
- </hal>
-</manifest>
--- /dev/null
+service vendor.thermal-hal-2-0 /vendor/bin/hw/android.hardware.thermal@2.0-service.samsung
+ interface android.hardware.thermal@2.0::IThermal default
+ class hal
+ user system
+ group system
--- /dev/null
+<manifest version="1.0" type="device">
+ <hal format="hidl">
+ <name>android.hardware.thermal</name>
+ <transport>hwbinder</transport>
+ <version>1.0</version>
+ <version>2.0</version>
+ <interface>
+ <name>IThermal</name>
+ <instance>default</instance>
+ </interface>
+ </hal>
+</manifest>
using ::android::hardware::thermal::V2_0::implementation::Thermal;
static int shutdown() {
- LOG(ERROR) << "Pixel Thermal HAL Service is shutting down.";
+ LOG(ERROR) << "Samsung Thermal HAL Service is shutting down.";
return 1;
}
status_t status;
android::sp<IThermal> service = nullptr;
- LOG(INFO) << "Pixel Thermal HAL Service 2.0 starting...";
+ LOG(INFO) << "Samsung Thermal HAL Service 2.0 starting...";
service = new Thermal();
if (service == nullptr) {
return shutdown();
}
- LOG(INFO) << "Pixel Thermal HAL Service 2.0 started successfully.";
+ LOG(INFO) << "Samsung Thermal HAL Service 2.0 started successfully.";
joinRpcThreadpool();
// We should not get past the joinRpcThreadpool().
return shutdown();
using android::base::StringPrintf;
/*
- * Pixel don't offline CPU, so std::thread::hardware_concurrency(); should work.
+ * The phone don't offline CPU, so std::thread::hardware_concurrency(); should
+ * work.
* However /sys/devices/system/cpu/present is preferred.
* The file is expected to contain single text line with two numbers %d-%d,
* which is a range of available cpu numbers, e.g. 0-7 would mean there