Git Product home page Git Product logo

rootmanager's Introduction

Root Manager Build Status

RootManager is a library which enable developers access the root utilities on Android devices. RootManager provides functions including checking if the device is rooted, trying to obtain superuser privileges, installing/uninstalling applications silently, capturing screen shot, recording screen (4.4. and upper), etc..

The project is based on ROOTTOOLS. RootManager slims ROOTTOOLS and extends various functions for common cases.

### Features
root access
  • check if the device is rooted.
  • obtain the root privileges, run command as the superuser.
package management
  • install packages silently [*].
  • uninstall packages silently.
  • uninstall system applications silently.

[*]: silently means operation will be done at the background without any popups or prompts.

command execution
  • run commands.
  • install binary executable files.
  • remove binary executable files.
others
  • remount file system in RW.
  • copy files.
  • capture screenshots.
  • screen record on 4.4 and upper.
  • check if a process is running.
  • kill a process by its PID or package name.
  • restart the device.

Usage

  • Install RootManager by gradle:
dependencies {
    compile 'com.chrisplus.rootmanager:library:2.0.5@aar'
}
  • All functions you can access via (RootManager)
    • RootManager.getInstance().
  • A suggestion to call RootManager:
    1. check if this device is rooted (RootManager.getInstance().hasRooted). If yes, this device might be rooted so that we can obtain superuser permission, otherwise we cannot.
    2. try to get root permission via (RootManager.getInstance.obtainPermission()). Then, for most cases, a dialog will be shown to users, GRAND or DENY the full access to the device. This dialog is controlled by SU app such as SuperSU and KingUser, etc.
    3. RootManager will return the result according to the user choice.
    4. once obtaining the root access, developers can run commands or call functions.
  • Access some sample code, check the sample app please.

License

RootManager is released under GPL v2 license

rootmanager's People

Contributors

chrisplus avatar

Watchers

James Cloos avatar jnet 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.