티스토리 뷰

넥서스S에는 미국과 일본의 로케일에서만 전화번호에 하이픈이 생기기 때문에 다음과 같이 패치한다.

문자메시지의 경우 MMS.apk에서 패치하면 되긴 하는데 3rd-Party 어플리케이션에서는 적용되지 않는다.
다른 곳을 찾아야 할듯 하다.

원문 :  http://noullove.tistory.com/entry/한글-전화번호-패치-방법



파일 :
위 파일은 CyanogenMod7 Nightly 206에만 적용된다. 절대 다른 빌드나 롬에 사용하면 안된다. 벽돌된다.
다른 롬에서는 직접 아래와 같이 수정해야 한다.

방법 :

1. APKTool로 framework.jar를 디코딩한다.
2. 에디터로 smali/android/telephony/PhoneNumberUtils.smali파일을 열어서

.method static constructor <clinit>()V
     #...(30줄 정도 아래에)...
     const-string v2, "CA" 를 const-string v2, "KR" 로 수정

그리고 formatNanpNumber 함수의 body부분을 다음으로 교체한다.
.method public static formatNanpNumber(Landroid/text/Editable;)V
    .registers 8
    .parameter "text"
 
    .prologue
    .line 1405
    invoke-interface {p0}, Landroid/text/Editable;->length()I
 
    move-result v1
 
    .line 1408
    .local v1, length:I
    const/16 v0, 0xe
 
    if-le v1, v0, :cond_a
 
    move p0, v1
 
    .line 1594
    .end local v1           #length:I
    .local p0, length:I
    :goto_9
    return-void
 
    .line 1411
    .restart local v1       #length:I
    .local p0, text:Landroid/text/Editable;
    :cond_a
    const/4 v0, 0x2
 
    if-ge v1, v0, :cond_f
 
    move p0, v1
 
    .line 1413
    .end local v1           #length:I
    .local p0, length:I
    goto :goto_9
 
    .line 1416
    .restart local v1       #length:I
    .local p0, text:Landroid/text/Editable;
    :cond_f
    const/4 v0, 0x5
 
    .line 1417
    .local v0, state:I
    invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
 
    move-result-object v0
 
    .line 1419
    .local v0, Digits:Ljava/lang/String;
    const/4 v2, 0x6
 
    if-ge v1, v2, :cond_39
 
    const-string v2, "-"
 
    invoke-virtual {v0, v2}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z
 
    move-result v2
 
    if-eqz v2, :cond_39
 
    .line 1420
    const/4 v0, 0x0
 
    .line 1421
    .local v0, p:I
    :goto_20
    invoke-interface {p0}, Landroid/text/Editable;->length()I
 
    move-result v2
 
    if-ge v0, v2, :cond_37
 
    .line 1422
    invoke-interface {p0, v0}, Landroid/text/Editable;->charAt(I)C
 
    move-result v2
 
    const/16 v3, 0x2d
 
    if-ne v2, v3, :cond_34
 
    .line 1423
    add-int/lit8 v2, v0, 0x1
 
    invoke-interface {p0, v0, v2}, Landroid/text/Editable;->delete(II)Landroid/text/Editable;
 
    goto :goto_20
 
    .line 1425
    :cond_34
    add-int/lit8 v0, v0, 0x1
 
    goto :goto_20
 
    :cond_37
    move p0, v1
 
    .line 1428
    .end local v1           #length:I
    .local p0, length:I
    goto :goto_9
 
    .line 1431
    .local v0, Digits:Ljava/lang/String;
    .restart local v1       #length:I
    .local p0, text:Landroid/text/Editable;
    :cond_39
    const/4 v2, 0x0
 
    invoke-interface {p0, v2}, Landroid/text/Editable;->charAt(I)C
 
    move-result v2
 
    const/16 v3, 0x30
 
    if-ne v2, v3, :cond_83
 
    .line 1432
    const/4 v2, 0x1
 
    invoke-interface {p0, v2}, Landroid/text/Editable;->charAt(I)C
 
    move-result v2
 
    const/16 v3, 0x32
 
    if-ne v2, v3, :cond_67
 
    .line 1433
    const/4 v0, 0x6
 
    .local v0, state:I
    move v4, v0
 
    .line 1473
    .end local v0           #state:I
    .local v4, state:I
    :goto_4d
    const/4 v0, 0x0
 
    invoke-interface {p0, v0, v1}, Landroid/text/Editable;->subSequence(II)Ljava/lang/CharSequence;
 
    move-result-object v3
 
    .line 1475
    .local v3, saved:Ljava/lang/CharSequence;
    const/4 v0, 0x0
 
    .line 1476
    .end local v1           #length:I
    .local v0, p:I
    :goto_53
    invoke-interface {p0}, Landroid/text/Editable;->length()I
 
    move-result v1
 
    if-ge v0, v1, :cond_126
 
    .line 1477
    invoke-interface {p0, v0}, Landroid/text/Editable;->charAt(I)C
 
    move-result v1
 
    const/16 v2, 0x2d
 
    if-ne v1, v2, :cond_122
 
    .line 1478
    add-int/lit8 v1, v0, 0x1
 
    invoke-interface {p0, v0, v1}, Landroid/text/Editable;->delete(II)Landroid/text/Editable;
 
    goto :goto_53
 
    .line 1435
    .end local v3           #saved:Ljava/lang/CharSequence;
    .end local v4           #state:I
    .local v0, Digits:Ljava/lang/String;
    .restart local v1       #length:I
    :cond_67
    const/4 v2, 0x3
 
    if-ge v1, v2, :cond_6c
 
    move p0, v1
 
    .end local v1           #length:I
    .local p0, length:I
    goto :goto_9
 
    .line 1436
    .restart local v1       #length:I
    .local p0, text:Landroid/text/Editable;
    :cond_6c
    const-string v2, "0505"
 
    invoke-virtual {v0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
 
    move-result v2
 
    if-nez v2, :cond_7c
 
    const-string v2, "050-5"
 
    invoke-virtual {v0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
 
    move-result v0
 
    .end local v0           #Digits:Ljava/lang/String;
    if-eqz v0, :cond_80
 
    .line 1437
    :cond_7c
    const/16 v0, 0xe
 
    .local v0, state:I
    move v4, v0
 
    .end local v0           #state:I
    .restart local v4       #state:I
    goto :goto_4d
 
    .line 1439
    .end local v4           #state:I
    :cond_80
    const/4 v0, 0x7
 
    .restart local v0       #state:I
    move v4, v0
 
    .end local v0           #state:I
    .restart local v4       #state:I
    goto :goto_4d
 
    .line 1441
    .end local v4           #state:I
    .local v0, Digits:Ljava/lang/String;
    :cond_83
    const/4 v2, 0x0
 
    invoke-interface {p0, v2}, Landroid/text/Editable;->charAt(I)C
 
    move-result v2
 
    const/16 v3, 0x2a
 
    if-ne v2, v3, :cond_c9
 
    .line 1442
    const/4 v2, 0x4
 
    if-ge v1, v2, :cond_92
 
    move p0, v1
 
    .end local v1           #length:I
    .local p0, length:I
    goto/16 :goto_9
 
    .line 1443
    .restart local v1       #length:I
    .local p0, text:Landroid/text/Editable;
    :cond_92
    const-string v2, "*23#"
 
    invoke-virtual {v0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
 
    move-result v2
 
    if-nez v2, :cond_aa
 
    const-string v2, "*22#"
 
    invoke-virtual {v0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
 
    move-result v2
 
    if-nez v2, :cond_aa
 
    const-string v2, "*31#"
 
    invoke-virtual {v0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
 
    move-result v2
 
    if-eqz v2, :cond_b4
 
    .line 1444
    :cond_aa
    const/4 v0, 0x5
 
    if-le v1, v0, :cond_b0
 
    .end local v0           #Digits:Ljava/lang/String;
    move p0, v1
 
    .end local v1           #length:I
    .local p0, length:I
    goto/16 :goto_9
 
    .line 1445
    .restart local v1       #length:I
    .local p0, text:Landroid/text/Editable;
    :cond_b0
    const/16 v0, 0xa
 
    .local v0, state:I
    move v4, v0
 
    .end local v0           #state:I
    .restart local v4       #state:I
    goto :goto_4d
 
    .line 1446
    .end local v4           #state:I
    .local v0, Digits:Ljava/lang/String;
    :cond_b4
    const-string v2, "*230#"
 
    invoke-virtual {v0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
 
    move-result v0
 
    .end local v0           #Digits:Ljava/lang/String;
    if-eqz v0, :cond_c6
 
    .line 1447
    const/4 v0, 0x6
 
    if-le v1, v0, :cond_c2
 
    move p0, v1
 
    .end local v1           #length:I
    .local p0, length:I
    goto/16 :goto_9
 
    .line 1448
    .restart local v1       #length:I
    .local p0, text:Landroid/text/Editable;
    :cond_c2
    const/16 v0, 0xb
 
    .local v0, state:I
    move v4, v0
 
    .end local v0           #state:I
    .restart local v4       #state:I
    goto :goto_4d
 
    .end local v4           #state:I
    :cond_c6
    move p0, v1
 
    .line 1450
    .end local v1           #length:I
    .local p0, length:I
    goto/16 :goto_9
 
    .line 1453
    .local v0, Digits:Ljava/lang/String;
    .restart local v1       #length:I
    .local p0, text:Landroid/text/Editable;
    :cond_c9
    const/4 v2, 0x0
 
    invoke-interface {p0, v2}, Landroid/text/Editable;->charAt(I)C
 
    move-result v2
 
    const/16 v3, 0x23
 
    if-ne v2, v3, :cond_fc
 
    .line 1454
    const/4 v2, 0x1
 
    invoke-interface {p0, v2}, Landroid/text/Editable;->charAt(I)C
 
    move-result v2
 
    const/16 v3, 0x39
 
    if-ne v2, v3, :cond_e6
 
    .line 1455
    const/4 v0, 0x3
 
    if-le v1, v0, :cond_e1
 
    .end local v0           #Digits:Ljava/lang/String;
    move p0, v1
 
    .end local v1           #length:I
    .local p0, length:I
    goto/16 :goto_9
 
    .line 1456
    .restart local v1       #length:I
    .local p0, text:Landroid/text/Editable;
    :cond_e1
    const/16 v0, 0x8
 
    .local v0, state:I
    move v4, v0
 
    .end local v0           #state:I
    .restart local v4       #state:I
    goto/16 :goto_4d
 
    .line 1457
    .end local v4           #state:I
    .local v0, Digits:Ljava/lang/String;
    :cond_e6
    const-string v2, "#31#"
 
    invoke-virtual {v0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
 
    move-result v0
 
    .end local v0           #Digits:Ljava/lang/String;
    if-eqz v0, :cond_f9
 
    .line 1458
    const/4 v0, 0x5
 
    if-le v1, v0, :cond_f4
 
    move p0, v1
 
    .end local v1           #length:I
    .local p0, length:I
    goto/16 :goto_9
 
    .line 1459
    .restart local v1       #length:I
    .local p0, text:Landroid/text/Editable;
    :cond_f4
    const/16 v0, 0xa
 
    .local v0, state:I
    move v4, v0
 
    .end local v0           #state:I
    .restart local v4       #state:I
    goto/16 :goto_4d
 
    .end local v4           #state:I
    :cond_f9
    move p0, v1
 
    .line 1461
    .end local v1           #length:I
    .local p0, length:I
    goto/16 :goto_9
 
    .line 1464
    .local v0, Digits:Ljava/lang/String;
    .restart local v1       #length:I
    .local p0, text:Landroid/text/Editable;
    :cond_fc
    const/4 v0, 0x0
 
    invoke-interface {p0, v0}, Landroid/text/Editable;->charAt(I)C
 
    .end local v0           #Digits:Ljava/lang/String;
    move-result v0
 
    const/16 v2, 0x2b
 
    if-ne v0, v2, :cond_114
 
    .line 1465
    const/4 v0, 0x6
 
    if-lt v1, v0, :cond_10c
 
    const/16 v0, 0x9
 
    if-le v1, v0, :cond_10f
 
    :cond_10c
    move p0, v1
 
    .end local v1           #length:I
    .local p0, length:I
    goto/16 :goto_9
 
    .line 1466
    .restart local v1       #length:I
    .local p0, text:Landroid/text/Editable;
    :cond_10f
    const/16 v0, 0x9
 
    .local v0, state:I
    move v4, v0
 
    .end local v0           #state:I
    .restart local v4       #state:I
    goto/16 :goto_4d
 
    .line 1468
    .end local v4           #state:I
    :cond_114
    const/4 v0, 0x5
 
    if-lt v1, v0, :cond_11b
 
    const/16 v0, 0x9
 
    if-le v1, v0, :cond_11e
 
    :cond_11b
    move p0, v1
 
    .end local v1           #length:I
    .local p0, length:I
    goto/16 :goto_9
 
    .line 1469
    .restart local v1       #length:I
    .local p0, text:Landroid/text/Editable;
    :cond_11e
    const/4 v0, 0x5
 
    .restart local v0       #state:I
    move v4, v0
 
    .end local v0           #state:I
    .restart local v4       #state:I
    goto/16 :goto_4d
 
    .line 1480
    .end local v1           #length:I
    .local v0, p:I
    .restart local v3       #saved:Ljava/lang/CharSequence;
    :cond_122
    add-int/lit8 v0, v0, 0x1
 
    goto/16 :goto_53
 
    .line 1484
    :cond_126
    invoke-interface {p0}, Landroid/text/Editable;->length()I
 
    move-result v2
 
    .line 1486
    .local v2, length:I
    invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
 
    move-result-object v0
 
    .end local v0           #p:I
    const-string v1, "3003003000"
 
    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
 
    move-result v0
 
    if-eqz v0, :cond_13f
 
    .line 1487
    const/4 v0, 0x0
 
    const-string v1, "300-300-3000"
 
    invoke-interface {p0, v0, v2, v1}, Landroid/text/Editable;->replace(IILjava/lang/CharSequence;)Landroid/text/Editable;
 
    move p0, v2
 
    .line 1488
    .end local v2           #length:I
    .local p0, length:I
    goto/16 :goto_9
 
    .line 1494
    .restart local v2       #length:I
    .local p0, text:Landroid/text/Editable;
    :cond_13f
    const/4 v0, 0x2
 
    new-array v0, v0, [I
 
    .line 1495
    .local v0, dashPositions:[I
    const/4 v1, 0x0
 
    .line 1498
    .local v1, numDashes:I
    packed-switch v4, :pswitch_data_238
 
    .line 1582
    :pswitch_146
    const/4 v0, 0x0
 
    invoke-interface {p0, v0, v2, v3}, Landroid/text/Editable;->replace(IILjava/lang/CharSequence;)Landroid/text/Editable;
 
    .end local v0           #dashPositions:[I
    move p0, v2
 
    .line 1583
    .end local v2           #length:I
    .local p0, length:I
    goto/16 :goto_9
 
    .line 1500
    .restart local v0       #dashPositions:[I
    .restart local v2       #length:I
    .local p0, text:Landroid/text/Editable;
    :pswitch_14d
    const/4 v3, 0x7
 
    if-gt v2, v3, :cond_168
 
    .line 1501
    .end local v3           #saved:Ljava/lang/CharSequence;
    const/4 v1, 0x0
 
    const/4 v3, 0x3
 
    aput v3, v0, v1
 
    .line 1502
    .end local v1           #numDashes:I
    const/4 v1, 0x1
 
    .restart local v1       #numDashes:I
    move v3, v1
 
    .line 1587
    .end local v1           #numDashes:I
    .local v3, numDashes:I
    :goto_156
    if-eqz v3, :cond_232
 
    .line 1588
    const/4 v1, 0x0
 
    .end local v4           #state:I
    .local v1, i:I
    :goto_159
    if-ge v1, v3, :cond_232
 
    .line 1589
    aget v4, v0, v1
 
    .line 1590
    .local v4, pos:I
    add-int v5, v4, v1
 
    add-int/2addr v4, v1
 
    const-string v6, "-"
 
    .end local v4           #pos:I
    invoke-interface {p0, v5, v4, v6}, Landroid/text/Editable;->replace(IILjava/lang/CharSequence;)Landroid/text/Editable;
 
    .line 1588
    add-int/lit8 v1, v1, 0x1
 
    goto :goto_159
 
    .line 1504
    .end local v3           #numDashes:I
    .local v1, numDashes:I
    .local v4, state:I
    :cond_168
    const/4 v3, 0x7
 
    if-le v2, v3, :cond_17c
 
    const/16 v3, 0xa
 
    if-gt v2, v3, :cond_17c
 
    .line 1505
    const/4 v1, 0x0
 
    const/4 v3, 0x3
 
    aput v3, v0, v1
 
    .line 1506
    .end local v1           #numDashes:I
    const/4 v1, 0x1
 
    const/4 v3, 0x4
 
    sub-int v3, v2, v3
 
    aput v3, v0, v1
 
    .line 1507
    const/4 v1, 0x2
 
    .restart local v1       #numDashes:I
    move v3, v1
 
    .line 1508
    .end local v1           #numDashes:I
    .restart local v3       #numDashes:I
    goto :goto_156
 
    .line 1509
    .end local v3           #numDashes:I
    .restart local v1       #numDashes:I
    :cond_17c
    const/16 v3, 0xa
 
    if-le v2, v3, :cond_235
 
    .line 1510
    const/4 v1, 0x0
 
    const/4 v3, 0x3
 
    aput v3, v0, v1
 
    .line 1511
    .end local v1           #numDashes:I
    const/4 v1, 0x1
 
    const/4 v3, 0x7
 
    aput v3, v0, v1
 
    .line 1512
    const/4 v1, 0x2
 
    .restart local v1       #numDashes:I
    move v3, v1
 
    .end local v1           #numDashes:I
    .restart local v3       #numDashes:I
    goto :goto_156
 
    .line 1516
    .restart local v1       #numDashes:I
    .local v3, saved:Ljava/lang/CharSequence;
    :pswitch_18b
    const/16 v3, 0x8
 
    if-gt v2, v3, :cond_196
 
    .line 1517
    .end local v3           #saved:Ljava/lang/CharSequence;
    const/4 v1, 0x0
 
    const/4 v3, 0x4
 
    aput v3, v0, v1
 
    .line 1518
    .end local v1           #numDashes:I
    const/4 v1, 0x1
 
    .restart local v1       #numDashes:I
    move v3, v1
 
    .line 1519
    .end local v1           #numDashes:I
    .local v3, numDashes:I
    goto :goto_156
 
    .line 1520
    .end local v3           #numDashes:I
    .restart local v1       #numDashes:I
    :cond_196
    const/16 v3, 0x8
 
    if-le v2, v3, :cond_1ab
 
    const/16 v3, 0xb
 
    if-gt v2, v3, :cond_1ab
 
    .line 1521
    const/4 v1, 0x0
 
    const/4 v3, 0x4
 
    aput v3, v0, v1
 
    .line 1522
    .end local v1           #numDashes:I
    const/4 v1, 0x1
 
    const/4 v3, 0x4
 
    sub-int v3, v2, v3
 
    aput v3, v0, v1
 
    .line 1523
    const/4 v1, 0x2
 
    .restart local v1       #numDashes:I
    move v3, v1
 
    .line 1524
    .end local v1           #numDashes:I
    .restart local v3       #numDashes:I
    goto :goto_156
 
    .line 1525
    .end local v3           #numDashes:I
    .restart local v1       #numDashes:I
    :cond_1ab
    const/16 v3, 0xb
 
    if-le v2, v3, :cond_235
 
    .line 1526
    const/4 v1, 0x0
 
    const/4 v3, 0x4
 
    aput v3, v0, v1
 
    .line 1527
    .end local v1           #numDashes:I
    const/4 v1, 0x1
 
    const/16 v3, 0x8
 
    aput v3, v0, v1
 
    .line 1528
    const/4 v1, 0x2
 
    .restart local v1       #numDashes:I
    move v3, v1
 
    .end local v1           #numDashes:I
    .restart local v3       #numDashes:I
    goto :goto_156
 
    .line 1532
    .restart local v1       #numDashes:I
    .local v3, saved:Ljava/lang/CharSequence;
    :pswitch_1bb
    const/4 v3, 0x6
 
    if-gt v2, v3, :cond_1c5
 
    .line 1533
    .end local v3           #saved:Ljava/lang/CharSequence;
    const/4 v1, 0x0
 
    const/4 v3, 0x2
 
    aput v3, v0, v1
 
    .line 1534
    .end local v1           #numDashes:I
    const/4 v1, 0x1
 
    .restart local v1       #numDashes:I
    move v3, v1
 
    .line 1535
    .end local v1           #numDashes:I
    .local v3, numDashes:I
    goto :goto_156
 
    .line 1536
    .end local v3           #numDashes:I
    .restart local v1       #numDashes:I
    :cond_1c5
    const/4 v3, 0x6
 
    if-le v2, v3, :cond_1da
 
    const/16 v3, 0x9
 
    if-gt v2, v3, :cond_1da
 
    .line 1537
    const/4 v1, 0x0
 
    const/4 v3, 0x2
 
    aput v3, v0, v1
 
    .line 1538
    .end local v1           #numDashes:I
    const/4 v1, 0x1
 
    const/4 v3, 0x4
 
    sub-int v3, v2, v3
 
    aput v3, v0, v1
 
    .line 1539
    const/4 v1, 0x2
 
    .restart local v1       #numDashes:I
    move v3, v1
 
    .line 1540
    .end local v1           #numDashes:I
    .restart local v3       #numDashes:I
    goto/16 :goto_156
 
    .line 1541
    .end local v3           #numDashes:I
    .restart local v1       #numDashes:I
    :cond_1da
    const/16 v3, 0x9
 
    if-le v2, v3, :cond_235
 
    .line 1542
    const/4 v1, 0x0
 
    const/4 v3, 0x2
 
    aput v3, v0, v1
 
    .line 1543
    .end local v1           #numDashes:I
    const/4 v1, 0x1
 
    const/4 v3, 0x6
 
    aput v3, v0, v1
 
    .line 1544
    const/4 v1, 0x2
 
    .restart local v1       #numDashes:I
    move v3, v1
 
    .end local v1           #numDashes:I
    .restart local v3       #numDashes:I
    goto/16 :goto_156
 
    .line 1548
    .restart local v1       #numDashes:I
    .local v3, saved:Ljava/lang/CharSequence;
    :pswitch_1ea
    const/4 v1, 0x0
 
    const/4 v3, 0x2
 
    aput v3, v0, v1
 
    .line 1549
    .end local v1           #numDashes:I
    .end local v3           #saved:Ljava/lang/CharSequence;
    const/4 v1, 0x1
 
    .restart local v1       #numDashes:I
    move v3, v1
 
    .line 1550
    .end local v1           #numDashes:I
    .local v3, numDashes:I
    goto/16 :goto_156
 
    .line 1552
    .restart local v1       #numDashes:I
    .local v3, saved:Ljava/lang/CharSequence;
    :pswitch_1f2
    const/4 v1, 0x0
 
    const/4 v3, 0x4
 
    aput v3, v0, v1
 
    .line 1553
    .end local v1           #numDashes:I
    .end local v3           #saved:Ljava/lang/CharSequence;
    const/4 v1, 0x1
 
    .restart local v1       #numDashes:I
    move v3, v1
 
    .line 1554
    .end local v1           #numDashes:I
    .local v3, numDashes:I
    goto/16 :goto_156
 
    .line 1556
    .restart local v1       #numDashes:I
    .local v3, saved:Ljava/lang/CharSequence;
    :pswitch_1fa
    const/4 v1, 0x0
 
    const/4 v3, 0x5
 
    aput v3, v0, v1
 
    .line 1557
    .end local v1           #numDashes:I
    .end local v3           #saved:Ljava/lang/CharSequence;
    const/4 v1, 0x1
 
    .restart local v1       #numDashes:I
    move v3, v1
 
    .line 1558
    .end local v1           #numDashes:I
    .local v3, numDashes:I
    goto/16 :goto_156
 
    .line 1560
    .restart local v1       #numDashes:I
    .local v3, saved:Ljava/lang/CharSequence;
    :pswitch_202
    const/16 v3, 0x8
 
    if-gt v2, v3, :cond_210
 
    .line 1561
    .end local v3           #saved:Ljava/lang/CharSequence;
    const/4 v1, 0x0
 
    const/4 v3, 0x4
 
    sub-int v3, v2, v3
 
    aput v3, v0, v1
 
    .line 1562
    .end local v1           #numDashes:I
    const/4 v1, 0x1
 
    .restart local v1       #numDashes:I
    move v3, v1
 
    .line 1563
    .end local v1           #numDashes:I
    .local v3, numDashes:I
    goto/16 :goto_156
 
    .line 1564
    .end local v3           #numDashes:I
    .restart local v1       #numDashes:I
    :cond_210
    const/16 v3, 0x8
 
    if-le v2, v3, :cond_235
 
    .line 1565
    const/4 v1, 0x0
 
    const/4 v3, 0x4
 
    aput v3, v0, v1
 
    .line 1566
    .end local v1           #numDashes:I
    const/4 v1, 0x1
 
    .restart local v1       #numDashes:I
    move v3, v1
 
    .end local v1           #numDashes:I
    .restart local v3       #numDashes:I
    goto/16 :goto_156
 
    .line 1570
    .restart local v1       #numDashes:I
    .local v3, saved:Ljava/lang/CharSequence;
    :pswitch_21c
    const/4 v3, 0x7
 
    if-gt v2, v3, :cond_227
 
    .line 1571
    .end local v3           #saved:Ljava/lang/CharSequence;
    const/4 v1, 0x0
 
    const/4 v3, 0x3
 
    aput v3, v0, v1
 
    .line 1572
    .end local v1           #numDashes:I
    const/4 v1, 0x1
 
    .restart local v1       #numDashes:I
    move v3, v1
 
    .line 1573
    .end local v1           #numDashes:I
    .local v3, numDashes:I
    goto/16 :goto_156
 
    .line 1574
    .end local v3           #numDashes:I
    .restart local v1       #numDashes:I
    :cond_227
    const/4 v3, 0x7
 
    if-le v2, v3, :cond_235
 
    .line 1575
    const/4 v1, 0x0
 
    const/4 v3, 0x4
 
    aput v3, v0, v1
 
    .line 1576
    .end local v1           #numDashes:I
    const/4 v1, 0x1
 
    .restart local v1       #numDashes:I
    move v3, v1
 
    .end local v1           #numDashes:I
    .restart local v3       #numDashes:I
    goto/16 :goto_156
 
    .end local v4           #state:I
    :cond_232
    move p0, v2
 
    .line 1594
    .end local v2           #length:I
    .local p0, length:I
    goto/16 :goto_9
 
    .end local v3           #numDashes:I
    .restart local v1       #numDashes:I
    .restart local v2       #length:I
    .restart local v4       #state:I
    .local p0, text:Landroid/text/Editable;
    :cond_235
    move v3, v1
 
    .end local v1           #numDashes:I
    .restart local v3       #numDashes:I
    goto/16 :goto_156
 
    .line 1498
    :pswitch_data_238
    .packed-switch 0x5
        :pswitch_21c
        :pswitch_1bb
        :pswitch_14d
        :pswitch_1ea
        :pswitch_202
        :pswitch_1f2
        :pswitch_1fa
        :pswitch_146
        :pswitch_146
        :pswitch_18b
    .end packed-switch
.end method

3. 컴파일 후 기존의 APK파일에서 META-INF폴더와 preloaded-classes파일을 복사해서 dist/framework.jar파일에 넣는다.

4. 리커버리모드에 진입하고 파일을 교체한다. (런타임 중 교체하면 문제가 발생할 수도 있다.) 
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함