How to newly-add a property value for IMX8 Android?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to newly-add a property value for IMX8 Android?

984 Views
13614278
Contributor III

We're running Android 9 on IMX8mini,

I want to add a new property value for the product, for example, in device/fsl/imx8m/evk_8mm/evk_8mm.mk:

PRODUCT_PROPERTY_OVERRIDES += \

    ro.myfoo = myvalue \

    ro.product.first_api_level=28

I have a debug, found above config would be stored in /vendor/build.prop on the target device, and I can find the newly-added data in /vendor/build.prop.

But, When I using getprop, I can't find ro.myfoo, just can find ro.product.first_api_level=28, why??? It's so weired.

Could someone help me?

 

Thanks

 

0 Kudos
1 Reply

948 Views
IvanRuiz
NXP Employee
NXP Employee

Hello,

 

This may be caused by selinux  policy.

You can try to add this config in imx8m/sepolicy/property_contexts.

"

ro.myfoo u:object_r:vendor_public_default_prop:s0

"

 

Hope it helps!

 

BR,

Ivan.

0 Kudos