mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-22 12:05:32 -04:00
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:
parent
4210766d4d
commit
0d3b1a1c16
1 changed files with 3 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue