Skip to content

Inventory client library written in Java for developing applications on Android

License

Notifications You must be signed in to change notification settings

glpi-project/android-inventory-library

Repository files navigation

Inventory Library for Android

GLPI Android Inventory banner

License License: CC BY 4.0 Follow twitter Telegram Group Project Status: Active Conventional Commits Greenkeeper badge GitHub release GitHub build

GLPI Android Inventory Library is an android inventory library written in Java

Table of contents

Synopsis

The Inventory Library for Android collects a complete inventory of your Android devices. It allows you to export your inventory in a beautiful XML or JSON as protocol compatible GLPI Native Inventory.

You can find more information about the GLPI Native Inventory Protocol here: https://github.com/glpi-project/inventory_format

Data collected

  • Account Info
  • Accesslog
  • Hardware
  • User
  • Storages
  • Operating System
  • BIOS
  • Memories
  • Inputs
  • Sensors
  • Drives
  • CPUs
  • Videos
  • Cameras
  • Networks
  • Environments variables
  • JVMS
  • Softwares
  • USB
  • Battery
  • Controllers

Installation

Download the latest AAR and include it in your Android project as an external library

Code Example

It's easy to implement in your code, as you can see in the following examples

Java

InventoryTask inventoryTask = new InventoryTask(MainActivity.this, "Agent_v1.0", new InventoryTask.OnTaskCompleted() {
  @Override
  public void onTaskCompleted(String data) {
    Log.d("XML", data);
  }
});

inventoryTask.execute();

Kotlin

val inventoryTask = InventoryTask(this@MainActivity, "Agent_v1.0", object : InventoryTask.OnTaskCompleted() {
    override fun onTaskCompleted(data: String) {
        Log.d("XML", data)
    }
})

inventoryTask.execute()

Contact

For notices about major changes and general discussion of fields, subscribe to the /r/glpi subreddit. You can also chat with us via @glpi on Telegram.

Professional Services

GLPI Network

The GLPI Network services are available through our Partner's Network. We provide special training, bug fixes with editor subscription, contributions for new features, and more.

Obtain a personalized service experience, associated with benefits and opportunities.

Contribute

  • Open a ticket for each bug so it can be discussed
  • Follow development guidelines
  • Refer to GitFlow process for branching
  • Work on a new branch on your own fork
  • Open a PR that will be reviewed by a developer

Copying

  • Code: you can redistribute it and/or modify it under the terms of the GNU General Public License (GPL-2.0).