Sending wap using rooted Android

Sending wap using rooted Android SearchSearch

SMS & MMS Technical Forum » WAP Technical Discussions (unsupported) » Sending wap using rooted Android « Previous || Next »
Author Message
Ghila
New member
Username: Ghilac

Post Number: 1
Registered: 07-2015
Posted on Sunday, July 12, 2015 - 05:56 pm:   

Hi

I am trying to send a wap push message using an Android Samsung rooted phone (4.1.1).
I download the XposedSendRawSMS xposed module and I see that it does catch the messages, but still I didn't manage to send such a message thru the SmsNow.
I looked at the logs of the phone, and after trying this, it prints "sendRawPdu NOT available".

Any idea what I can do?

Thanks
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5366
Registered: 08-2008
Posted on Sunday, July 12, 2015 - 06:08 pm:   

Hi,

I won't be back on-line until tomorrow, so this is just a quick suggestion. Did you add

PDUModePrefix=sendSmsByRawPDU|00|

under the [NowSMSModem – devicename] header in SMSGW.INI?

The extra HTC APIs for binary SMS are auto-detected, but this API needs to be manually configured with this setting.

--
Des
NowSMS Support
Ghila
New member
Username: Ghilac

Post Number: 2
Registered: 07-2015
Posted on Monday, July 13, 2015 - 04:04 am:   

Hi,

Thanks a lot for your response. Actually I did, but how can I verify it's actually working?

Thanks,

Ghila
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5367
Registered: 08-2008
Posted on Monday, July 13, 2015 - 01:40 pm:   

Hi,

If you're seeing "sendRawPdu NOT available" in the phone logs, then this suggests that the setting is not present, or there is a typo associated with it.

To confirm, enable the SMSDEBUG.LOG (checkbox on Serial # page). I expect you will see an error 503, and in the HTTP response: ERROR_NO_BINARY_SUPPORT

If you see that, then the configuration setting is definitely not present.

Can you post SMSGW.INI?

--
Des
NowSMS Support
Ghila
New member
Username: Ghilac

Post Number: 3
Registered: 07-2015
Posted on Monday, July 13, 2015 - 04:27 pm:   

Thanks! You were right, apparently that line disappeared from the smsgw.ini and this is why I could not send the message.
Nevertheless, I am still not able to sent it, and in the logs I still see error 503. In the logcat I see the logs:

I/WebServerService( 1363): Watchdog Check
I/q ( 1363): HTTP Request from 10.0.0.1
I/Xposed ( 580): SendRawSMSMod: getSubmitPdu() was called
I/Xposed ( 580): SendRawSMSMod: got SMS message: sendSmsByRawPDU|00|41B60A81508408721400F5550605040B8423F0250601AE02056A0045C60D0 3636173616974616C69
612E636F2E696C2F77702D636F6E74656E742F75706C6F616473
I/Xposed ( 580): SendRawSMSMod: intercepted getSubmitPdu() call and will return our own PDU.
I/Xposed ( 580): SendRawSMSMod: getSubmitPdu() was called
I/Xposed ( 580): SendRawSMSMod: got SMS message: 2F696D6167652F6361736162756E6E65722E6A706700070103616161000101
I/q ( 1363): Before wait
I/q ( 1363): ERROR_GENERIC_FAILURE - NOT Sent callback for 558B0CC8
D/CAT ( 580): CatService: handleMsg : MSG_ID_SEND_SMS_RESULT
D/CAT ( 580): CatService: The Msg ID data:12
D/CAT ( 580): CatService: SMS SEND GENERIC FAIL
D/CAT ( 580): CatService: encodeOptionalTags() Unsupported Cmd details=CmdDetails: compRequired=true commandNumber=1 typeOfCommand=37 commandQual
ifier=0
I/q ( 1363): After wait
D/CAT ( 580): CatService: handleMsg : MSG_ID_SEND_SMS_RESULT
D/CAT ( 580): CatService: The Msg ID data:12
D/CAT ( 580): CatService: SMS SEND OK
D/CAT ( 580): CatService: encodeOptionalTags() Unsupported Cmd details=CmdDetails: compRequired=true commandNumber=1 typeOfCommand=37 commandQual
ifier=0


Any clue?

Thanks a lot

Ghila
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5368
Registered: 08-2008
Posted on Monday, July 13, 2015 - 05:13 pm:   

Hi Ghila,

What mobile operator is this? We've had a few reports of mobile operators blocking mobile originated WAP Push (most notably AT&T in the US).

Try sending the following text message:

sendSmsByRawPDU|00|01B60A81508408721400000CC8329BFD065DDF72363904

This will send a "Hello world" message to the same number as your attempted push. (The To number will be ignored.)

If that fails, try this:

sendSmsByRawPDU|00|01000A81508408721400000CC8329BFD065DDF72363904

What we try next depends on whether these tests work.

--
Des
NowSMS Support
Ghila
New member
Username: Ghilac

Post Number: 4
Registered: 07-2015
Posted on Monday, July 13, 2015 - 06:17 pm:   

thanks a lot for your response!
I have tried both and they both fail.. Also the phone is giving me some notifications about the app sending a large number of messages.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5371
Registered: 08-2008
Posted on Wednesday, July 15, 2015 - 02:07 pm:   

Hi Ghila,

Something seems fundamentally wrong with the Xposed module in your setup.

I copied the last example from the example at https://github.com/johnzweng/XposedSendRawSMS ... I only changed the destination phone number. So that should work.

I notice from that link that the sendSmsByRawPDU module was only tested with Android 4.3, so maybe there is a reason it is not working with 4.1.1.

Out of curiosity, you can send normal text messages ok, right? I just want to make sure that it is not a SIM credit issue.

--
Des
NowSMS Support

Add Your Message Here, or click here to create a new discussion topic.
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image
Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Click here to create an account.
Username:
Password:
Options: Automatically activate URLs in message
Action:

Login Login / Register Logout Logout Search Last 30 Days Topics Topics