If ro.hw.oemName isn't set, set it from sku

cf https://github.com/phhusson/treble_experimentations/issues/533
This commit is contained in:
Pierre-Hugues Husson 2019-06-12 15:41:25 +02:00
parent 05e6d4b94f
commit 9b40bccd82

View File

@ -326,3 +326,7 @@ for f in /vendor/lib{,64}/hw/com.qti.chi.override.so;do
setprop sys.phh.xx.manufacturer "$(getprop ro.product.vendor.manufacturer)" setprop sys.phh.xx.manufacturer "$(getprop ro.product.vendor.manufacturer)"
done done
if [ -n "$(getprop ro.boot.product.hardware.sku)" ] && [ -z "$(getprop ro.hw.oemName)" ];then
setprop ro.hw.oemName "$(getprop ro.boot.product.hardware.sku)"
fi