Home Forum
Welcome, Guest
Username Password: Remember me

Identifying Handsets
(1 viewing) (1) Guest
Discussion related to creating Android software
  • Page:
  • 1

TOPIC: Identifying Handsets

Identifying Handsets 2 years, 9 months ago #197

I know this information is available somewhere but I can't seem to find it.

From the point of view of sending diagnostic crash dumps using the UncaughtExceptionHandler I can gather lots of nice information such as a stack trace, the application name and so on.

What would be great would be to able to identify the exact handset model and send that information with the crash info.

This will allow me to test the bug on the target handset.

I currently send the os.version system property which looks like this 2.6.27-00393-g6607056 on a HTC dream and this 2.6.27-00110-g132305e
on the emulator, not sure if this will identify the handset type though.
Anybody got anything else?
  • mmoore
  • OFFLINE
  • Examiner
  • Posts: 22
  • Karma: 1

Re:Identifying Handsets 2 years, 9 months ago #198

Its all there and sent up each time you communicate with the Market, there are strings like "T-Mobile" and the model etc sent in the clear, I know because I sniffed a session with wireshark a while back. But I didn't see the call to actually get the info in java.

One way would be to reverse engineer the Vendor.apk. This isn't as bad as it sounds - the ddx code is almost readable, it explodes each method in its own format. Look here strazzere.com/blog/?tag=vendingapk, download Vending.rar - thats the output from DeDexter, a tool to decompose .dex files.

Google use a construct called a ProtocolBuf to comminicate over http - its ultra efficient and documented here: code.google.com/apis/protocolbuffers/docs/overview.html

So if you look in android/vending/api/RequestDispatcher.ddx you'll see its basically populating a ProtocolBuf instance ready to send up, and the fields in there are as I say the terminal name etc. You'll have to hunt round those files to find the actual calls, usually the full package name is specified too so you might get lucky.
  • ticktock
  • OFFLINE
  • Professor
  • Posts: 79
  • Karma: 6

Re:Identifying Handsets 2 years, 9 months ago #200

  • ticktock
  • OFFLINE
  • Professor
  • Posts: 79
  • Karma: 6
  • Page:
  • 1
Time to create page: 0.17 seconds
Copyright © 2012 Android Academy. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.
 
Glossary
We have 23 guests online