mirror of
https://github.com/Anything-at-25-00/android_device_tecno_LG8n.git
synced 2024-11-23 06:06:27 -08:00
LG8n: Use enable instead of start for Neural Networks service
* The MTK Neural Networks service is started via a property trigger. This HAL starts a lot earlier than other HALs since it is started with start instead of enable, the difference between them being that start will immediately cause the service to try and start, while enable effectively removes the disabled attribute from the service (so in the case of a HAL, it will be started with all the other services in class hal instead of immediately). * This initially didn't have any side effects until I noticed the Neural Networks service constantly crashing in offline charger mode. To fix this, simply convert the start command to an enable to ensure that this service is not only started at the right time (in class hal), but also only started when needed (and not in offline charger mode). Change-Id: Iacf310fb2211117aaf028ad6bf0814a7d447cf53 Signed-off-by: bengris32 <bengris32@protonmail.ch> Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
This commit is contained in:
parent
8dfc5f00c3
commit
3bf5c1c76a
|
@ -81,6 +81,9 @@ function blob_fixup {
|
||||||
vendor/bin/hw/android.hardware.media.c2@1.2-mediatek-64b)
|
vendor/bin/hw/android.hardware.media.c2@1.2-mediatek-64b)
|
||||||
"${PATCHELF}" --replace-needed "libavservices_minijail_vendor.so" "libavservices_minijail.so" "${2}"
|
"${PATCHELF}" --replace-needed "libavservices_minijail_vendor.so" "libavservices_minijail.so" "${2}"
|
||||||
;;
|
;;
|
||||||
|
vendor/etc/init/android.hardware.neuralnetworks-shim-service-mtk.rc)
|
||||||
|
sed -i 's/start/enable/' "$2"
|
||||||
|
;;
|
||||||
vendor/lib*/hw/mt6789/vendor.mediatek.hardware.pq@2.15-impl.so)
|
vendor/lib*/hw/mt6789/vendor.mediatek.hardware.pq@2.15-impl.so)
|
||||||
"$PATCHELF" --replace-needed "libutils.so" "libutils-v32.so" "$2"
|
"$PATCHELF" --replace-needed "libutils.so" "libutils-v32.so" "$2"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue