Little fix in the unified script
authormauronofrio <poronofrio@gmail.com>
Fri, 21 Jun 2019 22:09:40 +0000 (00:09 +0200)
committermauronofrio <poronofrio@gmail.com>
Fri, 21 Jun 2019 22:09:40 +0000 (00:09 +0200)
init/init_oneplus7pro.cpp
omni_guacamole.mk

index 5f23b9d28839e796c705015b49c7e804fb3e5a2e..20a2d474e11de96471ecee6bb04bffd2cc25d74c 100644 (file)
@@ -41,6 +41,7 @@ namespace init {
 
 void load_op7pro(const char *model) {
     property_set("ro.product.model", model);
+    property_set("ro.product.name", "OnePlus7Pro");
     property_set("ro.build.product", "OnePlus7Pro");
     property_set("ro.product.device", "OnePlus7Pro");
     property_set("ro.vendor.product.device", "OnePlus7Pro");
@@ -49,6 +50,7 @@ void load_op7pro(const char *model) {
 
 void load_op7pro5g(const char *model) {
     property_set("ro.product.model", model);
+    property_set("ro.product.name", "OnePlus7ProNR");
     property_set("ro.build.product", "OnePlus7ProNR");
     property_set("ro.product.device", "OnePlus7ProNR");
     property_set("ro.vendor.product.device", "OnePlus7ProNR");
@@ -57,6 +59,7 @@ void load_op7pro5g(const char *model) {
 
 void load_op7(const char *model) {
     property_set("ro.product.model", model);
+    property_set("ro.product.name", "OnePlus7");
     property_set("ro.build.product", "OnePlus7");
     property_set("ro.product.device", "OnePlus7");
     property_set("ro.vendor.product.device", "OnePlus7");
index e00a3b4475cdcf7e2a8b84633d80dca06c4435cf..c21b586cc8fb20a69b44f05cb2b3ca60b8ac7137 100644 (file)
@@ -41,6 +41,7 @@ PRODUCT_SYSTEM_PROPERTY_BLACKLIST += \
     ro.product.model \
     ro.product.device \
     ro.product.name \
+    ro.build.product \
     ro.display.series
 
 # HACK: Set vendor patch level