设置-关于手机-版本号
./vendor/mediatek/proprietary/packages/apps/MtkSettings/src/com/android/settings/deviceinfo/BuildNumberPreferenceController.java找到函数getSummary
@Override
public CharSequence getSummary() {
// 读取的是Build.DISPLAY的值
return mExt.customeBuildNumber(BidiFormatter.getInstance().unicodeWrap(Build.DISPLAY));
}
frameworks/base/core/java/android/os/Build.java
/** A build ID string meant for displaying to the user */
public static final String DISPLAY = getString("ro.build.display.id");
ro.build.display.id在build/tools/buildinfo.sh里面赋值的