Android 3gpp2 pdu,sms - CDMA PDU parsing on Android - Stack Overflow

See the javadoc from $SDK/sources/android-16/com/android/internal/telephony/cdma/SmsMessage:

/**

* Creates byte array (pseudo pdu) from SMS object.

* Note: Do not call this method more than once per object!

*/

...so it's not following any particular CDMA standard. You can decode it however; so in fine ASCII art:-

000000000000100200000000000000000A36373839313031363734000000000000000000001B000310864D000306120624205611010B104C2CF9F3F5EBD73E7000

--------messageType --digitMode --------bearerReply ------------------------------------------------------bearer data

--------teleService --ton --------------------src --replySeqNo --messageID --msts --userdata

--------serviceCategory --errorClass --len --XX--len --len

--numberMode --causeCode ------ ------------2012/06/24 20:56:11

--npi --------bearerDataLength ----------------------userdata

--len

Note that I think you made a cut/paste error in your message - the 00 byte marked 'XX' I think shouldn't be there - luckily it's easy to spot the date and work backwards. So this is a message from 6789101674 with userdata:

104C2CF9F3F5EBD73E7000, the first five bits of which show that it's 7-bit encoded (0x02). Having shifted the remainder of the userdata 5 bits to the left, we're left with:

09859f3e7ebd7ae7ce00

--len(septets) 9 septets == 63 bits, so we expect 8 bytes of body

----------------7bit-body

So your 7bit-body decoded is "Bggguuugg".

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值