Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

swiftkey - always enable prediction

$
0
0
Hi,

i've bought swiftkey one year ago and never used it since this day.
Because the prediction never want to do, what i want.

Here a the steps to decompile and recompile swiftkey with the prediction hack (on windows):
  1. startup
    download apk-manager, extract it, open the folder
    copy your swiftkey apk to the "place-apk-here-for-modding" folder
    run the script.bat
    apk-manager -> Set current project (swiftkey)
    .
  2. decompile
    apk-manager -> Decompile apk
    .
  3. edit code
    open "KeyboardStateImpl.smali" at "projects\swiftkey\smali\com\touchtype\keyboard\in puteventmodel" with a text-editor
    search for this block
    Code:

    .method public isPredictionEnabled()Z
        .locals 1

        .prologue
        .line 147
        iget-boolean v0, p0, Lcom/touchtype/keyboard/inputeventmodel/KeyboardStateImpl;->mPredictionEnabled:Z

        return v0
    .end method

    .method public isSearchField()Z
        .locals 1

        .prologue
        .line 152
        iget-boolean v0, p0, Lcom/touchtype/keyboard/inputeventmodel/KeyboardStateImpl;->mEditorIsSearchField:Z

        return v0
    .end method

    and replace the first "iget-boolean"-line with "const/4 v0, 0x1"
    and the second "iget-boolean"-line with "const/4 v0, 0x0"
    .
  4. edit recources
    at "projects\swiftkey\res" folder replace at all files
    "ttp://schemas.android.com/apk/res/com.touchtype"
    with
    "ttp://schemas.android.com/apk/res/com.touchtype.swiftkey"
    .
  5. compile
    apk-manager -> Compile apk
    apk-manager on question one ( is this a system apk ) -> yes
    apk-manager on question two ( use original files ) -> yes
    now you have a "keep" folder at apk-manager directory, remove inside the file "classes.dex" and the folder "res"
    apk-manager -> hit enter to finish the step
    .
  6. sign
    apk-manager -> Sign apk
    .
  7. install
    please uninstall your original swiftkey (if you want to use your settings latter use "titanium backup")
    install the hacked one

now you have prediction everywhere

hf

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>