2017.06.26 笔记 MTK手机版本信息修改

1.修改Kernel Version的值

--- a/alps/packages/apps/Settings/src/com/android/settings/DeviceInfoSettings.java
+++ b/alps/packages/apps/Settings/src/com/android/settings/DeviceInfoSettings.java
@@ -133,7 +133,9 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment implements In
                        setStringSummary(KEY_BUILD_NUMBER, SystemProperties.get("ro.kcm.build.display.id"));
            }//end add
         findPreference(KEY_BUILD_NUMBER).setEnabled(true);
+               //
         findPreference(KEY_KERNEL_VERSION).setSummary(DeviceInfoUtils.getFormattedKernelVersion());
+               //findPreference(KEY_KERNEL_VERSION).setSummary("3.18.35\nalong@along-build #3\nFri Jun 2 02:24:59 CST 2017");
 
         if (!SELinux.isSELinuxEnabled()) {
             String status = getResources().getString(R.string.selinux_status_disabled);

2.修改Baseband Version

--- a/alps/packages/apps/Settings/src/com/mediatek/settings/deviceinfo/DeviceInfoSettingsExts.java
+++ b/alps/packages/apps/Settings/src/com/mediatek/settings/deviceinfo/DeviceInfoSettingsExts.java
@@ -141,11 +141,14 @@ public class DeviceInfoSettingsExts {
 
     private void initBasebandVersion() {
         String baseband = "gsm.version.baseband";
-        setValueSummary(KEY_BASEBAND_VERSION, baseband);
+               //
+        //setValueSummary(KEY_BASEBAND_VERSION, baseband);
+               findPreference(KEY_BASEBAND_VERSION).setSummary("MOLY.WR8.W1449.MD.WG.MP.V91.5.P2,\n2017/03/10 19:33");
         if (FeatureOption.MTK_C2K_SUPPORT) {
             String baseband2 = "cdma.version.baseband";
             Log.d(TAG, "baseband2 = " + baseband2);
             setValueSummary(KEY_BASEBAND_VERSION_2, baseband2);
+                       //findPreference(KEY_BASEBAND_VERSION).setSummary("MOLY.WR8.W1449.MD.WG.MP.V91.5.P2,\n2017/03/10 19:33");
             updateBasebandTitle();
         } else {
             removePreference(findPreference(KEY_BASEBAND_VERSION_2));

3.修改Android Security patch level

--- a/alps/build/tools/buildinfo.sh
+++ b/alps/build/tools/buildinfo.sh
@@ -12,6 +12,7 @@ echo "ro.build.version.codename=$PLATFORM_VERSION_CODENAME"
 echo "ro.build.version.all_codenames=$PLATFORM_VERSION_ALL_CODENAMES"
 echo "ro.build.version.release=$PLATFORM_VERSION"
 echo "ro.build.version.security_patch=$PLATFORM_SECURITY_PATCH"
+#echo "ro.build.version.security_patch=2017-04-05"
 echo "ro.build.version.base_os=$PLATFORM_BASE_OS"
 echo "ro.build.date=`$DATE`"
 echo "ro.build.date.utc=`$DATE +%s`"

4.修改fingerprint

--- a/alps/build/core/Makefile
+++ b/alps/build/core/Makefile
@@ -157,12 +157,12 @@ ifeq (,$(strip $(BUILD_FINGERPRINT)))
 #  BUILD_FINGERPRINT := $(PRODUCT_BRAND)/$(TARGET_PRODUCT)/$(TARGET_DEVICE):$(PLATFORM_VERSION)/$(BUILD_ID)/$(BF_BUILD_NUMBER):$(TARGET_BUILD_VARIANT)/$(BUILD_VERSION_TAGS
 ifdef KCM_CUSTOM_TARGET_DEVICE
 ifneq ($(KCM_CUSTOM_TARGET_DEVICE),"")
-  BUILD_FINGERPRINT := $(PRODUCT_BRAND)/$(KCM_CUSTOM_PRODUCT_NAME)/$(KCM_CUSTOM_TARGET_DEVICE):$(PLATFORM_VERSION)/$(BUILD_ID)/$(BF_BUILD_NUMBER):$(TARGET_BUILD_VARIANT)/$
+  BUILD_FINGERPRINT := $(PRODUCT_BRAND)/$(KCM_CUSTOM_PRODUCT_NAME)/$(KCM_CUSTOM_TARGET_DEVICE):$(PLATFORM_VERSION)/$(BUILD_ID)/1495266300:$(TARGET_BUILD_VARIANT)/$(BUILD_V
   else

你可能感兴趣的:(MTK随记)