Is it possible to mod another app using xposed? - Xposed Framework Development

I have the app SwiftKey keyboard running on my Android. I want to modify it by removing the "word prediction bar" and I want to change the function of one of the buttons on the keyboard.
Would something like this be possible using the Xposed framework, if not how could I achieve this. (I imagine the fact that it's a keyboard and runs on top of everything might complicate things)

lxda said:
I have the app SwiftKey keyboard running on my Android. I want to modify it by removing the "word prediction bar" and I want to change the function of one of the buttons on the keyboard.
Would something like this be possible using the Xposed framework, if not how could I achieve this. (I imagine the fact that it's a keyboard and runs on top of everything might complicate things)
Click to expand...
Click to collapse
You can totally do that with Xposed.
But it might be a little but of a pain to reverse engineer how to do so.

Fif_ said:
You can totally do that with Xposed.
But it might be a little but of a pain to reverse engineer how to do so.
Click to expand...
Click to collapse
Thanks for the reply, by reverse engineer you mean work out what variables are used by SwiftKey for these things and then get at them through xposed right? I think you're right that it will be a pain because this app is closed source so I'll have to decompile things to make any progress

Yes. It's especially hard as most packages are obfuscated by ProGuard or some other tools and you end up with explicit names like a.f3.bs.c.d.z.

Related

[Q] Spell check

any way to get spell check to work with the h/w keyboard?
I would like to know this as well
Sent from my T-Mobile G2 using XDA App
This may not be exactly what you are looking for, but maybe it will work in substitute?
http://www.droidforums.net/forum/droid-hacks/3784-you-want-predictive-text-wth-physical-keyboard-here-how-you-do-you-welcome.html
It adds predictive text to the physical keyboard. Not quite spell check, but could be used as a substitute.
Edit: Hmm, just realized this might not work super great since it was intended to install on the droid... Some of the market keyboard applications have settings for predictive text using the hardware keyboard. If you google around for it, you can find them.
unxconformed said:
This may not be exactly what you are looking for, but maybe it will work in substitute?
http://www.droidforums.net/forum/droid-hacks/3784-you-want-predictive-text-wth-physical-keyboard-here-how-you-do-you-welcome.html
It adds predictive text to the physical keyboard. Not quite spell check, but could be used as a substitute.
Edit: Hmm, just realized this might not work super great since it was intended to install on the droid... Some of the market keyboard applications have settings for predictive text using the hardware keyboard. If you google around for it, you can find them.
Click to expand...
Click to collapse
Thanks for reminding me of this.
I haven't used this solution in a while, as I didn't need it on my Nexus one.
But I did use it on my G1. It's a decent on screen keyboard too, but the hardware keyboard protection makes it killer. Lots of skins available too.
More info: http://forum.xda-developers.com/showthread.php?t=624416
Wanted to bump this back to the top.
Is there a way to turn on spell check with the physical keyboard? Settings > locale & text seems to have no effect on the physical keyboard settings.
Just download smart keyboard pro. Great keyboard and has exactly what you are looking for with hardware suggestions. Highly recommend
Sent from my T-Mobile G2
etjrowe said:
Thanks for reminding me of this.
I haven't used this solution in a while, as I didn't need it on my Nexus one.
But I did use it on my G1. It's a decent on screen keyboard too, but the hardware keyboard protection makes it killer. Lots of skins available too.
More info: http://forum.xda-developers.com/showthread.php?t=624416
Click to expand...
Click to collapse
Tried this -- it only works if you tap the text area once after the keyboard is out. Unless there's some setting I'm missing, I can't get it to work right away. It's super annoying and has been uninstalled. =(

[MOD]{Xposed} Samsung keyboard short delay

This is based on the work from the Original thread and the original thread link from that post. All I did was package it into an Xposed module so you don't need to flash a particular version to get the short delay. I have only tested this on the international stock odexed ROM, but it should work on any ROM with the stock Samsung keyboard. If it doesn't work, please send me a copy of /data/xposed/debug.log. It's super simple, so I don't expect problems. I'm running the multi-DPI keyboard mod as well, and it works fine.
Installation is like any Xposed module, so see the Xposed thread for info on how to use it. Once installed, it should show up as a module in the Xposed installer app. Just check the box to enable it and reboot. You should be good to go after the boot is complete. Please be sure your Xposed install is working. Try using one of the other mods to make sure before reporting bugs with this module. The setup is pretty simple, but there are a few steps to getting it going. Once I get some reports that it's working, I'll post the source to github. I just don't want to push out source that doesn't work for anyone other than me.
I use that module for Xposed in my Galaxy S4, and I have a question: is that mod correctly work on another device than Galaxy Note II? In my phone there is no autocorrection, and delay is not short. Is any possibility to further decrease the time?
tomurbanowicz said:
I use that module for Xposed in my Galaxy S4, and I have a question: is that mod correctly work on another device than Galaxy Note II? In my phone there is no autocorrection, and delay is not short. Is any possibility to further decrease the time?
Click to expand...
Click to collapse
I have only tested it on a Note2 and Note3. It worked for the Note3 without any changes. The S4 may well use a different keyboard app as the Note keyboard has a number of options for the larger screen. This mod never did anything with auto-correct, only the keyboard long-press delay. Going much lower will break some other features, or just make them really hard to use.
Trying it now on my note 2, key board feels snappier but I'm still testing it, question if I ever want to go back to original, what arte the steps to go back?
Sent from my SGH-T889 using xda premium
KingP1n said:
Trying it now on my note 2, key board feels snappier but I'm still testing it, question if I ever want to go back to original, what arte the steps to go back?
Sent from my SGH-T889 using xda premium
Click to expand...
Click to collapse
I'd imagine you just disable that particular module in xposed app.
sino8r said:
I'd imagine you just disable that particular module in xposed app.
Click to expand...
Click to collapse
Exactly.
Make sure you reboot after disabling, like all xposed modules.
short delay time
How can i edit the short delay time from say 200ms to between 100 and 150.. i understand this will break swype but i dont use swype anyways. any advice is greatly appreciated! thanks!
xxcoover said:
How can i edit the short delay time from say 200ms to between 100 and 150.. i understand this will break swype but i dont use swype anyways. any advice is greatly appreciated! thanks!
Click to expand...
Click to collapse
You will need to edit the source code and rebuild the module as I didn't think anyone would want to configure it like that. See the link below for the source.
I tried this on my Galaxy Note 3, and now the keyboard is missing the shortcuts. Anyway to get the shortcuts back on my keyboard? I already uninstalled this tweak, and I tried a factory data reset, and the Samsung keyboard still has no shortcuts.
ZOMBIExM4STER said:
I tried this on my Galaxy Note 3, and now the keyboard is missing the shortcuts. Anyway to get the shortcuts back on my keyboard? I already uninstalled this tweak, and I tried a factory data reset, and the Samsung keyboard still has no shortcuts.
Click to expand...
Click to collapse
This mod doesn't change anything I can think of that would affect that. I tested it on a TMO US Note3 with stock software and it worked fine. Modded ROMs might have compatibility issues with it as they may have changed the code I'm taking over. As I understand it, the shortcuts are handled by CSC settings. Have you recently installed anything that could mess with those? A data wipe won't affect CSC, as it lives on the system partition. I believe there was an issue similar to this with Wannam breaking wifi calling due to CSC mods, as one example. Even an update to another app could have done it. It's hard to say.
If you want to get it back to stock, the only way I can think of would be to restore the stock CSC. The simplest way would be to wipe system and re-flash the ROM. Then install things one at a time to look for what might be messing with CSC settings.
The code is about as simple as an Xposed module can be, it takes over one method in the keyboard class and tells it to use a shorter delay. The original method is a one-liner, as is mine. It's literally "return 200;".
Here's a direct link to the code: https://github.com/travistabbal/Xpo...SamsungKeyboardShortDelay/ShortDelayMain.java
I have the At&t Note 3, so I don't have any custom roms. The only other app I have is Wanam Xposed and the only thing I have enabled on Wanam is the flashlight on the lock screen. Before I installed this tweak I had the shortcuts on my keyboard, after I installed it and rebooted my phone the shortcuts were gone. It feels weird without them, I'm so used to them being there. I rooted my phone with Kingo root, and I wouldn't know how to flash to the stock rom. Please help.
ZOMBIExM4STER said:
I have the At&t Note 3, so I don't have any custom roms. The only other app I have is Wanam Xposed and the only thing I have enabled on Wanam is the flashlight on the lock screen. Before I installed this tweak I had the shortcuts on my keyboard, after I installed it and rebooted my phone the shortcuts were gone. It feels weird without them, I'm so used to them being there. I rooted my phone with Kingo root, and I wouldn't know how to flash to the stock rom. Please help.
Click to expand...
Click to collapse
If you disabled/uninstalled this mod, and rebooted, it's no longer there. It makes no persistent changes to the system. If Wanam updated before you rebooted, that could do it. That one does modify CSC files. I have no idea if that is what happened in your case or not. I'm afraid that I can't be much more help directly as I don't have an ATT N3 to test on. The best advice I can give is to hit the ATT N3 Q&A forum and post there about your issue. Perhaps someone can send you a backup of their CSC files? Or someone may have run into the same thing and know the cause. I would be VERY shocked if this little mod had anything to do with it though. It's only a few steps away from "Hello World".
Wanam is what's breaking the symbols. There's a setting to turn them off, and it's "on" by default.
Turning it off doesn't always make the symbols come back. But after a few reboots they will be there. I had the same problem before I even found your .apk
And updated version would be great where I can pick my own milliseconds.. I'm a 128ms kinda guy
wdkingery said:
Wanam is what's breaking the symbols. There's a setting to turn them off, and it's "on" by default.
Turning it off doesn't always make the symbols come back. But after a few reboots they will be there. I had the same problem before I even found your .apk
And updated version would be great where I can pick my own milliseconds.. I'm a 128ms kinda guy
Click to expand...
Click to collapse
Thank you so much for saying this. I have a Verizon Note 3 but I was having this issue on a new ROM and I thought I had some weird junky modified keyboard because I didn't even realize it was a Wanam option. It was driving me insane. Somehow I found your post in a search and I'm glad I did! I actually couldn't get them to come back after a few reboots but uninstalled Wanam with the symbols turned on, reinstalled, rebooted, and THEN they came back.
This is nice! I have another question too if anyone can answer me. I flashed the root 4.3 stock odin style onto my note 2. After rebooting brand new and checking my samsung keyboard settings, it showed having the auto replace option there which is good for me. After a while though i noticed that it would not replace my words anymore and checked the keyboard settings and the auto replace was gone!! Anyone know what may have happened?

[Q] Samsung Emoticon Removal

Tried out some of the new roms, but I see they are keeping the stock keyboard with the crappy/poor samsung emotes on hangouts.
Has anyone figured out how to remove these and convert back to the correct google ones?
Insert comments about samsung doing something stupid.
I'd rather bake it in with my flash instead of band-aid it in.
All the "how to" things say its the keyboard, which that must not be true.
I pulled the samsung IME from the rom and re-flashed with google keyboard and its still showing these crappy emotes.
I rarely use them, but I hate seeing these stupid things when others do.
I dont want to use that emote switcher program, because its a bandaid. Really wondering what the actual change comes from on these.
https://play.google.com/store/apps/details?id=com.stevenschoen.emojiswitcher
This will change them. It's a band aid fix but it works.
Cbass15 said:
https://play.google.com/store/apps/details?id=com.stevenschoen.emojiswitcher
This will change them. It's a band aid fix but it works.
Click to expand...
Click to collapse
yeah, trying to avoid the bandaids.
That was what I was referring to when I was talking about it.
Might have to suffer with using that for now.

[Help] [G4c] Port old .apk from other device

Greetings!
Is it possible to port stock LGMessage.apk from LG L7II (kitkat) to the LG G4c (lollipop)?
I tried copying it with ES File Manager from one phone to another, changed permissions, restarted phone and everytime I try to open Messaging it crashes.
I really liked the abillity of the L7II Messaging app to give contacts custom themes (background pictures, sounds). This function is missing from the new version of the app.
Any tips would be appreciated.
AndriusDievas said:
Greetings!
Is it possible to port stock LGMessage.apk from LG L7II (kitkat) to the LG G4c (lollipop)?
I tried copying it with ES File Manager from one phone to another, changed permissions, restarted phone and everytime I try to open Messaging it crashes.
I really liked the abillity of the L7II Messaging app to give contacts custom themes (background pictures, sounds). This function is missing from the new version of the app.
Any tips would be appreciated.
Click to expand...
Click to collapse
Yep i feel your pain on that one cuz i am the same about the g4 stock browser. I'm trying t to find a browser that comes close to the speed and stability. Yes it can be done before if I'm not mistaken it requires de/re-compiling knowing code to an extent... A decent amount of work, but I'll give it a try as soon as I get a better PC that has enough balls to these things cuz this lil netbook barely runs anything lol
dadrumgod said:
Yep i feel your pain on that one cuz i am the same about the g4 stock browser. I'm trying t to find a browser that comes close to the speed and stability. Yes it can be done before if I'm not mistaken it requires de/re-compiling knowing code to an extent... A decent amount of work, but I'll give it a try as soon as I get a better PC that has enough balls to these things cuz this lil netbook barely runs anything lol
Click to expand...
Click to collapse
I thought about de/recompiling the apk. I have some expirience with coding stuff, but sadly I know too little about android stuff to figure out what's preventing the old app from running. Maybe it's some kind of software version check? Or maybe the layout or something doesn't fit? For all I know it may even be due to the fact that it's raining in China :laugh:
AndriusDievas said:
I thought about de/recompiling the apk. I have some expirience with coding stuff, but sadly I know too little about android stuff to figure out what's preventing the old app from running. Maybe it's some kind of software version check? Or maybe the layout or something doesn't fit? For all I know it may even be due to the fact that it's raining in China :laugh:
Click to expand...
Click to collapse
Ikr I love android but boy there's so many factors and obstacles, I still can't wrap my mind around the ability of some of these developers and most are half my age lol
Sent from my VS986 using Tapatalk
dadrumgod said:
Yep i feel your pain on that one cuz i am the same about the g4 stock browser. I'm trying t to find a browser that comes close to the speed and stability. Yes it can be done before if I'm not mistaken it requires de/re-compiling knowing code to an extent... A decent amount of work, but I'll give it a try as soon as I get a better PC that has enough balls to these things cuz this lil netbook barely runs anything lol
Click to expand...
Click to collapse
Have you figured anything out with the old LG browser? I'm really missing it, hate using chrome. I just switched to the G4 from my G2 and chrome is killing me ?
ugslick said:
Have you figured anything out with the old LG browser? I'm really missing it, hate using chrome. I just switched to the G4 from my G2 and chrome is killing me ?
Click to expand...
Click to collapse
Omg dude I do feel your pain....not a single browser out of the probably hundreds I've tried even comes close to the speed and fluidity of it. It's really beyond my logical scientific mind and understanding as a human being how anyone hasn't made a browser exactly like this and how this is not where Chrome is now. Anyway so far as I can tell it would require decompile in and all that good stuff beyond my means but there is one possibility I think which would be changing your devices ID making the app think that it's actually a G4 which I'm fixing to try very soon. I'm not mistaken there's an Xposed module that does it or a device ID Changer app or something. It makes incompatible apps run on devices they're not supposed to so why wouldn't it work for this LOL
Sent from my VS986 using Tapatalk

Disable FullScreen Keyboard (NO ROOT)

Hi,
I would like to suggest to our moderators or to our app developers if they can tweak the Xperia Keyboard or Google Keyboard to disable the fullscreen feature whenever you are on landscape mode (like playing games, watching movies etc.).
The reason for this request is the fullscreen mode on landscape is quite annoying since it covers the entire screen.
Actually, I found a good solution for this but by using an Xposed module. However, I don't want to root my phone since I just bought it a month ago. I hope someone can help me do this without the need of rooting the phone. Command via ADB shell will do as well if there's a certain command for that.
I'm using Huawei P10 VTR-L29C636B162
Thanks!
Hi,
I don't have anything issue like that with Gboard. Can you post a screenshot for better understanding, what you exactly mean?
And we also need your phone model and firmware version.
I'm on VTR-L29C432B162.
As per your screenshot and with the attached image below, you will see that our keyboard on landscape mode covers the entire screen and this is not helpful when playing games, (like mobile legends). But, if our keyboard has an option to disable fullscreen on landscape, the background will still be visible.
The image that I have attached is screengrabbed from Playstore from the Xposed App/Module called 'Disable Fullscreen Keyboard'. It only mean that this can be done if our phone is rooted. But, my request is if we can also do this even our phone is not rooted and no need to install Xposed app or modules.
I hope our mods can modify Google Keyboard, Swift Keyboard, Swype Keyboard, Xperia Keyboard(ported) disabling the fullscreen feature of the keyboards.
I hope I made it clear.
Up. I hope someone can fix this.
yeah this feature is so annoying,full screen in landscape mode were disabled when i was on kitkat. now its back again on gboard 2017 for nougat and beyond. at least on certain apps or games only
It would be interesting if it's even possible with root...this is so annoying. I switched from iOS and thought Android is a bit further but after more than a year on Huawei I have to say, that many things are far behind a jailbroken iOS.
bauer18 said:
As per your screenshot and with the attached image below, you will see that our keyboard on landscape mode covers the entire screen and this is not helpful when playing games, (like mobile legends).
The image that I have attached is screengrabbed from Playstore from the Xposed App/Module called 'Disable Fullscreen Keyboard'. It only mean that this can be done if our phone is rooted. But, my request is if we can also do this even our phone is not rooted and no need to install Xposed app or modules.
Click to expand...
Click to collapse
Jannomag said:
It would be interesting if it's even possible with root...this is so annoying. I switched from iOS and thought Android is a bit further but after more than a year on Huawei I have to say, that many things are far behind a jailbroken iOS.
Click to expand...
Click to collapse
It is available rooted by the looks as bauer said above.
It drives me mad too. If I'm watching Netflix or something and someone messages I have to guess and hope that what I've written is correct or I have to go back out, write message, go back in, find the movie and start again, quite annoying.
Had email back again saying I should be getting my BL unlock code soon so hopefully this app still works.
gradd said:
yeah this feature is so annoying,full screen in landscape mode were disabled when i was on kitkat. now its back again on gboard 2017 for nougat and beyond. at least on certain apps or games only
Click to expand...
Click to collapse
Jannomag said:
It would be interesting if it's even possible with root...this is so annoying. I switched from iOS and thought Android is a bit further but after more than a year on Huawei I have to say, that many things are far behind a jailbroken iOS.
Click to expand...
Click to collapse
This is possible with xposed module called "Disable Fullscreen Keyboard". But Xposed requires Root. So far no way doing this without root access.

Categories

Resources