yashsingh1/xdaforums huggingface dataset:
[Android Software Development] dafunk2:
Open the file dimens.xml and edit to your liking this value. This is the height of the keyboard. I set it to 304dip.

keyboard_forced_height

Edit these values for buttons height. i set these to 55dip but you can set them differently.

key_height
key_height_5row

I'm sorry but I cannot help you about the other question.

Good luck :)
[Android Software Development] pablo34:
I was hoping somebody could point me in the right direction.

I can decompile, edit the files and recompile without issue, but when trying to install swype I keep getting an error message saying that swype crashed.

I followed the instructions as they are posted in the first post and Ive also tried making the adjustments that PhilDx suggested in post number 68 about creating the same folder structure in the system folder but still no luck. Any help will be greatly appreciated, thanks in advance.
[Android Software Development] PhilDX:
^^^ what he said.

only other thing I noticed is this: if you follow all the steps, something still goes wrong and you want to try again, then you may need to reboot before trying again. so delete the files + folders you added to /system/app, make sure no Swype files are left in /data/app, and then reboot before trying again.

you can do this, you just need to be persistent.
[Android Software Development] TomeG2kc:
[MENTION=3065937]PhilDX[/MENTION]

I will ask again, sorry 4 that, but maybe, someone like U can handle it?

I got modded file from TONY669. It was great looking but I'm using as native Polish language it was for English only. So, I installed Polish as second language but I can't see, as alternative characters, corresponding diactricics signs when I'll keep touch the button.

Where should I looking for edit and what?

--==||==--

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] PhilDX:
ok, so the secondary key characters are defined in the kbd_qwerty_[language].xml file. the file for english that i modified and linked in post #70 is kbd_qwerty_panlatin.xml.

the five rows of the keyboard are defined in this file. first row is the number row (include statement references a separate file actually). the next three "blocks" of entries are for the three letter rows. within each block, you will see there is one line for each key in the row (except for the letter "e" in the first row which has language dependent secondary keys, only one row is actually active). the last line is the for bottom row (again, the include statement loads a separate file).

easiest way to quickly see all the changes i made is to grab a fresh copy of kbd_qwerty_panlatin.xml and use a file comparison utility like winmerge.org (if you run windows). the changes i made should immediately pop out.

now, as an example, look at line #11 in my file, this is for the letter t:

<Key ns:keyWidth="10.000002%p" ns:keyBackground="@drawable/btn_keyboard_key_top" ns:keyLabel="t" ns:altKeyLabel=">" />

this field sets the primary character for this key:

ns:keyLabel="t"

this field sets the secondary character for the key:

ns:altKeyLabel=">"

it sounds like you will want to change the altKeyLabel values defined within the " " to display what you want. for instance, if you want the secondary character to be %, then change this line like this:

ns:altKeyLabel="%"

some symbols are a little more complicated, for instance to display & as a secondary character, you have to use this format:

ns:altKeyLabel="&"

unfortunately, it's not obvious to me which XML file is for Polish, so i don't really have a specific suggestion for you, but if you can identify the correct file, then see if you can locate an existing key that includes the diactricic character you want and replicate that format on any other key desired.

good luck.
[Android Software Development] samep:
Version 1.8.5.1080510.34127 was the first version I found I couldn't decompile with my old setup using jdk1.6 and old apktool that I had integrated with the android sdk that worked for me from gingerbread up til now. Went on vacation watching this thread and saw the suggestions. Returning from vacation: uninstalled jdk1.6, updated jdk to 1.7 & ADB, updated path, installed apktool 2.0rc4 and decided also to install [MENTION=4315551]Ticklefish[/MENTION] Tickle My Android. Actually ended up with two versions of apktool and ADB for Windows because TMA incorporates the whole package. Didn't find this here but had read that the stock Samsung Note 4 kernel blocks ADB but works in custom recovery (mount system partition). TMA worked flawlessly after installing framework-res.apk and using compile with original signature option.

Thanks for those that answered the questions for others; profited!

Added some more alternate symbols to ABC primary keys though some are redundant.

Edit: (Less Than symbol = (& l t ; ), no spaces between or after and no parenthesis to avoid compile errors; giving example kept replacing with actual symbol and smilies)
[Android Software Development] dafunk2:
[MENTION=4375749]samep[/MENTION]:

If I'm not wrong you can avoid compiling errors if you mess with the alternates like "() by using a / or a \ (can't remember sorry) in front of those characters.

Apktool will tell you what's wrong :)

Sent from the deep of the electronic soul of my supadaupapfunkaliciuos G3
[Android Software Development] samep:
No problem with apktool; just my setup was outdated and needed updating. The pictured Swype is latest modified apk and fully functional.

Posting the correct sequence in XDA with tapatalk was a problem because it kept interpreting the same and replacing the characters with the symbol.

Still confused about Android SDK manager not launching to update. Was the old Android SDK replaced by Android Studio? Early in CM11 was the last time I updated Google API. Wanted to update when I couldn't decompile Swype but I'm guessing the SDK manager didn't execute because the server has changed?
[Android Software Development] PhilDX:
if you also have eclipse installed, you can launch SDK manager from the help menu in eclipse.

or just download android studio which is the replacement for eclipse and you'll be good to go again.
[Android Software Development] samep:
Looks like the latest Swype 1.8.7... fixed the lollipop theme; alternate symbols show with no edit required.

Edit: Material Dark. If that's aka lollipop.

I don't know when blackbird theme got fixed but just noticed it also shows the alternate symbols.

Edit: I had Xposed turned of yesterday and realized Blackbird doesn't show the alternate symbols without Xposed Swypetweaks. Here's my settings:
[Android Software Development] poczynek:
I can't see numbers on this version?
[Android Software Development] samep:
It's modified. I was saying that the themes don't seem to need edits.

On the subject of the top number row, Swype claims (just from what they told me), that they've received requests for it and may consider it.

Edit: Not sure if you were referring your own modified version not appearing as mine but just realized my Xposed Swype Tweaks module alters the appearance of Blackbird theme. I edited my post above.
[Android Software Development] JerryGoyal:
how to mod latest version 1.8.7 for number rows?
[Android Software Development] Nitefall:
I'm having a hard time getting apktool to load..... I went through about 5 different sites trying different things and still can't get it to work >.>

Installed latest version of java and changed enviromental tables and a couple other things and still no worky...

If anyone can lend a hand so I can try to do this to swype I would appreciate it, if not just ignore this post

Thanks
[Android Software Development] samep:
Simple answer:

Java 7 and TickleMyAndroid; apktool and tools included. Follow the OP.

http://xdaforums.com/showthread.php?p=25621581

Details:

Use TMA (TickleMyAndroid) to pull your dependency file like framework-res.apk. If you use the option to compile system apk using original signature, TMA builds a functional apk; copy the lib files of the apk to /system/lib, set permissions. Remove the lib folder from compiled apk and copy the apk to /system/app and set permissions. Last step: reboot to install.

Lollipop was the same for me except the apk goes into a folder: "/system/app/Swype" as "Swype.apk". And the odex file goes in "/system/app/Swype/arm" as "Swype.odex". The boot-install added "Swype.odex.art" to arm folder, for me. Lollipop-Odexed!

If your ROM is Odexed, TMA will deodex the dependency file for you while installing as framework/dependency. As an option you can also Odex your Swype.apk after compiling but install manually as above.

You may find posts 70 and 95 of this thread useful for editing.
[Android Software Development] m12xyz:
Modded Swype crashing on Acer Liquid E700

Hi,

I have tried all the steps in the first post but the modded swype crashes after installation on my acer liquid e700 which runs KitKat.

I am using the latest versions of apktool (2.0.0RC4) and Java 1.7 64 bit and using Windows 8.1 64 bit.

I had only com.nuance.swype.dtc-1.apk file in /data/app folder and the two shared libs libnmsp_speex.so, libSwypeCoreV910.so in the /data/app-lib folder com.nuance.swype.dtc-1.

I even tried just decompiling a copy of the above apk file without any modifications to the xml files. I then extracted the resources.arsc file from the dist folder in the decompiled apk using 7z and added it to the original apk after deleting the original resources.arsc file. I then copied the modified apk to /system/app and the original 2 shared libs /system/lib. I also changed permissions to 777 for all the above files and rebooted my phone. After rebooting I see a android app icon with Swype written below the icon (not original swype icon) and when I click on it it says Swype Dragon has stopped.

I think there is some problem with the built resources.arsc file but cannot figure it out since I am using the latest apktool, Java 1.7 64 bit and Windows 8.1 64 bit. Any help would be greatly appreciated.

Thanks
[Android Software Development] samep:
Are you clearing data and uninstalling Swype using application manager before manually installing your store in system?

Permissions AFAIK for system apps should be root root rw,r,r. Same for the lib files. If you don't change the owner/group to root, it most likely still belongs to sdcard which won't work.

Your system apk can be "Swype.apk". You can also remove the lib folder from the system apk.

You can also try deleting cache and dalvik prior to reboot to install Swype.

You didn't mention it but did you check your install procedure by just using the original apk installed to system.

Any old Swype files or libs still installed in system?
[Android Software Development] m12xyz:
Hi,

Yes, I have cleared all data before installing the modded version. The permissions are also fine. Also, my original version from Google Play was working fine. I did some further research and found the following error file logged under /data/system/dropbox directory after the application crashed. I am reproducing below a snippet of the error log (since the log file is rather large) in case someone has similar issues

Java.lang.RuntimeException: Unable to start activity ComponentInfo{com.nuance.swype.dtc/com.nuance.swype.startup.EulaGooglePlayActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class android.widget.ImageView

at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2377)

at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2429)

at android.app.ActivityThread.access$800(ActivityThread.java:151)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1342)

at android.os.Handler.dispatchMessage(Handler.java:110)

at android.os.Looper.loop(Looper.java:193)

at android.app.ActivityThread.main(ActivityThread.java:5333)

at java.lang.reflect.Method.invokeNative(Native Method)

at java.lang.reflect.Method.invoke(Method.java:515)

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)

at dalvik.system.NativeStart.main(Native Method)

Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class android.widget.ImageView

at android.view.LayoutInflater.createView(LayoutInflater.java:620)[/U][/B]

...

Caused by: android.content.res.Resources$NotFoundException: File res/drawable-xhdpi/logo_swype.png from drawable resource ID #0x7f0202b5

As you can see the original apk did not have a res/drawable-xhdpi directory but the compiled version somehow created this new directory. And then I ran the compiled apk it was actually trying to find the logo_swype.png file under this directory which did not exists in the old res directory in the old apk. So I have copied both the res directory and the resources.asrc files from the compiled apk to the original apk and now the basic swype functionality is working. I have also added the number row and it seems to be working. Will test it further any let you know if there are any more issues.

Thanks very much
[Android Software Development] samep:
Two important questions I forgot. You are installing your framework dependant application to decompile and compile with, right? Check the logs for errors?
[Android Software Development] m12xyz:
Yes, I did install the framework apk before compilation and as mentioned in my previous post the logfile did show the error about not finding the resource file. It's working now. thanks very much.
[Android Software Development] robertogl:
I've seen that Swype is not so framework dependant. I'm using the apk compiled with Touchwiz framework (4.4) on cyanogen (5.0.2) without problem. (I've made a zip that install modded Swype, but I don't think that I can upload here)
[Android Software Development] PhilDX:
I've had attempted installations go wrong (when I didn't follow the proper sequence exactly) with similar results. I found that sometimes I have to delete all the files (/data and /system) and reboot before trying again. it's great to see you're up and running now.

i agree, I almost always just use the generic framework version included with apktool and have never had a problem with Swype from jellybean through lollipop or TW ROMs.

also, thanks for *not* uploading flashable files here, this thread is a great resource for folks and wouldn't want to see it closed.
[Android Software Development] robertogl:
Yes, i've upload this zip, it is empty, it has only the script that replace files and set permission. So if someone want to use that, it has to use his own apk and put them in the zip. It will delete previous Swype and install the new one. Using the zip you have not to remove manually old apk or set permission, it is all automatic.

So:

1) Download the zip ( http://d-h.st/j5ej ).

2) Open with 7z or Winrar or anything: put your modded com.nuance.swype.dtc-1.apk in .zip/system/app, and libnmsp_speex.so - libSwypeCore.so in .zip/system/lib. Save changes.

3) Install Swype using your pkg.apk.

4) Reboot in recovery and flash the zip.

Done!

I've done this because a lot of problems in my case was due to the wrong permission or mistake removing files.

Tested on S4 I9505.

I hope there will be no problem with this upload, if there is contact me and i will remove the file.
[Android Software Development] PhilDX:
this looks very useful, thanks!
[Android Software Development] Nitefall:
I have a version of swype that tdunham made with the number row, I tried installing that version on cm12 and it just constantly crashes so I attempted to take the files from his zip and transfer them to yours but it just erases swype from my phone and does not install the number row version....

I tried to use TMA and have no flipping clue what I'm doing lol but have a back up of my rom so maybe I just play around till I break something lol

I also have stock swype that I bought a long time ago to revert back to....
[Android Software Development] robertogl:
Using my zip, have you the apk in system/app?

Also, what files have you moved in my zip? And where?
[Android Software Development] Nitefall:
I moved the Swype.apk in to system/app and the 2 .so files into system/lib
[Android Software Development] robertogl:
The name of the apk should be com.nuance.swype.dtc-1.apk, sorry I didn't specify (this is important for the permission).
[Android Software Development] Nitefall:
Ok I'll try again with that

Figured out what I was doing, when I rezipped the file it was adding another sub folder within your zip. Now it installed but just keeps fc'ing.
[Android Software Development] robertogl:
If it has a lot of FC, the problem is the apk. You need to restart the procedure and build a new apk. :p
[Android Software Development] Nitefall:
boo was hoping to avoid that haha but thank you very much for your help :)
[Android Software Development] Nitefall:
Finally got the apk decompiled but I can't seem to find the right xml for english.......could you point me in the right direction if you get a chance please
[Android Software Development] PhilDX:
english is "panlatin". for qwerty layout, look for these files:

kbd_qwerty_panlatin*.xml

edit: you may want to complete the process in the OP without actually editing any XML files the first time. just decompile/recompile and complete the process. this way, if you still have problems you will know it's not because of any edits you made.
[Android Software Development] samep:
Yes. And in addition to the other posts, you may also find post 63 useful as well.

Best wishes for success. You won't go wrong with the guys in this thread helping out.
[Android Software Development] Nitefall:
I think I'm done lol I've wasted countless hours and all I have to show is a decompiled apk

Oh well thanks for all the help anyway
[Android Software Development] PhilDX:
did you try following the instructions in the OP without actually making any edits within the decompiled APK? i.e., follow every step but don't modify any of the XML files. if that doesn't work, then you're missing a step in the OP (and you wouldn't be the first one to do so in this thread).

uninstall Swype through settings > apps, delete any residue in both /system/app and /data/app, reboot, then repeat the process exactly as listed in the OP without making any edits to the XML files. that's the only way to figure out where the process is breaking for you.
[Android Software Development] Nitefall:
Without making any changes the apk wouldn't recompile, I'll give it another go tomorrow time for some xbone :)
[Android Software Development] PhilDX:
if you use apktool v2 rc4 and java v1.7, you should be able to decompile and recompile (without making changes) the apk from step #2 without any errors.

http://ibotpeaches.github.io/Apktool/install/

decompile:

apktool d filename.apk

recompile:

apktool b filename
[Android Software Development] samep:
I think you're now using the untouched paid Swype as your base but thought it would be good to confirm that? Themed or modified apk's are notorious for not decompiling without error for various reasons. Did you check your decompile log (first) and compile logs for errors? Did you install your framework-res.apk to use as resource?

If log is saying it found no resource for something, you may need to do that. If you're using TMA (TickleMyAndroid), Ticklefish suggests there will be complications if not using your ROM's framework. First error in log is typically the place to start.

You could also share your log for advice.
[Android Software Development] Nitefall:
My log is at home on my laptop, it compiled with no error and yes I was able to extract the framework from my rom and install it.

I'll check the log later and upload it if I don't see anything obvious.

You guys are like pit bulls trying to make me learn lol

Thanks
[Android Software Development] dafunk2:
You can't go wrong: if you successfully recompiled the apk AND you followed exactly the steps you might have set wrong permissions, wrong directories etc.

Be sure to rename both original and recompiled apks changing the extension into .zip before to extract the resource files etc. Then rename back to .apk.

And of course, if you are on a lollipop rom, then you have to follow the same exact directories structure, which are not of the OP.

EDIT: http://xdaforums.com/showthread.php?p=58919825

This is a step by step guide I revised some time ago for lollipop Android systems. ;)

Sent from the deep of the electronic soul of my supadaupapfunkaliciuos G3
[Android Software Development] motfis:
Is it possible to do the mod without root? I tried to edit the apk, it can be installed, but when I try to use it, it is crash (unroot)...
[Android Software Development] notmyepic:
I don't think so. Modding the app changes the signature, and if you try to sign it, it breaks the app.
[Android Software Development] TONY6669:
anyone have any luck doing the new swipe that updated today ?
[Android Software Development] dafunk2:
Hi Tony, I applied my editing without any problem.

Did you have some sort of error?
[Android Software Development] TONY6669:
I got it thanks man
[Android Software Development] samep:
I haven't tried to mod but was wondering the same thing. Almost didn't notice the difference between modified and new until I needed the directional arrows to edit.

The number tap trick is not near as effective as having the number row. I use phrases or words with number substitution in certain places for passwords. It's like Swype thinks I'm trying to triple tap in the number pad and just spells the words correctly rather than substitute the numbers for letters. LOL; their examples worked but mine didn't.

What's the consensus on sharing meta data with Swype? I don't think it works well with patterns of wrong words continually interpreted and some errors aren't even suggested correctly after several attempts. Maybe I need to wipe my Swype data because this seems to be getting worse lately? And syncing dictionary is very slow. Seems like I'm nearly completely rebuilding my dictionary before Swype syncs it. I often feel like they sync an empty dictionary and lose mine but eventually I do see words I created way back get suggested again. I see a lot complaints in Google Play reviews about dictionary sync dysfunction. I've suggested they use a backup and restore function locally rather than cloud storage and sync. I just tried titanium backup to save my dictionary to restore later but not sure that will do anything for Swype.

I've used this long enough to get the idea of what it is. It's more of the same and consensus is the number row mod is what the Swype users really want. I'll try to mod mine this weekend.
[Android Software Development] samep:
Version 1.9.0.1090010.36386 with arrows moved to middle row; bigger number keys.

Anyone else having difficulty with the Swype keyboard screenshot? I had to install a third party screenshot app to get this one. Factory screenshot works fine when the keyboard is absent. Note 4 lollipop.

Just realized my old project file is missing some of the extra alternate characters noted in post #112 screenshot. I'll be redoing this update. If anyone figures out the issue with screenshot while keyboard present, please let me know.
[Android Software Development] notmyepic:
No issue with screenshot here. Sprint Note 4 Noterized & Hybrid RPM tested.

Do you find that you use the arrows much from the main screen? I did add them after the "p" & "l" once, but removed them since never really used that much.