GithubHelp home page GithubHelp logo

Comments (3)

deliciouslytyped avatar deliciouslytyped commented on August 26, 2024

I'm just doing some sanity checks here; is there any theoretical reason you couldn't have a sudo in android? Googling android sudo seems to yield results, and I don't see why it would necessarily need to be part of the nix distribution, as long as you can run executables with it?

With SELinux, does root still get to do everything, or are there restrictions?

The ability to do this at all depends on being on a "rooted" device, right? but from there...?

Some additional googling yields https://gitlab.com/st42/termux-sudo which seems to be the thing references everywhere (I haven't seen any references to binaries yet), though that's just a wrapper around su. (heh https://gist.github.com/GabrielMMelo/0e146f32d73978bf0d0a06786bcbc96c)

or is this a nix problem?

from nix-on-droid.

Atemu avatar Atemu commented on August 26, 2024

I tried getting Magisk to work in nix-on-droid today and I could sucessfully execute the magisk binary after I passed through /system/bin/linker64 but it's unable to conntect to the magiskd.

read (4 != -1) failed with 104: Connection reset by peer

Strace:

socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path=@"CGx7Fvq1Eis1ayv0ScTyWRB3N7MwMYU3"}, 35) = 0
write(3, "\2\0\0\0", 4)                 = -1 EPIPE (Broken pipe)

I feel like this is a proot issue.

from nix-on-droid.

t184256 avatar t184256 commented on August 26, 2024

/system/bin/linker64

TIL. Thanks!

connect(3, {sa_family=AF_UNIX, sun_path=@"CGx7Fvq1Eis1ayv0ScTyWRB3N7MwMYU3"}, 35) = 0
write(3, "\2\0\0\0", 4) = -1 EPIPE (Broken pipe)

I feel like this is a proot issue.

Could be. I don't know whether it supports abstract sockets.

from nix-on-droid.

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.