Android SMS permission (WhatsApp) - Android Q&A, Help & Troubleshooting

I got a new phone (running Android 8.1, patch level November) and had to set up WhatsApp again on that phone. After downloading and launching the application, I was asked to enter my phone number so that a verification SMS could be sent. The strange thing is: As soon as I got this SMS, WhatsApp switched to the next step of the setup process without having me to enter the verification code I received.
But I never granted WhatsApp the permission the read my SMS, WhatsApp currently only has permission to access contacts and the file system.
I even uninstalled WhatsApp and tried to repeat the inital setup, it worked again: As soon as the SMS arrives, WhatsApp continues with the setup process.
Could anyone please explain to me how this works?

kullerhamPster said:
I got a new phone (running Android 8.1, patch level November) and had to set up WhatsApp again on that phone. After downloading and launching the application, I was asked to enter my phone number so that a verification SMS could be sent. The strange thing is: As soon as I got this SMS, WhatsApp switched to the next step of the setup process without having me to enter the verification code I received.
But I never granted WhatsApp the permission the read my SMS, WhatsApp currently only has permission to access contacts and the file system.
I even uninstalled WhatsApp and tried to repeat the inital setup, it worked again: As soon as the SMS arrives, WhatsApp continues with the setup process.
Could anyone please explain to me how this works?
Click to expand...
Click to collapse
This is strange but Not to be worried about.You can check the permissions (and disable them) in app info.
Sent from my Pixel 3 XL using Tapatalk

Atifbaig786 said:
This is strange but Not to be worried about.You can check the permissions (and disable them) in app info.
Sent from my Pixel 3 XL using Tapatalk
Click to expand...
Click to collapse
Thanks for your reply. The problem is: The permission is not enabled in the app info. The app is only allowed to access contacts and storage.

kullerhamPster said:
Thanks for your reply. The problem is: The permission is not enabled in the app info. The app is only allowed to access contacts and storage.
Click to expand...
Click to collapse
Well google might've changes some APIs and merged the sms permission to somewhere more secure.Meaning application could access their desired criteria of sms containing specific phrases without accessing your whole sms without asking for permissions.
Sent from my Pixel 3 XL using Tapatalk

I'm baffled as to why people continue to use WhatsApp since FB took over.
Sent from my LM-V350ULM using Tapatalk

Atifbaig786 said:
Well google might've changes some APIs and merged the sms permission to somewhere more secure.Meaning application could access their desired criteria of sms containing specific phrases without accessing your whole sms without asking for permissions.
Sent from my Pixel 3 XL using Tapatalk
Click to expand...
Click to collapse
This might be an explanation, but I don't see how such an API could be realized in a secure manner: If an app can specify arbitrary phrases it is interested in, it might be able to read all sorts of SMS, even those that are not meant for it.

I just checked the changelog and this was done by introducin a new API called createAppSpecificSmsToken() in smsmanager class.This was done becuase by one-time enabling sms permission we were giving away our sms for lifetime.So this generates a token a one time shot that is called by String createAppSpecificSmsToken (PendingIntent intent) to recieve the server and client backend without touching the sms storage so in theory they can't access your any sms but rather go straight to app intent.
Sent from my Pixel 3 XL using Tapatalk

Atifbaig786 said:
I just checked the changelog and this was done by introducin a new API called createAppSpecificSmsToken() in smsmanager class.This was done becuase by one-time enabling sms permission we were giving away our sms for lifetime.So this generates a token a one time shot that is called by String createAppSpecificSmsToken (PendingIntent intent) to recieve the server and client backend without touching the sms storage so in theory they can't access your any sms but rather go straight to app intent.
Sent from my Pixel 3 XL using Tapatalk
Click to expand...
Click to collapse
Great, thanks a lot for looking this up and letting me know. Seems I was not creative enough in coming up with a solution that allows to implement this in a secure manner.

kullerhamPster said:
Great, thanks a lot for looking this up and letting me know. Seems I was not creative enough in coming up with a solution that allows to implement this in a secure manner.
Click to expand...
Click to collapse
Well it had to be done.I mean if you once allow the app to read your messages than it can do whatever it wants without letting you know.Somewhere up the chain of Android Development took note of it and put an end to this.
Sent from my Pixel 3 XL using Tapatalk

Related

[Q] Google Voice processing all text messages

Upgraded from Evo to 3D this morning, obviously loving it. However, since integrating Google Voice on the 3D, it is processing all my text messages. I would rather use Chomp as I did before. I tried uninstalling/reinstalling as well as reintegrating without any luck. I sent to the voice site and tried to modify some settings but no joy.
I'd like to keep voice for the cheap international calls, any one else suffering this or find a fix? Cheers.
Ok this has been answered quite a few times. But go to your app and hit menu > more > Settings > Sync and Notifications > Check Text Messages and uncheck Inbox notifications.
Unchecking Inbox notifications will keep google voice from telling you about the text but it'll still be saved there. The only downside is that it won't notify you of voicemails. I leave the widget on my screen to show them to me instead. Google was supposed to update the app so we can turn off text notifications but leave on voicemail notifications but they haven't yet.
Thanks for taking the time to write a response. I'm not sure what's happening as I don't have that option, even after redownloading the latest version of Voice from the Market. When I go to menu > more > Settings > Sync and Notifications, under Notifications, I have Text Messages (notify via text message) which is unchecked, followed by inbox notificatoins, vibrate, light and select ringtone. That's all the options there are. I can't unselect text as you mentioned, grr, slightly frustrating, the google text interface looks like it's plucked from the 80s.
Re-read, will play around with "inbox notifications" - currently chomp doesn't even notify, even though it's set to, so I think using this option, I won't ever get notifed. Thanks again.
Uninstall it and reinstall it - when you get to the first option to SKIP! DON'T DO IT.
Google royally ****ed up a good thing here. If you don't skip then things will work as they before the iPhone style takeover.
Appreciate the advice, I didn't skip, I've installed twice and gone thru each step, I'll try again, disabled notifications in Voice, but Chomp's notification ability is not ruined. Grr - why did they change, worked so well on the Evo up til yesterday!! The text engine is a joke, should be an easy option to switch it off.
VoXHTC said:
Uninstall it and reinstall it - when you get to the first option to SKIP! DON'T DO IT.
Google royally ****ed up a good thing here. If you don't skip then things will work as they before the iPhone style takeover.
Click to expand...
Click to collapse
this is the first major android phone since all sprint is done google voice integration, not a mess up just people not reading all the instructions in in integrating their numbers without knowing
Sent from my PG86100 using Tapatalk
I went through this problem on my og EVO. Turns out you need to change a setting on the desktop ver of voice. For some reason Google decided to uncheck the "get texts on this number" I don't remember where the setting is but dig a bit, you'll find it. Uninstalling the app does nothing
Sent from my PG86100 using XDA Premium App
You have to skip the whole Sprint and Google Voice integration. That's what screws everything up.
lopezpm said:
You have to skip the whole Sprint and Google Voice integration. That's what screws everything up.
Click to expand...
Click to collapse
Sprint and Google integration is great when done correctly. I prefer actual solutions than just avoiding the problem.
Sent from my PG86100 using Tapatalk
Yes its the sprint and google integration thats messing everything up. When I got my phone this morning it went ahead and switched over my sprint number to GV and I was getting txt through the GV app. I deactivated the integration and now it works as before. I just dont get any txt notification when I get a txt sent to my GV number which sucks.
donatom3 said:
Sprint and Google integration is great when done correctly. I prefer actual solutions than just avoiding the problem.
Sent from my PG86100 using Tapatalk
Click to expand...
Click to collapse
I tried the integration, it worked great for voicemail, but i didnt want Voice to handle my texts - they cant take MMS. I couldnt find anyway to let the phone handle SMS - so I undid the integration...
I have GV+Sprint integration (carried over from integration on Pre-). I took the OTA & all updates.
This was pissing me off so bad. I want to use the app to listen to voicemails, but not for sending/receiving SMS. So here's what I did to keep the Voice app from hijacking the SMS inbox notifications:
Voice>menu > more > Settings > Sync and Notifications
Synchronize Inbox: UNchecked
Background Data: Enabled
Text messages: Checked
now my text messages (including MMS!) still go to the stock messaging app. I still get SMS/VM notifications from the Voice app periodically, but i just clear the SMS ones & listen to the VM ones.
Trying out this combo now though:
Voice>menu > more > Settings > Sync and Notifications
Synchronize Inbox: Checked
Background Data: Enabled
Text messages: Checked (confirmed warning)
Inbox notifications: UNchecked
dynamicadv said:
I tried the integration, it worked great for voicemail, but i didnt want Voice to handle my texts - they cant take MMS. I couldnt find anyway to let the phone handle SMS - so I undid the integration...
Click to expand...
Click to collapse
You didn't set it up right cuz its been posted many times that your default apps can handle text instead of voice.
Sent from my PG86100 using Tapatalk
donatom3 said:
You didn't set it up right cuz its been posted many times that your default apps can handle text instead of voice.
Sent from my PG86100 using Tapatalk
Click to expand...
Click to collapse
Then by all means please share with us how to properly set it up. I'm new to this integration as I was predominantly using my T-Mobile and Verizon dealer lines since a bit before they launched this integration and I had the same issue so I too uninstalled the integration. I liked the idea tho. But all of a sudden Google Voice was handling all my messages and they WEREN'T hitting my phones inbox.
To put it simply, Fail.
So please, instead of just telling us we did it wrong, how about telling us how you achieved perfect harmony in spirit of honoring what this forum is about. Helping each other.
I didn't want to read through the previous flames, but if it didn't get answered already you need to go directly to google.com/voice and adjust the settings manually. You have to disable integration, from there you can add a new number, type in your current number and it will tell you you have options to select from, choose google voice lite for voicemail only. I'd get more specific but I cant access the site from here.
Gene_Bailey said:
Then by all means please share with us how to properly set it up. I'm new to this integration as I was predominantly using my T-Mobile and Verizon dealer lines since a bit before they launched this integration and I had the same issue so I too uninstalled the integration. I liked the idea tho. But all of a sudden Google Voice was handling all my messages and they WEREN'T hitting my phones inbox.
To put it simply, Fail.
So please, instead of just telling us we did it wrong, how about telling us how you achieved perfect harmony in spirit of honoring what this forum is about. Helping each other.
Click to expand...
Click to collapse
I've answered this question atleast in 4 seperate threads even giving Android police links with instructions on how to do it. Sorry if I didn't want to retype it in yet another thread while on my phone, so please don't condescend me when a search would have shown this.
Here I went and just looked through my post history and found my answer from yesterday.
http://forum.xda-developers.com/showthread.php?p=15103491
Sent from my PG86100 using Tapatalk
I effin hate Google voice. I notice majorbattery drain when I use the appso I quit usng it. However .... I can't get GV to stop hijacking my damn voicemails. Google needs to stay away from.this type of stuff
Sent from my PG86100 using XDA Premium App
Rippley05 said:
I effin hate Google voice. I notice majorbattery drain when I use the appso I quit usng it. However .... I can't get GV to stop hijacking my damn voicemails. Google needs to stay away from.this type of stuff
Sent from my PG86100 using XDA Premium App
Click to expand...
Click to collapse
http://www.google.com/support/voice/bin/answer.py?hl=en&answer=1207078
If you already did that disable conditional call forwarding by dialing *38 and hit send.
Sent from my PG86100 using Tapatalk
Rippley05 said:
I effin hate Google voice. I notice majorbattery drain when I use the appso I quit usng it. However .... I can't get GV to stop hijacking my damn voicemails. Google needs to stay away from.this type of stuff
Sent from my PG86100 using XDA Premium App
Click to expand...
Click to collapse
Alot of us are using google voice for our voicemail services just fine. I have been since the moment I got my Evo 4G.
Honestly, I think its the best. I do the vast majority of my texting during the day from the computer now. And with chrome + the GV extension, I can check, reply or create from a tiny icon, and not even have to open the GV page.
PaulB007 said:
I didn't want to read through the previous flames, but if it didn't get answered already you need to go directly to google.com/voice and adjust the settings manually. You have to disable integration, from there you can add a new number, type in your current number and it will tell you you have options to select from, choose google voice lite for voicemail only. I'd get more specific but I cant access the site from here.
Click to expand...
Click to collapse
That is exactly it. I removed my number from the google site then clicked on update my account. Chose to use my mobile number, then chose the light version which only handles VM and no other feature's. Reinstalled it on my phone and all is good to go like it used to be.
Now I just wish spare parts battery option would work I can see if GV has any wakelock issues.

[Q] Shostock2 and exchange help

Ok running Shostock2 3.0.5 and loving it.
Having one issue though. Everytime I try and send an e-mail via exchange I get an error message
Unable to sign or encrypt message. Certificate not installed.
Ok, I've tried both the security and non security exchange downloads.
Encrypt in the settings is always unchecked. Sign always defaults to checked but when I uncheck I can send e-mails out.
Not sure what I'm missing here so I'm asking for some guidance on fixing the only nuisance with this rom I'm experiencing.
Are you using the modified exchange apk from post 2 in the ROM thread?
yes i've tried installing both varieties with the same result.
Next question: What email are you using?
the built in e-mail for exchange. I'm not using any optional e-mail clients.
I started using enhanced email and I love it. It works with activesync without having to put in your passcode
Sent from my R800i using Tapatalk 2
Gossamer1 said:
the built in e-mail for exchange. I'm not using any optional e-mail clients.
Click to expand...
Click to collapse
Have you tried turning off Push messages?
BROKKANIC said:
Have you tried turning off Push messages?
Click to expand...
Click to collapse
I don't use email and exchange so I have no real insight but from what I was told by some users, when setting up the client... do what BROKKANIC said and turn off push and set it to manual during setup. I think once its working you can set it back to push. Not 100% sure though.
never had push enabled. As I said, it's a personal phone but use it to check work e-mails from time to time.
The push of e-mails I find annoying.
Also as stated it's not incoming i have the issues with, it's the outgoing.
Gossamer1 said:
never had push enabled. As I said, it's a personal phone but use it to check work e-mails from time to time.
The push of e-mails I find annoying.
Also as stated it's not incoming i have the issues with, it's the outgoing.
Click to expand...
Click to collapse
Is there an option for SSL or something to that effect? I know with road runner email on my father inlaw's I had to set up 2 different servers for email to use since he uses it on wifi and on 3g data. Maybe you have to do the same.
Sent from my SGH-I777 using Tapatalk 2
yes there is. Been through all that for now. For now I've switched over AOKP to see if life is good and it works fine which I find strange.
Not sure what the magic number is to get everything to work but it does on one and not your rom.

[Q] how do i replace the stock sms app with go sms pro?

i want to replace the stock sms app on my k900 with go sms pro. how do i do this? i've already checked in the go sms app that it be the default messaging app but i still get double sms notifications and the stock sms app is still active. i can't find anything in the system or messaging settings that would normally turn off the notifications for the stock sms app just like in my past htc's and xperias.
any help would be greatly appreciated.
In the messaging setting you can turn off auto message checking and popup windows and notifications. I haven't tried but I think that should work. Goodluck
Sent from my Lenovo K900_ROW using xda app-developers app
mikey199 said:
In the messaging setting you can turn off auto message checking and popup windows and notifications. I haven't tried but I think that should work. Goodluck
Sent from my Lenovo K900_ROW using xda app-developers app
Click to expand...
Click to collapse
i already did all of that but still i get double notifications and messages. it seems that the system still prioritizes the stock sms app over a 3rd party one despite having the 3rd party app be explicitly the default SMS app. i've had partial success with textra. i still get notifications from the stock sms app but at least not a double message and i could just ignore the unopened text messages from the stock app until i have to open them at a later time. but i still wish there was a way of totally replacing the stock sms app. this app seems to be bundled/attached to the dialer and contacts app instead of it being separate and only able to "talk" to the dialer and contacts app. seems lenovo doesn't want the user to install any other app that tries to replace the ones that lenovo put in place. for shame in this.
in any case, this'll be my first AND last lenovo phone. i've been badly burned by this very simple yet intolerable (for me) experience. i think this goes against the android ethos of being "open" considering it's a "goolge" android OS.
can this problem be solved by rooting the phone?
No. The only way is to hard remove the app from the system/app folder. But you will be doing that on your own and at your own risk. It's not recommended..
Sent from iCeborg's iPad.
X0LARIUM said:
No. The only way is to hard remove the app from the system/app folder. But you will be doing that on your own and at your own risk. It's not recommended..
Sent from iCeborg's iPad.
Click to expand...
Click to collapse
Ouch! Will putting the much talked about vibe rom possibly solve this issue?
duo_m said:
Ouch! Will putting the much talked about vibe rom possibly solve this issue?
Click to expand...
Click to collapse
Don't think so..its how OSs work I think..I may be wrong.
Coded from a Clover Trail+ Machine!
Found a simpler solution it's almost stupid. It was staring at me the whole time. Went to settings>apps>contact manager. Unchecked notifications then pushed force stop and then disable. Replacd my dialer/contact manager with go contacts ex. Now, I'm happy. Didn't have to go through the mess of rooting and flashing a custom rom.
duo_m said:
Found a simpler solution it's almost stupid. It was staring at me the whole time. Went to settings>apps>contact manager. Unchecked notifications then pushed force stop and then disable. Replacd my dialer/contact manager with go contacts ex. Now, I'm happy. Didn't have to go through the mess of rooting and flashing a custom rom.
Click to expand...
Click to collapse
Good to hear that.
duo_m said:
Found a simpler solution it's almost stupid. It was staring at me the whole time. Went to settings>apps>contact manager. Unchecked notifications then pushed force stop and then disable. Replacd my dialer/contact manager with go contacts ex. Now, I'm happy. Didn't have to go through the mess of rooting and flashing a custom rom.
Click to expand...
Click to collapse
Try add new contact. Works? Probably no. If you want add new contact, you must enable contact manager again and disable after adding. A little uncomfortable. Do not delete contact manager (ideafriend) from system/app!
ist for dialer, contacts, SMS messaging and call log. The unfortunate solution. unfortunately.
karellang said:
Try add new contact. Works? Probably no. If you want add new contact, you must enable contact manager again and disable after adding. A little uncomfortable. Do not delete contact manager (ideafriend) from system/app!
ist for dialer, contacts, SMS messaging and call log. The unfortunate solution. unfortunately.
Click to expand...
Click to collapse
it's quite the opposite everything's working fine. go contacts replaced the stock contacts manager flawlessly. i already added 2 contacts and edited more than half a dozen old ones. received and made phone calls without a hitch. like the old lenovo contacts manager never existed in the 1st place! now i can use my k900 with much more tolerance until i could to sell it ASAP and get me back to an xperia.
duo_m said:
it's quite the opposite everything's working fine. go contacts replaced the stock contacts manager flawlessly. i already added 2 contacts and edited more than half a dozen old ones. received and made phone calls without a hitch. like the old lenovo contacts manager never existed in the 1st place! now i can use my k900 with much more tolerance until i could to sell it ASAP and get me back to an xperia.
Click to expand...
Click to collapse
Interesting. When I unchecked Show notifications, press the Force Stop and Disable in Settings / Apps / All, calling through third-party application goes normally (tested to Go contacts and Ex dialer), but using these applications not join a new contact, I can not edit an existing contact. It just goes through the built-in Contact Manager. The same if I add a contact via SMS third-party application (for example Go SMS Pro).
Really? Hasn't happened to me yet (unable to edit) I'm using go contacts pro as my dialer and contact manager. Like i said before, i added and edited contacts without problems. Hmmm...
duo_m said:
Really? Hasn't happened to me yet (unable to edit) I'm using go contacts pro as my dialer and contact manager. Like i said before, i added and edited contacts without problems. Hmmm...
Click to expand...
Click to collapse
Go Contacts pro doesn´t work on 4.3. I try without Go Launcher, with Go launcher and nothing.

[APP][XPOSED][LP-MM] XVoice++ - Use Google Voice through SMS apps

This module enables the use of other SMS apps to send and receive messages through Google Voice. When this module is activated, any SMS messages sent will be rerouted through Google Voice, and any messages that are received by the Google Voice app will be displayed in SMS apps.
Setup:
Download the APK and install.
Open the app, enable it, and select the account you want to use.
Open Xposed, activate the module, then soft reboot.
You will get a notification to sign in to authorizing the app to access your account. Tap the notification, then tap allow. For some reason the notification is not dismissed automatically; you can dismiss it manually.
If the module does not work at this point, try soft-rebooting again.
Known issues:
This module will only work with the old Google Voice app, version 0.4.7.10 or lower. If you already updated to a newer version, you must uninstall it and sideload the old version. You can find the latest working version here. Once you've downgraded, open the Play Store and set the app not to auto-update, so you won't run into the same issue later. This is fixed as of v3.1.2.
When I had the default SMS app is set to the AOSP Messaging app (com.android.mms, not to be confused with Google Messenger), the module would not work for outgoing messages. On one device, incoming messages did not work either. I was using version 5.1.1-720affab4e. I'm still not sure what causes it.
On my S3 test device, I sometimes experienced a crash of the system process on boot. This did not seem to affect the functionality of the module.
There is a known issue with Xposed reading SharedPreferences in certain situations, due to file permissions issues. With this module, this would cause that disabling the module from within its own settings would not help, and the only option would be to deactivate the module from inside Xposed Settings and soft-rebooting. I added some code to work around this, however it's possible that it could still occur. This is fixed (hopefully) as of v3.1.2.
Old issues:
Many of the old bugs present in the original XVoice+ are still in this version. These include:
Emojis may cause issues. (This issue should be fixed for incoming messages as of v3.2.0).
There is no support for MMS
Occasionally, messages may show up with the wrong timestamp, there may be duplicate messages, or there may be a delay before the messages appear.
Google Voice 5.0+
As mentioned above, the module will not work with the new updates to Google Voice. This is because they completely rewrote the code for the app, which would require XVoice++ to be rewritten as well to properly hook it. This is further complicated by the fact that Google obfuscated the code, making it much harder to figure out what is going on. Additionally, it is probable that with every update the code will be obfuscated diferently, requiring XVoice++ to be patched every time to support the new update. Since the whole point of this module is to replace the functionality of the Google Voice app, and it is functional with the old version, I will not be working on supporting the new versions of the app at this time. This is fixed as of v3.1.2.
Devices tested on:
Verizon LG G3 (vs985) running a custom build of CM 12.1
Sprint Samsung Galaxy S3 (d2spr) running CM 13.0 (11/17/2016 nightly) without phone service
Acknowledgements:
Koush
CM team
@runnirr
@B2OJustin
@iHelp101
Jake Hamby (a former engineer at Google, who helped maintain the internal SMS processing code for Android) for providing a lot of information about PDU structure and processing, and patiently answering my questions.
Xposed Repo
XDA:DevDB Information
XVoice++, Xposed for all devices (see above for details)
Contributors
BehindTheMath, @runnirr, @B2OJustin, @iHelp101
Source Code: https://github.com/BehindTheMath/XVoicePlus
Xposed Package Name: io.behindthemath.xvoiceplus
Version Information
Status: Stable
Current Stable Version: 3.2.1
Stable Release Date: 2017-05-08
Created 2017-02-15
Last Updated 2017-05-08
Reserved
Reserved
Nice to see something happening with this. I more or less abandoned it after switching over to Hangouts. What are your plans for it though? I'd probably consider hooking into Hangouts for any future development.
Edit: Btw, this latest source has also been tested and confirmed working on Nexus 7 stock (without cell service) and at least one other phone with a touchwiz based rom + smart watch (Don't recall which kind). Though rom updates may or may not have changed that since then.
B2OJustin said:
Nice to see something happening with this. I more or less abandoned it after switching over to Hangouts. What are your plans for it though? I'd probably consider hooking into Hangouts for any future development.
Edit: Btw, this latest source has also been tested and confirmed working on Nexus 7 stock (without cell service) and at least one other phone with a touchwiz based rom + smart watch (Don't recall which kind). Though rom updates may or may not have changed that since then.
Click to expand...
Click to collapse
Thank you for the feedback.
Truthfully, in my humble opinion, this app is mature. You guys have done a fantastic job of taking Voice+ and adapting it to a new platform. I only needed to fix the issues caused by new or changed Android internal code. Unless someone has a specific feature request, I think it's ready for a stable release.
That being said, there are a few things I would like to look into at some point in the future. The main one is the viability of supporting the new GV app. I never liked Hangouts. It was slow when it was first released, and it's still slow and buggy. 90% of my contacts use Whatsapp, and the GV app along with XVoice+ helped me with the handful that still use SMS. The only reason I still have Hangouts installed is to manage multiple accounts, and for VoIP calls. Now that the new GV app supports the former, and it looks like the latter is coming at some point, I would love to have XVoice++ support it so I could get rid of Hangouts entirely.
I am happy to see you figured out what I was unable to. In terms of Google Voice 5.0 you could in theory hook GCM messages directly. The class is "com.google.android.gms.gcm.GcmReceiver". You would use the same onRecieve hook already in the module. I have never seen GMS code obfuscated, so you likely would not have to worry about it. Even if a GCM message for some reason is not a text message the module would be able to filter it out (It checks the Intent contents).
iHelp101 said:
I am happy to see you figured out what I was unable to. In terms of Google Voice 5.0 you could in theory hook GCM messages directly. The class is "com.google.android.gms.gcm.GcmReceiver". You would use the same onRecieve hook already in the module. I have never seen GMS code obfuscated, so you likely would not have to worry about it. Even if a GCM message for some reason is not a text message the module would be able to filter it out (It checks the Intent contents).
Click to expand...
Click to collapse
That's an interesting approach. I'll have to look into it when I have time.
THANK YOU!
OP first of all thanks for doing this!
Second I have a question, I'm still running CM11, because I use Voice+, the original utility that XVoice+ was based on. I have updated my google voice app to the latest version and Voice+ still works, I'm not sure how. You might consider looking at the source code for Voice+ and see if the type of hooks it uses are possible with xposed.
Again thanks for what you have already done.
KnightTim said:
OP first of all thanks for doing this!
Second I have a question, I'm still running CM11, because I use Voice+, the original utility that XVoice+ was based on. I have updated my google voice app to the latest version and Voice+ still works, I'm not sure how. You might consider looking at the source code for Voice+ and see if the type of hooks it uses are possible with xposed.
Again thanks for what you have already done.
Click to expand...
Click to collapse
Voice+ works for you for incoming messages too?
Edit: I looked through the source for Voice+. They listened for the notification from the GV app, and then canceled it, which meant you had the notification flash for a second before being intercepted by Voice+. One of the benefits of XVoice+ was that you could disable the notifications completely in the GV app, and XVoice+ would intercept the message anyway.
iHelp101 said:
I am happy to see you figured out what I was unable to. In terms of Google Voice 5.0 you could in theory hook GCM messages directly. The class is "com.google.android.gms.gcm.GcmReceiver". You would use the same onRecieve hook already in the module. I have never seen GMS code obfuscated, so you likely would not have to worry about it. Even if a GCM message for some reason is not a text message the module would be able to filter it out (It checks the Intent contents).
Click to expand...
Click to collapse
I looked at the GV 5.0 code some more. I couldn't figure out how to hook com.google.android.gms.gcm.GcmReceiver, but I was able to hook the com.google.android.apps.voice.backends.gcm.GcmListenerService, which is the entry point for the message in the GV app. It appears to be very easy to intercept the messages from there. The issue is, since GV 5.0 added support for multiple GV accounts, there's no easy way to tell which account the message is for. The GCM message comes with a user_hash field, but it's just a hash, and I can't find a list of corresponding accounts in SQLite or in SharedPrefs. I presume it's decoded somewhere in the app, however, the only code that references it is obfuscated. It would technically be possible to implement a setup routine which would send a test message and grab the user_hash for that message, but that's a bit inelegant.
BehindTheMath said:
I looked at the GV 5.0 code some more. I couldn't figure out how to hook com.google.android.gms.gcm.GcmReceiver, but I was able to hook the com.google.android.apps.voice.backends.gcm.GcmListenerService, which is the entry point for the message in the GV app. It appears to be very easy to intercept the messages from there. The issue is, since GV 5.0 added support for multiple GV accounts, there's no easy way to tell which account the message is for. The GCM message comes with a user_hash field, but it's just a hash, and I can't find a list of corresponding accounts in SQLite or in SharedPrefs. I presume it's decoded somewhere in the app, however, the only code that references it is obfuscated. It would technically be possible to implement a setup routine which would send a test message and grab the user_hash for that message, but that's a bit inelegant.
Click to expand...
Click to collapse
Interesting, it is a nice discovery to have been made. Google has gone extremely with obfuscation recently. I also didn't realize they added multi-account support. My bad for giving any false.
iHelp101 said:
Interesting, it is a nice discovery to have been made. Google has gone extremely with obfuscation recently. I also didn't realize they added multi-account support. My bad for giving any false.
Click to expand...
Click to collapse
No, I think your idea is the best option for supporting GV 5.0. We just need to figure out how to identify the accounts. I'm going to try to dig through the code some more.
It has been a while since I've played with Xposed but when I get a little extra time I'll see what I can come up with. Figuring out exactly what to hook has always been the troublesome part though. If it turns out you do need to make use of the account hashes, I'd suggest looking lower in the callstack rather than higher. ie; Find the source of the hashes instead of the final target. You can then map those to usernames as soon as they're generated.
v3.1.2
I've released a new version, v3.1.2. The primary new feature in this version is support for Google Voice 5.0+.
I spent some more time poking through the GV sources, and I found that the list of accounts and corresponding user_hashes are stored in a Base64-encoded field in SharedPreferences called "registered_accounts". I added some code to decode the list and check the incoming message against user_hash of the account we want.
I also released the module on the XPosed Repo, so now it can be installed through the Xposed Installer.
Unfortunately, I lost the password to the signing key. I created a new key, but this means you will need to uninstall the old version before installing the new one.
New user. Tested on Voice 5.0+. Works flawless so far! This is excellent!
I have no idea why Google decided to NOT allow the Voice 5.0+ to be default SMS app.......but this module works around that issue AND allows me to use my fav texting app in its place. Thank you!
Could you explain the Sync settings a bit more. I just want to understand better. For example, why did you include those settings in the app Are there battery/data implications to using them? What is the downside to disabling all the sync settings?
Stupifier said:
New user. Tested on Voice 5.0+. Works flawless so far! This is excellent!
I have no idea why Google decided to NOT allow the Voice 5.0+ to be default SMS app.......but this module works around that issue AND allows me to use my fav texting app in its place. Thank you!
Could you explain the Sync settings a bit more. I just want to understand better. For example, why did you include those settings in the app Are there battery/data implications to using them? What is the downside to disabling all the sync settings?
Click to expand...
Click to collapse
When you send a message through XVoice++, XVoice++ doesn't put that message in the SMS database, the SMS app does. So if you send a message from another source, for example, the GV app or webapp, that message would not show up in your SMS app. Sync checks the master message list on GV's server to see if your device is missing any messages, and if it is, it sticks them into your SMS history.
It also has the benefit of catching any incoming messages that might have been missed. XVoice++ isn't perfect, and once in a while it won't catch an incoming message, sometimes because the GV app was sleeping (although I suspect this issue might be eliminated with GV 5.0+, since they switched to GCM). Enabling Sync will force XVoice++ to manually check if there are any new messages.
I personally have always had all the Sync options enabled, and the interval set to 15 minutes, and I haven't seen any issues. You can try it for yourself and monitor it. I don't think there's any reason it should impact battery or data usage, since it's just a quick request to GV's server. When I look the logs, it never takes more than a few seconds.
BehindTheMath said:
When you send a message through XVoice++, XVoice++ doesn't put that message in the SMS database, the SMS app does. So if you send a message from another source, for example, the GV app or webapp, that message would not show up in your SMS app. Sync checks the master message list on GV's server to see if your device is missing any messages, and if it is, it sticks them into your SMS history.
It also has the benefit of catching any incoming messages that might have been missed. XVoice++ isn't perfect, and once in a while it won't catch an incoming message, sometimes because the GV app was sleeping (although I suspect this issue might be eliminated with GV 5.0+, since they switched to GCM). Enabling Sync will force XVoice++ to manually check if there are any new messages.
I personally have always had all the Sync options enabled, and the interval set to 15 minutes, and I haven't seen any issues. You can try it for yourself and monitor it. I don't think there's any reason it should impact battery or data usage, since it's just a quick request to GV's server. When I look the logs, it never takes more than a few seconds.
Click to expand...
Click to collapse
Thank you for this explanation. So now I'd like to test how well these sync features work. if I understand correctly, I could test this by simply sending a text using GV app directly.....Then open my SMS app and check to see if my SMS app actually shows this newly sent message. The Sync features directly affect how and when SMS app grabs new Incoming/Outgoing GV messages. Am I understanding correctly?
Stupifier said:
Thank you for this explanation. So now I'd like to test how well these sync features work. if I understand correctly, I could test this by simply sending a text using GV app directly.....Then open my SMS app and check to see if my SMS app actually shows this newly sent message. The Sync features directly affect how and when SMS app grabs new Incoming/Outgoing GV messages. Am I understanding correctly?
Click to expand...
Click to collapse
Correct, besides for when you sent an outgoing SMS from the device itself, since then the SMS app stores it right away.
I'm so happy to see this working! Great job :victory:
one bug I've noticed, it seems to choke on accented characters. try sending " õœôöø ", for me it force closes both Voice and my SMS app

Can't receive authentication txt messages

My wife's s21 recently (one or two months) stopped receiving verification text messages from banks/SS etc. When the target phone number is changed to MY phone the messages come through just fine. We are both on AT&T and have the latest Samsung software (mine is a Note 20). We've made sure that there are no blocked numbers in her contacts.
Is there a SIM based setting that can cause this?
Can the carrier block MMS on her line from commercial sources? She can receive MMS from personal contacts.
We've been through the Samsung/AT&T tech support gauntlet but so far have not found the right person to help.
Try installing The Google - developed Messages app on the problem phone and making it the default SMS client.
What app is this???
Messages by Google - Apps on Google Play
Simple, helpful messaging by Google
play.google.com
goattee said:
Messages by Google - Apps on Google Play
Simple, helpful messaging by Google
play.google.com
Click to expand...
Click to collapse
Thanks. I thought I she was using the Google Message app, but it was the Samsung Message app. I'll let you know if this works out.
goattee said:
Messages by Google - Apps on Google Play
Simple, helpful messaging by Google
play.google.com
Click to expand...
Click to collapse
Well I tried the Google Messages App and still had the same difficulty
I've had trouble using Google Message's "Chat features", also known as Rich Communication Services (RCS), when my virtual private network (VPN) is active. If I stop or pause using the VPN then RCS seems to work. But with my VPN active the "Status" under Chat features shows "Connecting...". Given the choice between VPN and RCS, I've decided VPN is more useful. So I turn off "Enable chat features."
Try searching using term "Android" "RCS" and "VPN" and you may hit some useful links to read. If you do not use a VPN then you can probably ignore my entire posting.
I just want to be sure: have you made sure that you have made the Google Messages app the default client?
Go into the App Info for Messages.
And then tap on "Messaging app"
Be sure that you have selected the correct icon. (For some dumb reason there is no text to identify the names or developers of the respective messaging apps.)
(See attached screenshots)
goattee said:
I just want to be sure: have you made sure that you have made the Google Messages app the default client?
Go into the App Info for Messages.
And then tap on "Messaging app"
Be sure that you have selected the correct icon. (For some dumb reason there is no text to identify the names or developers of the respective messaging apps.)
(See attached screenshots)
Click to expand...
Click to collapse
Yes I selected the Messages app as default with the odd icon

Categories

Resources