Comments (3)
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.
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.
/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)
- Change userName?
- 23.11 Release HOT 8
- Incompatibility with Tailscale MagicDns (Could not resolve host) HOT 4
- Test
- Create SSH module HOT 2
- x
- Android security killing nix process HOT 4
- "Environment.pathsToLink does not exist" error. HOT 4
- Re packed emacs that can be used with nix-on-droid HOT 1
- Docs generation uses 23.05 nixpkgs HOT 1
- Insecure packages HOT 2
- [App] Merging features from Termux-Monet HOT 1
- Replacing xdg-open with termux-open
- Changing hostname (for flakes) HOT 2
- How to run docker daemon? HOT 1
- Mosh DNS not working HOT 1
- Cannot run Shizuku generated rish HOT 3
- Option for Shizuku
- How can i install it in terminal of nix?I use the original apk in the site,which size is 7.2m not 7.4 HOT 1
- Are there x86_64 bootstrap tars availible? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nix-on-droid.