Rate This Document
Findability
Accuracy
Completeness
Readability

Customizing Android System Properties

The Kbox cloud phone container allows users to customize system properties and override original system properties as required. To use custom properties, create a local.prop file in the startup path to record custom system property parameters and values. After a container is started, custom property values in this file are read to override the original values during container initialization. The format of the local.prop file is as follows:

ro.product.board=HUAWEI
ro.product.brand=HUAWEI
ro.product.manufacturer=Huawei
ro.product.model=Huawei
ro.product.odm.brand=HUAWEI
ro.product.odm.manufacturer=Huawei
ro.product.odm.model=Huawei
ro.product.product.brand=HUAWEI
ro.product.product.manufacturer=Huawei
ro.product.product.model=Huawei
ro.product.system.brand=HUAWEI
ro.product.system.manufacturer=Huawei
ro.product.system.model=Huawei
ro.product.system_ext.brand=HUAWEI
ro.product.system_ext.manufacturer=Huawei
ro.product.vendor.brand=HUAWEI
ro.product.vendor.manufacturer=Huawei
ro.product.vendor.model=Huawei
ro.product.vendor.name=Huawei_arm64

During the startup of a Kbox container, the local.prop file in the startup path is pushed to the /data directory of the container. During the initialization, custom property values in the file are read to override the original values of the respective properties in the system.

You can refer to the following command to query a custom property (ro.product.system_ext.brand for example) in a Kbox container. index indicates the Kbox container ID.

1
docker exec -it kbox_${index} getprop ro.product.system_ext.brand