From 9b40bccd829887d18d7a178953ac9dcc8ec97e45 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Wed, 12 Jun 2019 15:41:25 +0200 Subject: [PATCH] If ro.hw.oemName isn't set, set it from sku cf https://github.com/phhusson/treble_experimentations/issues/533 --- rw-system.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rw-system.sh b/rw-system.sh index dcb00b9..63f73e5 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -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)" 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