Sign in to follow this  
Followers 0
glossywhite

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

1 post in this topic

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
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2016. MoDaCo uses IntelliTxt technology.