Modification and acquisition of Android version system information

Information on each version of the S700 platform:
(1) Model --> ACCDG8701: In the ro.product.model property in the build.prop file, modify the PRODUCT_MODEL in the device\actions\s700_cb6\s700_cb6.mk file
(2) Andorid version --> 5.1.1: The ro.build.version.release property in the build.prop file can be modified in the build\tools\buildinfo.sh file, but the ro.build in the buildinfo.sh file The .version.release property value is a reference, such as ro.build.version.release=$PLATFORM_VERSION, then you have to go to the version_defaults.mk file in the build\core\ directory to modify the definition value of PLATFORM_VERSION
(3) main body Version number: ro.config.mainversion property in build.prop file; ro.config.mainversion can be modified in device\actions\s700_cb6\system.prop file
(4) Kernel version -->Thu Dec 28 16 :35:35 CST 2017: ro.build.date property in build.prop file, it seems to be automatically generated

(5) Version number -->TAG_AD700A_5110_171228: ro.build.display.id property in build.prop file

The above S700 platform is the platform of my project. It is subject to my own platform. The android system is 5.1.1. In fact, there is a whole set of system codes. In fact, we can go to the \android\device\....\device.mk file. Add any properties and property values ​​to the ADDITIONAL_BUILD_PROPERTIES module, which will be compiled into the build.prop file, and then we can go to the app through SystemProperties.get(String key, String defval) to get the corresponding system properties and display them on the UI

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326059737&siteId=291194637