universal7885: init: Conditionally use ro.boot.em.model to get model

* ro.boot.product.model prop doesn't exist on some devices

Change-Id: Ie35009612197ef85af5d336d7aebcf5d059643ca
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
This commit is contained in:
SamarV-121 2021-08-30 21:34:23 +05:30 committed by roynatech2544
commit 0d3b1a1c16
No known key found for this signature in database
GPG key ID: 9675C32163D88D30

View file

@ -75,6 +75,9 @@ void vendor_load_properties() {
string model;
model = GetProperty("ro.boot.product.model", "");
if(model.empty()){
model = GetProperty("ro.boot.em.model", "");
}
if (odel == "SM-A205FN" || model == "SM-A205GN" || model == "SM-A202K" || model == "SM-A205YN") {
property_override("ro.boot.product.hardware.sku", "NFC");