Giter VIP home page Giter VIP logo

android-mqtt-mdm-client's Introduction

android-mdm-client

Introduction

This is a sample app which demostrates the MDM app without using google cloud messaging framework. The app instead uses MQTT to push the data to the device which then interprets the message and implements the poilcy.

This app is purely to study the functionality of MQTT.

Setup

To Setup this app you will need a mqtt based server. I Built this project using mosquitto (http://mosquitto.org/), so you can use that. I'll also update the sample project on for sending the message from the server.

To set up the client you can just import it as an android project in eclipse and run the app once the server is up.

In splash activity update the "QUEUE_END_POINT" variable to point to your hostname or the ip address. This version of the app doesnt use the secure MQTT ports and uses the standard 1883 port for communication. If you are using any other ports please update the "brokerPortNumber" variable in the MQTTService Class.

The following commands are supported as of this moment

ADMIN_COMMAND_LOCK_DEVICE = "lock"
ADMIN_COMMAND_REMOTE_WIPE = "remote_wipe"
ADMIN_RESET_PASSWORD = "reset_password"
ADMIN_DISABLE_CAMERA = "disable_camera"
ADMIN_ENABLE_CAMERA = "enable_camera"
ADMIN_ENABLE_ENCRYPTION = "enable_encryption"
ADMIN_DISABLE_ENCRYTION = "disable_encrytion"
ADMIN_ENABLE_PASSWORD_POLICY = "password_policy"
PUSH_NOTIFICATION_MESSAGE = "push_notification"

send the data in the format from the server

{
  "command":"",
  "message":"",
  "password":"",
  "policy":{
    <as per DevicePolicy.java>
  }
}

android-mqtt-mdm-client's People

Contributors

karthiksaligrama avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

lhc180 dexit

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.