Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8210719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:10:10+00:00 2026-06-07T10:10:10+00:00

I have written a program to decode a CDMA 3GPP2 point-to-point SMS message. I

  • 0

I have written a program to decode a CDMA 3GPP2 point-to-point SMS message. I tested it on a couple CDMA PDU hex strings I found on the internet, and it works perfectly. However, when I try to implement it on all incoming text messages on the Android platform, it always fails.

I took a look at the incoming PDU, and it doesn’t seem to follow the same pattern I have been used to seeing. Can anyone explain what format this PDU is in, or what I am missing to correctly decode this PDU? Is there additional header or fields I am not taking into account?

Example PDU pulled from a incoming text message on my phone:

000000000000100200000000000000000A36373839313031363734000000000000000000001B000310864D000306120624205611010B104C2CF9F3F5EBD73E7000

All of the CDMA pdus I found and tested my parser on look more like:

00000210020207028CE95DCC65800601FC08150003168D3001061024183060800306101004044847

Carrier: Verizon
Phone: Samsung Galaxy S Fascinate running Android 2.3.3

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T10:10:11+00:00Added an answer on June 7, 2026 at 10:10 am

    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”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a program that handles signal for Floating point exception and I
I have written program for drawing pythagoras tree fractal. Can anybody see any way
I have written a program that in the client section an error occures frequently,
I have written a program which I run after connecting to the box over
I have written a program which takes a file as input and whenever it
I have written a program which works on huge set of data. My CPU
I have written a program to process packets. The program runs well if its
I have written a program a.exe which launches another program I wrote, b.exe ,
I have written a program in visual basic and want it to display the
I have written a program which uses CardLayout. I want it to show a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.