Jump to content


Photo

[IDEA: IMEI logging script for inclusion in tools?]

- - - - -

  • Please log in to reply
No replies to this topic

#1
glossywhite

glossywhite

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,898 posts
Just wrote and tested this shell script:


#!/bin/bash
if [ ! -f imeilog ]
then
touch imeilog
echo "~~~~ IMEI LOGGING BEGAN: ~~~~" >> imeilog
date >> imeilog
echo "############################" >> imeilog
echo >> imeilog
echo >> imeilog
echo >> imeilog
fi
./adb shell dumpsys iphonesubinfo >> imeilog
echo >> imeilog
echo "~~~~ DEVICE INFO ~~~~" >> imeilog
./adb devices >> imeilog
echo >> imeilog
date >> imeilog
echo "~~~~~~~~ END OF LOG ENTRY ~~~~~~~~" >> imeilog
echo >> imeilog
echo >> imeilog
exit


I thought it could be useful for logging how many times a device has been rooted/un-rooted, unlocked etc. I hope this will save someone some time, if wanting to log the devices that were attached when X operation was executed.

It logs the date that logging began, then dumps the type (EG: GSM) of handset and its' IMEI, and when the last operation was carried out with date/timestamps.

Just thought I may as well submit it, since I've written it :)

Edited by glossywhite, 11 April 2013 - 02:42 AM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users