GithubHelp home page GithubHelp logo

rootmanager's Introduction

Root Manager

This is a lib for android developers to do things as a root user, such as judging whether the device has rooted, try to granted root premission, install app without pop dialog (just like Google Play do), uninstall apps silently, capture screen programmly and so on.

This project bases on the project ROOTTOOLS . RootManager slims roottools and extends more various utilities for common cases.

Download the lastest JAR File HERE

Features

Root Access

  • Check if the Device has been rooted.
  • Grant Super User Permission.

App Management

  • Install Package silently.
  • Uninstall Package silently.
  • Uninstall System Applications and Packages silently.
  • silently means operation will be done at the background, without popup dialog or other things.

Execute Commands or Files

  • Run Command.
  • Install Binary File.
  • Remove Binary File.
  • Execute Binary File.

Utilities

  • Remount File System.
  • Copy files.
  • Screen Shot.
  • Kill Process by process name or PID.
  • Restart Device.

Usage and Sample code

  • All useful functions you can access via (RootManager)
    • RootManager.getInstance().
  • A process suggested to do ROOT operation is that:
    • Check if this device is rooted, hence check if SU file exits. (RootManager.getIntance().hasRooted). If yes, this device may be rooted and maybe we can get super user permisson, otherwise we nerver can.
    • Try to get Super User Permission. (RootManager.getInstance().grantPermission()). If yes, it means we has become SU, failed otherwise. In this step, generally speaking, a popup dilog will be shown for users to choose Allow or Deny. This dialog is controlled by the Super User Application in your phone.
    • Run command, files or call functions as a SU.
  • Access some sample code, check RootManagerExample please.

License

RootManager is released under GNU GPL v2 license.

rootmanager's People

Contributors

chrisplus 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.