Jump to content

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


Guest glossywhite

Recommended Posts

Guest glossywhite

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
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.