[TUTORIAL] How to add Emoji support to Xperia Keyboards.

niaboc79

Recognized Developer / Themer
Sep 8, 2007
12,444
68,165
263
Enghien
www.nirvana-records.be
Introduction

As you know the emoji are only working if you are using KitKat rom normally.

Today I will show you how to edit the International Xperia Keyboard to be able to use emoji also with Jelly Bean rom.

Tutorial

  • Download latest Xperia Keyboard, there are a lot available on the forum.
  • Decompile it with apktool as usual (I won't explain how to use apktool).
  • Open smali/com/sonyericsson/textinput/uxp/configuration/TextInputRequirements.smali
  • Search this method:
    Code:
    .method private getSymbolsType(Landroid/content/res/Resources;)Ljava/lang/String;
  • In that method replace the word smiley by emoji like this:
    Code:
    .method private getSymbolsType(Landroid/content/res/Resources;)Ljava/lang/String;
        .locals 2
        .param p1, "res"    # Landroid/content/res/Resources;
    
        .prologue
        .line 222
        sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
    
        const/16 v1, 0x13
    
        if-lt v0, v1, :cond_0
    
        .line 228
        const v0, 0x7f0a0003
    
        invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
    
        move-result-object v0
    
        .line 230
        :goto_0
        return-object v0
    
        :cond_0
        const-string v0, "[COLOR="Green"]emoji[/COLOR]"
    
        goto :goto_0
    .end method
  • Recompile and sign apk
  • Done