Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,740,807 Members 51,812 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE] 11/22/2010 - Restore Swype after upgrading to CyanogenMod

Tip us?
 
oldsk00lz
Old
(Last edited by oldsk00lz; 22nd November 2010 at 11:57 AM.)
#1  
Senior Member - OP
Thanks Meter 14
Posts: 232
Join Date: Nov 2008
Default [GUIDE] 11/22/2010 - Restore Swype after upgrading to CyanogenMod

If you were like me, you rushed right into installing CyanogenMod. Whoops, found out there is no swype installed. What to do?

Hopefully you made a nandroid backup like me. I didn't want to do a full nandroid restore just to extract the files. So I did this...

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
UPDATED 11/22/2010 - Okay, some people have requested a "newbie friendly" solution. I have created an APK which will help automate this procedure, without the need for ADB. If you have already applied CyanogenMod, then use this APK to select an older Clockwork Backup that has your licensed Swype. It will then extract and install the files for you. I have only tested on the G2.

http://www.mediafire.com/?j7dnv321ej0mrch

I'll possibly do some updates to:
a) cache swype for future installs (to make restores super quick)
b) add other extractions of 'your' saved files (i.e. google apps)
c) add more options for handling cache/files/etc.

I hope this helps. Enjoy!

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

# --------------------------------------------------------------------------------------------
# How to recover your swype files from your nandroid backup
# Quick and dirty extract

# Prepare a staging area on your computer
mkdir nandtmp
cd nandtmp
# Copy your old nandroid (pre CM) backup to your staging area..........
# i.e. /androidbackups/clockworkmod/backup/2010-11-01.02.02.02
cp $WHEREVER_OLD_IMAGE_IS/system.img .
# extract files...
unyaffs system.img
adb remount
# Push the swype files back to your Android device
adb push ./system/lib/libSwypeCore.so /system/lib/
adb push ./system/app/Swype.apk /system/app/
# Some users have had issues with not seeing Swype in the options (possibly non read/write system?), so they just installed the APK. If you install it, make sure the lib file has been pushed first.
# i.e. adb install /sdcard/Swype.apk

# Update permissions for good measure (may not be needed)
chmod 644 /system/app/Swype.apk
chmod 644 /system/lib/libSwypeCore.so

# I rebooted, but have heard reports that it is not necessary
adb reboot

# Now in Menu>Settings:Language & keyboard unselect the Android keyboard and make sure Swype keyboard is checked.

A similar process can be done directly on your phone.

# --------------------------------------------------------------------------------------------

Hope that helps others restore Swype (or other files they desire) without having to do a full Nand restore.

-oldsk00lz
Nexus 5 & 7 (2013) - CM 11, AOSP, CM 10.2
.......... ....... ...... ....
The Following 12 Users Say Thank You to oldsk00lz For This Useful Post: [ Click to Expand ]
 
ranyvern
Old
#2  
Junior Member
Thanks Meter 1
Posts: 23
Join Date: Oct 2010
Location: Richmond
getting force close on swype as soon as I uncheck the android keyboard, not a huge deal but I do kinda miss swype
The Following User Says Thank You to ranyvern For This Useful Post: [ Click to Expand ]
 
Stryder5
Old
#3  
Recognized Contributor
Thanks Meter 926
Posts: 2,964
Join Date: Mar 2009
Location: Texas
Quote:
Originally Posted by ranyvern View Post
getting force close on swype as soon as I uncheck the android keyboard, not a huge deal but I do kinda miss swype
Did you push libSwypeCore.so to /system/lib yet?
Current Phone: Google Nexus 5 (Hammerhead)
ROM: Mahdi w/ BaNkS Gapps || Radio: KTU84P Radio || Kernel: ElementalX 1.00
Mods: None || Recovery: TWRP 2.7.1.1
 
Previous Android Phones:
HTC Dream (T-Mobile G1) [Traded in]
HTC Vision (T-Mobile G2) [Got stolen]
HTC Doubleshot (T-Mobile MyTouch 4G Slide) [Retired]
LG Mako (Nexus 4) [Backup Device]

Get Dropbox for cloud storage! Use my link and we each get 500mb!
 
k50aker
Old
#4  
Junior Member
Thanks Meter 0
Posts: 14
Join Date: Aug 2009
Location: Rockland County, NY
For some reason it still doesn't show up in the keyboard list, any idea why?

Sent from my T-Mobile G2 using XDA App
 
k50aker
Old
#5  
Junior Member
Thanks Meter 0
Posts: 14
Join Date: Aug 2009
Location: Rockland County, NY
Ok, what you're supposed to do is, you actually have to install the swype.apk. its not enough to copy it to the /system/app directory adb install Swype.apk or use root file explorer click on the apk file and choose install.

Sent from my T-Mobile G2 using XDA App
 
g_grey
Old
#6  
Senior Member
Thanks Meter 4
Posts: 125
Join Date: Nov 2010
or you can open up cyanogenmod(unzip) and download a stock g2 rom and then just put the files in the proper places, then zip cm again and flash(i did this all from my phone ast night because i was too lazy to go to the computer)
 
JPoole1059
Old
#7  
Junior Member
Thanks Meter 0
Posts: 4
Join Date: Oct 2010
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
 
Stryder5
Old
#8  
Recognized Contributor
Thanks Meter 926
Posts: 2,964
Join Date: Mar 2009
Location: Texas
Quote:
Originally Posted by k50aker View Post
For some reason it still doesn't show up in the keyboard list, any idea why?
Be more specific. What have you done so far? Did you go into Settings > Keyboard and enable Swype yet?
Current Phone: Google Nexus 5 (Hammerhead)
ROM: Mahdi w/ BaNkS Gapps || Radio: KTU84P Radio || Kernel: ElementalX 1.00
Mods: None || Recovery: TWRP 2.7.1.1
 
Previous Android Phones:
HTC Dream (T-Mobile G1) [Traded in]
HTC Vision (T-Mobile G2) [Got stolen]
HTC Doubleshot (T-Mobile MyTouch 4G Slide) [Retired]
LG Mako (Nexus 4) [Backup Device]

Get Dropbox for cloud storage! Use my link and we each get 500mb!
 
wilnotdie
Old
#9  
Senior Member
Thanks Meter 24
Posts: 404
Join Date: Sep 2009
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. :/
 
k50aker
Old
#10  
Junior Member
Thanks Meter 0
Posts: 14
Join Date: Aug 2009
Location: Rockland County, NY
Quote:
Originally Posted by Stryder5 View Post
Be more specific. What have you done so far? Did you go into Settings > Keyboard and enable Swype yet?
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.


Sent from my T-Mobile G2 using XDA App

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes