[Galaxy S II General] joyman77:
korean galaxy s2 cannot receive mms messages at current version. can you please modify them? thank you.*

ModifiedFiles=/system/framework/framework.jar,/system/app/Mms.apk

data newFunction()

.method getUserDataKSC5601(I)Ljava/lang/String;

.locals 5

.parameter "byteCount"

.prologue

.line 794

:try_start_0

new-instance v1, Ljava/lang/String;

iget-object v2, p0, Lcom/android/internal/telephony/gsm/SmsMessage$PduParser;->pdu:[B

iget v3, p0, Lcom/android/internal/telephony/gsm/SmsMessage$PduParser;->cur:I

const-string v4, "EUC-KR"

invoke-direct {v1, v2, v3, p1, v4}, Ljava/lang/String;-><init>([BIILjava/lang/String;)V

:try_end_0

.catch Ljava/io/UnsupportedEncodingException; {:try_start_0 .. :try_end_0} :catch_0

.line 801

.local v1, ret:Ljava/lang/String;

:goto_0

iget v2, p0, Lcom/android/internal/telephony/gsm/SmsMessage$PduParser;->cur:I

add-int/2addr v2, p1

iput v2, p0, Lcom/android/internal/telephony/gsm/SmsMessage$PduParser;->cur:I

.line 802

return-object v1

.line 795

.end local v1 #ret:Ljava/lang/String;

:catch_0

move-exception v2

move-object v0, v2

.line 797

.local v0, ex:Ljava/io/UnsupportedEncodingException;

const/4 v1, 0x0

.line 798

.restart local v1 #ret:Ljava/lang/String;

const-string v2, "GSM"

const-string v3, "implausible UnsupportedEncodingException"

invoke-static {v2, v3, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

goto :goto_0

.end method

enddata

.method static constructor <clinit>()V

.locals 6

.prologue

const/16 v3, 0x11

const/4 v4, 0x0

const/4 v5, 0x1

.line 23

const-class v2, Lcom/google/android/mms/pdu/CharacterSets;

invoke-virtual {v2}, Ljava/lang/Class;->desiredAssertionStatus()Z

move-result v2

if-nez v2, :cond_0

move v2, v5

:goto_0

sput-boolean v2, Lcom/google/android/mms/pdu/CharacterSets;->$assertionsDisabled:Z

.line 56

new-array v2, v3, [I

fill-array-data v2, :array_0

sput-object v2, Lcom/google/android/mms/pdu/CharacterSets;->MIBENUM_NUMBERS:[I

.line 100

new-array v2, v3, [Ljava/lang/String;

const-string v3, "*"

aput-object v3, v2, v4

const-string/jumbo v3, "us-ascii"

aput-object v3, v2, v5

const/4 v3, 0x2

const-string v4, "iso-8859-1"

aput-object v4, v2, v3

const/4 v3, 0x3

const-string v4, "iso-8859-2"

aput-object v4, v2, v3

const/4 v3, 0x4

const-string v4, "iso-8859-3"

aput-object v4, v2, v3

const/4 v3, 0x5

const-string v4, "iso-8859-4"

aput-object v4, v2, v3

const/4 v3, 0x6

const-string v4, "iso-8859-5"

aput-object v4, v2, v3

const/4 v3, 0x7

const-string v4, "iso-8859-6"

aput-object v4, v2, v3

const/16 v3, 0x8

const-string v4, "iso-8859-7"

aput-object v4, v2, v3

const/16 v3, 0x9

const-string v4, "iso-8859-8"

aput-object v4, v2, v3

const/16 v3, 0xa

const-string v4, "iso-8859-9"

aput-object v4, v2, v3

const/16 v3, 0xb

const-string/jumbo v4, "shift_JIS"

aput-object v4, v2, v3

const/16 v3, 0xc

const-string/jumbo v4, "utf-8"

aput-object v4, v2, v3

const/16 v3, 0xd

const-string v4, "big5"

aput-object v4, v2, v3

const/16 v3, 0xe

const-string v4, "iso-10646-ucs-2"

aput-object v4, v2, v3

const/16 v3, 0xf

const-string/jumbo v4, "utf-16"

aput-object v4, v2, v3

const/16 v3, 0x10

const-string/jumbo v4, "euc-kr"

aput-object v4, v2, v3

sput-object v2, Lcom/google/android/mms/pdu/CharacterSets;->MIME_NAMES:[Ljava/lang/String;

.line 124

new-instance v2, Ljava/util/HashMap;

invoke-direct {v2}, Ljava/util/HashMap;-><init>()V

sput-object v2, Lcom/google/android/mms/pdu/CharacterSets;->MIBENUM_TO_NAME_MAP:Ljava/util/HashMap;

.line 125

new-instance v2, Ljava/util/HashMap;

invoke-direct {v2}, Ljava/util/HashMap;-><init>()V

sput-object v2, Lcom/google/android/mms/pdu/CharacterSets;->NAME_TO_MIBENUM_MAP:Ljava/util/HashMap;

.line 126

sget-boolean v2, Lcom/google/android/mms/pdu/CharacterSets;->$assertionsDisabled:Z

if-nez v2, :cond_1

sget-object v2, Lcom/google/android/mms/pdu/CharacterSets;->MIBENUM_NUMBERS:[I

array-length v2, v2

sget-object v3, Lcom/google/android/mms/pdu/CharacterSets;->MIME_NAMES:[Ljava/lang/String;

array-length v3, v3

if-eq v2, v3, :cond_1

new-instance v2, Ljava/lang/AssertionError;

invoke-direct {v2}, Ljava/lang/AssertionError;-><init>()V

throw v2

:cond_0

move v2, v4

.line 23

goto/16 :goto_0

.line 127

:cond_1

sget-object v2, Lcom/google/android/mms/pdu/CharacterSets;->MIBENUM_NUMBERS:[I

array-length v2, v2

sub-int v0, v2, v5

.line 128

.local v0, count:I

const/4 v1, 0x0

.local v1, i:I

:goto_1

if-gt v1, v0, :cond_2

.line 129

sget-object v2, Lcom/google/android/mms/pdu/CharacterSets;->MIBENUM_TO_NAME_MAP:Ljava/util/HashMap;

sget-object v3, Lcom/google/android/mms/pdu/CharacterSets;->MIBENUM_NUMBERS:[I

aget v3, v3, v1

invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

move-result-object v3

sget-object v4, Lcom/google/android/mms/pdu/CharacterSets;->MIME_NAMES:[Ljava/lang/String;

aget-object v4, v4, v1

invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

.line 130

sget-object v2, Lcom/google/android/mms/pdu/CharacterSets;->NAME_TO_MIBENUM_MAP:Ljava/util/HashMap;

sget-object v3, Lcom/google/android/mms/pdu/CharacterSets;->MIME_NAMES:[Ljava/lang/String;

aget-object v3, v3, v1

sget-object v4, Lcom/google/android/mms/pdu/CharacterSets;->MIBENUM_NUMBERS:[I

aget v4, v4, v1

invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

move-result-object v4

invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

.line 128

add-int/lit8 v1, v1, 0x1

goto :goto_1

.line 132

:cond_2

return-void

.line 56

nop

:array_0

.array-data 0x4

0x0t 0x0t 0x0t 0x0t

0x3t 0x0t 0x0t 0x0t

0x4t 0x0t 0x0t 0x0t

0x5t 0x0t 0x0t 0x0t

0x6t 0x0t 0x0t 0x0t

0x7t 0x0t 0x0t 0x0t

0x8t 0x0t 0x0t 0x0t

0x9t 0x0t 0x0t 0x0t

0xat 0x0t 0x0t 0x0t

0xbt 0x0t 0x0t 0x0t

0xct 0x0t 0x0t 0x0t

0x11t 0x0t 0x0t 0x0t

0x6at 0x0t 0x0t 0x0t

0xeat 0x7t 0x0t 0x0t

0xe8t 0x3t 0x0t 0x0t

0xf7t 0x3t 0x0t 0x0t

0x26t 0x0t 0x0t 0x0t

.end array-data

.end method