Giter Club home page Giter Club logo

Comments (5)

Stericson avatar Stericson commented on July 27, 2024

Shell Context would be set to the normal context, which would still be the same context that the su binary in CM11 would run in.

If the su binary doesn't support the --context switch then it should simply ignore it. Are you seeing something else?

from roottools.

miracle2k avatar miracle2k commented on July 27, 2024

The su binary in CM11 does not ignore the --context switch, it raises an error that you passed an unknown arguments (the behaviour I would expect).

In my case, I need to run using a different context in the case that SELinux is enabled. Chainfire's latest su binary supports the --context switch because of this. For some reason, CM11 claims that SELinux is enabled, but the su binary shipped does not support --context, and in fact the commands I want to run work fine on CM11.

FWIW I extracted the version checking code from libsuperuser and I'm using it manually now:

https://github.com/miracle2k/android-autostarts/blob/master/src/com/elsdoerfer/android/autostarts/Utils.java#L67

from roottools.

Stericson avatar Stericson commented on July 27, 2024

Thanks,

I was unaware of this issue, I will address this and have the code checked in soon.

from roottools.

Stericson avatar Stericson commented on July 27, 2024

I've checked in the code and the issue should be resolved.

Can you review the code changes made in Shell.java?

from roottools.

miracle2k avatar miracle2k commented on July 27, 2024

Amazing, thanks! The code looks perfectly good to me.

from roottools.

Related Issues (20)

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.