Go Back   Android Forums > Android Phones > LG Ally > Ally - All Things Root

test: Reply
 
LinkBack Thread Tools
Old September 19th, 2010, 01:42 PM   #1 (permalink)
Junior Member
Thread Author (OP)
 
KuroTsubasa's Avatar
 
Join Date: Sep 2010
Posts: 77
 
Device(s): Galaxy Nexus
Carrier: Not Provided

Thanks: 12
Thanked 18 Times in 16 Posts
Default Swype Beta Hack

This is for those of you that were using the one build of the Swype Beta that actually worked for the Ally (up until last week, when it expired).

There is a new beta floating around (version 2.4.44.10912.t100), however, when installed on the Ally, it instantly locks you out with a message that this version wasn't made for your phone.

I read somewhere that in the past, you could fix this by modifying the Swype apk to contain an older "license.dat" file (such as the one from the open beta). With this new version however, Swype will FC instantly if it was installed from a resigned apk.

Out of curiosity, I extracted the files from within "classes.dex" and started poking around. In one of the files, I found this line:


Code:
.field private static final LICENSE_FILE_ON_FILESYSTEM:Ljava/lang/String; = "/data/data/com.swype.android.inputmethod/swypedata/license.dat"
This sparked my curiosity a bit. Apparently, one area Swype looks for its "license.dat" file is on your phone's filesystem! After a few unsuccessful tests, I found a license file that worked on my phone. So far, Swype hasn't given me any problem with this combo of old license + new Swype.

The "license.dat" file itself can be found within older swype apk's that you may find floating around the net. It is located at "/assets/files/license.dat" within the apk. You may need to try multiple versions before you find one that works for your phone. Also, a quick reminder that Swype *is* copyrighted software, and that you download said apk's at your own risk.

The easiest way to get this onto your phone is to extract the "license.dat" file to your android SDK's "tools" folder and run this command (with your phone attached in USB debugging mode of course):

Code:
./adb push license.dat /data/data/com.swype.android.inputmethod/swypedata/
If you have trouble with the directory(s) not existing, make sure to run Swype at least once first. It will create it's own folders.

Good Luck!

Note: I've only had Swype working on my phone this way for about an hour now, so it could always change it's mind and stop working. I don't anticipate any trouble with it, but I haven't thoroughly tested it yet.

UPDATE: After upgrading my girlfriend's Ally to Velocity 0.2, I tried applying the Swype fix using the adb push command above. This failed with a "Permission Denied" error. Instead, I had push the file elsewhere and use a cli shell to move it to the correct location. Not sure why adb allowed the push on my phone but not on hers.

If you try the command above and get a permission denied error, try the following.

1) Transfer the file to your phone (anywhere should be fine)
2) Open a terminal emulator or an adb shell
3) Run the "su" command (no quotes) and confirm dialog on your phone to get root privileges.
3) Navigate to the location you placed "license.dat"
4) Run the command "mv license.dat /data/data/com.swype.android.inputmethod/swypedata/" (without the quotes)

I apologize for the sloppiness of my workaround. I'm a still bit of a newbie with the adb interface. Also, being good with the command line apparently doesn't make up for being bad at writing instructions. If anyone has a better (and more fool-proof) set of instructions, feel free to post them.

Advertisements
KuroTsubasa is offline  
Last edited by KuroTsubasa; September 28th, 2010 at 11:33 PM. Reason: Removed references to old attachment.
Reply With Quote
The Following User Says Thank You to KuroTsubasa For This Useful Post:
death2all110 (September 19th, 2010)
sponsored links
Old September 19th, 2010, 01:54 PM   #2 (permalink)
Premium Member
 
death2all110's Avatar
 
Join Date: Jun 2010
Location: Illinois, US
Gender: Male
Posts: 1,995
 
Device(s): Samsung Galaxy S4; LG Spectrum
Carrier: Verizon Wireless

Thanks: 163
Thanked 1,206 Times in 487 Posts
Send a message via Yahoo to death2all110 deatheatergrim@gmail.com
Default

Thanks! Good work! and Welcome to Android Forums!
__________________
I help maintain CM11 for the LG Spectrum.

LG VX8300>LG Decoy>LG Dare>LG Ally>Droid2>LG Ally>HTC Droid Incredible>HTC Thunderbolt>HTC Droid Incredible>Samsung Galaxy Nexus>LG Spectrum>Moto Droid RAZR Maxx>Samsung Galaxy S4


I'm located in: Computers&IT, LG Spectrum, XDA Developers; AllyIRC My Blog


Please press button, and please consider donating to my energy drink fund.Thanks!
death2all110 is offline  
Reply With Quote
Old September 19th, 2010, 02:10 PM   #3 (permalink)
Senior Member
 
PowerBomb's Avatar
 
Join Date: Jul 2010
Posts: 542
 
Device(s): Bionic (Eclipse ROM)
Carrier: Verizon

Thanks: 97
Thanked 104 Times in 82 Posts
Default

Nice work. I always had trouble getting Swype to work so I just use Shapewriter.
PowerBomb is offline  
Reply With Quote
Old September 19th, 2010, 02:40 PM   #4 (permalink)
Junior Member
Thread Author (OP)
 
KuroTsubasa's Avatar
 
Join Date: Sep 2010
Posts: 77
 
Device(s): Galaxy Nexus
Carrier: Not Provided

Thanks: 12
Thanked 18 Times in 16 Posts
Default

I considered using Shapewriter instead, but when I went to look for it I noticed that they took it off the market. I figure that if I'm going to go out of my way to get one of them, might as well get the one that has the most hype. =/

...no pun intended there between hype and swype, lol.

Personally, I'd like to see the Swype developers release Swype to the Market, rather than just bundle it with OEM's. Seems like they'd reach such a big market that way. And just because it's on the market, doesn't mean they couldn't *also* sell it to OEM's for bundling. Hopefully they'll change their mind on the issue once they drop their "beta" tag.
KuroTsubasa is offline  
Reply With Quote
Old September 22nd, 2010, 01:52 AM   #5 (permalink)
Junior Member
 
Join Date: Sep 2010
Posts: 31
 
Device(s): LG Ally
Carrier: Not Provided

Thanks: 16
Thanked 3 Times in 2 Posts
Default

Which Swype version should I use? Swype_HVGA_2.4.44.10912.t100.apk?

I can't seem to get it to work, I can access the swype information in settings, but the keyboard does not come up. Did I install the wrong version?

Edit: I found the problem, "The Swype package you installed does not match the screen size of the device. Please contact Swype about this issue. Screen size:480x800"

Which version should I use... maybe you could hint at where to get it :P

Thanks

Edit2: Nevermind, I found it on a cached version of an xdadev forum
klumpingkalooper is offline  
Last edited by klumpingkalooper; September 22nd, 2010 at 02:02 AM. Reason: Error Message Came Up... I found a working version
Reply With Quote
Old September 22nd, 2010, 08:29 AM   #6 (permalink)
Senior Member
 
dots's Avatar
 
Join Date: Aug 2010
Location: Shelby Township, MI
Posts: 965
 
Device(s): LG Ally (Retired), HTC Inspire 4g (Current)
Carrier: Not Provided

Thanks: 53
Thanked 244 Times in 190 Posts
kissarmy10001
Default

Swype 2.4.44.10912 WVGA <-- Is the verison of swype that i have that works flawless with the ally. And landscape mode all the keys fit on the screen. I have a copy of " Swype 2.4.44.10912 WVGA" if anyone wants it. Just stop by the LG Ally IRC channel.
__________________
Visit the LG Ally IRC Channel!
LG Ally IRC Channel
dots is offline  
Reply With Quote
Old September 22nd, 2010, 08:33 AM   #7 (permalink)
New Member
 
Join Date: Sep 2010
Posts: 13
 
Device(s):
Carrier: Not Provided

Thanks: 6
Thanked 5 Times in 3 Posts
Default

Hey, I posted this in a thread in the LG Ally forum but thought I'd put it here too in case you guys didn't check.

Its a cracked version of the new beta so you don't need this hack. Just download, install, and enjoy you're new keyboard.

Also I don't wanna take credit for the above, I found it floating around online.
warkrismagic is offline  
Last edited by Roze; September 27th, 2010 at 06:57 PM. Reason: No posting links to warez!
Reply With Quote
The Following User Says Thank You to warkrismagic For This Useful Post:
darkxsun (September 23rd, 2010)
Old September 22nd, 2010, 10:54 AM   #8 (permalink)
Junior Member
Thread Author (OP)
 
KuroTsubasa's Avatar
 
Join Date: Sep 2010
Posts: 77
 
Device(s): Galaxy Nexus
Carrier: Not Provided

Thanks: 12
Thanked 18 Times in 16 Posts
Default

Nice find. I spent awhile trying to find a working apk, but didn't turn up anything. Might have given up too early though. I'm hoping that my method stays future proof though. They like to make Swype expire at regular intervals after all. Still, the more ways to make it work, the better.
KuroTsubasa is offline  
Reply With Quote
Old September 22nd, 2010, 01:34 PM   #9 (permalink)
Junior Member
 
Join Date: Jun 2010
Posts: 29
 
Device(s):
Carrier: Not Provided

Thanks: 6
Thanked 2 Times in 2 Posts
Default

I have a 1.61 version I can't part with, it has a different skin then all the normal swype installs I have seen. It's is a werid super plain version of the keyboard. If you guys want a copy let me know and I'll figure something out for you.
turbine is offline  
Reply With Quote
Old September 22nd, 2010, 01:37 PM   #10 (permalink)
Senior Member
 
GRZLA's Avatar
 
Join Date: Aug 2010
Location: Grand Prairie, TX
Posts: 527
 
Device(s): LG Ally running Rooted Froyo 2.2.1
Carrier: Not Provided

Thanks: 35
Thanked 211 Times in 93 Posts
Default

Quote:
Originally Posted by turbine View Post
I have a 1.61 version I can't part with, it has a different skin then all the normal swype installs I have seen. It's is a werid super plain version of the keyboard. If you guys want a copy let me know and I'll figure something out for you.
I use this version too. The keyboard is more visible and works in landscape FLAWLESSLY.
GRZLA is offline  
Reply With Quote
sponsored links
Old September 22nd, 2010, 01:51 PM   #11 (permalink)
Junior Member
 
Join Date: Jun 2010
Posts: 29
 
Device(s):
Carrier: Not Provided

Thanks: 6
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by GRZLA View Post
I use this version too. The keyboard is more visible and works in landscape FLAWLESSLY.
Yep and for future reference the Ally at 480x800 is a WVGA (wide vga) device, the HVGA (half vga) is 240x640. So any programs that have different resolutions available you always want the WVGA version.
turbine is offline  
Reply With Quote
Old September 22nd, 2010, 04:40 PM   #12 (permalink)
Junior Member
Thread Author (OP)
 
KuroTsubasa's Avatar
 
Join Date: Sep 2010
Posts: 77
 
Device(s): Galaxy Nexus
Carrier: Not Provided

Thanks: 12
Thanked 18 Times in 16 Posts
Default

For the record, I've noticed an .ini file within the Swype .apk that looks like it controls resolution settings. It's located at "/assets/files/SwypeScreen.ini". I've haven't tried changing it, but you could theoretically use it to fit any copy of Swype to your screen size.

I think you can update files within an app without having to resign the apk, as long as you're not adding or removing any files (e.g. replace SwypeScreen.ini with another, modified, SwypeScreen.ini). This method would be similar to how MM works.
KuroTsubasa is offline  
Reply With Quote
Old September 22nd, 2010, 05:50 PM   #13 (permalink)
Junior Member
 
Join Date: Jun 2010
Posts: 29
 
Device(s):
Carrier: Not Provided

Thanks: 6
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by KuroTsubasa View Post
For the record, I've noticed an .ini file within the Swype .apk that looks like it controls resolution settings. It's located at "/assets/files/SwypeScreen.ini". I've haven't tried changing it, but you could theoretically use it to fit any copy of Swype to your screen size.

I think you can update files within an app without having to resign the apk, as long as you're not adding or removing any files (e.g. replace SwypeScreen.ini with another, modified, SwypeScreen.ini). This method would be similar to how MM works.
Interesting, but I doubt it would work correctly. Internally the programs are set up to have separate directories for different resolution artwork, so if you change your resolution and it looks for that artwork and it's missing, you'll still be at square 1. If the swype apk contains multiple skins, then it could work. However there tons of devices that don't have exact resolutions like the Ally does (ie the droid at 480 x 854), so I'm pretty sure the apks are built for specific groups of devices, they aren't universal.
turbine is offline  
Reply With Quote
Old September 28th, 2010, 08:14 AM   #14 (permalink)
Hiding behind a mystery
 
Roze's Avatar
 
Join Date: Jan 2010
Location: Where the Sakura grows
Posts: 9,847
 
Device(s): Moto Atrix [lovin'] Nexus One [Lost] LG Vu [Lost]
Carrier: Not Provided

Thanks: 809
Thanked 2,192 Times in 1,489 Posts
Default

I would like to remind everyone that it is against AF policy to distribute licensed apps, like Swype. Please refresh yourself of what the Site Rules/Guidelines are.

Below is our stance against distributing Swype.

Quote:
1. Swype is NOT a "free beta". It's only available by registering for a closed beta program, the t&c for which I am sure preclude users sharing it out to all and sundry.

2. Swype made it perfectly clear a long time ago that the app was copyright and that they would consider legal action against sites that allowed it to be distributed. The owner of AF has no inclination to attract the attention of Swype's legal team.

3. The Forum Rules make it clear that linking to/sharing copyrighted apps is prohibited. When you registered here you agreed to abide by these rules. Anyone found to be breaching these rules, either openly in the forums or via PM, will receive infractions.
__________________
Sign up with Dropbox using my referral and get an additional 1/2GB on top of the 2GB you get for signing up http://db.tt/YbULMZX

Many thanks,
Roze
Roze is offline  
Reply With Quote
Old October 5th, 2010, 06:18 PM   #15 (permalink)
New Member
 
Dynamics's Avatar
 
Join Date: Oct 2010
Location: Milton, Ontario
Posts: 1
 
Device(s): Nexus One 2.2.1 (Stock) AT&T Version - Telus Mobility
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Has anyone though of changing that string to point to a folder on the SD card so the user could easily upload a new license file by simply plugging in his phone?
Dynamics is offline  
Reply With Quote
Old October 5th, 2010, 11:11 PM   #16 (permalink)
Junior Member
Thread Author (OP)
 
KuroTsubasa's Avatar
 
Join Date: Sep 2010
Posts: 77
 
Device(s): Galaxy Nexus
Carrier: Not Provided

Thanks: 12
Thanked 18 Times in 16 Posts
Default

Quote:
Originally Posted by Dynamics View Post
Has anyone though of changing that string to point to a folder on the SD card so the user could easily upload a new license file by simply plugging in his phone?
Hmm... I really hadn't thought of that. Unfortunately, I think it would be a long way around the problem. The convenience of knowing where Swype looks for a license file is that it's presumably future-proof. Newer versions of Swype will probably always look for the license there in order to ensure backwards compatibility with phones that have a license installed there.

If you were to modify it, you'd have to modify *each* new version, which takes enough work that you might as well push the file to its original location. The only advantage I could see would be the ability to do this on an un-rooted phone.

Also, such a modified version couldn't be uploaded here due to the forum rules (and concerns already addressed by the moderators).

According to warkrismagic (above), there is a new version floating around on the web right now that works perfectly on the Ally. Again thought, the link here was taken down for legal reasons. I'd suggest trying to google search for it. And sorry to shoot down your suggestion so abruptly... <.<
KuroTsubasa is offline  
Reply With Quote
Old October 5th, 2010, 11:22 PM   #17 (permalink)
Senior Member
 
dots's Avatar
 
Join Date: Aug 2010
Location: Shelby Township, MI
Posts: 965
 
Device(s): LG Ally (Retired), HTC Inspire 4g (Current)
Carrier: Not Provided

Thanks: 53
Thanked 244 Times in 190 Posts
kissarmy10001
Default

Quote:
Originally Posted by KuroTsubasa View Post
Hmm... I really hadn't thought of that. Unfortunately, I think it would be a long way around the problem. The convenience of knowing where Swype looks for a license file is that it's presumably future-proof. Newer versions of Swype will probably always look for the license there in order to ensure backwards compatibility with phones that have a license installed there.

If you were to modify it, you'd have to modify *each* new version, which takes enough work that you might as well push the file to its original location. The only advantage I could see would be the ability to do this on an un-rooted phone.

Also, such a modified version couldn't be uploaded here due to the forum rules (and concerns already addressed by the moderators).

According to warkrismagic (above), there is a new version floating around on the web right now that works perfectly on the Ally. Again thought, the link here was taken down for legal reasons. I'd suggest trying to google search for it. And sorry to shoot down your suggestion so abruptly... <.<
There is one that works perfect with the Ally. Not sure if i can give out the version number on the forums though.
dots is offline  
Reply With Quote
Reply
Tags
2.4.44, 2.4.44.10912.t100, ally, beta, hack, license, license.dat, swype


Go Back   Android Forums > Android Phones > LG Ally > Ally - All Things Root
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:17 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.