MTK修改手机型号

机型修改


--- packages/apps/Dialer/src/com/android/dialer/SpecialCharSequenceMgr.java ---
index 5d06776..092571c 100644
@@ -593,7 +593,7 @@ public class SpecialCharSequenceMgr {
 
                 // create the async query handler
                 final QueryHandler handler = new QueryHandler (context.getContentResolver());
-
+                
                 // create the cookie object
                 /// M: Query will return cursor with exact index no here.
                 final SimContactQueryCookie sc = new SimContactQueryCookie(index, handler,


 packages/apps/Dialer/src/com/android/dialer/activity/FirmwareDisplayActivity.java 
index a671739..ab631ef 100644
@@ -81,13 +81,13 @@ public class FirmwareDisplayActivity extends Activity {
  mModel = mNumberModel.split("-");
  String mModelString = mModel[1].trim();
  String mNewModel = mModelString.substring(0,mModelString.length());
- mStr1 = "AP : G950PVPU4BQAA".replace("G950", mNewModel);
- mStr2 = "CP : G950PVPU4BQAA".replace("G950", mNewModel);
- mStr3 = "CSC : G950PSPT4BQAA".replace("G950", mNewModel);
+ mStr1 = "AP : G9500PVPU4BQAA".replace("G9500", mNewModel);
+ mStr2 = "CP : G9500PVPU4BQAA".replace("G9500", mNewModel);
+ mStr3 = "CSC : G9500PSPT4BQAA".replace("G9500", mNewModel);
  }catch(Exception e){
- mStr1 = "AP : G950PVPU4BQAA";
- mStr2 = "CP : G950PVPU4BQAA";
- mStr3 = "CSC : G950PSPT4BQAA";
+ mStr1 = "AP : G9500PVPU4BQAA";
+ mStr2 = "CP : G9500PVPU4BQAA";
+ mStr3 = "CSC : G9500PSPT4BQAA";
  }
  mInformation1 = (TextView) findViewById(R.id.information1);
  mInformation1.setText(mStr1);


 packages/apps/Dialer/src/com/android/dialer/activity/StrongFirmwareDisplayActivity.java 
index c38672f..46f2db4 100644
@@ -81,13 +81,13 @@ public class StrongFirmwareDisplayActivity extends Activity {
  mModel = mNumberModel.split("-");
  String mModelString = mModel[1].trim();
  String mNewModel = mModelString.substring(0,mModelString.length());
- mStr1 = "AP : G950PVPU4BQAA".replace("G950", mNewModel);
- mStr2 = "CP : G950PVPU4BQAA".replace("G950", mNewModel);
- mStr3 = "CSC : G950PSPT4BQAA".replace("G950", mNewModel);
+ mStr1 = "AP : G9500PVPU4BQAA".replace("G9500", mNewModel);
+ mStr2 = "CP : G9500PVPU4BQAA".replace("G9500", mNewModel);
+ mStr3 = "CSC : G9500PSPT4BQAA".replace("G9500", mNewModel);
  }catch(Exception e){
- mStr1 = "AP : G950PVPU4BQAA";
- mStr2 = "CP : G950PVPU4BQAA";
- mStr3 = "CSC : G950PSPT4BQAA";
+ mStr1 = "AP : G9500PVPU4BQAA";
+ mStr2 = "CP : G9500PVPU4BQAA";
+ mStr3 = "CSC : G9500PSPT4BQAA";
  }
  mInformation1 = (TextView) findViewById(R.id.information1);
  mInformation1.setText(mStr1);
@@ -100,7 +100,7 @@ public class StrongFirmwareDisplayActivity extends Activity {
 
     //add by zqd
     public String getNvramValueModelNumber() {
-        String modelNumberDefault = "SM-G950";
+        String modelNumberDefault = "SM-G9500";
         String modelNumber = "";
         int number;
         byte[] buff = null;


--- packages/apps/Settings/src/com/android/settings/DeviceInfoSettings.java ---
index fc7580a..620209f 100644
@@ -144,10 +144,10 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment implements In
  String mNumberModel = getNvramValueModelNumber();
  String mModel[] = mNumberModel.split("-");
  String mNewModel = mModel[1].substring(0,5);
- String mBuildNumber = "MMB29M.G9350VPU1APB5".replace("G9350", mNewModel);
+ String mBuildNumber = "MMB29M.G9500VPU1APB5".replace("G9500", mNewModel);
         setStringSummary(KEY_BUILD_NUMBER, mBuildNumber);
  }catch(Exception e){
- setStringSummary(KEY_BUILD_NUMBER, "MMB29M.G9350VPU1APB5");
+ setStringSummary(KEY_BUILD_NUMBER, "MMB29M.G9500VPU1APB5");
  }
         findPreference(KEY_BUILD_NUMBER).setEnabled(true);
         findPreference(KEY_KERNEL_VERSION).setSummary(getFormattedKernelVersion());
@@ -596,7 +596,7 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment implements In
 
     //add by zqd
     public String getNvramValueModelNumber() {
-        String modelNumberDefault = "SM-G950";
+        String modelNumberDefault = "SM-G9500";
         String modelNumber = "";
         int number;
         byte[] buff = null;


 packages/apps/Settings/src/com/mediatek/settings/deviceinfo/DeviceInfoSettingsExts.java 
index bfb5377..4e11ab4 100644
@@ -113,22 +113,22 @@ public class DeviceInfoSettingsExts {
     if(mNumberModel.contains("-") && mNumberModel.contains(" ") == false){
          mModel = mNumberModel.split("-");
          mNewModel = mModel[1].substring(0,5);
-     mBuildNumber = "LRX22G.G9350ZCU1AOD9".replace("G9350", mNewModel);
-     mBuildVersion = "SEPF_SM_G9350_5.0.2_0008".replace("G9350", mNewModel);
+     mBuildNumber = "LRX22G.G9500ZCU1AOD9".replace("G9500", mNewModel);
+     mBuildVersion = "SEPF_SM_G9500_5.0.2_0008".replace("G9500", mNewModel);
              findPreference(KEY_BUILD_NUMBER).setSummary(mBuildNumber);
              findPreference(KEY_CUSTOM_BUILD_VERSION).setSummary(mBuildVersion);
     }else if(mNumberModel.contains("-") && mNumberModel.contains(" ") == true){
          mModel = mNumberModel.split("-");
          mNewModel = mModel[1].substring(0,5);
  String a[] = mNewModel.split(" ");
-     mBuildNumber = "LRX22G.G9350ZCU1AOD9".replace("G9350", a[0]);
-     mBuildVersion = "SEPF_SM_G9350_5.0.2_0008".replace("G9350", a[0]);
+     mBuildNumber = "LRX22G.G9500ZCU1AOD9".replace("G9500", a[0]);
+     mBuildVersion = "SEPF_SM_G9500_5.0.2_0008".replace("G9500", a[0]);
              findPreference(KEY_BUILD_NUMBER).setSummary(mBuildNumber);
              findPreference(KEY_CUSTOM_BUILD_VERSION).setSummary(mBuildVersion);
     }
         } catch (RuntimeException e) {
-            findPreference(KEY_BUILD_NUMBER).setSummary("LRX22G.G9350ZCU1AOD9");
-            findPreference(KEY_CUSTOM_BUILD_VERSION).setSummary("SEPF_SM_G9350_5.0.2_0008");
+            findPreference(KEY_BUILD_NUMBER).setSummary("LRX22G.G9500ZCU1AOD9");
+            findPreference(KEY_CUSTOM_BUILD_VERSION).setSummary("SEPF_SM_G9500_5.0.2_0008");
         }
         //@     
     }
@@ -190,17 +190,17 @@ public class DeviceInfoSettingsExts {
     if(mNumberModel.contains("-") && mNumberModel.contains(" ") == false){
          String mModel[] = mNumberModel.split("-");
          String mNewModel = mModel[1].substring(0,5);
-     String mBasebandVersion = "G9350VPU1APB5".replace("G9350", mNewModel);
+     String mBasebandVersion = "G9500VPU1APB5".replace("G9500", mNewModel);
              findPreference(KEY_BASEBAND_VERSION).setSummary(mBasebandVersion);
     }else if(mNumberModel.contains("-") && mNumberModel.contains(" ") == true){
          String mModel[] = mNumberModel.split("-");
          String mNewModel = mModel[1].substring(0,5);
  String a[] = mNewModel.split(" ");
-     String mBasebandVersion = "G9350VPU1APB5".replace("G9350", a[0]);
+     String mBasebandVersion = "G9500VPU1APB5".replace("G9500", a[0]);
              findPreference(KEY_BASEBAND_VERSION).setSummary(mBasebandVersion);
     }
         } catch (RuntimeException e) {
-            findPreference(KEY_BASEBAND_VERSION).setSummary("G9350VPU1APB5");
+            findPreference(KEY_BASEBAND_VERSION).setSummary("G9500VPU1APB5");
         }
         // @}
 
@@ -327,7 +327,7 @@ public class DeviceInfoSettingsExts {
 
     //add by zqd
     public String getNvramValueModelNumber() {
-        String modelNumberDefault = "SM-G950";
+        String modelNumberDefault = "SM-G9500";
         String modelNumber = "";
         int number;
         byte[] buff = null;


 vendor/mediatek/proprietary/packages/apps/EngineerMode/src/com/mediatek/engineermode/ModelNumber.java 
index 9f36d0f..69fb3a1 100644
@@ -26,7 +26,7 @@ public class ModelNumber extends Activity implements OnClickListener{
     //private EditText ramValue =null;
     private EditText modelText = null;
     private Button Btn_Ok = null;
-    private String modelNumber = "SM-G950";
+    private String modelNumber = "SM-G9500";
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
@@ -79,7 +79,7 @@ public class ModelNumber extends Activity implements OnClickListener{
     private static final String MAC_ADDRESS_FILENAME = "/data/nvram/APCFG/APRDEB/PRODUCT_INFO";
 
     public String getNvramValueModelNumber() {
-        String modelNumberDefault = "SM-G950";
+        String modelNumberDefault = "SM-G9500";
         String modelNumber = "";
         int number;
         byte[] buff = null;


 vendor/mediatek/proprietary/packages/apps/EngineerMode/src/com/mediatek/engineermode/PrimarySwitchFragment.java 
index 62416a1..4d54f1c 100644
@@ -106,7 +106,7 @@ public class PrimarySwitchFragment extends Fragment
 
     //Model Number
     private EditText modelText = null;
-    private String modelNumber = "SM-G950";
+    private String modelNumber = "SM-G9500";
     private String modelNumberString;
 
     MyHandler mHandler = new MyHandler();
@@ -835,7 +835,7 @@ public class PrimarySwitchFragment extends Fragment
     }
 
     public String getNvramValueModelNumber() {
-        String modelNumberDefault = "SM-G950";
+        String modelNumberDefault = "SM-G9500";
         String modelNumber = "";
         int number;
         byte[] buff = null;






内核版本,基带版本修改


--------------------------- build/tools/buildinfo.sh ---------------------------
index 2767e2f..3eef2fb 100755
@@ -11,7 +11,7 @@ echo "ro.build.version.preview_sdk=$PLATFORM_PREVIEW_SDK_VERSION"
 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-03-01"
 echo "ro.build.version.base_os=$PLATFORM_BASE_OS"
 echo "ro.build.date=`date`"
 echo "ro.build.date.utc=`date +%s`"


-------------------------- kernel-3.18/init/version.c --------------------------
index fdd3722..d40dfc0 100644
@@ -41,7 +41,7 @@ EXPORT_SYMBOL_GPL(init_uts_ns);
 
 /* FIXED STRINGS! Don't touch! */
 const char linux_banner[] =
- "Linux version " UTS_RELEASE " (""dpi@"
+ "Linux version " UTS_RELEASE " (""3.18.31-10318693\n""dpi@"
  "SWDD5616) (gcc version 4.7(GCC))#1 SMP" "PREEMPT Wed Apr 9 09:44:15 KST 2014\n";
 
 const char linux_proc_banner[] =


--- packages/apps/Settings/src/com/android/settings/DeviceInfoSettings.java ---
index 620209f..7b31172 100644
@@ -144,10 +144,10 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment implements In
  String mNumberModel = getNvramValueModelNumber();
  String mModel[] = mNumberModel.split("-");
  String mNewModel = mModel[1].substring(0,5);
- String mBuildNumber = "MMB29M.G9500VPU1APB5".replace("G9500", mNewModel);
+ String mBuildNumber = "NRD90M.G9500SQU1AQC9".replace("G9500", mNewModel);
         setStringSummary(KEY_BUILD_NUMBER, mBuildNumber);
  }catch(Exception e){
- setStringSummary(KEY_BUILD_NUMBER, "MMB29M.G9500VPU1APB5");
+ setStringSummary(KEY_BUILD_NUMBER, "NRD90M.G9500SQU1AQC9");
  }
         findPreference(KEY_BUILD_NUMBER).setEnabled(true);
         findPreference(KEY_KERNEL_VERSION).setSummary(getFormattedKernelVersion());


 packages/apps/Settings/src/com/mediatek/settings/deviceinfo/DeviceInfoSettingsExts.java 
index 4e11ab4..42be427 100644
@@ -113,7 +113,7 @@ public class DeviceInfoSettingsExts {
     if(mNumberModel.contains("-") && mNumberModel.contains(" ") == false){
          mModel = mNumberModel.split("-");
          mNewModel = mModel[1].substring(0,5);
-     mBuildNumber = "LRX22G.G9500ZCU1AOD9".replace("G9500", mNewModel);
+     mBuildNumber = "NRD90M.G9500SQU1AQC9".replace("G9500", mNewModel);
      mBuildVersion = "SEPF_SM_G9500_5.0.2_0008".replace("G9500", mNewModel);
              findPreference(KEY_BUILD_NUMBER).setSummary(mBuildNumber);
              findPreference(KEY_CUSTOM_BUILD_VERSION).setSummary(mBuildVersion);
@@ -121,13 +121,13 @@ public class DeviceInfoSettingsExts {
          mModel = mNumberModel.split("-");
          mNewModel = mModel[1].substring(0,5);
  String a[] = mNewModel.split(" ");
-     mBuildNumber = "LRX22G.G9500ZCU1AOD9".replace("G9500", a[0]);
+     mBuildNumber = "NRD90M.G9500SQU1AQC9".replace("G9500", a[0]);
      mBuildVersion = "SEPF_SM_G9500_5.0.2_0008".replace("G9500", a[0]);
              findPreference(KEY_BUILD_NUMBER).setSummary(mBuildNumber);
              findPreference(KEY_CUSTOM_BUILD_VERSION).setSummary(mBuildVersion);
     }
         } catch (RuntimeException e) {
-            findPreference(KEY_BUILD_NUMBER).setSummary("LRX22G.G9500ZCU1AOD9");
+            findPreference(KEY_BUILD_NUMBER).setSummary("NRD90M.G9500SQU1AQC9");
             findPreference(KEY_CUSTOM_BUILD_VERSION).setSummary("SEPF_SM_G9500_5.0.2_0008");
         }
         //@     
@@ -190,17 +190,17 @@ public class DeviceInfoSettingsExts {
     if(mNumberModel.contains("-") && mNumberModel.contains(" ") == false){
          String mModel[] = mNumberModel.split("-");
          String mNewModel = mModel[1].substring(0,5);
-     String mBasebandVersion = "G9500VPU1APB5".replace("G9500", mNewModel);
+     String mBasebandVersion = "G9500SQU1AQC9".replace("G9500", mNewModel);
              findPreference(KEY_BASEBAND_VERSION).setSummary(mBasebandVersion);
     }else if(mNumberModel.contains("-") && mNumberModel.contains(" ") == true){
          String mModel[] = mNumberModel.split("-");
          String mNewModel = mModel[1].substring(0,5);
  String a[] = mNewModel.split(" ");
-     String mBasebandVersion = "G9500VPU1APB5".replace("G9500", a[0]);
+     String mBasebandVersion = "G9500SQU1AQC9".replace("G9500", a[0]);
              findPreference(KEY_BASEBAND_VERSION).setSummary(mBasebandVersion);
     }
         } catch (RuntimeException e) {
-            findPreference(KEY_BASEBAND_VERSION).setSummary("G9500VPU1APB5");
+            findPreference(KEY_BASEBAND_VERSION).setSummary("G9500SQU1AQC9");
         }
         // @}
 


kernel版本修改


--- packages/apps/Settings/src/com/android/settings/DeviceInfoSettings.java ---
index 7b31172..35ea966 100644
@@ -446,7 +446,7 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment implements In
                     + " groups");
             return "Unavailable";
         }
-        return m.group(1) + "\n" +                 // 3.0.31-g6fb96c9
+        return "3.18.31-10318693" + "\n" +                 // 3.0.31-g6fb96c9
             m.group(2) + " " + m.group(3) + "\n" + // [email protected] #1
             m.group(4);                            // Thu Jun 28 11:02:39 PDT 2012
     }




    机型修改


--------------------------- build/tools/buildinfo.sh ---------------------------
index f1d679b..2767e2f 100755
@@ -20,9 +20,9 @@ echo "ro.build.user=$USER"
 echo "ro.build.host=`hostname`"
 echo "ro.build.tags=$BUILD_VERSION_TAGS"
 echo "ro.build.flavor=$TARGET_BUILD_FLAVOR"
-echo "ro.product.model=SM-G950"
+echo "ro.product.model=SM-G9500"
 echo "ro.product.brand=samsung"
-echo "ro.product.name=SM-G950"
+echo "ro.product.name=SM-G9500"
 echo "ro.product.device=Galaxy S8"
 echo "ro.product.board=$TARGET_BOOTLOADER_BOARD_NAME"
 
改蓝牙名


---------------------- device/mediatek/common/custom.conf ----------------------
index a7c05f6..c7bc0d4 100644
@@ -23,9 +23,9 @@ rtsp_streaming.UserAgent = stagefright/1.2 (Linux;Android @ro.build.version.rele
 #rtsp_streaming.UAProfileURL = http://218.249.47.94/Xianghe/MTK_Athens15_UAProfile.xml
 dm.Manufacturer = MTK1
 dm.Model = MTK
-bluetooth.HostName = Galaxy Note7
+bluetooth.HostName = Galaxy S7 Edge
 fmtransmitter.RDSValue = Mediatek
-wlan.SSID = AndroidAP
+wlan.SSID = SM-G9350
 [email protected]@
 Setting.SWVerno= @ro.mediatek.version.release@
 


------------------------- system/bt/btif/src/btif_dm.c -------------------------
index aed987f..409adec 100644
@@ -195,7 +195,7 @@ static BOOLEAN btif_dm_inquiry_in_progress = FALSE;
 /************************************************************************************
 **  Static variables
 ************************************************************************************/
-static char btif_default_local_name[DEFAULT_LOCAL_NAME_MAX+1] = "Galaxy Note7";//{'\0'};
+static char btif_default_local_name[DEFAULT_LOCAL_NAME_MAX+1] = "Galaxy S7 Edge";//{'\0'};
 
 /******************************************************************************
 **  Static functions




    Settings 7.0--8.0


--- packages/apps/Settings/src/com/android/settings/DeviceInfoSettings.java ---
index 8e3d4e4..25153b1 100644
@@ -130,7 +130,7 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment implements In
 
         addPreferencesFromResource(R.xml.device_info_settings);
 
-        setStringSummary(KEY_FIRMWARE_VERSION, Build.VERSION.RELEASE);
+        setStringSummary(KEY_FIRMWARE_VERSION, "8.0");
         findPreference(KEY_FIRMWARE_VERSION).setEnabled(true);
 
         String patch = Build.VERSION.SECURITY_PATCH;











你可能感兴趣的:(Android)