GithubHelp home page GithubHelp logo

pakal / secureit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mziccard/secureit

0.0 1.0 0.0 6.33 MB

Sample Android application that serves as a monitoring service by leveraging on device's accelerometer, camera and microphone. The app uses Wifi, mobile data, bluetooth or SMS to send notifications. Code is released open source to provide examples of how to exploit Android sensors and network capabilities.

License: MIT License

Java 97.71% GLSL 2.29%

secureit's Introduction

SecureIt

Sample Android application that serves as a monitoring service by leveraging on device sensors. Among sensors exploited we report:

  • Accelerometer: used to detect phone's motion

  • Camera: used to detect motion in the phone's surroundings

  • Microphone: used to detected noises in the enviroment

The source code is released open source to be used as a reference (possibly wrong) for your own code. The aim is to help fill in the gap between Javadoc documentation and real code samples.

Building

The application can be built using Android Studio. Building has been tested with Android Studio 1.1.

Usage

Main view

ScreenShot

Application's main view allows the user to set which sensors to use and the corresponding level of sensitivity. A security code must be provided, needed to disable monitoring. A phone number can be set, if any of the sensors is triggered a message is sent to the specified number. Once monitoring is started a paged view gains focus with one fragment for each sensor. Each of these fragments gives a graphical representation of the corresponding sensor state.

Accelerometer Fragment

ScreenShot

The accelerometer page shows an OpenGL animation providing a graphic representation of phone's orientation. Fragment class is defined in me.ziccard.securit.fragment.AccelerometerFragment.

Camera Fragment

ScreenShot

The camera page containes three sub-views:

  • a SurfaceView provides real-time camera-captured images

  • an ImageView shows the last image considered by the motion detector

  • an other ImageView shows the current image being considred by the motion detector

GUI classes are defined in me.ziccard.securit.fragment.CameraFragment and me.ziccard.securit.Preview. Motion detection is performed via an asynchronous task defined in me.ziccard.secureit.async that leverages on classes in me.ziccard.secureit.motiondetection.

Microphone Fragment

ScreenShot

The microphone page provides a two-bar histogram of sound levels being captured by the mic and is defined in class MicrophoneFragment Mic data is captured via an asynchronous task (me.ziccard.secureit.async.MicSamplerTask) and the class me.ziccard.secureit.codec.AudioCodec.

Notifications

When one of the sensors is triggered (reaches the sensibility threshold) a notifications is sent through the following channels (if enabled).

  • Wifi or Mobile Data: HTTP requests are sent to a server, including periodic updates of device location. Code can be found in package me.ziccard.secureit.upload

  • Bluetooth: messages are sent to all listening nearby devices. Code can be found in packages me.ziccard.secureit.{bluetooth, messages}

  • SMS: a message is sent to the number specified when monitoring started

Notifications are sent through a service running in background that is defined in class me.ziccard.secureit.serviceUploadService.

secureit's People

Contributors

mziccard avatar lohathe avatar nicolabortignon avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.