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):
now you have prediction everywhere
hf
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):
- 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)
. - decompile
apk-manager -> Decompile apk
. - edit code
open "KeyboardStateImpl.smali" at "projects\swiftkey\smali\com\touchtype\keyboard\in puteventmodel" with a text-editor
search for this block
and replace the first "iget-boolean"-line with "const/4 v0, 0x1"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 the second "iget-boolean"-line with "const/4 v0, 0x0"
. - 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"
. - 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
. - sign
apk-manager -> Sign apk
. - 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