Permalink
Browse files

Added IPC_MISC_ME_SN types (it's not only for IMEI) and corrected str…

…ucture
  • Loading branch information...
1 parent 4952a56 commit d9c5aa0f5495aec4143be46b9ea0a1effbbedc28 @paulkocialkowski paulkocialkowski committed Nov 22, 2011
Showing with 7 additions and 2 deletions.
  1. +2 −2 include/device/crespo/misc.h
  2. +5 −0 include/misc.h
@@ -30,9 +30,9 @@ struct ipc_misc_me_version {
} __attribute__((__packed__));
struct ipc_misc_me_sn {
- unsigned char unk;
+ unsigned char type; // IPC_MISC_ME_SN_SERIAL_NUM*
unsigned char length;
- char imei[32];
+ char data[32];
} __attribute__((__packed__));
#endif
View
@@ -34,6 +34,11 @@ struct ipc_message_info;
#define IPC_MISC_ME_SN 0x0A03
#define IPC_MISC_TIME_INFO 0x0A07
+#define IPC_MISC_ME_SN_SERIAL_NUM 0x01
+#define IPC_MISC_ME_SN_SERIAL_NUM_SERIAL 0x04
+#define IPC_MISC_ME_SN_SERIAL_NUM_MANUFACTURE_DATE 0x05
+#define IPC_MISC_ME_SN_SERIAL_NUM_BARCODE 0x06
+
struct ipc_misc_time_info {
unsigned char tz_valid, daylight_valid;
unsigned char year, mon, day;

0 comments on commit d9c5aa0

Please sign in to comment.