openstf / adbkit

A pure Node.js client for the Android Debug Bridge.
Other
831 stars 248 forks source link

Extracting IMEI number with client.shell method #99

Open shivarajnaidu opened 6 years ago

shivarajnaidu commented 6 years ago

I'm trying to extract IMEI number of my device using client.shell(deviceId, 'service call iphonesubinfo 1))` but getting some thing like below..

Result: Parcel(
  0x00000000: 00000000 0000000f 00350033 00340035 '........3.5.5.4.'
  0x00000010: 00300039 00360030 00390039 00370032 '9.0.0.6.9.9.2.7.'
  0x00000020: 00390033 00000034                   '3.9.4...        ')

How can I get the device IMEI using adbkit ?