[MOD] Add auto-correct to Samsung Keyboard and shorten long-press delay

Search This thread

eclipxe

Senior Member
Jan 14, 2007
68
84
Make sure you set permissions - I am almost certain that permissions will not be right and lead to crash.

Requires deodex + set permission
 

MohJee

Senior Member
Nov 3, 2012
645
252
Forcloses for me aswell.

Im on deodexed 4.1.2 international version (arhd rom)

Permissions were set to rwrr
 

eclipxe

Senior Member
Jan 14, 2007
68
84
Yeah this might only be for Sprint :banghead:

If someone can send an ATT or Intl. APK I can try to mod those and make the patcher work.

Sent from my SPH-L900 using xda app-developers app
 

brooon

Senior Member
May 11, 2009
852
156
Yeah this might only be for Sprint :banghead:

If someone can send an ATT or Intl. APK I can try to mod those and make the patcher work.

Sent from my SPH-L900 using xda app-developers app

As I was dumb enough to overwrite mine with the Sprint version, I can´t upload you the one that was there before :rolleyes: Reflash i needed^^ But perhaps there is someone out there who can provide us with his version!
 

lehoi79

Senior Member
Mar 22, 2010
65
6
VA
Here is the AT&T stock samsungime.apk from deodexed AT&T rom. (Extracted from CleanRom)
It will be awesome if you can mod this for us ATT users.

Thanks!
 

Attachments

  • SamsungIME.apk
    7.2 MB · Views: 39

rawdikrik

Senior Member
Sep 24, 2008
898
160
Arlington
Samsung Galaxy S22 Ultra
Ok.

I'm on sprint. Switched my default to swipe, then dropped the apk in the right folder and restarted.

Upon restart, I switched to the Samsung keyboard and it worked perfectly.

tested the auto correct and the shortened hold time and it works great.

and then I held the phone in landscape and found the flaw. The phone on the keyboard no longer works in landscape.

Might want to check that out

EDIT: did another restart, bam, works perfectly. Good job.

Sent from my SPH-L900 using xda app-developers app
 
Last edited:

kaerlighed

Senior Member
Jun 15, 2009
72
12
I tried to install this by putting it into the system/app folder, but when I restart, the keyboard crashes on me everything I try to use it.

Does anyone have the apk for the unmodded keyboard?

Many thanks.
 

thermus

Senior Member
May 13, 2008
626
169
Oregon
www.toyotaoutlaws.com
what are the permissions I should set?

Just put a check mark in all the boxes. Lol



Sent from my SPH-L900 using Tapatalk 2

---------- Post added at 10:00 PM ---------- Previous post was at 09:58 PM ----------

Worked great for me. Auto correct is amazing. So happy it's on the Samsung keyboard now.

Copy to System/app
Overwritecurrent file
Change permissions to read/write/execute
Restart

All is working amazing.

THANK YOU!!!!!!:beer::beer::beer::beer::beer::beer::beer:
Sent from my SPH-L900 using Tapatalk 2
 

kaerlighed

Senior Member
Jun 15, 2009
72
12
I did try that (checking all the boxes but it still force closes. I'm on stock rooted deodexed.

Now I would be satisfied just getting the stock keyboard back.:)

Sent from my SPH-L900 using Tapatalk 2
 

Nuvolaz

Senior Member
Dec 19, 2012
79
5
I'm on wicked rom dll7 and for me doesn't work. I downloaded the apk, with root explorer I cut and paste it in system/app, fix the permission, restarted, but the keyboard always FC.

How can I fix this problem? Some ideas?
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 35
    Hey all, this is my first mod, but it was driving me crazy that the stock samsung keyboard didn't support auto-correct - and the timeout delay was way too long.

    I'm working on an auto-patcher in the next couple of days.

    EDIT:
    I attached the APK: /system/app/
    Make sure to set the proper permissions, then reboot.

    The code changed is below

    Here's a first stab at fixing both, would love some feedback.

    1. To change the long press delay

    In PointerTracker:
    Code:
            ###################################################
    	# Change the long press delay to 200ms from 500ms #
    	###################################################
        .line 498
        const/16 v0, 0xc8
    
        .line 499
        .local v0, delay:I
        packed-switch p1, :pswitch_data_0
    
        .line 504
        const/16 v0, 0xc8
    
        .line 507
        :goto_0
        int-to-long v1, v0
    
        return-wide v1
    
        .line 501
        :pswitch_0
        const/16 v0, 0xc8

    2. To add auto-correct

    In SwiftkeyQwertyLatinInputModule
    Code:
        .line 312
        :cond_3
    	
    	##################################################
    	# Add support for auto-correct on word separator # 
    	##################################################
    	#check if the user has entered text
        iget-object v7, p0, Lcom/diotek/ime/framework/input/AbstractInputModule;->mComposing:Ljava/lang/StringBuilder;
        invoke-virtual {v7}, Ljava/lang/StringBuilder;->length()I
        move-result v7
        if-lez v7, :cond_10
    	
        iget-object v7, p0, Lcom/diotek/ime/framework/input/AbstractInputModule;->mEngineManager:Lcom/diotek/ime/framework/engine/InputEngineManager;
        iget-object v8, p0, Lcom/diotek/ime/framework/input/AbstractInputModule;->mComposing:Ljava/lang/StringBuilder;
        invoke-interface {v7, v8, v9}, Lcom/diotek/ime/framework/engine/InputEngineManager;->getCharSequence(Ljava/lang/StringBuilder;I)I
    	invoke-virtual {p0}, Lcom/diotek/ime/framework/input/SwiftkeyQwertyLatinInputModule;->updateSuggestion()V
    	invoke-virtual {p0}, Lcom/diotek/ime/framework/input/SwiftkeyQwertyLatinInputModule;->setComposingText()V
    	##################################################
    	# End support for auto-correct on word separator #
    	##################################################
    
       #move clearCandidateList from beginning of processWordSeparator to after we do correct
       :cond_10
        invoke-virtual {p0}, Lcom/diotek/ime/framework/input/SwiftkeyQwertyLatinInputModule;->clearCandidateList()V
    	
       #code below is not changed - just for reference	
        iget-object v7, p0, Lcom/diotek/ime/framework/input/AbstractInputModule;->mEngineManager:Lcom/diotek/ime/framework/engine/InputEngineManager;
    
        iget-object v8, p0, Lcom/diotek/ime/framework/input/AbstractInputModule;->mCandidates:Ljava/util/ArrayList;
    
        invoke-interface {v7, v8}, Lcom/diotek/ime/framework/engine/InputEngineManager;->getSuggestion(Ljava/util/ArrayList;)I
    
        .line 313
    4
    Op here, glad this is still working! I should get a GS4 soon and will make a more generic version for all Galaxy variants

    Sent from my SPH-L710 using xda premium
    2
    Care to share it?

    Sent from my SPH-L900 using xda premium

    See the post a few above yours.

    Found this link to a working stock keyboard with auto correct for ma7 I've been using it all day and haven't had a single problem just loving my auto correct! =D so anyways go to
    http://xdaforums.com/showthread.php?t=2110841 and click spoiler in the op at the bottom of the list is the keyboard for sprint. It says to flash it but I just unzipped the zip file and manually moved the apk to system/app and deleted the .odex file. If I helped at all please thank me =)

    Sent from my SPH-L900 using xda app-developers app
    2
    Found this link to a working stock keyboard with auto correct for ma7 I've been using it all day and haven't had a single problem just loving my auto correct! =D so anyways go to
    http://xdaforums.com/showthread.php?t=2110841 and click spoiler in the op at the bottom of the list is the keyboard for sprint. It says to flash it but I just unzipped the zip file and manually moved the apk to system/app and deleted the .odex file. If I helped at all please thank me =)

    Sent from my SPH-L900 using xda app-developers app
    2
    This is the keyboard from deodexed international 4.1.2

    http://db.tt/Xy3xGJbk

    Hope you can make one for us.