Engineering ProjectsAndroid ProjectsBsc-ITDiplomaIT ProjectsMsc-IT Projects

Phone with GPS Mobile Theft Tracking System

Introduction

Have you ever worried about the security of your Android phone? In an era where mobile devices hold a wealth of personal and professional information, phone theft has become increasingly common. In this article, we introduce you to an advanced mobile theft application that leverages GPS phone technology, offering multi-layered security to protect your device.

Features of The Anti-Theft App

Our mobile anti-theft application provides comprehensive phone theft security, including:

  • User Registration: Sign up with your name, phone number, email ID, and a secure password. Access is provided to both the web application and the mobile app.
  • Trigger Mechanism: In case your phone is lost or stolen, log in to the web application and activate the ‘Lost Phone’ trigger.
  • Instant Photo Capture: Once triggered, the app takes a picture using the phone’s front camera.
  • GPS Coordinated Tracking: The app sends GPS coordinates to the web application, enabling you to track your Android phone in real-time.

How it Works?

  • New SIM Detection: If the thief changes the SIM card, the application will automatically run itself, capture the new phone number, and send an SMS to your registered number and an alternate number.
  • Web Application: The web portal allows you to trigger the app remotely and provides a dashboard to view the location and images of the perpetrator.

Advantages

  • Real-time GPS security tracking of your phone.
  • SMS alerts from a new SIM card, increasing your chances of recovering the phone.
  • The application captures the thief’s picture for easier identification.

Disadvantages

The only downside is that it requires an active internet connection to function optimally.

Sample Code

MainActivity.java

import android.Manifest;
import android.content.pm.PackageManager;
import android.location.Location;
import android.os.Bundle;
import android.telephony.SmsManager;
import android.telephony.TelephonyManager;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import com.google.android.gms.location.FusedLocationProviderClient;
import com.google.android.gms.location.LocationServices;
import com.google.android.gms.tasks.OnSuccessListener;

public class MainActivity extends AppCompatActivity {
    private FusedLocationProviderClient fusedLocationClient;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        TelephonyManager telephonyManager = (TelephonyManager) getSystemService(TELEPHONY_SERVICE);
        String currentSimSerial = telephonyManager.getSimSerialNumber();

        // Replace with the SIM serial number registered during app installation
        String registeredSimSerial = "YOUR_REGISTERED_SIM_SERIAL";

        if (!currentSimSerial.equals(registeredSimSerial)) {
            sendAlertSms("New SIM card detected!");
        }

        fusedLocationClient = LocationServices.getFusedLocationProviderClient(this);

        if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {
            fusedLocationClient.getLastLocation().addOnSuccessListener(this, new OnSuccessListener<Location>() {
                @Override
                public void onSuccess(Location location) {
                    if (location != null) {
                        String coordinates = "Latitude: " + location.getLatitude() + ", Longitude: " + location.getLongitude();
                        sendAlertSms("Phone is located at " + coordinates);
                    }
                }
            });
        } else {
            ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 1);
        }
    }

    private void sendAlertSms(String message) {
        SmsManager smsManager = SmsManager.getDefault();
        // Replace with your registered phone number
        smsManager.sendTextMessage("YOUR_PHONE_NUMBER", null, message, null, null);
        Toast.makeText(getApplicationContext(), "Alert sent.", Toast.LENGTH_LONG).show();
    }
}

AndroidManifest.xml

<uses-permission android:name="android.permission.SEND_SMS"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

<application
    ...
    >
    <activity android:name=".MainActivity">
        ...
    </activity>
</application>
Click to rate this post!
[Total: 0 Average: 0]

Download Phone with GPS Mobile Theft Tracking System PDF


Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button