Professional Documents
Culture Documents
Geolocation Android Mobile Phones Using GSM/UMTS: Received 16/5/2018, Accepted 24/10/2018, Published 17/3/2019
Geolocation Android Mobile Phones Using GSM/UMTS: Received 16/5/2018, Accepted 24/10/2018, Published 17/3/2019
DOI: http://dx.doi.org/10.21123/bsj.2019.16.1(Suppl.).0254
Abstract:
The proliferation of cellular network enabled users through various positioning tools to track
locations, location information is being continuously captured from mobile phones, created a prototype that
enables detected location based on using the two invariant models for Global Systems for Mobile (GSM) and
Universal Mobile Telecommunications System (UMTS). The smartphone application on an Android
platform applies the location sensing run as a background process and the localization method is based on
cell phones. The proposed application is associated with remote server and used to track a smartphone
without permissions and internet. Mobile stored data location information in the database (SQLite), then
transfer it into location API to obtain locations result implemented in Google Maps. Track a smartphone with
fixed identifiers mostly SSN (SIM (Subscriber Identity Module) Serial Number) and IMEI (International
Mobile Equipment Identity) derived from an identifying string unique to the user's device. The result located
place is Moderate correct according to the (GSM) and (UMTS) cellular networks which is used for obtaining
location information.
Introduction:
The cellular wireless systems offering Tracking smartphone by exploiting a
reliable mobile location estimates have been studied permanent mobile data connection, each data packet
by engineers and researchers for the past few years received provides up to date location (3). Location
because of its temporal/spatial nature and rich tracking applications have proliferated in mobile
context (1). The mobile devices localization has cellular network and have gained access to a great
become important topics in wireless deal of sensitive personal data; these seek the power
communication, GPS consider high accuracy but to conduct tracking covertly and without a judicial
the most battery power consuming only a few note, that track people go through the personal
hours, despite of low accuracy and low cost mobile with (GSM/UMTS) chipsets (4).
regarded as the basic cellular communication This uses the mobile for tracking the
systems, transmitted over the control channel owns location, the phone's location that obtaining by
short response time. The GSM/UMTS can be used GSM/UMTS network used the location information
to be obtained location information without consisting of Cell ID (Cell Identifier), LAC
additional external hardware when there is cellular (Location Area Code), MNC (Mobile Network
coverage (2). Location Based Services (LBS) with Code) and MCC (Mobile Country Code). The
the popularity is smartphones that have grown location information is stored inside internal
rapidly over the past years and market forecasts database (SQLite) in mobile periodically, it is
show similar growth in the near future. As the need possible to show a mapping that aims to give an
for tracking mobiles in our daily life is increasing, it overview of tracking for mobile. This map gives the
became tracking thousands of users periodically on distribution of location for each region visited by
the scale of minutes, focuses on cheap and cellular user (5).
networks independent tracking solution that does The contributions in this paper can be
not need any hardware change within the core summarized as follows: we utilize location
network and that can find any mobile terminal. information for a mobile device that is always
1
Department of Computer Science, College of Science, available in the cellular network. We create an
Mustansiriyah University, Baghdad, Iraq. application of an efficient, easy-to-use, and
2
Department of Computer Science, College of Science, inexpensive mobile device tracking system, the
Mustansiriyah University, Baghdad, Iraq. application provides a better balance between
*
Corresponding author: battery power and location accuracy. Through the
bashar_sh77@uomustansiriyah.edu.iq. location information collected during the roaming
254
Baghdad Science Journal Vol.16(1)Supplement 2019
of the mobile device between the base station Rafael Roberto, et al (10). This paper
connected them, this information enables us to track presents many tracking techniques proposed
the mobile device to see the location visited recently taking into account the benefits and
(historical location profiles), the application can be limitations of mobile devices. The results show that
used in any place in world covered by GSM/UMTS the number of publications is increasing every year
signal, compared the location information with in the field of tracking for mobile devices, the most
high-level API to provide a positioning system. This works use the mobile device sensors for tracking in
work provides proactive services which location-based applications, there is a clear
automatically tell their users when they enter or preference for systems that calculate the pose
leave the bounds of pre-defined points of interest. locally on the device and only a few of the remote
server.
Related works Fritsche Carsten, et al (11). The usage of
S. Theerawisitpong, et al (6). The mobile terminal Tracking, if GPS is not available
challenges include detecting problems air-interface when the mobile terminal is located close to high
signal over GSM cellular network, an investigation buildings. That approach is to combine the GPS
about the examined and corrective approaches used. measured values with measured values from the
Chandir Subhash, et al (7). The study presented an GSM. This work depends on the base station
improved access to children and insure a vaccine location to accomplish tracking.
against diseases for poliovirus, the traditional way is
moving door to door campaigns in constrained by Theoretical Background
several factors that resulting in optimal vaccine 1. GSM primer
coverage. It provides a solution of low-cost used GSM network structure is divided into base
GSM based tracking of the mobile subscriber station subsystem and core network that is shown in
identity of vaccinations, investigate the feasibility the Fig. 1 (3), The GSM technology based on Time
using GSM to track vaccinations through effective Division Multiple Access (TDMA) transmission
monitoring for supervisors and managers. methods and used to describe the protocols used
Alicia Rodriguez-Carrion, et al (8). The advantage by mobile phones for the 2G digital cellular
of location prediction in an ubiquitous using GSM networks, the Base Transceiver Station (BTS) is
is to obtain lower resource consumption or better responsible for the radio coverage of a given
prediction accuracy, estimating the next location geographical area, while the Base Station Controller
Utilization of LZ-based on algorithms capable of (BSC) maintains radio connections towards mobile
learning mobility patterns. stations of the core network, both BSC and BTS
Muharum A. M., et al (9). discuss proposes join the Base Station Subsystem (BSS) that controls
an energy saving API for the Android Operating the radio path. The GSM service area is divided into
System in order to help developers who have main Location Areas (LAs), where each LA includes one
features heavily used for building smart or more radio cells the LA and radio cell has a
applications, greatly impact battery life of Android unique identifier named LAC and Cell ID, the
devices when the location is determined using the Mobile Station (MS) comprises the mobile phone
cellular 2G / 3G network and the maps. and the Subscriber Identity Module (SIM) card and
interacts with the BTS (12).
255
Baghdad Science Journal Vol.16(1)Supplement 2019
Each cell in the network is uniquely file, the Android mobile support from both Google
identified by Cell Global Identity (CGI) number Maps and third-party developers (remotely connect
which consists of four numeric fields: MCC, MNC, to a MySQL database) (13).
LAC and Cell ID, implemented in the query MCC, 1. Web Service
MNC, LAC and Cell ID, deals with obtaining the A web service is a software designed to
location information from the GSM network. The support communication between mobile application
GSM core network mainly includes the Mobile and remote server and location API over a network.
Switching Centers (MSCs) which is a network The web service designed to provide compute
element responsible for circuit-switched services, a location information results in obtaining specific
special type of MSC is a Short Message Service geographic regions (latitude and longitude) after
Center (SMSC), which supports sending and connected with location API according to request
receiving text messages. The Home Location by the users; the web service used an online portal
Register (HLR) is a database used for the developed in a PHP is an open source general, the
management of permanent data of information web services send and receive data with
about mobile users authorized, Visitor Location insert/delete, web service performs the tasks and
Registers (VLRs) are databases of the service area generates output in the JSON format (14):
visited by an MS (3). [{"gsmlatitude":"33.24567","gsmlongitude":"44.36
2478","datetime":"2017/12/22 17:17:26"},
Android Platform {"gsmlatitude":"33.245621","gsmlongitude":"44.36
Android is a platform introduced in 2007 2425","datetime":"2017/12/22 17:22:12"},
for devices such as (smartphones or tablets) {"gsmlatitude":"33.245621","gsmlongitude":"44.36
developed by Google that is a Linux based 2425","datetime":"2017/12/22 17:28:36"},
operating system and the open source code designed {"gsmlatitude":"33.249792","gsmlongitude":"44.35
for touch screen mobile device. The applications 8406","datetime":"2017/12/22 17:33:19"},
was developed in the Java language allows the {"gsmlatitude":"33.249792","gsmlongitude":"44.35
software to be free modified using the Android 8406","datetime":"2017/12/22 17:38:55"}]
Studio software development kit (SDK), the SDK Representational state transfer (REST) is an
contains a comprehensive set of software libraries architectural style for developing web services and
supported integrated development environment takes advantage of the technologies and protocols of
(IDE), the Android Studio (Android 7.0) to get the the World Wide Web, the create connected between
Cell ID, LAC, MMC, MNC, IMEI and SSN of an the smartphones and remote server by volley
Android mobile, the database (SQLite) used to store technique proposed by Google 2013, The scheme
this Cell ID, LAC, MMC, MNC values into uses POST and JSON format to transfer data (15).
periodical processes are running as background
process by applying Android service, Google Maps Proposed tracking system
get from web service the latitude and longitude in In order to implement mobile tracking
the format of a JSON (Java Script Object Notation) system with using GSM/UMTS network of
256
Baghdad Science Journal Vol.16(1)Supplement 2019
detection mobile location for places visited through 5 minutes. The location information, IMEI,
your phone, the mobile device tracking while SSN and current date&time were stored in
connection with the tower BTS and stored location the SQLite database every 5 minutes. Note
information (Cell ID, LAC, MCC, MNC) IMEI, SSN and current date&time can be
continuously each specific period (5 minutes) in obtained from the mobile device.
SQLite Database. All these processes run as Step 2: Always have 100 records inside the SQLite
background by applying Android service which Database to maintain the storage space of
without suspect by mobile user. Other time for the mobile device. In case of addition, the
when mobile connected with internet can retrieve first field is deleted to guarantee non-
location information from SQLite Database of the exceeded100 fields.
mobile device, the location information transfer into Step 3: Transfer location information, IMEI, SSN
the remote server during synchronizing between and date&time from SQLite into remote
SQLite and MySQL. The server uses PHP and database MySQL using Volley technologies
MySQL and can get all the necessary data to locate and web services, the server has received
the phone. The PHP file will compute (latitude and (IMEI, SSN, Cell ID, LAC, MNC, MCC)
longitude) for location information that stored in via POST.
MySQL during creates connections with location Step 4: The web services provided communication
API to obtain the locations visited during mobile between MySQL and the location API, the
device and stored the results in MySQL. The data location information is transferred into a
(latitude and longitude) is then transferred to the location API for obtaining latitude and
mobile device in the form of the JSON format and longitude each record, the link location API
use Google Maps will plot the locations. Fig. 2 is using URL=
shows tracking system. http://us1.unwiredlabs.com/process.php to
In this section we propose tracking system obtain the longitude and latitude.
algorithm to develop models of the relationship Step 5: The results stored longitude and latitude
between the mobile application and server site. The received from the location API in the
proposed algorithm can be implemented in six MySQL database and create a JSON file.
steps, which are described in algorithm (1). Step 6: Through the mobile application, the data
location is queried from the external
Algorithm 1. Description of the tracking system: database MySQL and received in the form
of the JSON file format, the results are
Step 1: The mobile device can read the location using JSON parser to display the location
information (Cell ID, LAC, MCC, MNC) on Google Maps.
using cellular network (GSM/UMTS) every
257
Baghdad Science Journal Vol.16(1)Supplement 2019
Update Data
Insert Data
Request
JSON
format
Store
Database server
Using MYSQL
Result
Response JSON
Format
Request Post
Method
The tracking system can be separated into The Android mobile application obtained IMEI,
two parts which are mobile application and server SSN, current location information (Cell ID, LAC,
site. MNC, MCC) in the four parameters in Fig. 3 shows,
Mobile application the four parameters considered the basic for can be
found latitude and longitude.
258
Baghdad Science Journal Vol.16(1)Supplement 2019
259
Baghdad Science Journal Vol.16(1)Supplement 2019
Results: can find the nearest position visited, the mobile was
We have successfully implemented not connected with internet. some results were
application Android of mobile tracking system by shown in Fig. 5. The results we see after calculation
using GSM/UMTS network, those results during the latitude and longitude depending on the location
experiment, the application was run in 21/12/2017 information of the GSM/UMTS network are
on the way from Baghdad to Samarra the location described in Table (1).
information was recorded every five minutes, that
260
Baghdad Science Journal Vol.16(1)Supplement 2019
261
Baghdad Science Journal Vol.16(1)Supplement 2019
الخالصة:
انتشار الشبكات الخلوية سمحت للمستخدمين بتتبع اجهزة الهواتف النقالة من خالل أدوات تحديد المواقع المختلفة ،حيث يتم التقاط
معلومات الموقع بشكل مستمر من الهاتف باالعتماد على ( )GSMو ( .)UMTSهذا البحث يعرض تطبيقا ً على نظام االندرويد يوفر بيانات
الموقع ويتم تنفيذ هذه العمليات في الخلفية .التطبيق المقترح يرتبط مع remote serverويستخدم لتتبع الهاتف الذكي دون الصالحيات ودون
االتصال باالنترنت .جهاز الموبايل يخزن معلومات الموقع في قاعدة البيانات داخلية ( )SQLiteوبعد ذلك ينقلها الى قاعدة بيانات خارجية
( )MySQL Databaseثم تتحول البيانات إلى location APIللحصول على احداثيات المواقع والنتائج تعرض في .Google Mapsتتبع
الهاتف الذكي مع المع ّرفات ثابتة :الرقم التسلسلي لهوية المشترك ) (SSN) (SIMوالهوية الدولية للمعدات المتنقلة ( )IMEIالمشتقة من
سلسلة تعريف فريدة لجهاز المستخدم .والنتيجة موقع الذي تم ايجاده ويكون صحيح االعتدال وفقا للشبكات الخلوية المتنقلة (.)GSM/UMTS
262