Where to find version information in the source code on the Android platform

Where can I find version information in source files on Android platform?

I tried to find out the information specified in the settings β†’ about the phone. Some of the information displayed: firmware version, module number, baseband version, kernel version, ...

+4
source share
2 answers

You can tell it platform\build\core\version_defaults.mk

+5
source

For cyanogen, the source for this file is https://github.com/CyanogenMod/android_packages_apps_Settings/blob/cm-10.2/src/com/android/settings/DeviceInfoSettings.java , it looks like https://android.googlesource.com/platform /packages/apps/Settings/+/master/src/com/android/settings/DeviceInfoSettings.java is the equivalent in AOSP.

From these files, it looks like most of these values ​​are constants or preferences, and the kernel is read from /proc/version .

+3
source

Source: https://habr.com/ru/post/1303083/


All Articles