Git Product home page Git Product logo

rootmanager's People

Contributors

chrisplus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rootmanager's Issues

i have problem with uninstall system please help me

my code below:
class UninstallSystemApp(var mContext: Context) : AsyncTask<Void, Void, Result?>() {
val appPackage = "a855solution.gais.app"
override fun doInBackground(vararg p0: Void?): Result? {
return RootManager.getInstance().uninstallSystemApp(AppManager.getAppApkPathInstalled(mContext, appPackage))
}

    override fun onPreExecute() {
        println("Uninstalling package  $appPackage .")
        super.onPreExecute()
    }

    override fun onPostExecute(result: Result?) {
        println("Uninstall $appPackage ${result?.result} with the message  ${result?.message}")
        super.onPostExecute(result)
    }
}

===================================
error:
D/RootManager::Shell: Starting shell: su
D/RootManager::Shell: Starting shell: su
D/RootManager::Shell: Starting shell: su
D/RootManager::Shell: Starting shell: su
D/RootManager::Shell: Starting shell: su
D/RootManager: Could not start shell
W/System.err: java.io.IOException: Error running exec(). Command: [su] Working Directory: null Environment: null
W/System.err: at java.lang.ProcessManager.exec(ProcessManager.java:211)
W/System.err: at java.lang.Runtime.exec(Runtime.java:173)
W/System.err: at java.lang.Runtime.exec(Runtime.java:246)
W/System.err: at java.lang.Runtime.exec(Runtime.java:189)
W/System.err: at com.chrisplus.rootmanager.container.Shell.(Shell.java:75)
W/System.err: at com.chrisplus.rootmanager.container.Shell.startRootShell(Shell.java:135)
W/System.err: at com.chrisplus.rootmanager.container.Shell.startRootShell(Shell.java:121)
W/System.err: at com.chrisplus.rootmanager.utils.Remounter.remount(Remounter.java:93)
W/System.err: at com.chrisplus.rootmanager.RootManager.remount(RootManager.java:375)
W/System.err: at com.chrisplus.rootmanager.RootManager.uninstallSystemApp(RootManager.java:283)
W/System.err: at biz.mobileone.posmanagment.dashboard.MainActivity$someTask.doInBackground(MainActivity.kt:121)
W/System.err: at biz.mobileone.posmanagment.dashboard.MainActivity$someTask.doInBackground(MainActivity.kt:118)
W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:288)
W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
W/System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
W/System.err: at java.lang.Thread.run(Thread.java:818)
W/System.err: Caused by: java.io.IOException: Permission denied
W/System.err: at java.lang.ProcessManager.exec(Native Method)
W/System.err: at java.lang.ProcessManager.exec(ProcessManager.java:209)
W/System.err: ... 17 more
D/RootManager: Status Code is 409
I/System.out: Uninstall a855solution.gais.app false with the message Illegal Parameters or State

Error check is device rooted

On the Lenovo Vibe A7010 (K4 Note) Android version 6.0.
Method rootManager.hasRooted() return false, but device has root.

Timeout Exception Occur, How to run command continue in backgeound

i am tring to get Hash Value, but it always return me status code 0 and message is nothing.
Please check code below.'

 val hashValue: StringBuilder = StringBuilder()
        val hashCommand = RootManager.getInstance().runCommand("md5sum $path")
        hashValue.append("MD5 : ${hashCommand.message}")
        Log.d("getHash","Hash Message : "+hashCommand.message)
        Log.d("getHash","Hash Status Code : "+hashCommand.statusCode)
        Log.d("getHash","Hash Result : "+hashCommand.result)

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.