Post Reply

[MOD] Auto Correct and Uses System Font for Samsung Keyboard

OP Arsaw

23rd January 2013, 12:18 PM   |  #21  
Senior Member
Flag 广东
Thanks Meter: 254
 
305 posts
Join Date:Joined: Dec 2012
Donate to Me
More
Quote:
Originally Posted by grgsiocl

Nice Mod!

HOW TO

target following file smali/com/diotek/ime/framework/input/SwiftkeyQwertyLatinInputModule.smali

PHP Code:
     :goto_1
     
const/16 v70xa
 
-    if-ne p1v7, :cond_4
+    if-ne p1v7, :cond_5
 
     invoke
-virtual {p0}, Lcom/diotek/ime/framework/input/SwiftkeyQwertyLatinInputModule;->sendEnterKeyHandle()V
 

     
goto :goto_0
 
     
:cond_3
+    iget-object v7p0Lcom/diotek/ime/framework/input/AbstractInputModule;->mComposing:Ljava/lang/StringBuilder;
+
+    
invoke-virtual {v7}, Ljava/lang/StringBuilder;->length()I
+
+    
move-result v7
+
+    if-
lez v7, :cond_4
+
+    
iget-object v7p0Lcom/diotek/ime/framework/input/AbstractInputModule;->mEngineManager:Lcom/diotek/ime/framework/engine/InputEngineManager;
+
+    
iget-object v8p0Lcom/diotek/ime/framework/input/AbstractInputModule;->mComposing:Ljava/lang/StringBuilder;
+
+    
invoke-interface {v7v8v9}, 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
+
+    :
cond_4
+    invoke-virtual {p0}, Lcom/diotek/ime/framework/input/SwiftkeyQwertyLatinInputModule;->clearCandidateList()V
+
     
iget-object v7p0Lcom/diotek/ime/framework/input/AbstractInputModule;->mEngineManager:Lcom/diotek/ime/framework/engine/InputEngineManager;
 
     
iget-object v8p0Lcom/diotek/ime/framework/input/AbstractInputModule;->mCandidates:Ljava/util/ArrayList;

 
     goto :
goto_1
 
-    :cond_4
+    :cond_5
     iget
-object v7p0Lcom/diotek/ime/framework/input/AbstractInputModule;->mRepository:Lcom/diotek/ime/framework/repository/Repository;
 
     const-
string v8"IN_MULTITAP"

 
     
move-result v5
 
-    if-eqz v5, :cond_5
+    if-eqz v5, :cond_6
 
     invoke
-virtual {p0p1p2}, Lcom/diotek/ime/framework/input/SwiftkeyQwertyLatinInputModule;->processMultiTapSymbolicKey(I[I)V
 
     
goto/16 :goto_0
 
-    :cond_5
+    :cond_6
     iget
-object v7p0Lcom/diotek/ime/framework/input/AbstractInputModule;->mAutoSpaceController:Lcom/diotek/ime/framework/input/autospace/AutoSpaceController;
 
     
invoke-virtual {v7p1}, Lcom/diotek/ime/framework/input/autospace/AutoSpaceController;->isEnableAutoSpaceAtSymbol(I)Z
 
     move
-result v7
 
-    if-eqz v7, :cond_6
+    if-eqz v7, :cond_7
 
     invoke
-virtual {p0v10}, Lcom/diotek/ime/framework/input/SwiftkeyQwertyLatinInputModule;->finishComposing(Z)V
 

 
     invoke
-virtual {p0v7}, Lcom/diotek/ime/framework/input/SwiftkeyQwertyLatinInputModule;->commitTextAndInitComposing(Ljava/lang/CharSequence;)V
 
-    :cond_6
+    :cond_7
     invoke
-virtual {p0v10}, Lcom/diotek/ime/framework/input/SwiftkeyQwertyLatinInputModule;->finishComposing(Z)V
 
     iget
-object v7p0Lcom/diotek/ime/framework/input/AbstractInputModule;->mComposing:Ljava/lang/StringBuilder;

 
     
move-result v7
 
-    if-eqz v7, :cond_7
+    if-eqz v7, :cond_8
 
     iget
-object v7p0Lcom/diotek/ime/framework/input/AbstractInputModule;->mComposing:Ljava/lang/StringBuilder;
 

 
     
invoke-virtual {v7}, Lcom/diotek/ime/framework/input/autospace/AutoSpaceController;->disableSetUpAutoSpace()V
 
-    :cond_7
+    :cond_8
     iget
-object v7p0Lcom/diotek/ime/framework/input/AbstractInputModule;->mComposing:Ljava/lang/StringBuilder;
 
     
invoke-virtual {p0v7}, Lcom/diotek/ime/framework/input/SwiftkeyQwertyLatinInputModule;->commitTextAndInitComposing(Ljava/lang/CharSequence;)

GGGGreat thanks!!
23rd January 2013, 01:01 PM   |  #22  
Junior Member
Thanks Meter: 5
 
23 posts
Join Date:Joined: May 2011
How about for Cleanrom 4.0.5 for Verizon? Not sure if one of the previously listed ones will work, and can't try yet since my memory is full so I can't make a backup lol but I will try tonight or tomorrow once I offload some stuff. In the meantime if you already know none of those would work I would appreciate if you could take a look. I would guess based on what you have asked for previously that you will need the linked files.

Thanks!

framework-res.apk https://docs.google.com/file/d/0BwxF...lHSFBralU/edit
SamsungIME.apk https://docs.google.com/file/d/0BwxF...lCQjNPVms/edit
23rd January 2013, 01:05 PM   |  #23  
Arsaw's Avatar
OP Recognized Contributor / Recognized Developer
Flag Kuala Lumpur
Thanks Meter: 5,318
 
4,113 posts
Join Date:Joined: Dec 2010
Donate to Me
Re: [MOD] Auto Correction Feature Added on Samsung Keyboard
Quote:
Originally Posted by opalelement

How about for Cleanrom 4.0.5 for Verizon? Not sure if one of the previously listed ones will work, and can't try yet since my memory is full so I can't make a backup lol but I will try tonight or tomorrow once I offload some stuff. In the meantime if you already know none of those would work I would appreciate if you could take a look. I would guess based on what you have asked for previously that you will need the linked files.

Thanks!

framework-res.apk https://docs.google.com/file/d/0BwxF...lHSFBralU/edit
SamsungIME.apk https://docs.google.com/file/d/0BwxF...lCQjNPVms/edit

I don't think it will works for verizon model. I will try mod the keyboard you provided.

Sent from my GT-N7100 using xda app-developers app
23rd January 2013, 03:07 PM   |  #24  
Arsaw's Avatar
OP Recognized Contributor / Recognized Developer
Flag Kuala Lumpur
Thanks Meter: 5,318
 
4,113 posts
Join Date:Joined: Dec 2010
Donate to Me
Re: [MOD] Auto Correction Feature Added on Samsung Keyboard
Quote:
Originally Posted by opalelement

How about for Cleanrom 4.0.5 for Verizon? Not sure if one of the previously listed ones will work, and can't try yet since my memory is full so I can't make a backup lol but I will try tonight or tomorrow once I offload some stuff. In the meantime if you already know none of those would work I would appreciate if you could take a look. I would guess based on what you have asked for previously that you will need the linked files.

Thanks!

Here you go. Try it when you have your backup ready.

Download : http://db.tt/w5gl12gb

Sent from my GT-N7100 using Tapatalk 2
23rd January 2013, 04:36 PM   |  #25  
Member
Flag VA
Thanks Meter: 6
 
65 posts
Join Date:Joined: Mar 2010
More
Re: [MOD] Auto Correction Feature Added on Samsung Keyboard
same thing happened again. after flashing it in recovery (wiping cache, delvik cache), keyboard disappears from the settings.

Sent from my SAMSUNG-SGH-I317 using Tapatalk 2
23rd January 2013, 04:44 PM   |  #26  
Junior Member
Thanks Meter: 5
 
23 posts
Join Date:Joined: May 2011
I see the updater-script just moves the new SamsungIME.apk over and gives it 0644 permissions, and since I'm impatient I tried doing that manually after backing up original APK but it then only uses voice control and says the key oard isnt installed, even after clearing cache and dalvik through recovery. After replacing with the original the keyboard ckmes back.

I noticed the original keyboard was 7.15 mb and the replacent is only 5.83 mb, what changes that caises such a big size difference?
23rd January 2013, 04:59 PM   |  #27  
Arsaw's Avatar
OP Recognized Contributor / Recognized Developer
Flag Kuala Lumpur
Thanks Meter: 5,318
 
4,113 posts
Join Date:Joined: Dec 2010
Donate to Me
Quote:
Originally Posted by lehoi79

same thing happened again. after flashing it in recovery (wiping cache, delvik cache), keyboard disappears from the settings.

Sent from my SAMSUNG-SGH-I317 using Tapatalk 2

Final attempt......
Attached Files
File Type: zip AttSamsungKeyboard_AutoCorrection.zip - [Click for QR Code] (5.02 MB, 75 views)
The Following 3 Users Say Thank You to Arsaw For This Useful Post: [ View ]
23rd January 2013, 05:05 PM   |  #28  
Arsaw's Avatar
OP Recognized Contributor / Recognized Developer
Flag Kuala Lumpur
Thanks Meter: 5,318
 
4,113 posts
Join Date:Joined: Dec 2010
Donate to Me
Quote:
Originally Posted by opalelement

I see the updater-script just moves the new SamsungIME.apk over and gives it 0644 permissions, and since I'm impatient I tried doing that manually after backing up original APK but it then only uses voice control and says the key oard isnt installed, even after clearing cache and dalvik through recovery. After replacing with the original the keyboard ckmes back.

I noticed the original keyboard was 7.15 mb and the replacent is only 5.83 mb, what changes that caises such a big size difference?

Try this and see how.
Attached Files
File Type: zip VzSamsungKeyboard_AutoCorrection.zip - [Click for QR Code] (4.97 MB, 31 views)
23rd January 2013, 05:17 PM   |  #29  
Junior Member
Thanks Meter: 5
 
23 posts
Join Date:Joined: May 2011
That did it, it's about the same size and it's correcting now. Both of the apostrophes in that last sentence were auto corrected, as well as the fact that I have misspelled a lot of these words in this post so far. Thanks you very much for doing that.
The Following User Says Thank You to opalelement For This Useful Post: [ View ]
23rd January 2013, 06:41 PM   |  #30  
Androssama's Avatar
Senior Member
Thanks Meter: 66
 
108 posts
Join Date:Joined: Nov 2012
More
Quote:
Originally Posted by Arsaw

I will need the framework-res.apk from your rom.


Sent from my GT-N7100 using Tapatalk 2

Here you go (ROM : Omega v11 UBDLL3)

SamsungIME: db.tt/Qzmtno03
framework-res.apk: db.tt/p7RwnqvF

I'm a junior member and can't post external links so please add "ht tp : / /" at the beginning.

It would be great to have all the mods in the OP to serve as a repository.

Post Reply Subscribe to Thread

Tags
samsung keyboard auto correction
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Galaxy Note II Themes and Apps by ThreadRank