yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] c19932:
Thanks for the reply. I checked and Google voice wasn't made as default sms program. I'm on moto x 4.4 stock rom BTW, and there's no option to choose google voice as the default sms program.
[Xposed Framework Modules] runnirr:
I put some more thought into the deleting and I am a bit hesitant. Conversations in Google Voice are stored differently than in the SMS storage (sms aggregates messages for the same contact better). As such, deleting an sms conversation could require deleting multiple conversations on google voice. Further more, I am uncertain how archive works (available in hangouts, apparently not in the stock messaging app). I'd hate to delete someone's message when they expect it to be archived. Also, it would only work one way (deleting on the phone deletes on GV, but if you delete a convo on GV, it would stay on your phone).

Personally, I never delete my GV conversations (I just archive them). Is anyone else looking for this type of feature? I'll keep looking for a solution and I'll let you know if I come up with something.

Its possible 4.4 behaves differently than 4.2.2 (which I am using). When you send a message through Voice Search, do you know if it uses an app to send it out? I am a bit confused why it would behave differently than if you typed the message into the default sms app.

Try going to the App Info for the Google Voice app. See if you can clear defaults for it (its below clear cache).
[Xposed Framework Modules] egingell:
Stock TouchWiz 4.2.2 no-service phone. I can't send. I can only receive. There is nothing in the Xposed log except that it loaded. I tried Hangouts, Stock, and Contacts+.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] runnirr:
Can you check the regular logcat as well? Things work on my no-service phone :( (on aosp though)
[Xposed Framework Modules] egingell:
You tell me. I can't read these damn things. lol

https://www.dropbox.com/s/hs5n326nt9n14h3/xvoicelog.txt

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] runnirr:
Thanks,

I/XVoicePlus(14615): Trying to get context from AndroidAppHelper
I/XVoicePlus(14615): Trying to get context from mSystemContext
E/XVoicePlus(14615): Unable to find a context to send the outgoingSms intent

That's the problem (if you were curious). Its the same problem that prevents this from working on 4.0 and 4.1. What's interesting is that this works fine on AOSP 4.2.2. I am not sure what touchwiz changes to break this.

You could try this version https://app.box.com/s/yng71wiml5r0fw6fbf51. Its older, but tries to get the context in more ways. If that one works, I can fix the build on the Xposed repo. I don't suspect it will fix anything though (since it didn't fix 4.0 or 4.1)
[Xposed Framework Modules] egingell:
There's no file there.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] runnirr:
Oops I forgot I removed the old ones.

This one should work (Has new stuff).

https://app.box.com/s/lxeoqmy7jt1ixz2i47q1

EDIT: And if it still doesn't work, can you post the logcat again, or confirm that the same type of error happens (you can search it for XVoice)

EDIT2: Be sure to reboot after installing the new version
[Xposed Framework Modules] dakoellis:
I have also been having issues with CDMA. I'm on sprint with a Nexus 5 and running PA4, and will definitely do some testing if necessary, just let me know! Thanks for doing this module BTW been missing voice+ since moving from my GN2
[Xposed Framework Modules] runnirr:
I just updated the OP with a download for a pre-release build. It has a fix for the CDMA issue. Feel free to test it and report your findings.
[Xposed Framework Modules] egingell:
Literally nothing in the logcat, but it still won't send.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] runnirr:
No errors in the logcat? (Ctrl+f for XVoice)

Nothing should crash. If it cant sent via GV, it tries to send via the carrier (which will obviously fail for you).
[Xposed Framework Modules] egingell:
Oy... Xposed Installer didn't update the file name. I fixed that and still no send. The log shows handling intents boot_complete and package_changed.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] redondo_se:
Build that doesn't sync outgoing?

Hi. Thank you very much for making this!

I get a lot of duplicate outgoing messages, even with the 2.4.2 build. I've tried 3 different sms apps and it doesn't change anything. Would it be possible to make a build that never syncs outgoing messages to the sms database? I never send messages from the gv Web site or from other devices, so I don't need that functionality and would prefer not to have all the duplicate outgoing messages.

Thanks
[Xposed Framework Modules] runnirr:
I don't plan on updating this anymore since I stopped using it myself, but all the code is available for you (or anyone else) to change as needed.
[Xposed Framework Modules] jal3223:
That's sad news man. I'm really loving the app though. Thanks for creating this module.

I have it working great on my Note 3, S5, and my G3, but I've not had any luck getting it to work with my Htc M8 (sense 6). Maybe one day you will pick the app up again. Thanks again.
[Xposed Framework Modules] nomisunrider:
Works fine on my m8 running viper rom
[Xposed Framework Modules] runnirr:
Have you tried another sms app? I believe the problem is with the stock sense sms app (and the stock TouchWiz one as well) but other sms apps on sense/TouchWiz roms should still work.
[Xposed Framework Modules] jal3223:
Yeah, I finally got it working correctly with Hangouts. At first I was getting repeat messages with it until I froze the stock app. Now everything is working perfectly. Thanks man.
[Xposed Framework Modules] :
Thank you! Got Wi-Fi calling working. $3 app, setup was easy with the instructions.

Outgoing calls via the quick call is a little ghetto but it works. Hopefully the call quality is good enough.
[Xposed Framework Modules] YayItsDave:
was there a step excluded from the first page or did i just mix up what the app does? I currently have S3 on Sprint with no actual service with them (freedompop) My Text Messages all come through google voice. I have my default messaging app setup as hangouts however when i try to send a text message hangouts keeps trying to send with the information the stock messaging app uses instead of google voice which results in messages not being received or sent.
[Xposed Framework Modules] runnirr:
Try a different sms app to see if it works. I know there have been issues with the stock Samsung and HTC sms apps but they should be just for sending. Receiving should still work regardless.

Edit: I misread your post and see you are using hangouts. It should be working.
[Xposed Framework Modules] kymusician2368:
Polling frequency

Just curious.

Is there a way to customize the polling frequency?

15 minutes is the shortest time availabke and I would like my messages sent from other devices to show up immediately in my texting app instead of 15 minutes later
[Xposed Framework Modules] el_smurfo:
I'm curious how the CM version works...it doesn't seem to poll, more of an instant "push" which must be better for battery? I really like using Hangouts for my GV SMS, but have the same problem...15 minutes is too long for an instant communication method like SMS.
[Xposed Framework Modules] egingell:
The only reason polling is there is if any messages are missed for whatever reason. Otherwise, it just intercepts the push from Google Voice.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] el_smurfo:
Hmmn...well I had to uninstall as it ate at least one message. Used to do that on CM when it was first introduced, so maybe this is just an older codebase?
[Xposed Framework Modules] runnirr:
Messages get "pushed" whenever the Google Voice app gets its notification. The polling is just extra incase the "push" fails, or you don't have internet connection or something like that.

Polling faster than every 15 minutes would likely kill your battery pretty quickly. Messages from other devices get synced whenever you send or receive a message (or poll). Instant syncing across devices is difficult without access to the Google Voice backend.

If you REALLY want to poll faster, you can probably edit the corresponding entry in one of the XVoicePlus preferences files. I'll leave that to you to find out which one and how to do that (I haven't tried it)
[Xposed Framework Modules] davpel:
Anyone else with an LG G3 having problems with Voice+? I've used it without issue on all of my other devices, but I get constant reboots on the G3 whenever this module is enabled.
[Xposed Framework Modules] kymusician2368:
Can not send messages from stock sms or from hangouts

Hi, I was hoping you might be able to help me please

I am having a problem sending messages from my stock messaging app and also hangouts.

The messages I try to send get stuck in sending mode and then fail.

I am able to both send and receive with a 3rd party messaging app like go sms pro but stock messaging and hangouts will not work for sending messages.

I want to use hangouts for my messaging but am unable to do this until I can get hangouts to send from my google voice number, any ideas to help please it would be greatly appreciated

I am using a Droid Razr Maxx HD running Android 4.1.2 Jelly Bean
[Xposed Framework Modules] runnirr:
post a logcat. havent seen anyone say anything about g3, although reboots seem odd, at worst i'd exect force closes

post a logcat and I'll take a look. I likely won't fix anything though. I know some 4.1 devices had problems sending and I never could find a fix.
[Xposed Framework Modules] kymusician2368:
post a logcat and I'll take a look. I likely won't fix anything though. I know some 4.1 devices had problems sending and I never could find a fix.[/QUOTE]

Here is the logcat when I tried sending a sms from hangouts with xvoice+ 2.3 enabled
[Xposed Framework Modules] B2OJustin:
Howdy,

First of all, great work on this. I've had zero real issues on my FLO. The one qualm I had is that the polling during incoming messages uses way more data than I'd like. I'm on a limited mobile data plan and I text using GV quite a bit. Data use during my first day using this hit 20-30mb. Constantly syncing every message in the inbox is a bit excessive.

I've made the change that you've mentioned above and added an option to enable/disable sync on incoming messages. As a side effect, it uses MUCH less data, (read: zero on incoming messages) but as you mentioned, disabling that will cause messages from other devices not to show. That's not really an issue for me, since I only use one device.

It works exactly like you mentioned, during incoming messages we pull the message data from the GV intent instead of polling. The change is minimal (only about 30 lines) and seems to work exactly as expected.

I've went ahead and submitted a pull request via github. If you have any questions or would like to see this implemented in a different way, just let me know :)
[Xposed Framework Modules] redondo_se:
Would you mind sharing the APK you built? I would love to see if it eliminates the duplicate outgoing messages. I also don't text from other devices or the Web.

Thanks!
[Xposed Framework Modules] B2OJustin:
Sure. I've noticed that my version DOES duplicate only the last outgoing messages, and only during a resync, but only if a message has not been recieved since the last outgoing message. With this version resyncs can be disabled during incoming messages, so the duplication should only occur during reboots, and only of the last outgoing mesaages.

Sorry, that's probably a bit confusing. It'll be easier to see for yourself. I believe the bug you described was actually fixed in the repository though. Runnirr might have more info. Either way, heres the apk. & Be sure to see the settings to disable sync on incoming messages.

Let me know if you have any feedback or if it fixes things for you :)
[Xposed Framework Modules] redondo_se:
Thanks very much. I have used 2.4.2 that was supposed to fix duplicates, but I still go them. I stopped using it because of the dupes. Maybe I only got them at reboot, I can't be sure. I don't text that much, so maybe that's enough to bother me. Any chance you could make a build that doesn't rsync on reboot?
[Xposed Framework Modules] runnirr:
Excellent. First pull request for this :) Now I need to load this project up again.

I'll merge this, bump the version, and link it here, and probably update the repo with it as well.
[Xposed Framework Modules] B2OJustin:
Sure, it isn't really needed anyway since new messages would be picked up by the GV intent. I can do that a little later tonight once I get back to my desk. I'll just add it as an option in the setting menu.

Let me know if there's anything else, I use this exclusively so I don't mind adding features and such.

Cheers! If you'd like to wait before posting it I can get that other feature added in as well.
[Xposed Framework Modules] runnirr:
Okay. I'll hold off on uploading to the Xposed repo. I created the signed apk before I saw this reply though.

https://app.box.com/s/wanugbm0z2s45z3ycsk8

If you want to take over this and manage the Xposed repo as well, I'm willing to hand it over (or add another maintainer). I don't use this anymore so having someone who does use having control over it would probably be better.

Anyway, PM me if you are interested. Otherwise I can merge in the code and do releases still.
[Xposed Framework Modules] B2OJustin:
Went ahead and made those changes and pulled into the git repo. Here's the debug signed APK.
[Xposed Framework Modules] runnirr:
Transferring Ownership

Just so everyone knows, I am transferring ownership of this project to B2OJustin. I have not used this module in many months, and Justin is adding features that people have been asking for and I have been neglecting. I'll leave it up to him to handle additional feature requests, and when to release new versions of the app. I'll still check into this thread now-and-then to see how things are going.

This was a fun project while I used it, but I have moved on. I am glad to see that so many people still find this useful and I hope the Justin (and others) are able to continue to improve on this module.
[Xposed Framework Modules] James62370:
Loved this app which is why I keep reading this thread. Thanks for letting others continue your work. I was wondering if B2OJustin would be so kind to see if he can modify this app so it can run on Touchwiz. From what I recall, I was not able to send messages with the native messaging app. It would always send with my carrier number. Receiving messages worked fine. Greatly appreciate it if you can look into this.
[Xposed Framework Modules] B2OJustin:
Thanks! This is a great project and I'm more than happy to continue your work. Be sure to stay in touch!

I've been looking over a few logcats posted to see what needs to be done to get it working on more devices. Since I only have a nexus device I'll need a few volunteers to help. If you're willing to run a few test builds and supply me with logcats and feedback then it would certainly be a huge step forward to supporting your device. Unfortunately things can be a little tricky to keep organized in a forum thread, if you're willing to help out feel free to PM me your google hangouts or skype username, as I think that may be slightly more effective. Also, posting an issue in the github repository would be extremely helpful if you happen to have a github account. This goes for anyone having issues with their particular setup.

In case it might be useful information to someone, I'll be mostly testing on:

Nexus 7 2013 Wifi-only (FLO)

Dirty Unicorns DU_flo_4.4.4_20140826.v7.9-TESTBUILD

3.4.0-ElementalX-N7-2.14

Xposed + Nexus 7 SMS enabler
[Xposed Framework Modules] runnirr:
I'll keep watching and pop in from time to time.

If i remeber correctly, the TouchwizApk doesn't using the built in SmsManager class to send messages. You would need to find what they use and add a hook specific for that (I believe Sense has a similar problem). I was too lazy to support apps that dont follow android standards :) (except Hangouts which uses deprecated apis :mad: )
[Xposed Framework Modules] B2OJustin:
Thanks for that bit of info. Those roms have always seemed awfully messy to me but I'm certainly up to the task as long as I can get a few testers :fingers-crossed:
[Xposed Framework Modules] redondo_se:
Awesome! Thanks very much. I have it installed now. I'll report back after a couple of days of use.

I have an S5 so I can help test sending messages with the stock app. However, I kind of like the idea of having the stock app as a backup for sending short number SMS messages or 911 (when that gets implemented) via carrier SMS. Perhaps you could make touchwiz SMS optional?

Thanks to runnirr for making this app and B2OJustin for taking the baton.
[Xposed Framework Modules] runnirr:
Here is the logcat when I tried sending a sms from hangouts with xvoice+ 2.3 enabled[/QUOTE]

Sorry for the delay. Forgot to come back to this after getting things transferred to Jason.

Anyway, I never found a fix for this issue.

2014-08-28 17:03:27.848 D 4188/com.runnirr.xvoiceplus.XVoicePlus: Sending via google voice
2014-08-28 17:03:27.848 I 4188/com.runnirr.xvoiceplus.XVoicePlus: Trying to get context from AndroidAppHelper
2014-08-28 17:03:27.848 I 4188/com.runnirr.xvoiceplus.XVoicePlus: Trying to get context from mSystemContext
2014-08-28 17:03:27.848 I 4188/com.runnirr.xvoiceplus.XVoicePlus: Trying to get activityThread from systemMain
2014-08-28 17:03:27.859 I 4188/Xposed: de.robv.android.xposed.XposedHelpers$InvocationTargetError: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
at de.robv.android.xposed.XposedHelpers.callStaticMethod(XposedHelpers.java:993)
at com.runnirr.xvoiceplus.XVoicePlus$XSmsMethodHook.getContext(XVoicePlus.java:287)
at com.runnirr.xvoiceplus.XVoicePlus$XSmsMethodHook.sendText(XVoicePlus.java:248)
at com.runnirr.xvoiceplus.XVoicePlus$XSmsMethodHook.attemptSendViaGoogleVoice(XVoicePlus.java:232)
at com.runnirr.xvoiceplus.XVoicePlus$XSmsMethodHook.beforeHookedMethod(XVoicePlus.java:199)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:611)
at android.telephony.SmsManager.sendMultipartTextMessage(Native Method)

It is unable to get a context within the handler to signal that there is actually an outgoing sms happening.
[Xposed Framework Modules] B2OJustin:
Well, I actually plan on adding a number blacklist and an option to send outgoing texts to short numbers through the carrier. That would probably be useful for you. I'm not sure if I'll add an option to disable it for touchwiz stock, since receiving would still work and that might be confusing. But if I find an elegant solution to that then I may.

I dug into the Sense Messaging.apk since I happened to find it in this thread. If you could post the one for Touchwiz then I may be able to have them both working in a day or two.

After I get Touchwiz and Sense working properly I may look to see what I can do about it getting it running on 4.0.3+. I'm not sure what exactly needs to be done yet but it's certainly on the roadmap.
[Xposed Framework Modules] runnirr:
Some 4.0/4.1 roms do work. (aosp did last time I tried).
[Xposed Framework Modules] dimex:
I installed this and now both incoming and outgoing messages are duplicated. UHHHHHH

I'm running Moto X 4.2.2, soon to be 4.4.4 once I get my bootloader unlock code. Did I do something wrong in the settings?
[Xposed Framework Modules] B2OJustin:
What are your settings? If you have a polling enabled and "Sync Outgoing Messages" disabled that may be the issue with that version. Or if you enable/disable the "Sync Outgoing Messages" setting, that could also cause duplication.

That should be fixed in the next release, you essentially installed an experimental version so bugs should be expected.

Feel free to test out the attached .apk, built from commit hash 3180967

https://github.com/B2OJustin/XVoicePlus/commits/master

Everything is working fine for me with that version, polling disabled and "Sync Outgoing Messages" disabled.

Let me know how that works for you, if you still have the issue then a logcat may help me narrow it down a bit.
[Xposed Framework Modules] el_smurfo:
Tried that apk, doesn't work and the account setting is blank.
[Xposed Framework Modules] dimex:
I didn't touch the app when I installed it, but the settings have Polling Frequency as Never and Sync on Incoming is Enabled.

I will try the version you attached, thank you. What exactly is Polling Frequency? And I'm guessing Sync on Incoming would be to maintain multiple devices (mobile or wifi only) to have same messages?
[Xposed Framework Modules] B2OJustin:
Some of the versions posted previously were using the debug signing key, so you may have actually reinstalled, which clears the app data. I haven't modified any of the code for accounts, so if it was working previously then it should still be working.

If "Sync Outgoing Messages" is enabled, then a full sync will occur when receiving a message. Polling is similar, it performs full syncs on intervals. Neither one should be necessary unless you're trying to sync between devices. If you only have one device and/or don't care about outgoing message syncs, then you should certainly keep them both DISABLED.
[Xposed Framework Modules] B2OJustin:
Hey, just thought I'd let you know that I've posted the newest experimental version. It adds settings to change when resyncs take place.
[Xposed Framework Modules] B2OJustin:
I've put together a version that should work for outgoing messages on HTC devices using the stock messaging app.

After some digging I found that HTC actually has a thin wrapper around the standard SmsManager that overrides the sendMultipartTextMessage method. It seemed that hooking into this method was the best way to go. However, I'm not certain how much it differs from the original SmsManager method so this may or may not work as expected.

If anyone is interested in specifics, the wrapper class is "com.htc.wrap.android.telephony.HtcWrapIfSmsManager". Since I'm not able to test this myself (I only have a nexus device) I'll leave it in this post along with a fair warning that this might break things...

Also, if anyone has comments on why this may or may not work or has another suggestion, I'm all ears :)

You can find the source here: https://github.com/B2OJustin/XVoicePlus/tree/sense

And attached is a signed APK.
[Xposed Framework Modules] erraggy:
Here is the Samsung Galaxy S5 messaging app: https://www.dropbox.com/s/e2389tp81jkmype/com.android.mms-783d7f787f15458387b390f7028ee726.apk?dl=0

I just learned that this app wasn't supported. I can also test and/or provide more files and info.
[Xposed Framework Modules] B2OJustin:
Cheers, thank you very much. I looked around a bit for that but wasn't able to find it easily. I'll see if I can get a test version compiled later tonight. Also, if you'd like to communicate with me directly via hangouts feel free to PM me your info. It may speed up the revision process a bit.

Thanks again!

Edit:

It looks like a modified framework is used instead of a wrapper like HTC devices.

If you're on a CDMA network, can you confirm that sending does not work with callback number and priority off? It appears it should work in this case.
[Xposed Framework Modules] erraggy:
Sorry, but I'm on T-Mobile, so no CDMA here. I have text disabled with T-Mobile so I see right away that sending fails to route through GV.

Is there anything else I should try?
[Xposed Framework Modules] B2OJustin:
If you could try this XVoicePlus-b90c49.apk.

I may need to hook the method a bit differently, so if this doesn't work then I think I know what will.

Cheers :)
[Xposed Framework Modules] James62370:
Just tested the above apk with a touch wiz rom with android 4.4.2. Received some messages with stock messaging app, but not all, also when sending a message, carrier number was used instead of gv number.