namecoin / nmcontrol

Namecoin Control. This repo is deprecated in favor of https://github.com/namecoin/ncdns
136 stars 38 forks source link

Port to Android #46

Open JeremyRand opened 10 years ago

JeremyRand commented 10 years ago

Python runs on Android, so it's plausible that we could run NMControl on Android with minimal modifications. (We could access a namecoind instance remotely.)

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/5097616-port-to-android?utm_campaign=plugin&utm_content=tracker%2F435873&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F435873&utm_medium=issues&utm_source=github).
josephbisch commented 9 years ago

I have a repository on GitHub where I have started working on getting NMControl running on Android. I am able to connect to the rpc on port 9000 and dns on port 5353 from another computer to verify that nmcontrol.py is running correctly.

We currently need to implement a proxy in NMControl so that the Android version of NMControl can be used with applications for Android that support proxies. DNS is an alternative option on rooted devices, but it is not an option on non-rooted devices, because Android needs DNS to run on port 53 and non-rooted devices can't run stuff on ports like 53.

JeremyRand commented 9 years ago

I don't suppose Android allows an app to request SELinux capabilities? There's an SELinux cap which allows binding to low ports, according to something on StackOverflow.

josephbisch commented 9 years ago

It looks like Android doesn't ship with setcap by default. It seems like it would require a custom ROM to add setcap to do what you suggested. That was a good idea though.

JeremyRand commented 9 years ago

Well, I guess this is another reason I can add to the list of why no one should be using Android. (Of course, no one should be using iOS either. I'm unaware of a mainstream mobile OS that doesn't suck horribly.)

Anyway, yeah, we need to hammer out what we're going to do about the proxy thing. I would have done so already, I've just been without forum access, which makes it hard for me to coordinate things. I'll see what I can do on this.