Skip to content

armgit / haven

Public Imported from GitHub
0

Haven is for people who need a way to protect their personal spaces and possessions without compromising their own privacy, through an Android app and on-device sensors

Updated README file

mziccard67ca524b39d3
diff --git a/README.md b/README.md
index 1cc7717..e698d5e 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,11 @@
# 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
+- **Accelerometer**: used to detect phone's motion
-- *Camera*: used to detect motion in the phone's surroundings
+- **Camera**: used to detect motion in the phone's surroundings
-- *Microphone*: used to detected noises in the enviroment
+- **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.
@@ -17,15 +17,21 @@ The application can be built using Android Studio. Building has been tested with
## Main view
+![ScreenShot](screenshots/Screenshot_Main.jpg)
+
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](screenshots/Screenshot_Accelerometer.jpg)
+
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](screenshots/Screenshot_Camera.jpg)
+
The camera page containes three sub-views:
- a SurfaceView provides real-time camera-captured images
@@ -40,6 +46,8 @@ Motion detection is performed via an asynchronous task defined in `me.ziccard.se
## Microphone Fragment
+![ScreenShot](screenshots/Screenshot_Microphone.jpg)
+
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`.