IMSI Catchers and Mobile Security
EAS499Honors-IMSICatchersandMobileSecurity-V18F-1
EAS499Honors-IMSICatchersandMobileSecurity-V18F-1
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
GPSTracker gps = new GPSTracker(<br />
DataCollectionActivity.this);<br />
entry.put("latitude", gps.getLatitude());<br />
entry.put("longitude",<br />
gps.getLongitude());<br />
// Display latitude longitude information on screen<br />
post_server_response_textview.setText("Data Collection In" +<br />
" Progress\n\n"<br />
+ "Latitude: "<br />
+ Double.toString(gps<br />
.getLatitude())<br />
+ "\nLongitude: "<br />
+ Double.toString(gps<br />
.getLongitude()));<br />
// Add time information to cell JSONObject<br />
Calendar c = Calendar.getInstance();<br />
entry.put("time", c.getTimeInMillis());<br />
//Log.d("time in millis", Long.toString(c<br />
// .getTimeInMillis()));<br />
// Add cell JSONObject to array of cell JSONObjects<br />
data_Array.put(entry);<br />
// Increment count of cell JSONObjects<br />
signal_strength_transactions++;<br />
// If max number of cell JSONObjects per data collection<br />
// is reached, record array of cell JSONObjects as a data<br />
// collection <strong>and</strong> add to array of data collections; reset<br />
if (signal_strength_transactions ==<br />
MAX_SIGNAL_STRENGTH_TRANSACTIONS) {<br />
// Create data collection to store cell JSONObjects<br />
JSONObject temp = new JSONObject();<br />
// Record Android ID to collection<br />
temp.put("id", Secure.getString(getBaseContext()<br />
.getContentResolver(),<br />
Secure.ANDROID_ID));<br />
/* Unnecessary - commented out<br />
String devId = Secure.getString(getBaseContext()<br />
.getContentResolver(),<br />
Secure.ANDROID_ID);<br />
Log.d("Dev ID: ", devId );<br />
*/<br />
// Record cell JSONObjects to collection<br />
temp.put("information", data_Array);<br />
//Log.d("json data : ",temp.toString());<br />
// Check that max collections is not exceeded<br />
if (current_count_coll_json_obj < MAX_COLLECTIONS_JSON_OBJECTS) {<br />
// Add collection to array of collections<br />
collection_JSON_objects[current_count_coll_json_obj] =<br />
temp;<br />
}<br />
// Re-initialize the array to store cell JSONObjects<br />
data_Array = new JSONArray();<br />
// I don't know what this does yet<br />
data_display_textview<br />
.setText("found1");<br />
// Increment the count of collections<br />
current_count_coll_json_obj++;<br />
35