yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Themes and Apps] JPoole1059:
have you tried to go to swype.com and signing up for there beta testing. Not sure if still open but does not hurt to try. I reinstall from the beta testing website and is working great on CM6.1 on my G2
[G2 and Desire Z Themes and Apps] Stryder5:
Be more specific. What have you done so far? Did you go into Settings > Keyboard and enable Swype yet?
[G2 and Desire Z Themes and Apps] wilnotdie:
I tried a few times before but could never get this dumb unyaffs to work for me.

i get

Microsoft Windows XP [Version 5.1.2600]

C:\g2orgsys>unyaffs systemg2.img

28852 [main] unyaffs 3212 _cygtls::handle_exceptions: Exception: STATUS_ACCESS

_VIOLATION

30677 [main] unyaffs 3212 open_stackdumpfile: Dumping stack trace to unyaffs.e

xe.stackdump

348883 [main] unyaffs 3212 _cygtls::handle_exceptions: Exception: STATUS_ACCESS

_VIOLATION

375003 [main] unyaffs 3212 _cygtls::handle_exceptions: Error while dumping stat

e (probably corrupted stack)

Idk im pretty lazy sometimes, if you can provide some help on this, i would GREATLY appreciate it.

oh and I tried, quickly, to get the emulator working but failed! Im sure its probably something ez I missed. :/
[G2 and Desire Z Themes and Apps] k50aker:
Yea, it wasn't there, again, in my case pushing it in to the /app folder did NOT work, I had to intall the apk maually like any other app. Of course only after pushing the lib file.

adb push libSwypeCore.so /system/lib

adb install Swype.apk

Unyaffs is supposed to work on windows? I didn't know that. I use linux, you sould try it and get used to it, it would save you a lot of trouble.
[G2 and Desire Z Themes and Apps] oldsk00lz:
Hmmm... I saw the swype in the settings after doing adb pushes and a reboot.

In reality, I had unchecked both Android keyboard, and Swype keyboard. Then went to a text field, and got a request for Android input. I then went back into settings and checked Swype, and then it just worked. I didn't need to install the APK. For those not seeing swype as an option, did you confirm that system was remounted and that files were copied? Did you reboot?

As for unyaffs, I was lazy. I just downloaded a binary for OSX from here: http://xdaforums.com/showthread.php?p=7931772 . I haven't tried a Windows version of unyaffs.

-oldsk00lz
[G2 and Desire Z Themes and Apps] wilnotdie:
:( thats kinda sucks. lil more trouble then I was hoping for but I got a few LiveCDs somewhere.

How hard would it be to get this running through adb shell, on the phone? lol
[G2 and Desire Z Themes and Apps] oldsk00lz:
wilnotdie - You should be able to do this directly on your phone, as well. Of course, you would need to mount your system read/write and cp files versus adb push.

i.e.

mount -o rw,remount -t ext3 /dev/block/mmcblk0p25 /system

cp /sdcard/nandtmp/system/lib/libSwypeCore.so /system/lib/libSwypeCore.so

cp /sdcard/nandtmp/system/app/Swype.apk /system/app/Swype.apk

Hope that helps.

-oldsk00lz
[G2 and Desire Z Themes and Apps] wilnotdie:
Oh mybad, not that way. Was thinking of using the phone as my linux box instead of a pc. In theory it should work, just need to compile for use on the phone?

But Im guessing its not gonna be this ez lol
[G2 and Desire Z Themes and Apps] Stewartwi:
I didn't do any ADB pushes I just used root explorer to move the libswype file to lib directory then used the installer on the root explorer to install and it loaded right up for me. Only problem I'm getting is the double tap to edit isn't working now for some reason.

I pulled the files from the ota_root_noboot.zip from

http://xdaforums.com/showthread.php?t=836042
[G2 and Desire Z Themes and Apps] Stewartwi:
Hey Jkoenig00 did you have any issues with the double tap to edit?
[G2 and Desire Z Themes and Apps] Esteef:
Worked flawlessly and now I have swype running on CM. This should be stickied or something!
[G2 and Desire Z Themes and Apps] convolution:
So for those of us who don't know what ADB is or how to use it...

are we screwed?

Is there a noob friendly method?
[G2 and Desire Z Themes and Apps] ihateusernames:
You can use root explorer. Download one of the stock roms. Access it through root explorer and copy the 2 files from the stock rom folders to its respective folder on your device. Then install the apk from within root explorer. Set everything up in your keyboard settings and your golden. Can be done in minutes.
[G2 and Desire Z Themes and Apps] jkoenig00:
When I double tap it high lights the word... never used it before so im not sure if thats what you are talking about.

I wrote this version a couple posts up
[G2 and Desire Z Themes and Apps] imblacklife:
I thought I was the only one with that issue...that just bothers me that I have to double tap then reswype the word just to get the right word
[G2 and Desire Z Themes and Apps] jkoenig00:
Try changing the speed vs accuracy settings. If you make it more error-tolerant it shouldnt guess the wrong word as often
[G2 and Desire Z Themes and Apps] convolution:
I am having so much trouble.

I am such a noob.

So.

I did back up my img before the CM ROM install.

So I open CMD?

did the make the nandtemp folder

then i went in there with the cd operation

then I don't know what to do.

When I try to do the CP thing, it says cp is not a valid operation or sumthing like that

Can you like help me and guide me step by step?
[G2 and Desire Z Themes and Apps] oldsk00lz:
Okay, I am working on something to help out the new folks to Android. This is an actual APK application that will help automate this procedure. Might even try to add some other stuff in like restoring your google apps, etc. I have it working but need to polish it up and do some testing. Hoping to post it soon.

-oldsk00lz
[G2 and Desire Z Themes and Apps] flyf0rawhiteguy:
Thanks!

This worked perfectly,thanks a lot for the pointers - clever.
[G2 and Desire Z Themes and Apps] vdub804:
oldsk00lz you should add these instructions to the OP because they were much easier to follow um jus saying.
[G2 and Desire Z Themes and Apps] oldsk00lz:
I'll look at adding some of the alternative ways of recovering Swype. The smart way is definitely to back up the files "before" you upgrade to Cyanogen. Otherwise, you need to extract from someone's ROM (zip file), or from your NAND backup (Clockwork back up of system image file).

I just posted an APK in the main post which will extract the files from your NAND backups and install into your current ROM. It is a slower method since it still has to do an extract, but it gets "your" files that were previously installed on your phone.

Hope it helps.

-oldsk00lz
[G2 and Desire Z Themes and Apps] convolution:
My prayers are answered!

Although I solved it on my own by downloading swype.apk from some warez site and I installed it and it worked fine...

don't know why you would need a special app for it when someone can just post up the apk file for it.
[G2 and Desire Z Themes and Apps] thewhoadyman:
thanks oldsk00lz! your app worked flawlessly for me, appreciate all of your efforts!

G2 using CM 6.1 RC2
[G2 and Desire Z Themes and Apps] oldsk00lz:
I agree it's probably a small audience that 'really' needs this, but figured I would try to contribute.

Since there are different versions of Swype, this will make sure you get your previous copy that you already know is compatible and safe without having to do a full Nandroid restore. ((You can also feel comfortable knowing you are using your licensed copy.)) In particular, it helps for those that aren't comfortable changing system files on their own, or are a little bit lazier. The main reason I created the app was to help simplify the process and get more Android coding skills. ;)

Otherwise, for those informed, they can backup their files before hand, or grab them from a zipped ROM or other source, and push them to the system after their upgrade.

My plan was to extend the app and allow you to snag your Gapps, wifi calling, or other apps from your NAND backup. Also, leverage cached files you may have already restored, etc.

-oldsk00lz
[G2 and Desire Z Themes and Apps] Stryder5:
I pushed libSwypeCore.so and Swype.apk over to my phone and edited build.prop but I'm still getting an error message saying the version of Swype I installed was not designed for my version of the phone or something. Did I do something wrong?

The following exists (with 644 perms):

/system/lib/libSwypeCore.so

/system/app/Swype.apk

And build.prop says:

ro.product.model=T-Mobile G2

ro.product.brand=tmobile

What am I missing?
[G2 and Desire Z Themes and Apps] oldsk00lz:
Hmmm.. I didn't need to modify my build.prop at all when using CyanogenMod 6.1 RC2. My ro.product.model=HTC Vision

Your signature looks like you are running a Sense ROM. Is that true? I haven't done any research to see if the T-Mobile's version of Swype works on Sense.

Are you pulling the source files from the T-Mobile Stock ROM, or from a previous Sense-base ROM?

-oldsk00lz
[G2 and Desire Z Themes and Apps] jgro1976:
I tried your app, chose my stock backup that I backed up before I started playing around with roms, but it says "swype not found in that clockwork backup". Did something go wrong in the backup process?
[G2 and Desire Z Themes and Apps] oldsk00lz:
Hmmm, are you sure that backup is of the tmobile G2 stock? I think non_G2 users running the beta didn't have the lib file, so this app would currently give a warning.

You might need to grab one of the root OTA zips and get the files from there. I was thinking of adding a restore option from zip files to the app for scenarios.

-oldsk00lz
[G2 and Desire Z Themes and Apps] jgro1976:
Yeah, what I ended up doing was backing up my Virtuous rom, re-loaded my stock rom, used root explorer to pull the lib and apk files to my SD card, reload my virtuous rom, used root explorer and copied the lib file, then tried to install the apk file (not copy, might try that next), but it's not working.

I try and swype, but the whole kb flashes the blue outline around the outside edge as if it's disabled. I know you said it might not work on sense roms, so this either confirms that, or I did something wrong.
[G2 and Desire Z Themes and Apps] oldsk00lz:
Yeh, seems like the same issue otehr Sense users had reported regarding some older leaked beta's of swype. I have also heard of others having issues running the leaked swypes on the G2, so I figured the G2 version would probably not work on some other ROMs.

I know that there were a number of leaks for the HTC Incredible that you may want to hunt down. Looks like Swype is having sites remove links to the installs. I'll post if I find anything for Sense.

-oldsk00lz
[G2 and Desire Z Themes and Apps] jgro1976:
Awesome, I'll do some digging, thanks! And really, the HTC IME isn't SO bad...leaps better than the stock Android keyboard.
[G2 and Desire Z Themes and Apps] jgro1976:
Mind sharing the site where you got a working copy of Swype for the Virtuous rom from?

Edit: FOUND ONE!
[G2 and Desire Z Themes and Apps] 20FeeTaLL:
Sweet app... It worked perfect for me.
[G2 and Desire Z Themes and Apps] mightyab:
Ok either I'm dumb as a rock or just plain stupid but how do I use terminal emulator to code in to get get swype from my backup? I'm running the new CM 6.1.0
[G2 and Desire Z Themes and Apps] aodpoe:
Apk worked great, thanks op!
[G2 and Desire Z Themes and Apps] monkeytuner:
The .apk worked terrific! It froze up the first time, but a reinstall did the trick. Thanks so much!

Swype is way faster than the Andorid keyboard,and the pull out keyboard.
[G2 and Desire Z Themes and Apps] funkeee:
Thank you so much!
[G2 and Desire Z Themes and Apps] ddk19:
After downloading the app and trying to install it I get a parsing package error... please help
[G2 and Desire Z Themes and Apps] mightyab:
I did it this way without a glitch worked perfectly. Thank you for your time to figuring this out
[G2 and Desire Z Themes and Apps] luniz7:
10 char
[G2 and Desire Z Themes and Apps] mtj1971:
Thanks this works great.
[G2 and Desire Z Themes and Apps] Dansfloyd:
anyone get this working with Virtuous ROM?

EDIT: nevermind, after another reinstall it seems to be working... :)
[G2 and Desire Z Themes and Apps] Darkstriker:
I was looking hard for a licensed solution because that would make the whole thing a lot easier (on Galaxy S). But with the app i still get the notification about it being configured for a different device. Such a shame. I guess it will be warez after all (doesnt really bother me since i have a license through the phone).
[G2 and Desire Z Themes and Apps] oldsk00lz:
Hmmm. Can you pass me a logcat? What happens when you try to reinstall?

You trying the SwypeRestore on your Galaxy S? To move a Galaxy S version of swype? More info, please.

I made the app a little too G2 centric in that it looks for the swype lib before restoring. I plan to change that to restore when there is only an apk and that may resolve your issue. Meanwhile, you may want to try the manual steps.

Been real busy at work but hoping to code later this week.

-oldsk00lz
[G2 and Desire Z Themes and Apps] Ymees:
Swype Restore worked perfectly with my CM 6.1 RC4. One question though. Anyone know how I can update Swype? I'm running 1.6 and I know there's a 2.x out.
[G2 and Desire Z Themes and Apps] nivlac978:
It has been restored but the voice command button has a slash through it and no longer works.
[G2 and Desire Z Themes and Apps] ddgarcia05:
Thank You

10
[G2 and Desire Z Themes and Apps] rraxda:
OS, will this method (manual or automated) work with any other phone? Specifically the My Touch Slide??

Thanks..
[G2 and Desire Z Themes and Apps] ddgarcia05:
I believe he posted that it was only tested for the the G2 Vision.

Try it out and post back.
[G2 and Desire Z Themes and Apps] Crey23:
First off...thanks OP for this....I really got to liking swype (to my surprise).

One question though...I just downloaded the apk and downloaded it using the phone, but I went to install I got a Parsing Error: "There is a problem parsing the package".

Have I done something wrong?

I currently have the file located on my /sdcard/donwload/ location....should I put it somewhere else?

Thanks!
[G2 and Desire Z Themes and Apps] oldsk00lz:
Well, the current version posted is looking for both the lib and apk (which the G2 has). Not sure if the My Touch Slide has both of these files or just the APK. Am thinking of updating app to handle either case.

Yeh, I like it too, though I usually like the numbers keys in one row.

Hmm, I never got the parsing error. Do you have the Settings > Applications > Unknown sources checked? Do you have ApkInstaller installed or some other filebrowser that can install local files?

Maybe if you try it again, and pass me a logcat I can see if anything stands out?

-oldsk00lz
[G2 and Desire Z Themes and Apps] Crey23:
Hey man...Yeah, I checked apkinstaller, and still got the error...here is a part of alogcat that I had running...

D/asset (12317): failed to open Zip archive '/sdcard/download/SwypeRestore.apk'
W/PackageParser(12317): Unable to read AndroidManifest.xml of /sdcard/download/SwypeRestore.apk
W/PackageParser(12317): java.io.FileNotFoundException: AndroidManifest.xml
W/PackageParser(12317): at android.content.res.AssetManager.openXmlAssetNative(Native Method)
W/PackageParser(12317): at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:485)
W/PackageParser(12317): at android.content.res.AssetManager.openXmlResourceParser(AssetManager.java:453)
W/PackageParser(12317): at android.content.pm.PackageParser.parsePackage(PackageParser.java:396)
W/PackageParser(12317): at com.android.packageinstaller.PackageUtil.getPackageInfo(PackageUtil.java:79)
W/PackageParser(12317): at com.android.packageinstaller.PackageInstallerActivity.onCreate(PackageInstallerActivity.java:242)
W/PackageParser(12317): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
W/PackageParser(12317): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
W/PackageParser(12317): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
W/PackageParser(12317): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
W/PackageParser(12317): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
W/PackageParser(12317): at android.os.Handler.dispatchMessage(Handler.java:99)
W/PackageParser(12317): at android.os.Looper.loop(Looper.java:123)
W/PackageParser(12317): at android.app.ActivityThread.main(ActivityThread.java:4627)
W/PackageParser(12317): at java.lang.reflect.Method.invokeNative(Native Method)
W/PackageParser(12317): at java.lang.reflect.Method.invoke(Method.java:521)
W/PackageParser(12317): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
W/PackageParser(12317): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
W/PackageParser(12317): at dalvik.system.NativeStart.main(Native Method)
W/PackageInstaller(12317): Parse error when parsing manifest. Discontinuing installation
E/linker (12317): bionic/linker/linker.c:693| WARNING: `/system/lib/hw/gralloc.msm7x30.so` is not a prelinked library
E/linker (12317): 3021 mapping library 'gralloc.msm7x30.so' at 80a00000 (index 00000010) through buddy allocator.
I/ActivityManager( 3032): Displayed activity com.android.packageinstaller/.PackageInstallerActivity: 465 ms (total 465 ms)
W/KeyCharacterMap(12308): No keyboard for id 131074
W/KeyCharacterMap(12308): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
I/dalvikvm(12238): Jit: resizing JitTable from 4096 to 8192

Thanks for your help!!!
[G2 and Desire Z Themes and Apps] renn9420:
The Swype Restore app worked perfectly thanks.

Phone: T-Mobile G2/Vision Rooted

Rom: Latest Cyanogen

Recovery: CWM waiting for Amon_RA
[G2 and Desire Z Themes and Apps] oldsk00lz:
Possible corrupt apk?

Does your APK file match these stats?

Md5sum = 15059376eeedf847870a2f38816f1367

Size = 253835

-oldsk00lz
[G2 and Desire Z Themes and Apps] Crey23:
I have absolutely no idea how to check for md5sum....but the size is only 126789.

I'll try to download again and test.
[G2 and Desire Z Themes and Apps] Crey23:
OK...got to DL again, full size this time, and it loaded properly. I ran it using the first nandroid backup that I did when moving to CM6.1 RC3, all went well until I actually went to use it.

When trying to select Swype, I get two options,

- android keyboard settings

- Input method

If I click on Input method, nothing happens....

Did I miss something on the istallation? Also once installed, Do I need to keep the app installed?

Thanks!

*EDIT* - OK how about I follow instructions....lol! Get it to work perfectly...very nice thank you so much for this.....now If I could only get keyboard manager to work!!!!
[G2 and Desire Z Themes and Apps] SamZzz:
Will this work on other roms as well.. ? i.e. Virtuous Sense?:confused:

Edit: Ugh.. I hate MediaFire. Been trying to get the apk to download on my phone. Got it to download once but gave me a parse error.. file turned out to be about half what it should have been. Deleted it from my SD card and can't get it to download again to save my life!

I'm clicking "Click here to start download" then getting "Processing download request.." then BOOM back to "click here to start download." Grrrrrr!
[G2 and Desire Z Themes and Apps] oldsk00lz:
Well, it should restore from a stock-based or AOSP-based ROM Nand backup that has both the Swype lib and APK. I have heard of some issues when restoring to sense-based Roms, but I have not tried. If you try it, please post the results.

I know some others had issues with MediaFire. Sorry for the frustration. If there are other recommended sites, I can look at updating the link. I can also try to send you via PM if we can attach files.

-oldsk00lz
[G2 and Desire Z Themes and Apps] SamZzz:
Hmm.. Waited til I got home and downloaded the app to the PC then transferred to the phone. Installed and runs but every backup I choose says it failed to find Swype. I know at least two of them have Swype in them.. The first one I tried is form the stock rooted ROM. :(
[G2 and Desire Z Themes and Apps] Ted417:
@oldsk00lz ... I Am Totally Sorry For Going Off Topic... But I just wanted to ask. Is it possible to make an APK that can run this script? http://xdaforums.com/showthread.php?t=863923
[G2 and Desire Z Themes and Apps] renn9420:
@oldsk00lz

Try 4shared.com I use it.

Phone: T-Mobile G2/Vision Rooted

Rom: Latest Cyanogen

Recovery: CWM waiting for Amon_RA
[G2 and Desire Z Themes and Apps] SamZzz:
Woot! The new Beta is out!!

OK.. So after messing around with all this turns out I don't need to get it working anyway. MONTHS ago I signed up for the Swype Beta and just got an email a few minutes ago welcoming me in! Got a nifty Swype installer and a fresh new version of Swype to run along inside my Sense ROM! Backin' that bad boy up right now! Thanks anyway.. never did get the APK to work on Virtuous. But don't need it now.
[G2 and Desire Z Themes and Apps] DukAmok:
I was pretty worried I'd have to do a full backup recovery when I realized Swype didn't carry over to Cyanogen, but then I found this apk. Worked perfectly, thanks!
[G2 and Desire Z Themes and Apps] billyjr2:
I couldn't get it to work..so I downloaded virtous rom the o.7.4 patch opened the zip went to sytem apps found the swype.apk extracted it then went system lib found the swype.lib used root explorer and copyed the swype.lib and put it in my system/lib "you could adb push it.then went to the swype.apk and installed it...presto works good..
[G2 and Desire Z Themes and Apps] Modernly:
Thanks for this, appreciate it.
[G2 and Desire Z Themes and Apps] Code3VW:
Ran this on CM6.1.0 no problem...upgraded to 6.1.1 and now it can't find swype in any of my backups some stock rooted, some from CM 6.1.0...I also reinstalled the app...any ideas?
[G2 and Desire Z Themes and Apps] oldsk00lz:
Hmmmm. Are you short on available space in /sdcard? Maybe the extract of the ROM is failing.

If you had already ran this successfully in the past then the two files should already be cached in /sdcard/nandtemp/

Maybe you can copy the apk directly to /system/app and the lib to /system/lib? You would need to set system as readwrite first: mount -o remount,rw /system

-oldsk00lz
[G2 and Desire Z Themes and Apps] Code3VW:
This was it! My phone never warned me that my sdcard had 0 bytes of free space left...deleted some garbage and now I'm swyping again! Thanks!! :)
[G2 and Desire Z Themes and Apps] mrxant:
I installed the SwypeRestore on my myTouch 4G running CyanogenMod 6.2. I got my swype back from my stock rom, but I still can't get it to work. There is no option to uncheck Android keyboard in Menu>Settings:Language & keyboard. Do I have to run all the cmd prompts in Terminal after I run swype restore?
[G2 and Desire Z Themes and Apps] oldsk00lz:
Sorry to hear that. I know someone else had a corrupt file and needed to reextract. Possibly, the same thing happened with one of the swype files. I have also seen this if your sdcard is filled up. Maybe try it again. If you still have issues post the file size and md5sum, to see if there is a difference.

I can uncheck the android keyboard option on the G2 just fine so not sure there. It was also working fine on mine when it was checked. Hmmm... do you see the swype option?

-oldsk00lz
[G2 and Desire Z Themes and Apps] michaelmab88:
I have the same problem on my mytouch 4g with cm6.1.2 RC2... No option to select or deselect the android keyboard. Swype is there on the list above android keyboard and its settings are adjustable.. but no way to select between the two keyboards.
[G2 and Desire Z Themes and Apps] ReganH22:
Thank you so much for creating this. I had no idea how much I missed Swype until I had to use the stock Android keyboard.
[G2 and Desire Z Themes and Apps] user1307:
Thanks, works great on CM7
[G2 and Desire Z Themes and Apps] DMCDash:
Restore on HD2

This might be more of a wish but any chance to restore SWYPE from the Windows OS build when running Android on the HD2? I realize you can't do a nandroid backup of a different OS but just wondering if there is any way to use the licensing of SWYPE from the Windows OS in the Android build since it comes installed with the HD2.