Volume rocker awake 2.3.5 - Huawei Ideos X5 U8800

Hi again! Does anyone got volume rocker awake to work on a rootet original. Fw 2.3.5 to work? Incase, how.?

EDIT: It seems that yannn007 has an easier way: http://forum.xda-developers.com/showpost.php?p=22163390&postcount=95 I tried it, and it didn't work for me, unfortunately.
Since I promised to add to the wiki, let this be the first. I learnt this trick from a ROM by birdyi, so I credit him; however, I have seen it in ROMs that existed before his did.
How to make the volume rocker wake up the phone with the stock locker
Prerequisites:
apktool
Obtain /system/framework/android.policy.jar from your phone
Decompile said file using apktool
Open android.policy.jar.out/smali/com/android/internal/policy/impl/KeyguardViewMediator.smali (note, if you chose to extract to a different folder, then replace "android.policy.jar.out" with the name of your chosen folder)
Find the line ".method private isWakeKeyWhenKeyguardShowing(I)Z"
In this function, look for:
Code:
:sswitch_data_0
.sparse-switch
Underneath that, you'll see the following:
Code:
0x18 -> :sswitch_0
0x19 -> :sswitch_0
Remove the 0x18 and 0x19 lines, save and use apktool to rebuild the android.policy.jar file. Place it back onto your device and restart.

can u put the file already modified here?

It differs depending on ROM, I think

is it possible to make some think like a batch to do this ?
i have added the line to the prop file but it has not worked...
i am not familliar with this method and i am afraid of doing it

Magiclocker. No battery drain, full sleep. volume buttons does wake device, tested on u8800pro, gingerbread rom540 by geno, rooted.

mclaudio said:
is it possible to make some think like a batch to do this ?
i have added the line to the prop file but it has not worked...
Click to expand...
Click to collapse
Would also like that,thank you

Any dev can help?

widget locker also use volume rocker sw. for awake.i think no memory usage and min battery drain

HAhahahaha works!!!! Dammit I love open communities!

in order to awake with volume rocker sw, replace "androidpolicy" (in the attachment) with inside the "system/framework" than restart.it works.(tested with 518 and 526)
for replacement you must have root explorer or es file explorer with w/r permision.

barkiniseri said:
in order to awake with volume rocker sw, replace "androidpolicy" (in the attachment) with inside the "system/framework" than restart.it works.(tested with 518 and 526)
for replacement you must have root explorer or es file explorer with w/r permision.
Click to expand...
Click to collapse
It works just fine on B522, thank you, barkiniseri!!

See my thread here also for a flashable version or returning to stock:
http://forum.xda-developers.com/showthread.php?t=1530084

works
barkiniseri said:
in order to awake with volume rocker sw, replace "androidpolicy" (in the attachment) with inside the "system/framework" than restart.it works.(tested with 518 and 526)
for replacement you must have root explorer or es file explorer with w/r permision.
Click to expand...
Click to collapse
it works on b528 (with atmel-fix) but an ERROR indicating at each start-up that google framework has stopped unexpectedly.

soguzar said:
it works on b528 (with atmel-fix) but an ERROR indicating at each start-up that google framework has stopped unexpectedly.
Click to expand...
Click to collapse
Rather than use the flashable zip, use the instructions in the first post to modify your own android.policy.jar file.
Works, 100% reliable, and can be done on almost any ROM.

jeremysherriff said:
Rather than use the flashable zip, use the instructions in the first post to modify your own android.policy.jar file.
Works, 100% reliable, and can be done on almost any ROM.
Click to expand...
Click to collapse
True! But... "One, does not simply find and use apktool"

jeremysherriff said:
Rather than use the flashable zip, use the instructions in the first post to modify your own android.policy.jar file.
Works, 100% reliable, and can be done on almost any ROM.
Click to expand...
Click to collapse
What do you mean by "flashable zip"? There is only jar file. Do you know the way to flash this jar file?
Thanks for your help and sorry for easy questions.

soguzar said:
What do you mean by "flashable zip"? There is only jar file. Do you know the way to flash this jar file?
Thanks for your help and sorry for easy questions.
Click to expand...
Click to collapse
Sorry, i thought it had been packaged in a zip. Either way, what i mean is make the mods to your own file, to avoid issues where you install a file from a ROM or version that is different to what you have and make things break. The mod is easy to do.
Sent from my U8800 using XDA

Thanks for the tutorial.
I finally find a way to but volume buttons waking up my phone!
Thanks

barkiniseri said:
in order to awake with volume rocker sw, replace "androidpolicy" (in the attachment) with inside the "system/framework" than restart.it works.(tested with 518 and 526)
for replacement you must have root explorer or es file explorer with w/r permision.
Click to expand...
Click to collapse
Tried this file on mine and almost got bricked... I thought this would be compatible with the new ICS from DZO.
When I rebooted the phone, it got stuck on the Aurora ICS screen. I had to reinstall original ICS plugging the phone to an USB without the battery. If the battery was on the phone I just got the pink screen when rebooting with volume up+down+power...
My phone specs:
U8800
Android 4.0.4
Kernel 3.0.8-perf-g2600408-dirty
Build Aurora_4.1.4.0.4 IMM761 eng.
Martin.20120605.162907 test-keys
And since I don't have the time to learn jar editing, I'll wait for the time being.

Related

battery mod

Hello,
I found this thread :
http://forum.xda-developers.com/showthread.php?t=765419
and I have some questions about this :
1) Is it possible to "tweak" our framework-res.apk with this battery mod.
2) Can I use this method to "tweak my framework-res.apk : http://circle.glx.nl/
3) When I download my new framework-res.apk, how to boot on recover mode on the phone to put the framework-res.apk on the system ?
4) Do you know an other easylier method to tweak icons on the HD2 under android ?
Thanks a lot !
+1 I asked myself to but no time to seach forum
@Karlichon
What is with this batmod? Are you done with them?
karlichon said:
1) Is it possible to "tweak" our framework-res.apk with this battery mod.
2) Can I use this method to "tweak my framework-res.apk : http://circle.glx.nl/
3) When I download my new framework-res.apk, how to boot on recover mode on the phone to put the framework-res.apk on the system ?
Thanks a lot !
Click to expand...
Click to collapse
Ok I think I'll answer this, but bear with me as it's NOT easy or for the faint of heart. If you read this and you DO NOT feel comfortable I would recommend you not giving this a go.
Before you start ANY of these steps below, MAKE SURE YOU BACKUP YOUR FILES BEFORE REPLACING THEM. I WILL NOT BE HELD RESPONSIBLE FOR ANY DAMAGE CAUSED FOLLOWING THESE STEPS! You have been warned.
1) Visit the website above and run through the steps to get the battery images you want. For the purposes of this tutorial/howto I am not covering how to change anything else (KISS: Keep It Simple, Stupid).
2) The easiest ones to change are the Version A-I ones, just choose which battery set would work best for you on your phone and click "Next"
3) Choose "Do not include icons" and click next. The icons it is talking about here are the signal, wifi, usb etc notification bar icons and as I mentioned I will not cover how to change those here.
4) Leave "Do not change notification status bar" selected and click next. Again I'm not covering that here.
5) You can choose a different boot anim if you want, they are very easy to upload to your phone and you can figure out where they have to be put yourself with no problems. IMPORTANT: If you do change the boot animation, make sure you choose the correct type of rom you have from the dropdown selection.
6) Upload your existing framework-res.apk (using something like DroidExplorer, navigate to /system/framework and paste it onto your desktop, then upload here). This will update the relevant files in your framework-res.apk automatically. (If you cannot obtain your existing framework-res.apk I cannot guarantee method 2 will work, sorry but feel free to try)
7) Replace your framework-res.apk (via DroidExplorer or your chosen ADB browser) on your phone and reboot. Voila!
This worked for me on shubcraft 2.0 drop mode but obviously I cannot guarantee it will work for everyone. Please remember my warnings above that this is not guranteed.
hello, thanks for your quick help, but it doesn't work for hyperdroid rom V1.7
any idea ?
karlichon said:
hello, thanks for your quick help, but it doesn't work for hyperdroid rom V1.7
any idea ?
Click to expand...
Click to collapse
there is another far more complicated way around it, but it really does take about half an hour to work out.
Basically, you need to get your framework-res.apk and extract it with winrar or something similar (an apk is basically just a zip file) and find the folder called res/drawable-HDPI. this is where all the icons for things like your battery icons live.
Copy and paste the new icons from someone elses framework-res or even one you download from the website above into this folder and replace the drawable-HDPI folder into your framework-res.apk, replace it onto your phone and reboot.
Again, this is a quick description of a much lengthier way of doing it but it does work. Also, my disclaimer in the post I made before still stands, do this AT YOUR OWN RISK and do NOT complain to me if something breaks. If you don't fully understand, don't do anything.
I tried the kitchen method, but I receive a huge error log after uploading the framework apk
is the page currently partly down?
rafpigna said:
I tried the kitchen method, but I receive a huge error log after uploading the framework apk
Click to expand...
Click to collapse
It doesn't seem to work all that well with frameworks from our current modded builds. I've tried it with a rooted desire framework (from my gf's desire) and that worked. Evidently all the work that the devs do on our hd2's make them very different to other android builds. the second method I posted (adding the png's to your existing framework) works perfectly.
BlackPit666 said:
is the page currently partly down?
Click to expand...
Click to collapse
Nope, seems up to me.
yes its up again
rafpigna said:
I tried the kitchen method, but I receive a huge error log after uploading the framework apk
Click to expand...
Click to collapse
for me the same, desirehd revolution rom of mdj
can anybody help me?
Reno_79 said:
there is another far more complicated way around it, but it really does take about half an hour to work out.
Basically, you need to get your framework-res.apk and extract it with winrar or something similar (an apk is basically just a zip file) and find the folder called res/drawable-HDPI. this is where all the icons for things like your battery icons live.
Copy and paste the new icons from someone elses framework-res or even one you download from the website above into this folder and replace the drawable-HDPI folder into your framework-res.apk, replace it onto your phone and reboot.
Again, this is a quick description of a much lengthier way of doing it but it does work. Also, my disclaimer in the post I made before still stands, do this AT YOUR OWN RISK and do NOT complain to me if something breaks. If you don't fully understand, don't do anything.
Click to expand...
Click to collapse
can you tell me which files i need to replace to get another battery icon? only the files which "batt" in it?
Reno_79 said:
there is another far more complicated way around it, but it really does take about half an hour to work out.
Basically, you need to get your framework-res.apk and extract it with winrar or something similar (an apk is basically just a zip file) and find the folder called res/drawable-HDPI. this is where all the icons for things like your battery icons live.
Copy and paste the new icons from someone elses framework-res or even one you download from the website above into this folder and replace the drawable-HDPI folder into your framework-res.apk, replace it onto your phone and reboot.
Again, this is a quick description of a much lengthier way of doing it but it does work. Also, my disclaimer in the post I made before still stands, do this AT YOUR OWN RISK and do NOT complain to me if something breaks. If you don't fully understand, don't do anything.
Click to expand...
Click to collapse
This method will not work with the battery icons which shows all 100% increments. This method will only work for the standard battery icons, which only involves like 12 battery icons.
In order to add the 1% increment readings in the battery, it involves modifying xml files to read and associate the correct battery icons at each increment.
can you give a tut how to add the version a manually?
nvm, I got it!

[FIX] Low incall volume

I've fixed the low incall volume problem. BIG thanks to Arva!!! If you are experiencing low incall volume all you need to do is this:
1. go with RootExplorer (or something else) to /system/etc/firmware
2. delete default.adcb and htcleo.adcb (make sure you have mounted read/write in the folder)
3. just copy the defaut.adcb from the attached file that Arva gave
4. restart the phone (not hot restart)
and presto!! you'll have so lowder incall volume that your ears will bleed
Again.. BIG thanks to Arva!!
Just applied the fix, works nice
Found Simple Fix,
-when you recieve the incoming call accept the call turn on speaker phone and turn it of again,
good idea.. but when you change the file you won't have to deal with it every time.. it can be a bit annoing
how do you do this???? Helpppp, this is really annoing!!!
bcandara said:
Found Simple Fix,
-when you recieve the incoming call accept the call turn on speaker phone and turn it of again,
Click to expand...
Click to collapse
Okay, you told us to delete htcleo.adcb, but there is no file to replace it in the file downloaded.
Also what do I replace the deleted files with?
default.acdb
or
update.default_acdb.sh
?>??
YOU SIR, ARE NOT CLEAR AT ALL IN YOUR DIRECTIONS.
I agree. This works as well but its really annoying as hell!
How do you even get to htcleo.adcb???
@lemonspeaker you dont replace htcleo.adcb.. you just delete it. and copy default.adcb, the other file is for the builds from cedesmith.
@daica13 get to file with rootexplorer.. and it's written in the first post where the files are located.. good luck
Well I tried your / his fix and yeap it worked !
Well I tried your / his fix and yeap it worked !
you'll have so lower in-call volume that your ears will bleed!
Click to expand...
Click to collapse
Well It didn't work that great! LOL But It Def made a big difference!
i cant delete these files
what now?
Wampirate said:
i cant delete these files
what now?
Click to expand...
Click to collapse
Use Rootexplorer to do it.
You need root access. And Change the files to read / write
I Used Rootexplorer not sure what the heck I was doing !
But it worked ! In-Call IS Fixed!
Yep.. Worked for me.
Thank you.
Got a fix for the speaker volume for ringer and notification being low too?Ive been searching for weeks.
I have deleted the two mentioned files, but I can't paste the new file.
All the maps are read/write, but when I paste the standard file nothing happens.
I used Rootexplorer.
What am I doing wrong?
I can't open root explorer, it says something like "root explorer has not yet managed to get permissions from superuser..."
I can't figure out how to get around this!
Any ideas?
thatsonlyme said:
I can't open root explorer, it says something like "root explorer has not yet managed to get permissions from superuser..."
I can't figure out how to get around this!
Any ideas?
Click to expand...
Click to collapse
You don`t have a rooted phone.
FileFixer said:
You don`t have a rooted phone.
Click to expand...
Click to collapse
BusyBox says it is rooted. It also says BusyBox not found!
I also tried using SuperManager and when I delete files it does nothing!
I have notice a strange issue. Since I Have applied this fix the boot time is about 90 sec. If I restore the original file, the booot time is about 45 sec. Why this?
thank you ,nice work
Worked like a charm for me! I couldn't paste the file using Root Explorer, so I tried Super Manager, and it allowed me to copy/paste just fine.

[HOWTO] Record phone calls

Hi all,
I'm still not allowed to post it on devel forum, so I'll put that one here.
I've managed to have call record button enabled ripping some files from Korean roms and dropping them inside an european one.
I did it on Litenin' rom, but it should work on all other roms.
So, for instructions :
1) Grab the attached zip and unpack it; you'll get 2 folders (app and lib) containing each 2 files.
2) Unpack any available factoryfs.img file, mount it and REPLACE the 2 .apk (Phone.apk and Phone_Util.apk) with the one provided here; they go in app folder in mounted image; the same for the 2 lib files (libaudioflinger.so and libaudiopolicy.so) which go into lib folder of mounted image.
AFAIK that one should be done in linux.
3) repack the image and flash it to phone.
That's all ! on next call, you'll get a RECORD button and your call will be recorded in .amr format; I found that other's part voice is perfect and loud, my voice is somehow lower volume but very usable.
The small caveat is in call settings menu, on my phone it appears in english instead of italian....
Ciao
Max
sounds great, but....is there a more newbie way of doing it?
XD
rafael000 said:
sounds great, but....is there a more newbie way of doing it?
XD
Click to expand...
Click to collapse
Hmmmm... no
For now, at least.
I could post the modified Litenin rom 1.3 (the one I use) so you can flash it on usual ways.
But I can't do it right now, tomorrow it's possible.
Ciao
Max
MicioMax said:
Hi all,
I'm still not allowed to post it on devel forum, so I'll put that one here.
I've managed to have call record button enabled ripping some files from Korean roms and dropping them inside an european one.
I did it on Litenin' rom, but it should work on all other roms.
So, for instructions :
1) Grab the attached zip and unpack it; you'll get 2 folders (app and lib) containing each 2 files.
2) Unpack any available factoryfs.img file, mount it and REPLACE the 2 .apk (Phone.apk and Phone_Util.apk) with the one provided here; they go in app folder in mounted image; the same for the 2 lib files (libaudioflinger.so and libaudiopolicy.so) which go into lib folder of mounted image.
AFAIK that one should be done in linux.
3) repack the image and flash it to phone.
That's all ! on next call, you'll get a RECORD button and your call will be recorded in .amr format; I found that other's part voice is perfect and loud, my voice is somehow lower volume but very usable.
The small caveat is in call settings menu, on my phone it appears in english instead of italian....
Ciao
Max
Click to expand...
Click to collapse
I made it a update.zip the KF1 at work thank you.
http://www.multiupload.com/TTX9ZFC82G
this can be easily done in Root Explorer correct? what is the folder structure again that i need to copy & paste the new files over?
xxlikquidxx said:
this can be easily done in Root Explorer correct? what is the folder structure again that i need to copy & paste the new files over?
Click to expand...
Click to collapse
apks go into system/app
libs go into system/lib
Nice feature!
Do you have a screenshot of the phone screen with the button and the settings?
Can it be set to always record automatically?
Multi language:
http://www.multiupload.com/7YEG4W0GZN
Install CWM
Thanks for the screenshot.
So this mod replaces the "Add call" button with the Record/Stop button. Is this function still accessible somewhere, maybe in the menu?
mhhhh... Today I've seen that when using my bluetooth headset the record button is disabled
I guess this stuff should be hacked a bit more.
snark_be said:
Thanks for the screenshot.
So this mod replaces the "Add call" button with the Record/Stop button. Is this function still accessible somewhere, maybe in the menu?
Click to expand...
Click to collapse
Yes, the menu during a call
done through CW Recovery
on litening Rom 1.3 ...
My phone does not work now! it is on Flightmode and does not go back to Flightmode off!! how can i go back to the original one? flash litening again?
EDIT:
i reflashed litening and now it works.
what about automatic call rec,without asking if i want a rec? thanks
hazem77 said:
My phone does not work now! it is on Flightmode and does not go back to Flightmode off!! how can i go back to the original one? flash litening again?
Click to expand...
Click to collapse
Most probably because you flashed the Call Recording apks for KF1, while Litening ROM 1.3 is based on KE8.
Has anyone just copied the libs across and then used third party app (Total Recall for instance) with the standard recording policy?
I may try it later, this was all I needed to get the SGS I recording working properly.
I guess the correct way would be to have the sources of both audio libraries (.so) and apks and rebuild them after patching.
For the apk it's easy to decompile, but we should find the sources of .so, both for stock ones and korean ones, and look for differences.
Once the differences are known and sources available, it should be easy to add some useful features.
BTW, has anybody tried recording with bluetooth headset ? With mine it seems not working, and I'd like to know it it's a general problem or just mine
Ciao
Max
hazem77 said:
done through CW Recovery
on litening Rom 1.3 ...
My phone does not work now! it is on Flightmode and does not go back to Flightmode off!! how can i go back to the original one? flash litening again?
EDIT:
i reflashed litening and now it works.
Click to expand...
Click to collapse
It should be enough to replace the apks and libs with litening original ones.
Weird problem, indeed... on my phone it works well, even if I haven't tested it very deeply.
Max
anzo said:
Multi language:
http://www.multiupload.com/7YEG4W0GZN
Install CWM
Click to expand...
Click to collapse
Tryed with your update and CWM, and Phone apk crashes on my phone.
That's because I've got litenin 1.3 ? What did you change to make it multilanguage ?
Even just repacking both apks in factoryfs.img does crash. With my grabbed apk is all ok, besides the language.
Max
Works perfect on KF1. Many thanks!
So where does it save the recording?
anzo said:
I made it a update.zip the KF1 at work thank you.
http://www.multiupload.com/TTX9ZFC82G
Click to expand...
Click to collapse
How do I push it? I'm on Litening 1.4

Disable camera sound on Samsung Galaxy S II running ICS 4.0.3

1 - use Root Explorer to open /system/build.prop file (open in text editor)
2- add " ro.camera.sound.forced=0 " in the bottom of the file (ps: dont include " ")
3- save and exit ,
4- reboot you phone
after booted,
if you want to disable the camera sounds (shot sound and focus sound), just changed the system sound to silent or vibrate.
you will get a no-sounds camera.
I m using ICS and it is working
odlicno!
Awesome. Tnkz!
im running ICS 4.0.4 with Hydrogen mod
AOIK 3.0.28 kernel and have an option under sound to turn camera sound off
Take a look at that option i know resurrection mod has same option
I dont have an ICS device but on my gb device I just renamed (mv) the shutter sound file and there was no more sound when I take pictures... It should be the same for ics. use an adb shell or terminal emulator on the device to "find / -name *.ogg" and you'll figure it out. You will need root to mv the file as well as to use the find command (I am not sure if you need to install bbusybox for find).
Awesome. Thanks!
abnordli said:
1 - use Root Explorer to open /system/build.prop file (open in text editor)
2- add " ro.camera.sound.forced=0 " in the bottom of the file (ps: dont include " ")
3- save and exit ,
4- reboot you phone
after booted,
if you want to disable the camera sounds (shot sound and focus sound), just changed the system sound to silent or vibrate.
you will get a no-sounds camera.
I m using ICS and it is working
Click to expand...
Click to collapse
! EDIT found out why and how. Worked as a charm. Thanks
With ES File Explorer I can browse /system/ and open build.prop in txteditor, but I can't save it (denied) ... any idea why?
ES File Explorer isn't in SuperUses app list ... do I need to add it (and if how)?
! EDIT found out why and how. Worked as a charm. Thanks
Thanks....
If on any stock ICS rom, if you just set your phone to silent or vibrate it will eliminate the these sounds. No need to root or edit the build.prop
If I helped you, please press the Thanks button
ronj1986 said:
If on any stock ICS rom, if you just set your phone to silent or vibrate it will eliminate the these sounds. No need to root or edit the build.prop
If I helped you, please press the Thanks button
Click to expand...
Click to collapse
No,not on all ics stock rom,i m on XWLP8 i have sound when i take a pic even on silent or vibrate mode.
Sent from my Transformer TF101 using XDA Premium HD app
Sorry to know that. I didn't have that problem on LP8, but I'm on LP7 nowadays .
If I helped you, please press the Thanks button
Any solution to totally disable the camera sound ?
Search on the forum, found several tips but it's not working on ICS 4.03 (XWLP7).
Thanks.
Just tried this trick, but I'm now stuck on the "Samsung Galaxy S2 - GT-I9100" boot screen. Ben there for serveral minutes, trying to remove batterye right now.
Nothing else changed between my previous reboot earlier today than editing this build.prop...
hi guys, i did this and i got bootloop.
andreimazz said:
hi guys, i did this and i got bootloop.
Click to expand...
Click to collapse
So I'm not the only one... Any way to access/edit the build.prop when booting in CWM recovery or download mode?
edit: reflashed with LP8, and this time I did the build.prop edit with a dedicated tool from the market (and not ES Explorer, which uses charsets not correctly interpreted by Unix). Works like a charm
roswell782 said:
No,not on all ics stock rom,i m on XWLP8 i have sound when i take a pic even on silent or vibrate mode.
Sent from my Transformer TF101 using XDA Premium HD app
Click to expand...
Click to collapse
+1
I can confirm that on both xqlp7 and xwlp8 this does not work.
Part of the solution is dumping all sound files you find annoying (shutter, power connect, etc) but the super irritating LOUD focus beep is hardwired in the camera software, so it seems. I wish there was a simple hack for that!
it's working as charmed.. will settings after rom update stay or should I renew settings after every flash procedure?
Sent from my GT-I9100 using XDA
Thanx
CoinCoin88 said:
So I'm not the only one... Any way to access/edit the build.prop when booting in CWM recovery or download mode?
edit: reflashed with LP8, and this time I did the build.prop edit with a dedicated tool from the market (and not ES Explorer, which uses charsets not correctly interpreted by Unix). Works like a charm
Click to expand...
Click to collapse
My device and SDCARD was encypted, got the bootloop and had to use ODIN to get back -lost everything. I too used ES Explorer to edit-
Guess I should read instructions better
anyway- Beware, like CoinCoin says -don't use ES Explorer to edit.
When you're rooted, you can delete or rename the following files:
/system/media/audio/ui/camera_click.ogg
/system/media/audio/ui/camera_focus.ogg
/system/media/audio/ui/VideoRecord.ogg
yeah but I like the camera the way it is (basicly, I like stock things )... I just don't want it to make a noise when the phone is set to vibrate/silent. When it's on general, I'm not bothered by sounds.
The ogg files removal is an edit for all modes, whereas this tweak is just to get it working as it should.

[MOD] Add top number row to Swype

Hello guys,
Since I use a Samsung device, I'm used to the extra number row on top of the keyboard so I modded Swype to have that extra row. However since Swype is to be purchased and not distributed, I'll only tell here how to do it for your legally purchased copy. And this is a bit complicated and for advanced users and you need to be rooted. You also need Root Explorer. Here we go:
1- First buy/download Swype from Google Play.
2- Go to /mnt/asec/com.nuance.swype.dtc-1 folder, copy pkg.apk to your sdcard, rename it to com.nuance.swype.dtc-1.apk.(keep a backup of this file at all times)
3- Go to /mnt/asec/com.nuance.swype.dtc-1/lib folder copy the files (libnmsp_speex.so and libswypecore.so) to your sdcard.
4- Using apktool (I used version 1.52) decompile com.nuance.swype.dtc-1.apk.,
5- Go to decompiled folder\res\xml folder. kbd file pertaining to your language is to be edited, I edit kbd_qwerty.xml for English using Notepad++.
6- Check the attached kbd_qwerty.xml in portrait folder and notice the extra row section I added to the top. You can in fact add secondary characters to numbers or customize the keyboard completely, rearrange letters, add symbols etc.
7- Once done, save the file and go to decompiled folder\res\xml-land folder and edit the landscape for the layout, kbd_qwerty.xml file, notice the attached file in landscape folder.
8- Once done, save the file and go to decompiled folder\res\values folder and edit the dimens.xml file. Here I raise the height of the keyboard and height of the key to 270dip and 54dip respectively, check the top rows of the attached dimens.xml. Also increase the keyboard height for landscape (if you want) by changing the dimens.xml under res\values-land folder.
9- Once done, recompile the folder with apktool, go to decompiled folder\dist folder and copy the apk here to a different folder and rename it to temp.apk.zip
10- Open temp.apk.zip with 7z/winrar and copy the resources.arsc and kbd_qwerty.xml files from res\xml and res\xml-land folders to your PC(obviously keep the 2 files in seperate folders not to overwrite)
11- Then, rename the original apk from step 2 to com.nuance.swype.dtc-1.apk.zip , open with winrar and first delete resources.arsc file, then drag the resources.arsc file from step 10 to the archive, it will be added. Staying in winrar, go to res\xml folder and replace the file with kbd_qwerty.xml from step 10 (the portrait version). Do the same with res\xml-land folder and the landcape file.
12- Once finished rename the file back to com.nuance.swype.dtc-1.apk, don't sign it, don't delete META-INF folder, leave it as it is.
13- Now, on your phone, uninstall Swype. Reinstall it from the apk file on Step 2. Go to /data/app-lib/com.nuance.swype.dtc-1 folder and move the 2 files (libnmsp_speex.so and libswypecore.so) to system/lib folder. You have to mount the System R/W from Root Explorer on this step. Fix the permissions so these 2 files have the same permissions with other files there. If you can't find these files just use the ones from Step 3.
14- Once done, copy com.nuance.swype.dtc-1.apk from Step 12 to /system/app and fix the permissions so that it has the same permissions as other files there.
15- Then delete the com.nuance.swype.dtc-1.apk from /data/app/ folder. Restart your phone.
This should be it if you followed it exactly, tracing and Dragon voice dictation also works. While you're doing all this work (takes 10 minutes by the way), you might also consider changing how Swype looks (theming) and changing many other things like swype thickness, colors etc. Please note that this is for advanced and rooted users and please don't ask me to give you the modded apk, you have to do it on your legally bought version. You might consider doing backups just in case anything goes wrong. Have fun.
And a quick tip: if you swype from swype icon to symbol key(123), arrow keyboard opens up.
You can also add arrow keys by copying arrow keys from kbd_edit.xml, check the 2nd screenshot.
Please hit the thanks button if you think this is useful.
Nice how to. But may u should tell that the latest Android versions store purchased apps in data/app-asec as asec version, this need special procedure to get a apk from the asec format.
Can you please update this tutorial to 4.3 ? I couldn't find the files in the mentioned paths. . I'm on stock rooted 4.3 on gt9500
Sent from my GT-I9500 using XDA Premium 4 mobile app
lesalloum said:
Can you please update this tutorial to 4.3 ? I couldn't find the files in the mentioned paths. . I'm on stock rooted 4.3 on gt9500
Sent from my GT-I9500 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
It works same for me on 4.3 stock rooted i9500, maybe you could do a file search to find the necessary folder. Here is another screenshot with the updated Swype(1.6.2.22328), where I made number buttons smaller like original Samsung Keyboard and hide the suggestions bar to save space.
ozkaya said:
Hello guys...
9- Once done, recompile the folder with apktool, go to decompiled folder\dist folder and copy the apk here to a different folder and rename it to temp.apk.zip
....
Click to expand...
Click to collapse
using the current play store version (1.6.3.22544), i decompiled com.nuance.swype.dtc-1.apk (/mnt/asec/com.nuance.swype.dtc-1/pkg.apk) using APKTool 1.52. i made no changes and attempted to recompile without success.
the first error displayed by apktool is:
"C:\Users\Phil\apktool\com.nuance.swype.dtc-1\res\values\arrays.xml:545: error: Found tag dimen-array where item is expected"
i do use APKTool successfully to mod other apps so i am familiar with the process.
QUESTION: what frameworks file are you using when making your mods? are you using a TW ROM frameworks? that's the only other variable i can think of...
EDIT: well, i just tried using TW framework too without success
PhilDX said:
using the current play store version (1.6.3.22544), i decompiled com.nuance.swype.dtc-1.apk (/mnt/asec/com.nuance.swype.dtc-1/pkg.apk) using APKTool 1.52. i made no changes and attempted to recompile without success.
the first error displayed by apktool is:
"C:\Users\Phil\apktool\com.nuance.swype.dtc-1\res\values\arrays.xml:545: error: Found tag dimen-array where item is expected"
i do use APKTool successfully to mod other apps so i am familiar with the process.
QUESTION: what frameworks file are you using when making your mods? are you using a TW ROM frameworks? that's the only other variable i can think of...
EXIT: well, i just tried using TW framework too without success
Click to expand...
Click to collapse
Latest version of Swype has incompatible tags with Apktool. What you do is go to all the lines that give error and change them to <string-array>. Then it compiles.
ozkaya said:
Latest version of Skype has incompatible tags with Apktool. What you do is go to all the lines that give error and change them to <string-array>. Then it compiles.
Click to expand...
Click to collapse
i'll give this a shot tomorrow, thanks a lot!
ozkaya said:
Latest version of Swype has incompatible tags with Apktool. What you do is go to all the lines that give error and change them to <string-array>. Then it compiles.
Click to expand...
Click to collapse
it works!!!
thanks man, appreciate the help and info!
I've been going nuts trying to edit swype for a week now and still can't seem to get it to work. All I want to do is change the suggested word color and maybe a few other minor color related things. I assumed just changing the color codes in /res/values/styles.xml that seemed to pertain to the holo theme would work but I can't ever get the app to install. Not even sure where to begin to ask for help on this one but if anyone has any advice I'd greatly appreciate it.
Ok I've tried this a hundred times following all the steps completely and it just wont work.
Once I go to install the final apk it always tries to install then sais App Not Installed.
TeknoGodz said:
Ok I've tried this a hundred times following all the steps completely and it just wont work.
Once I go to install the final apk it always tries to install then sais App Not Installed.
Click to expand...
Click to collapse
You don't install the final apk, in fact you can't since the certificate is no longer valid. You copy the final apk in place as in Step 14.
I would love this! I have used Swype for years but I would love a number row. To be honest I have no idea how to follow those instructions! I have a rooted phone - what can I do?
Am I right in concluding that you can't use TB to backup and restore the finished product and this will have to be done manually? I did this on my rooted Note 3 and I keep going back to my stock image because I don't want to have to keep doing the steps when I flash a new ROM or ROM update.
Would I maybe just have to do steps 12 onward every time?
mr.BeBoT said:
Am I right in concluding that you can't use TB to backup and restore the finished product and this will have to be done manually? I did this on my rooted Note 3 and I keep going back to my stock image because I don't want to have to keep doing the steps when I flash a new ROM or ROM update.
Would I maybe just have to do steps 12 onward every time?
Click to expand...
Click to collapse
When you install a new ROM, you install original Swype from apk file then you move the lib files to /system/lib, copy the modded apk to /system/app and delete original apk from /data/app folder. So it is 4 steps once you have the modded apk ready, should take no more than 5 minutes.
thumm138 said:
I've been going nuts trying to edit swype for a week now and still can't seem to get it to work. All I want to do is change the suggested word color and maybe a few other minor color related things. I assumed just changing the color codes in /res/values/styles.xml that seemed to pertain to the holo theme would work but I can't ever get the app to install. Not even sure where to begin to ask for help on this one but if anyone has any advice I'd greatly appreciate it.
Click to expand...
Click to collapse
This is similar. Please go through the steps, you don't (can't) install the modded apk, you move it in place.
ozkaya said:
This is similar. Please go through the steps, you don't (can't) install the modded apk, you move it in place.
Click to expand...
Click to collapse
Yeah I realized that after I posted and still nothing. I'm no programmer but I've never NOT been able to change a few things and recompile. Not sure how just changing a few color codes is causing such a problem. Shame such a nice keyboard has such little customization and few themes. Don't get me wrong I like orange but it really doesn't mesh at all with the rest of the UI. Thanks for the reply though.
ozkaya said:
This is similar. Please go through the steps, you don't (can't) install the modded apk, you move it in place.
Click to expand...
Click to collapse
I did all that and it changed the height of the keyboard, but didn't add any additional number row.
kdb_qwerty or whatever it's called is the default that comes up when you install it, right? Becuase I tried again and specifically made sure to use this one and it just wont give me the extra row, just the height.
TeknoGodz said:
I did all that and it changed the height of the keyboard, but didn't add any additional number row.
kdb_qwerty or whatever it's called is the default that comes up when you install it, right? Becuase I tried again and specifically made sure to use this one and it just wont give me the extra row, just the height.
Click to expand...
Click to collapse
It depends on your system language. Try kbd_qwerty_panlatin.xml.
ozkaya said:
Latest version of Swype has incompatible tags with Apktool. What you do is go to all the lines that give error and change them to <string-array>. Then it compiles.
Click to expand...
Click to collapse
Thank you for this change, this is exactly what I was looking for to compile.
Once again my Swype is blue!!! :victory:
here's my creation, what do you guys think?
the theme is "Lucid" from the pay store: https://play.google.com/store/apps/...lucid&pcampaignid=APPU_8szYUoedK9PNsAThnoDQDQ

Categories

Resources