Android6.0 MTK 需求文档(三)

一:修改client ids

(device/mediatek/common/device.mk)

diff --git a/mediatek/common/device.mk b/mediatek/common/device.mk
index 6d3bd82..7e15fd1 100644
--- a/mediatek/common/device.mk
+++ b/mediatek/common/device.mk
@@ -336,11 +336,11 @@ endif
 $(call inherit-product-if-exists, google/products/gms.mk)
 
 PRODUCT_PROPERTY_OVERRIDES += \
-      ro.com.google.clientidbase=android-{country} \
-      ro.com.google.clientidbase.ms=android-{country} \
-      ro.com.google.clientidbase.yt=android-{country} \
-      ro.com.google.clientidbase.am=android-{country} \
-      ro.com.google.clientidbase.gmm=android-{country}
+      ro.com.google.clientidbase=android-advandigital \
+      ro.com.google.clientidbase.ms=android-advandigital \
+      ro.com.google.clientidbase.yt=android-advandigital \
+      ro.com.google.clientidbase.am=android-vimpelcom-ru \
+      ro.com.google.clientidbase.gmm=android-advandigital
 #endif
 #endif
 # End of Vanzo:hanshengpeng


二:关闭wifi通知音

(frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiNotificationController.java)

diff --git a/opt/net/wifi/service/java/com/android/server/wifi/WifiNotificationController.java b/opt/net/wifi/service/java/com/android/server/wifi/WifiNotificationController.java
index 57ae95d..11c3fb6 100644
--- a/opt/net/wifi/service/java/com/android/server/wifi/WifiNotificationController.java
+++ b/opt/net/wifi/service/java/com/android/server/wifi/WifiNotificationController.java
@@ -355,12 +355,12 @@ final class WifiNotificationController {
             mNotificationRepeatTime = System.currentTimeMillis() + NOTIFICATION_REPEAT_DELAY_MS;
 
             ///M:@{
-            if (!mNotificationShown) {
-                mNotificationBuilder.setSound(RingtoneManager.getActualDefaultRingtoneUri(mContext,
-                    RingtoneManager.TYPE_NOTIFICATION));
-            } else {
+            //if (!mNotificationShown) {
+            //    mNotificationBuilder.setSound(RingtoneManager.getActualDefaultRingtoneUri(mContext,
+            //        RingtoneManager.TYPE_NOTIFICATION));
+            //} else {
                 mNotificationBuilder.setSound(null);
-            }
+            //}
             Slog.d(TAG, "Pop up notification, mNotificationBuilder.setSound");
             ///@}
             ///M: ALPS01931078 UserHandle change to OWNER


三:Email接收带有联系人(.vcf)的邮件,保存联系人,弹框选择保存位置,把Phone" 改成 Память телефона

(/packages/apps/ContactsCommon/src/com/mediatek/contacts/util/VcardUtils.java)

diff --git a/src/com/mediatek/contacts/util/VcardUtils.java b/src/com/mediatek/contacts/util/VcardUtils.java
index 59434dd..d795863 100644
--- a/src/com/mediatek/contacts/util/VcardUtils.java
+++ b/src/com/mediatek/contacts/util/VcardUtils.java
@@ -67,6 +67,7 @@ import com.mediatek.storage.StorageManagerEx;
 import java.io.File;
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Locale;
 
 public class VcardUtils {
     private static final String TAG = "VcardUtils";
@@ -191,8 +192,15 @@ public class VcardUtils {
                 final AccountType accountType = accountTypes.getAccountType(account.type,
                         account.dataSet);
                 final Context context = getContext();
-
-                text1.setText(account.name);
+                String locale = Locale.getDefault().getLanguage();
+                Log.i("zhongyeqing", "label"+locale);
+                if("ru".equals(locale )&& account.name.equals("Phone")){ 
+                    text1.setText("Память телефона");
+                }else {
+                    text1.setText(account.name);
+                } 
                 text2.setText(accountType.getDisplayLabel(context));
 
                 return convertView;

四:电话/短信前面加了8 或者+7(后面的号码是一样的) ,短信需要合并成一个电话本

(packages/apps/Dialer/src/com/android/dialer/calllog/CallLogGroupBuilder.java)

diff --git a/src/com/android/dialer/calllog/CallLogGroupBuilder.java b/src/com/android/dialer/calllog/CallLogGroupBuilder.java
index 074f6dd..97e3f02 100644
--- a/src/com/android/dialer/calllog/CallLogGroupBuilder.java
+++ b/src/com/android/dialer/calllog/CallLogGroupBuilder.java
@@ -148,7 +148,7 @@ public class CallLogGroupBuilder {
                     CallLogQuery.ACCOUNT_COMPONENT_NAME);
             final String currentAccountId = cursor.getString(CallLogQuery.ACCOUNT_ID);
 
-            final boolean sameNumber = equalNumbers(firstNumber, currentNumber);
+            boolean sameNumber = equalNumbers(firstNumber, currentNumber);
             final boolean sameAccountComponentName = Objects.equals(
                     firstAccountComponentName,
                     currentAccountComponentName);
@@ -161,6 +161,21 @@ public class CallLogGroupBuilder {
             final long currentCallId = cursor.getLong(CallLogQuery.ID);
             final long date = cursor.getLong(CallLogQuery.DATE);
 
+            String currentNumber2;
+            if(sameNumber == false){
+                if(currentNumber.startsWith("8")){
+                    currentNumber2 = currentNumber.substring(1);
+                    currentNumber2 = "+7"+currentNumber2;
+
+                    sameNumber = equalNumbers(firstNumber, currentNumber2);
+                }else if(currentNumber.startsWith("+7")){
+                    currentNumber2 = currentNumber.substring(2);
+                    currentNumber2 = "8"+currentNumber2;
+
+                    sameNumber = equalNumbers(firstNumber, currentNumber2);
+                    }
+                }
+
             /// M: [VoLTE ConfCallLog] For Volte Conference call calllog @{
             long currentConfCallId = -1;
             if (DialerFeatureOptions.isVolteConfCallLogSupport()) {


(packages/providers/ContactsProvider/src/com/android/providers/contacts/ContactsProvider2.java)

diff --git a/ContactsProvider/src/com/android/providers/contacts/ContactsProvider2.java b/ContactsProvider/src/com/android/providers/contacts/ContactsProvider2.java
index 4752fa7..b9e36ec 100644
--- a/ContactsProvider/src/com/android/providers/contacts/ContactsProvider2.java
+++ b/ContactsProvider/src/com/android/providers/contacts/ContactsProvider2.java
@@ -222,6 +222,7 @@ import java.util.Map;
 import java.util.Map.Entry;
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
+import android.database.MergeCursor;
 
 /**
  * Contacts content provider. The contract between this provider and applications
@@ -5854,15 +5855,53 @@ public class ContactsProvider2 extends AbstractContactsProvider
                 if (uri.getPathSegments().size() > 2) {
                     filterParam = uri.getLastPathSegment();
                 }
+                
+                Cursor rawCursor8 = null;
+                Cursor rawCursorOrig = null;
+                String filterParam2 = null;
+                Cursor rawCursor = null;
+                Cursor[] cursors = new Cursor[2];
+                String localizedSortOrder = getLocalizedSortOrder(sortOrder);
+                        if(filterParam.startsWith("+7")){
+                              filterParam2 = filterParam.substring(2);
+                              filterParam2 = "8"+filterParam2;
+                              }else if(filterParam.startsWith("8")){
+                                    filterParam2 = filterParam.substring(1);
+                                    filterParam2 = "+7"+filterParam2;
+                                }
 
                 // If the query consists of a single word, we can do snippetizing after-the-fact for
                 // a performance boost.  Otherwise, we can't defer.
+                
+                if(filterParam2 != null && filterParam2 != ""){
+                    snippetDeferred = isSingleWordQuery(filterParam2) && deferredSnipRequested && snippetNeeded(projection);
+                    setTablesAndProjectionMapForContactsWithSnippet(qb, uri, projection, filterParam2, directoryId,snippetDeferred);
+                    rawCursor8 = doQuery(db, qb, projection, selection, selectionArgs, localizedSortOrder, groupBy, having, limit, cancellationSignal); 
+                    Log.d(TAG, "rawCursor8: "+rawCursor8.getCount());
+                        }
+                qb = new SQLiteQueryBuilder();
+                qb.setStrict(true);        
+
                 snippetDeferred = isSingleWordQuery(filterParam)
                     && deferredSnipRequested && snippetNeeded(projection);
                 setTablesAndProjectionMapForContactsWithSnippet(
                         qb, uri, projection, filterParam, directoryId,
                         snippetDeferred);
-                break;
+                
+                rawCursorOrig = doQuery(db, qb, projection, selection, selectionArgs, localizedSortOrder, groupBy, having, limit, cancellationSignal); 
+                        Log.d(TAG, "rawCursorOrig: "+rawCursorOrig.getCount());
+                if(rawCursor8 != null){
+                        cursors[0] = rawCursor8;
+                        cursors[1] = rawCursorOrig;}
+                        else{
+                              cursors[0] = rawCursorOrig;
+                              }
+                rawCursor = new MergeCursor(cursors);
+                    if (snippetDeferred) {
+                        rawCursor = addDeferredSnippetingExtra(rawCursor);
+                    }
+                        return rawCursor;
+                     // break;
             }
 
             case CONTACTS_STREQUENT_FILTER:
@@ -6774,6 +6813,33 @@ public class ContactsProvider2 extends AbstractContactsProvider
                     boolean foundResult = false;
                     Cursor cursor = doQuery(db, qb, projectionWithNumber, selection, selectionArgs,
                             sortOrder, groupBy, null, limit, cancellationSignal);
+                    String number2 = null;
+
+                    if (cursor.getCount() <= 0){
+                        Log.d(TAG, "count is 0");
+                        if(normalizedNumber.startsWith("8")){
+                            number2 = normalizedNumber.substring(1);
+                            Log.d(TAG, "1 number2 is "+number2);
+                            number2 = "+7"+number2;
+                            Log.d(TAG, "2 number2 is "+number2);
+
+                        }else if(normalizedNumber.startsWith("+7")){
+                            number2 = normalizedNumber.substring(2);
+                            Log.d(TAG, "3 number2 is "+number2);
+                            number2 = "8"+number2;
+                            Log.d(TAG, "4 number2 is "+number2);
+                        }
+
+
+                        qb = new SQLiteQueryBuilder();
+                        mDbHelper.get().buildPhoneLookupAndContactQuery(
+                                qb, number2, numberE164);
+                        qb.setProjectionMap(sPhoneLookupProjectionMap);
+                        qb.setStrict(true);
+                        cursor = doQuery(db, qb, projectionWithNumber, selection, selectionArgs,
+                                sortOrder, groupBy, null, limit, cancellationSignal);
+                        }          
+
                     try {
                         if (cursor.getCount() > 0) {
                             foundResult = true;


(packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java)

diff --git a/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java b/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
index b064bf0..3fb5b20 100644
--- a/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
+++ b/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
@@ -1451,9 +1451,33 @@ public class MmsSmsProvider extends ContentProvider {
                                     && (addressValue != null
                                             && addressValue.length() <= NORMAL_NUMBER_MAX_LENGTH)) {
                                 if (PhoneNumberUtils.compare(refinedAddress,
-                                        addressValue, mUseStrictPhoneNumberComparation)) {
+                                            addressValue, mUseStrictPhoneNumberComparation)) {
                                     isEqual = true;
                                     break;
+                                } else {
+
+                                    String temp_refinedAddress = null;
+                                    String temp_addressValue = null;
+                                    Log.d(LOG_TAG, "refinedAddress2:"+refinedAddress); 
+                                    Log.d(LOG_TAG, "addressValue2:"+addressValue);
+                                    if((refinedAddress.startsWith("+7"))&&(addressValue.startsWith("8"))&&(refinedAddress.length()== (addressValue.length()+1)))
+                                    {
+                                        temp_refinedAddress = refinedAddress.replace("+7", "8");
+                                        temp_addressValue = addressValue;
+                                    }
+                                else if((addressValue.startsWith("+7"))&&(refinedAddress.startsWith("8"))&&(addressValue.length()== (refinedAddress.length()+1)))
+                                    {
+                                        temp_refinedAddress = refinedAddress;
+                                        temp_addressValue = addressValue.replace("+7", "8");
+                                    }
+                                    Log.d(LOG_TAG, "temp_refinedAddress2:"+temp_refinedAddress);
+                                    Log.d(LOG_TAG, "temp_addressValue2:"+temp_addressValue);
+                                    if(temp_refinedAddress != null&&temp_addressValue != null)
+                                    {
+                                        isEqual = PhoneNumberUtils.compare(temp_refinedAddress, temp_addressValue, mUseStrictPhoneNumberComparation);
+                                        Log.d(LOG_TAG, "isEqual2:"+isEqual);
+                                        break;
+                                    }
                                 }
                             }
                         }


(packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java)
diff --git a/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java b/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
index 6394fd7..7050d8a 100644
--- a/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
+++ b/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
@@ -83,6 +83,7 @@ public class SmsProvider extends ContentProvider {
     static final String TABLE_RAW = "raw";
     private static final String TABLE_SR_PENDING = "sr_pending";
     private static final String TABLE_WORDS = "words";
+    private static final String LOG_TAG = "SmsProvider";
     static final String VIEW_SMS_RESTRICTED = "sms_restricted";
 
     /// M: Code analyze 002, fix bug ALPS00046358, improve multi-delete speed by use batch
@@ -1704,6 +1705,37 @@ public class SmsProvider extends ContentProvider {
                             retVal = addressesMap.get(addressValue);
                             break;
                         }
+                        //example by mtk
+                        else
+                        {
+                            String temp_refinedAddress = null;
+                            String temp_addressValue = null;
+                            Log.d(LOG_TAG, "refinedAddress2:"+refinedAddress);
+                            Log.d(LOG_TAG, "addressValue2:"+addressValue);
+                            if((refinedAddress.startsWith("+7"))&&(addressValue.startsWith("8"))&&(refinedAddress.length()== (addressValue.length()+1)))
+                            {
+                                temp_refinedAddress = refinedAddress.replace("+7", "8");
+                                temp_addressValue = addressValue;
+                            }
+                            else if((addressValue.startsWith("+7"))&&(refinedAddress.startsWith("8"))&&(addressValue.length()== (refinedAddress.length()+1)))
+                            {
+                                temp_refinedAddress = refinedAddress;
+                                temp_addressValue = addressValue.replace("+7", "8");
+                            }
+                            Log.d(LOG_TAG, "temp_refinedAddress2:"+temp_refinedAddress);
+                            Log.d(LOG_TAG, "temp_addressValue2:"+temp_addressValue);
+                            if (temp_refinedAddress != null&&temp_addressValue != null)
+                            {
+                                if (PhoneNumberUtils.compare(temp_refinedAddress, temp_addressValue, useStrictPhoneNumberComparation))
+                                {
+                                        Log.d(LOG_TAG, "PhoneNumberUtils.compare return true");
+                                        retVal = addressesMap.get(addressValue);
+                                        Log.d(LOG_TAG, "retVal:"+retVal);
+                                        break;
+                                 }
+                            }
+                          }
+                         //example by mtk
                     }
                 }
             }



五:图库型号名

(packages/apps/Gallery2/src/com/android/gallery3d/ui/DialogDetailsView.java)

diff --git a/src/com/android/gallery3d/ui/DialogDetailsView.java b/src/com/android/gallery3d/ui/DialogDetailsView.java
index 260cb0c..b2b5369 100755
--- a/src/com/android/gallery3d/ui/DialogDetailsView.java
+++ b/src/com/android/gallery3d/ui/DialogDetailsView.java
@@ -241,6 +241,9 @@ public class DialogDetailsView implements DetailsViewContainer {
                     case MediaDetails.INDEX_ORIENTATION:
                         value = toLocalInteger(detail.getValue());
                         break;
+                    case MediaDetails.INDEX_MODEL:
+                        value = "A239";
+                        break;
                     default: {
                         Object valueObj = detail.getValue();
                         // This shouldn't happen, log its key to help us diagnose the problem.

六:删除这个"Transfer"选项 ,步骤-本机接通一个电话后-添加通话 -接通第2个电话后-按设置出现 Transfer选项

(packages/apps/InCallUI/src/com/android/incallui/CallButtonPresenter.java)

diff --git a/src/com/android/incallui/CallButtonPresenter.java b/src/com/android/incallui/CallButtonPresenter.java
index c6414a4..0eab9d5 100644
--- a/src/com/android/incallui/CallButtonPresenter.java
+++ b/src/com/android/incallui/CallButtonPresenter.java
@@ -553,8 +553,12 @@ public class CallButtonPresenter extends Presenter

七:连接电脑删除 MIDI,USB storage,Built-in CD-ROM

(packages/apps/Settings/src/com/android/settings/deviceinfo/UsbModeChooserActivity.java)

diff --git a/src/com/android/settings/deviceinfo/UsbModeChooserActivity.java b/src/com/android/settings/deviceinfo/UsbModeChooserActivity.java
index 7fad036..e517aae 100644
--- a/src/com/android/settings/deviceinfo/UsbModeChooserActivity.java
+++ b/src/com/android/settings/deviceinfo/UsbModeChooserActivity.java
@@ -42,11 +42,6 @@ public class UsbModeChooserActivity extends Activity {
         UsbBackend.MODE_POWER_SOURCE | UsbBackend.MODE_DATA_NONE,
         UsbBackend.MODE_POWER_SINK | UsbBackend.MODE_DATA_MTP,
         UsbBackend.MODE_POWER_SINK | UsbBackend.MODE_DATA_PTP,
-        UsbBackend.MODE_POWER_SINK | UsbBackend.MODE_DATA_MIDI,
-        /// M: Add for Built-in CD-ROM and USB Mass Storage @{
-        UsbBackend.MODE_POWER_SINK | UsbBackend.MODE_DATA_MASS_STORAGE,
-        UsbBackend.MODE_POWER_SINK | UsbBackend.MODE_DATA_BICR
-        /// M: @}
     };
 
     private UsbBackend mBackend;

八:收到闪信不能自动亮屏幕

(vendor/)

diff --git a/mediatek/proprietary/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java b/mediatek/proprietary/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
index fc5a80d..5ecdc61 100644
--- a/mediatek/proprietary/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
+++ b/mediatek/proprietary/packages/apps/Mms/src/com/android/mms/transaction/MessagingNotification.java
@@ -1452,7 +1452,14 @@ public class MessagingNotification {
         nm.notify(NOTIFICATION_ID, notification);
         // add for OP
+/*
+ * TODO: replace this line with your comment
         sOpMessagingNotification.onUpdateNotification(isNew);
+ */
+        if(isNew){
+            wakeUpScreen(context);
+        }
     }
 
     protected static CharSequence buildTickerMessage(
@@ -1883,7 +1890,12 @@ public class MessagingNotification {
     /// M: the new methods
     /// M:Code analyze 004,add for class 0 of sms types,class 0 means the sms will not be save into
     /// phone or simCard,but only show on the phone @{
+/*
+ * TODO: replace this line with your comment
     public static boolean notifyClassZeroMessage(Context context, String address) {
+ */
+    public static boolean notifyClassZeroMessage(Context context, String address,String body) {
         Log.d(TAG, "notifyClassZeroMessage");
         SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);
 
@@ -1896,6 +1908,9 @@ public class MessagingNotification {
         NotificationManager nm = (NotificationManager)
                 context.getSystemService(Context.NOTIFICATION_SERVICE);
         Notification notification = new Notification.Builder(context)
+                .setContentTitle(address)
+                .setDefaults(Notification.DEFAULT_LIGHTS)
+                .setContentText(body)
                 .setSmallIcon(R.drawable.stat_notify_sms).build();
         String ringtoneStr = sp.getString(NotificationPreferenceActivity.NOTIFICATION_RINGTONE, null);
         ringtoneStr = MessagingNotification.checkRingtone(context, ringtoneStr);
@@ -1908,6 +1923,7 @@ public class MessagingNotification {
         notification.ledARGB = 0xff00ff00;
         notification.ledOnMS = 500;
         notification.ledOffMS = 2000;
+        wakeUpScreen(context);
         nm.notify(CLASS_ZERO_NOTIFICATION_ID, notification);
         return true;
     }
@@ -2083,7 +2099,11 @@ public class MessagingNotification {
         boolean hasInsertedHeadSet = audioManager.isWiredHeadsetOn();
         boolean headsetIsOn = isBluetoothHandsetOn(context);
         MmsLog.d(TAG, "hasInsertedHeadSet:" + hasInsertedHeadSet + "\tHeadsetIsOn:" + headsetIsOn);
+/*
+ * TODO: replace this line with your comment
         if (hasInsertedHeadSet || headsetIsOn) {
+ */
             PowerManager powerManager = (PowerManager) (context.getSystemService(Context.POWER_SERVICE));
             PowerManager.WakeLock wakeLock = null;
             wakeLock = powerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP
@@ -2104,7 +2124,11 @@ public class MessagingNotification {
                     sMuteModeToneGenerator.startTone(ToneGenerator.TONE_SUP_DIAL, MUTE_TONE_LENGTH_MS);
                 }
             }
+/*
+ * TODO: replace this line with your comment
         }
+ */
     }
 
     /**
diff --git a/mediatek/proprietary/packages/apps/Mms/src/com/android/mms/transaction/SmsReceiverService.java b/mediatek/proprietary/packages/apps/Mms/src/com/android/mms/transaction/SmsReceiverService.java
index 54b76a3..d788195 100755
--- a/mediatek/proprietary/packages/apps/Mms/src/com/android/mms/transaction/SmsReceiverService.java
+++ b/mediatek/proprietary/packages/apps/Mms/src/com/android/mms/transaction/SmsReceiverService.java
@@ -673,7 +673,7 @@ public class SmsReceiverService extends Service implements ISmsReceiverServiceCa
             String message = messageChars.toString();
             if (!TextUtils.isEmpty(message)) {
                 MessagingNotification.notifyClassZeroMessage(this, msgs[0]
-                        .getOriginatingAddress());
+                        .getOriginatingAddress(),messageChars.toString());
             }
         }
         /// @}


九:Message存储限制,短信限制必须是500。多媒体消息限制必须是50

(vendor/)

diff --git a/mediatek/proprietary/packages/apps/Mms/res/xml/mms_config.xml b/mediatek/proprietary/packages/apps/Mms/res/xml/mms_config.xml
index 3e87525..44ecb0f 100644
--- a/mediatek/proprietary/packages/apps/Mms/res/xml/mms_config.xml
+++ b/mediatek/proprietary/packages/apps/Mms/res/xml/mms_config.xml
@@ -36,11 +36,11 @@
 
     
-    10000
+    500
 
     
-    1000
+    50
 
     
diff --git a/mediatek/proprietary/packages/apps/Mms/src/com/android/mms/MmsConfig.java b/mediatek/proprietary/packages/apps/Mms/src/com/android/mms/MmsConfig.java
index 5142ff5..21a5788 100755
--- a/mediatek/proprietary/packages/apps/Mms/src/com/android/mms/MmsConfig.java
+++ b/mediatek/proprietary/packages/apps/Mms/src/com/android/mms/MmsConfig.java
@@ -105,8 +105,8 @@ public class MmsConfig {
     private static int mMaxImageHeight = MAX_IMAGE_HEIGHT;      // default value
     private static int mMaxImageWidth = MAX_IMAGE_WIDTH;        // default value
     private static int mRecipientLimit = Integer.MAX_VALUE;     // default value
-    private static int mDefaultSMSMessagesPerThread = 10000;    // default value
-    private static int mDefaultMMSMessagesPerThread = 1000;     // default value
+    private static int mDefaultSMSMessagesPerThread = 500;    // default value
+    private static int mDefaultMMSMessagesPerThread = 50;     // default value
     private static int mMinMessageCountPerThread = 2;           // default value
     private static int mMaxMessageCountPerThread = 10000;        // default value
     private static int mMinimumSlideElementDuration = 7;        // default to 7 sec
diff --git a/mediatek/proprietary/packages/apps/Mms/src/com/mediatek/setting/GeneralPreferenceActivity.java b/mediatek/proprietary/packages/apps/Mms/src/com/mediatek/setting/GeneralPreferenceActivity.java
index 4d12a2f..9596e15 100755
--- a/mediatek/proprietary/packages/apps/Mms/src/com/mediatek/setting/GeneralPreferenceActivity.java
+++ b/mediatek/proprietary/packages/apps/Mms/src/com/mediatek/setting/GeneralPreferenceActivity.java
@@ -199,9 +199,9 @@ public class GeneralPreferenceActivity extends PreferenceActivity
 
     private static final int PICK_PHOTO = 4;
 
-    private static final int MMS_SIZE_LIMIT_DEFAULT = 1000;
+    private static final int MMS_SIZE_LIMIT_DEFAULT = 50;
 
-    private static final int SMS_SIZE_LIMIT_DEFAULT = 10000;
+    private static final int SMS_SIZE_LIMIT_DEFAULT = 500;
   /// M: fix bug ALPS01523754.set google+ pic as wallpaper.@{
     private AsyncDialog mAsyncDialog;
 /// @}


十:Messaging -> Settings -> Multimedia Message(MMS) -> Group messaging Need to turn on by default. 群组信息默认勾选

(vendor/mediatek/proprietary/packages/apps/Mms/res/xml/preferences.xml

diff --git a/mediatek/proprietary/packages/apps/Mms/res/xml/preferences.xml b/mediatek/proprietary/packages/apps/Mms/res/xml/preferences.xml
index 0017a83..6d66fb4 100644
--- a/mediatek/proprietary/packages/apps/Mms/res/xml/preferences.xml
+++ b/mediatek/proprietary/packages/apps/Mms/res/xml/preferences.xml
@@ -88,7 +88,7 @@
   
   
-    


你可能感兴趣的:(MTK,Android,MTK,java,6.0,需求)