diff --git a/device.mk b/device.mk index 9b919a4..7b625a2 100644 --- a/device.mk +++ b/device.mk @@ -392,7 +392,6 @@ PRODUCT_COPY_FILES += \ # Power PRODUCT_PACKAGES += \ - android.hardware.power-service-mediatek \ android.hardware.power-V2-ndk.vendor \ android.hardware.power@1.3.vendor \ vendor.mediatek.hardware.mtkpower@1.2.vendor diff --git a/extract-files.sh b/extract-files.sh index 4f7be50..346d572 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -105,8 +105,8 @@ function blob_fixup { "${PATCHELF}" --replace-needed "libhidlbase.so" "libhidlbase-v31.so" "${2}" "${PATCHELF}" --replace-needed "libutils.so" "libutils-v31.so" "${2}" ;; - vendor/bin/hw/vendor.mediatek.hardware.mtkpower@1.0-service) - "${PATCHELF}" --replace-needed "android.hardware.power-V2-ndk_platform.so" "android.hardware.power-V2-ndk.so" "${2}" + vendor/bin/hw/vendor.mediatek.hardware.mtkpower@1.0-service | vendor/lib64/android.hardware.power-service-mediatek.so) + "${PATCHELF}" --replace-needed "android.hardware.power-V2-ndk_platform.so" "android.hardware.power-V2-ndk.so" "$2" ;; vendor/lib*/hw/android.hardware.thermal@2.0-impl.so) "${PATCHELF}" --replace-needed "libutils.so" "libutils-v32.so" "${2}" diff --git a/proprietary-files.txt b/proprietary-files.txt index 7debd84..b94e6cf 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -2797,6 +2797,7 @@ vendor/lib/libmtkperf_client_vendor.so vendor/lib/vendor.mediatek.hardware.power@2.0.so vendor/lib64/hw/power.default.so:vendor/lib64/hw/power.mt6789.so vendor/lib64/hw/vendor.mediatek.hardware.mtkpower@1.2-impl.so +vendor/lib64/android.hardware.power-service-mediatek.so vendor/lib64/libperfctl_vendor.so vendor/lib64/libpower_timer.so vendor/lib64/libpowerhal.so