yashsingh1/xdaforums huggingface dataset:
[Android Software Development] lancemulvihill85:
sorry if this seems dumb. but where can i change the color of the background, the keys, and trace? i'm a total noob at this. but i have paid for swype years ago and really would love to use it again. i just need that number row. i've decompiled, and added the rows already. would be cool to change colors though. thanks in advance for any help coming my way!
[Android Software Development] rv5750:
Check out this SwypeTweaks module.

Link: xdaforums.com/xposed/modules/mod-swypetweaks-v1-1-0-t2646572
[Android Software Development] ParrSt:
I have a GS5 and the file locations do not match. I found everything but pkg.apk. I did find com.nuance.swype.dtc-1.apk in /data/app

I found the two .so files in both /data/data/com.nuance.swype.dtc and data/app-lib/com.nuance.swype.dtc-1 AND in the /system/lib.

I decompiled com.nuance.swype.dtc-1.apk and followed all the steps. I put the newly compiled versions of the kbd files and the resources.arsc into a copy of the original com.nuance.swype.dtc-1.apk. I am confused as to why I need to uninstall then re-install swype. I understand putting the new moddified apk in /system/app

Questions:

1. Did I decompile and recompile the right .apk

2. Which .so files and do overwrite the ones that are already in /system/lib

3. System/app already has swype.apk. Do I delete this or just put com.nuance.swype.dtc-1.apk in there also.
[Android Software Development] lancemulvihill85:
That module only addresses Dragon voice dictation, not the number row. Also, I can't seem to recompile the apk unchanged with apktool. It keeps giving me public string array errors
[Android Software Development] Chris000001:
Post #6 in this thread has the solution for recompiling.
[Android Software Development] Chris000001:
You have to look at the compiler output. There were 3 or 4 files that needed to be fixed. It's not the keyboard xml file you have posted.
[Android Software Development] kmdangi:
Can anyone help adding top number row to this keyboard please, will be very much thankful !!

I have tried all the solutions of using samsungIME.apk from S4 /S5/ Note 2/ Note 3, no success, keyboard FC after doing that. :(
[Android Software Development] jlc403:
I used androidmultitool for decompiling and recompiling.

I put apk in /system/priv-app not system/app

I put the 2 .so files in /system/lib

I edited kbd_qwerty_panlatin.xml as first pointed out in post #16

I left <dimen name="key_height_5row">48.0dip</dimen> at 48 and forced height 270. I personally like the space between the buttons to avoid clumsy fingers.

Other than that, I followed all instructions from post 1. I am using a sprint S5 with Rwilco12 almost stock rom. It works perfectly.

I didn't add to landscape or symbol screens and just added to portrait keyboard that I use 99% of the time.

-Josh
[Android Software Development] chetqwerty:
Now that Swype is free coming standard on the S5 with Google voice instead of Dragon would posting a flashable version of the mod still violate xda rules?
[Android Software Development] ozkaya:
You can also add arrow keys (left, right etc) by copying keys from kbd_edit.xml. Here is an example.
[Android Software Development] poczynek:
Any chance of a flashable zip? Looks great!
[Android Software Development] ozkaya:
Sorry, since Swype is a commercial program, it would be illegal for anyone to distribute a patched version. (And for the previous question, even if it were free, I would still need to get permission from the author/company to redistribute a modified version) You could modify your own copy though, once you get used to it, takes like 5 minutes for each update.
[Android Software Development] antt00:
Adding the number rows works well. Thanks.
[Android Software Development] robertogl:
How can this works on android 4.4? There is no pkg.apk...
[Android Software Development] antt00:
Just look for the swype apk in /data/app. The lib files are in /data/app-lib
[Android Software Development] robertogl:
I've tried, but the numbers don't appear. The keyboard is higher but there isn't the number row...

Edit: I've read this now, I'll try that.

Edit: I've tried, not working...

Inviato dal mio GT-I9505 utilizzando Tapatalk
[Android Software Development] robertogl:
I've attached my files. I've to say that i haven't the xml-land folder...
[Android Software Development] samep:
Figured it out, yet?

The lines you added in kbd_qwerty_panlatin.xml should have borrowed [ns:keyBackground="@drawable/btn_keyboard_key_top"], omit the brackets. Refer to the qwertyuiop lines below it.

In regards to the landscape editing, I found I only needed to edit the keyboard_forced_height in /res/values-land/dimens.xml The remainder of edits carried over to landscape. Seems now there is phone and tablet edits, except the possible need to edit height.

I retained the default of 216 keyboard_forced_height in /res/values/dimens.xml If you want to get technical with it, 220 is just about perfect if adding symbols to the added top row. I also found in order to make those work, it requires editing /res/xml/kbd_qwerty_panlatin_sym.xml and /res/values/strings.xml The top row numbers would have to be independent of qwertyuiop to work. Define in kbd_qwerty_panlatin_sym.xml and kbd_qwerty_panlatin.xml and sourced in /res/values/strings.xml Also had to make the pound and euro symbols independent to compile properly.

screenshot from my Note 4

Updated screenshot; added some more symbols to Version 1.8.5.1080510.34127
[Android Software Development] robertogl:
Thanks for the explanation, this worked perfectly (also in landscape) :)
[Android Software Development] PhilDX:
Has anyone had success using this process to "install" Swype on a nexus 9? The process works as usual on my nexus 10 with lollipop (32bit hardware), but I haven't been successful on the nexus 9 (64bit hardware). Im guessing it has something to do with the differences in CPU hardware? Anyways, if somebody figures it out, please holler.

EDIT: ok, got it working...in step 14, rather than just copying the modified apk into /system/app (which is all i did on my nexus 10), I created a /com.nuance.swype.dtc-1 subfolder in /system/app (replicated the same directory structure as in /data/app including library subfolders and .lib files), set permissions appropriately, and reboot.
[Android Software Development] TONY6669:
anyone try this on the newest swype that updated today ?
[Android Software Development] fuorigioco1981:
Really bad! Have to swipe three times to write a word!I have the paid version where can I find apk for PREVIOUS version?
[Android Software Development] PhilDX:
yeah, the "process" for modding the APK works just fine on the latest version 1.8.5.x, but i can't figure out what keyboard XML file to edit for english. it used to be kbd_qwerty.xml but that file doesn't exist in the new version and none of the existing/new keyboard files appear to be for english. it's obviously one of them, but it's not obvious which one...
[Android Software Development] TONY6669:
Yea I didnt see it either

Sent From Gurple Team Xtreme Tapatalk S3
[Android Software Development] PhilDX:
well, at least i was able to change the colors up a bit. that's one small victory for the day.

EDIT:

Modified XML files for english:

https://www.mediafire.com/?ts6z66uurjanwyr

[MENTION=4595448]TONY6669[/MENTION]

hey dude, it's panlatin!
[Android Software Development] TONY6669:
awesome might give it a go tonight
[Android Software Development] TONY6669:
Anyone know what dimension make the middle rows wider like the top and bottom rows ??

Sent From Gurple Team Xtreme Tapatalk S3
[Android Software Development] PhilDX:
you can specify the key width on a per key basis. I'm away from my pc at the moment, but in my kbd_number.xml (or similar name), there should be a key width entry on each line, think it's set to something like 10dip. if I remember correctly, that scales it to the width you want: 100 % width / 10 keys = 10. there may also be "edge" entries on either side (top/bottom row of xml code for each middle row, if that makes sense) that need to be removed because they force dead space on either end.

this is going to move the letters around though, not sure what that will feel like while typing.
[Android Software Development] TONY6669:
cool thanks man ill check that out ...thanks again
[Android Software Development] TONY6669:
cant find it driving me nuts ....
[Android Software Development] PhilDX:
so i think in my head i was confusing swype with google keyboard...

just took a quick peek at he kbd_qwerty_panlatin.xml file. i think you want to play the values specified in the XML tags "ns:keyWidth". you'll notice that there is a default entry in line #2 and a separate entry on each row defined in the XML file. the entry in line #2 refers to variable "default_10_key_width" which is defined in /res/values/fractions.xml.

if memory serves me correct, you can either specify a fixed value in dip (e.g., "10.0dip") or a scaled value based on percentage of screen width (e.g., "10.0%p"). you will have to play with those until you get what you want.

ignore what i said about "deleting edge spacing" entries, i must have seen that in the google keyboard.

if you still can't get it to do what you want, then i would look at /res/values/styles.xml for one of the themes that has the keys filled out to the whole width, the answer has to be in there since some of the built in themes do exactly what you want.
[Android Software Development] TONY6669:
yea im trying it is driving me crazy lol thanks for the advise
[Android Software Development] TONY6669:
Just about got it ....

Sent From Gurple Team Xtreme Tapatalk S3
[Android Software Development] Bajanman:
Nice job.[emoji106]

I started messing with it myself. But got side tracked, had to run our to do something.
[Android Software Development] poczynek:
Oh man i would pay someone if they would send me the apk! I tried the code previously when I had a pc and I couldn't do it.
[Android Software Development] notmyepic:
Looks great Tony, now all you have to do is make a blue one, so I no longer have to [emoji13]
[Android Software Development] d8v8n8:
So would I. I'm willing to send a copy of my receipt to the person who'd be willing to help so to prove that I own a purchased license. (Note: I also tried for some hours before deciding to give up).
[Android Software Development] dafunk2:
[MENTION=4595448]TONY6669[/MENTION] [MENTION=3065937]PhilDX[/MENTION] :

I need a little help (a lot to be honest :) ):

I'd like to mod the keyboard to be as similar as I can to Google keyboard (I'd like to add the number row and change the color from cyan to orange...), but incurred in some problem.

I followed the OP but apart the fact the the directories are different (I'm on a Lollipop CM based rom) I cannot find any foder named com.nuance.swype.dtc-1 folder in /system/app/ . Instaling Swype from Play Store it installs as a non system app, in fact I can uninstall it from Nova Launcher.

I decompiled the apk (named "base.apk" found in /data/app/com.nuance.swype.dtc-1 folder) tried to mod it by adding the number row following the files by PhilDX), recompiled, copied the resources.arsc and the xml files from the new recompiled apk to the "old" good one :)

Not signed, because the op stated this, but obviousy it can't be installad without signature. So I signed it and it installed perfecly, I passed the setup wonderfully and the keyboard pops up ( and it shows the numer row...), but when I try to swype or type the keyboard FC.

I simply installed the apk without overwriting, renaming any fies because I can't fint Swype as a system app....but maybe I'm wrong.

Anyone can help me?

The app is reguarly purchased so I have no problem at al to show you the Play Store purchase.

So, can someone please help me daing a mini-tutorial about the process to build and install a working apk?

Thanks again in advance ;)

Just a thing: how can I avoid the compiling error of "missing resource" if I include in kbd_qwrty_panlatin.xml the "kbd_number_row.xml" made by PhiDX? I had to add to panlatin al the entries without including the "new" xml to compile without any error. Iit's not the first time I decomile, edit and recompile apks. but I'm not a themer nor a developer... :)
[Android Software Development] TONY6669:
check post 70
[Android Software Development] dafunk2:
Yes, thanks [MENTION=4595448]TONY6669[/MENTION], I already downloaded that zip.

I try to re-elaborate my question:

Assuming that I want to compile and install the editings by [MENTION=3065937]PhilDX[/MENTION] what's the right way to do it?

First if I replace the files from PhilDX into the res/xml folder when compiling I have an error because of the file not listed in the resources. How to avoid it?

Once recompiled the apk what exactly have I to do to successfuly install the apk?

I cannot find Swype as a system app so have I to sign it? If not, what to do ?

I know that these are not answer that takes 3 words to respond, but if someone would give me a little help is much appreciated, thanks :)
[Android Software Development] notmyepic:
There are a couple of things.

1. Unless you decompile the same way, have same device, and operating system, you probably just can't insert those xml files. Use it to compare what you have. That is probably what is causing your resource error.

2. I am not on lollipop, so i am not sure of the file structure, but since you cannot sign the app, you need to either name it the same as original, replace it in the same place and fix permissions. Or uninstall the playstore one, then put it in system app, fix permissions, and put the lib files in system/lib folder also fixing permissions.

I am unavailable for the rest of the night, but if you still need help tomorrow, send me a PM and we can talk on hangouts

Just remember, i have never ran or looked at lollipop, nor am I running CM
[Android Software Development] PhilDX:
the detailed instructions are in the first post of this thread, you have to follow them meticulously or it won't work. the only difference I've noticed is with steps 2 and 3: on my devices, the path (KitKat and Lollipop) is not /mnt/asec but rather /data/app. everything else is good. just copy the xml files I uploaded into the /res/xml folder and you should be good to go. if you are on Lollipop, there is one extra step not in post #1, but scroll up and you will see a post by me from a few months ago .. rather than copy the Swype lib files to /system/lib, you have to copy the whole folder structure directly into /system/app. just look at any other app folder in /system/app and replicate the same structure using the Swype files initially installed to /data/app.

good luck.

edit: by the way, if you follow the process and the install into /system/app doesn't work for some reason, you have to delete all the files you added and reboot before you try again. the reboot is important.
[Android Software Development] lhurtado:
looking for some help

Hi, has anybody be able to mod the APK on lollipop S5?

So far, apktool 1.5.2 didn't even decompile. The 2.0.0RC3 can decompile, but can't recompile it (even without modifications). It's full of layout errors, not found on package 'android' and errors about integer types not allowed :(

Any help greatly appreciated!
[Android Software Development] dafunk2:
[MENTION=3065937]PhilDX[/MENTION] [MENTION=3825061]notmyepic[/MENTION] [MENTION=4595448]TONY6669[/MENTION]

Thanks a lot for your help guys, I got it. :)

PhilDX, I was doing everything fine, but my only and great error was that i didn't fix permissions one file or folder at the time but I always rebooted in recovery (TWRP) and started "Fix Permissions" thinking that twrp could see that the files of Swype had wrong permissions and could fix for me. :eek:

I added the number row, raised the height of the keyboard and changed some HEX code for swype trace and candidate texts.

I edited "on the fly" some pngs changing from the cyan of material dark theme to a dark orange ( FF3300) in the xxhdpi folder but I can't see any changes...maybe it's xhdpi? I know it depends from the device, but is possible that is set a "fiter" somewhere to change the color of pngs like Swiftkey does?

Again, (lol....seems like I started to bother you asking a lot of things...) I need to use the Roboto font (like Google keyboard) and I'd like to enlarge it . I think that the size of the fonts is in "dimens.xml", but how to use another font?

Many many many thanks again for your help guys,

have a nice day ;)
[Android Software Development] PhilDX:
I used 2.0.0RC3 without difficulty on a Windows PC. if you are getting errors on recompile without touching anything, then there's something messed up in your setup.

did you extract the framework file from your ROM /system/framework/framework-res.apk and install on your computer using apktool? you shouldn't have to do this since apktool will use an internal default if you don't, but worth a try.

apktool -if framework-res.apk

do you have java v7 installed on your computer? it's possible v7 is a requirement for 2.0.0RC3, I forget.

make sure the aapt.exe and jar files used with apktool.bat are latest available.
[Android Software Development] lhurtado:
Thanks! The issue was that I have to use the framework-res from Touchwiz lollipop! now at least it compiles back without changes! Now the fun part!

I really didn't think about the framework, basically because I have the idea that it's only needed when decompiling some system app that depends on specific vendor overlay resources.

Thanks again!
[Android Software Development] dafunk2:
Hi guys, this is what I have done so far thanks to you: :victory:

I'd like to enlarge the size of the font, but actually I couldn't find it in "dimens.xml". Any help?

I'd like to change the font as well (like [MENTION=4595448]TONY6669[/MENTION] did...) and using the classic Roboto.

Can someone point me it the right direction?

Many thanks in advance :good::good::good:
[Android Software Development] notmyepic:
I think it comes from the Rom you are on. Here is what mine looks like normally Rosemary:

And when I change system font to Default:
[Android Software Development] lhurtado:
Hi, just a really basic question, how to enable display of alternative characters? Iv'e checked the examples, included in my xml the alt, but still nothing :(

Thanks in advance!
[Android Software Development] PhilDX:
Swype has chosen to hide the secondary key characters on some of the themes (enabling them can be a little distracting on some themes). the secondary keys are disabled by setting the color of the secondary character label to "transparent". to enable the secondary characters, you need to change the color to something of your liking.

Here is an example for enabling the secondary characters on the material dark theme and setting the color to hex code #ffb8b8b8:

Open /res/values/styles.xml and scroll down to the section for material dark theme.

<style name="Swype.materialdark" parent="@style/Swype">

scroll down and find these entries:

<item name="defaultAltTextColor">@color/transparent</item>

and

<item name="defaultAltTextColorSpace">@color/transparent</item>

change them to something like this:

<item name="defaultAltTextColor">@color/grey_lighter</item>

and

<item name="defaultAltTextColorSpace">@color/grey_lighter</item>

you can set the color to any of the predefined colors in /res/values/colors.xml (grey_lighter = #ffb8b8b8), or you can replace the "@color/transparent" string with any hex code you want (e.g., #ffffffff for white).

note that you probably only need to change the color of the first entry, "defaultAltTextColor", but i changed both because i didn't feel like experimenting to see which one actually does it.
[Android Software Development] lhurtado:
Thanks! Works great!

Now Swype is even better
[Android Software Development] dafunk2:
Thanks [MENTION=3825061]notmyepic[/MENTION]. You're right, tried to change system font and changed the Swype font as well.

I need a help, maybe some of you guys already did experience this.

I cannot find the entry to enlarge the font of the keyboard. This thing is driving me nuts....

I didn't find it in dimens.xml and I tried to force "key_test_size" in strings.xml to 60 dip, without success (I know it's huge, but it's for a try...)

Maybe [MENTION=3065937]PhilDX[/MENTION] or [MENTION=4595448]TONY6669[/MENTION] can you help me?

Thanks again and my apologies for my frequent questions, but for me you are like gurus :)

Sent from the deep of the electronic soul of my supadaupapfunkaliciuos G3
[Android Software Development] PhilDX:
you want to make the size of the text label on each key bigger? did you try increasing the values of key_label_text_size and key_text_size in /res/values/dimens.xml? note that there are device resolution dependent "/values" folders in /res, e.g., /res/values-xhdpi, so you may have to change this in more than one spot for all devices to be impacted.
[Android Software Development] TONY6669:
check your pm box
[Android Software Development] TomeG2kc:
[MENTION=4595448]TONY6669[/MENTION] - is possible to share your answer for everyone?

--==||==--

WySwiftKey'owane i wyTapatalk'owane z mojego LG G Pro Drugiego Wspaniałego.

--==--

Swiftkeyed and Taptalked from my Great LG G Pro The Second

==

TomeG2kc aka Tomasz G.
[Android Software Development] TONY6669:
I just gave him the apk I did but I did not make the font bigger if you want it I can pm it to you
[Android Software Development] TomeG2kc:
Ok, give me a try you apk.

--==||==--

WySwiftKey'owane i wyTapatalk'owane z mojego LG G Pro Drugiego Wspaniałego.

--==--

Swiftkeyed and Taptalked from my Great LG G Pro The Second

==

TomeG2kc aka Tomasz G.
[Android Software Development] dafunk2:
Thanks [MENTION=4595448]TONY6669[/MENTION] for your file. I took a look at it and found out a lot of interesting stuff that maybe can be useful in the future.

Thanks also to [MENTION=3825061]notmyepic[/MENTION] and especially to [MENTION=3065937]PhilDX[/MENTION] for pointing me in the right direction. You was right, I had to edit the dimems.xml into the values-xxhdpi folder, but I had to insert 4-5 entries about font sizes because that file is nearly empty :)

I found out also the entry to remove that ugly bold font; there is an entry (which I cannot exactly remember, now I'm on mobile...) into bools.xml that has to be set to "false". If someone is interested I'll post it later when in front of my pc :)

Anyway here a screen of how it looks swipe material dark theme now:

The font is now set to 28dip, but I think it's ok 26 or 27 and will be like Google keyboard.

I want to do some other little edit but the theme is fine.

Just in case anyone is interested and like the theme just ask and I can post the files already compiled that you need to replace into the original swipe apk, or I can also post the files before to be compiled if someone want to take a look .

Thanks again mates ;)

Sent from the deep of the electronic soul of my supadaupapfunkaliciuos G3
[Android Software Development] TomeG2kc:
Thanks a lot for your file, too :). Now I have great base to little editing. Thanks again.

--==||==--

WySwiftKey'owane i wyTapatalk'owane z mojego LG G Pro Drugiego Wspaniałego.

--==--

Swiftkeyed and Taptalked from my Great LG G Pro The Second

==

TomeG2kc aka Tomasz G.
[Android Software Development] TomeG2kc:
Edited:

How can I use my native language diacritics signs as alternative characters? What file should I edit? Now I've only, as alternative characters, signs like "@$&%()" etc. but I need "ąćżł" etc. (it's from Polish language) too. I'm using 2 language simultaneously: my native Polish, and of course, English. Is possible to back to actions before: when I pressed a button, I can choose @$& or my diacritics signs, now I've only @$&...

And last but not least, your great keyboard is to sort for me (big men with big hands) - how can I make all buttons little higher?

Thanks.

--==||==--

WySwiftKey'owane i wyTapatalk'owane z mojego LG G Pro Drugiego Wspaniałego.

--==--

Swiftkeyed and Taptalked from my Great LG G Pro The Second

==

TomeG2kc aka Tomasz G.