9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] android hacking?
@ 2009-10-07 22:32 Tim Newsham
  2009-10-07 22:42 ` Christopher Nielsen
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Tim Newsham @ 2009-10-07 22:32 UTC (permalink / raw)
  To: 9fans

Anyone playing with android phones?  There's a lot of devices
on it that might be interesting to export.  Would be pretty
easy to make a 9p server that gives you access to the
GPS positioning, the accelerometer, or processed position
(compass, pitch, roll), etc..
Are any of these of interest to people?  Any other features
of interest that I didnt mention?

Tim Newsham
http://www.thenewsh.com/~newsham/



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] android hacking?
  2009-10-07 22:32 [9fans] android hacking? Tim Newsham
@ 2009-10-07 22:42 ` Christopher Nielsen
  2009-10-08  9:41 ` matt
  2009-10-29 20:03 ` Enrico Weigelt
  2 siblings, 0 replies; 16+ messages in thread
From: Christopher Nielsen @ 2009-10-07 22:42 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

I just bought one last week, so I haven't had much chance to hack around on it.
I am definitely interested, though.

Work has been and will continue to be busy, so I haven't had / won't
have much time to work on side projects.

On Wed, Oct 7, 2009 at 15:32, Tim Newsham <newsham@lava.net> wrote:
> Anyone playing with android phones?  There's a lot of devices
> on it that might be interesting to export.  Would be pretty
> easy to make a 9p server that gives you access to the
> GPS positioning, the accelerometer, or processed position
> (compass, pitch, roll), etc..
> Are any of these of interest to people?  Any other features
> of interest that I didnt mention?
>
> Tim Newsham
> http://www.thenewsh.com/~newsham/
>
>



-- 
Christopher Nielsen
"They who can give up essential liberty for temporary
safety, deserve neither liberty nor safety." --Benjamin Franklin



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] android hacking?
  2009-10-07 22:32 [9fans] android hacking? Tim Newsham
  2009-10-07 22:42 ` Christopher Nielsen
@ 2009-10-08  9:41 ` matt
  2009-10-08 10:12   ` hiro
  2009-10-29 20:03 ` Enrico Weigelt
  2 siblings, 1 reply; 16+ messages in thread
From: matt @ 2009-10-08  9:41 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Tim Newsham wrote:

> Anyone playing with android phones?


I have a G1 dev but I've not written a single line of code for it

You didn't mention the camera, I try not to !

What would be amazing would be attaching it via USB and importing its
/net (or some other way of turning it into a 3G modem for plan9)







^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] android hacking?
  2009-10-08  9:41 ` matt
@ 2009-10-08 10:12   ` hiro
  2009-10-08 11:28     ` matt
                       ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: hiro @ 2009-10-08 10:12 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> What would be amazing would be attaching it via USB and importing its /net
> (or some other way of turning it into a 3G modem for plan9)

Is there more about it than compiling inferno and simply exporting that device?



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] android hacking?
  2009-10-08 10:12   ` hiro
@ 2009-10-08 11:28     ` matt
  2009-10-08 14:34     ` Anthony Sorace
  2009-10-08 16:40     ` Tim Newsham
  2 siblings, 0 replies; 16+ messages in thread
From: matt @ 2009-10-08 11:28 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

hiro wrote:

>>What would be amazing would be attaching it via USB and importing its /net
>>(or some other way of turning it into a 3G modem for plan9)
>>
>>
>
>Is there more about it than compiling inferno and simply exporting that device?
>
>
>
I'm sure that would be great, drop me an email when it's finished :)




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] android hacking?
  2009-10-08 10:12   ` hiro
  2009-10-08 11:28     ` matt
@ 2009-10-08 14:34     ` Anthony Sorace
  2009-10-08 16:24       ` matt
  2009-10-08 16:44       ` Tim Newsham
  2009-10-08 16:40     ` Tim Newsham
  2 siblings, 2 replies; 16+ messages in thread
From: Anthony Sorace @ 2009-10-08 14:34 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

as i understand it, "proper" android stuff is meant to be in their
java flavor. you can load C programs, but i think only with the
dev tools. what's more, the system doesn't have the full library
we're used to on unix-like systems. i'd be fairly surprised if our
stuff (inferno, p9p, or drawterm) happened to only use the
subset available there.

which isn't to say it wouldn't be nice to have.

i think the idea of getting at the various devices these things
export would be great. this was part of the GSoC proposal for
getting drawterm on the iPhone/iPod Touch. doing it for
android would be just as neat (especially personally, since
Verizon has said they're getting android phones soon). in either
case, it should be possible to do the export in the "proper"
environment without too much hassle. for android, i'd start by
figuring out which of the java styx libraries use the subset
closest to what android offers.



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] android hacking?
  2009-10-08 14:34     ` Anthony Sorace
@ 2009-10-08 16:24       ` matt
  2009-10-08 16:44       ` Tim Newsham
  1 sibling, 0 replies; 16+ messages in thread
From: matt @ 2009-10-08 16:24 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Anthony Sorace wrote:

>as i understand it, "proper" android stuff is meant to be in their
>java flavor. you can load C programs,
>

http://google-opensource.blogspot.com/2009/06/introducing-android-scripting.html


http://www.mattcutts.com/blog/android-barcode-scanner/

Just as a proof-of-concept, here’s a barcode scanner written in six
lines of Python code:

import android
droid = android.Android()
code = droid.scanBarcode()
isbn = int(code['result']['SCAN_RESULT'])
url = “http://books.google.com?q=%d” % isbn
droid.startActivity(’android.intent.action.VIEW’, url)









^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] android hacking?
  2009-10-08 10:12   ` hiro
  2009-10-08 11:28     ` matt
  2009-10-08 14:34     ` Anthony Sorace
@ 2009-10-08 16:40     ` Tim Newsham
  2009-10-10  2:08       ` Ethan Grammatikidis
  2 siblings, 1 reply; 16+ messages in thread
From: Tim Newsham @ 2009-10-08 16:40 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

>> What would be amazing would be attaching it via USB and importing its /net
>> (or some other way of turning it into a 3G modem for plan9)
>
> Is there more about it than compiling inferno and simply exporting that
> device?

That would probably be enough, but keep in mind that while you
have linux, you dont have X.  so you'd have to deal with inferno's
graphics some other way (or just go text mode?)

Tim Newsham
http://www.thenewsh.com/~newsham/



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] android hacking?
  2009-10-08 14:34     ` Anthony Sorace
  2009-10-08 16:24       ` matt
@ 2009-10-08 16:44       ` Tim Newsham
  2009-10-08 23:10         ` hiro
  1 sibling, 1 reply; 16+ messages in thread
From: Tim Newsham @ 2009-10-08 16:44 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> i think the idea of getting at the various devices these things
> export would be great. this was part of the GSoC proposal for
> getting drawterm on the iPhone/iPod Touch. doing it for
> android would be just as neat (especially personally, since
> Verizon has said they're getting android phones soon). in either
> case, it should be possible to do the export in the "proper"
> environment without too much hassle. for android, i'd start by
> figuring out which of the java styx libraries use the subset
> closest to what android offers.

The java subset is fairly large.  I havent tried the existing
styx libs much except to check out that the com.vitanuova.styx
client code works (I dont think it supports server stuff
though).  I have my own server 9p code right now so it would
be fairly easy for me to export a simple device like gps
or the accelerometer in pure java.  Drawterm would be a lot more
work.

ps: running native C code on the existing phones is fairly easy to
do, although its probably not "really" android and may not be
guaranteed to work on future phones.

Tim Newsham
http://www.thenewsh.com/~newsham/



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] android hacking?
  2009-10-08 16:44       ` Tim Newsham
@ 2009-10-08 23:10         ` hiro
  2009-10-08 23:32           ` Tim Newsham
  2009-10-09 12:31           ` matt
  0 siblings, 2 replies; 16+ messages in thread
From: hiro @ 2009-10-08 23:10 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Is the usb port speaking the standard usb storage language?



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] android hacking?
  2009-10-08 23:10         ` hiro
@ 2009-10-08 23:32           ` Tim Newsham
  2009-10-09 12:31           ` matt
  1 sibling, 0 replies; 16+ messages in thread
From: Tim Newsham @ 2009-10-08 23:32 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> Is the usb port speaking the standard usb storage language?

I dont really know the details.  If you plug it in you can
talk to it over a debugging interface over the usb ("adb").
But you can also set it up so that the sdcard in the phone
appears to be a drive over the usb port.

The usb connector on the ADP1/htc dream/t-mobile g1
also has some extra pins that have a serial port thats
usually used for a kernel debugger.  You can turn that off
and use it as another tty device.  Some model phones by
other manufacturers dont have this serial port.

Mostly only my phone I talk to it using the "adb" link
and over tcp/ip to the wifi.

Tim Newsham
http://www.thenewsh.com/~newsham/



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] android hacking?
  2009-10-08 23:10         ` hiro
  2009-10-08 23:32           ` Tim Newsham
@ 2009-10-09 12:31           ` matt
  1 sibling, 0 replies; 16+ messages in thread
From: matt @ 2009-10-09 12:31 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

hiro wrote:

>Is the usb port speaking the standard usb storage language?
>
>
>
yes, to the SD card, no idea if you can do anything else with it



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] android hacking?
  2009-10-08 16:40     ` Tim Newsham
@ 2009-10-10  2:08       ` Ethan Grammatikidis
  0 siblings, 0 replies; 16+ messages in thread
From: Ethan Grammatikidis @ 2009-10-10  2:08 UTC (permalink / raw)
  To: 9fans

On Thu, 8 Oct 2009 06:40:03 -1000 (HST)
Tim Newsham <newsham@lava.net> wrote:

> >> What would be amazing would be attaching it via USB and importing its /net
> >> (or some other way of turning it into a 3G modem for plan9)
> >
> > Is there more about it than compiling inferno and simply exporting that
> > device?
>
> That would probably be enough, but keep in mind that while you
> have linux, you dont have X.  so you'd have to deal with inferno's
> graphics some other way (or just go text mode?)

I'm planning on ditching X on my Linux-powered Zaurus.  I can't code
for X and it's got that horrible font-breakage which prevents me using
any window manager I'd actually like, so it's going.  I may well be
wanting Inferno to output to the Linux framebuffer in the near future.

Actually I'd really like to make my own somewhat Plan 9-like window
system.  It seems possible using Mesa, I'm much happier programing
OpenGL than X, but it's the biggest project I've ever embarked on so I
sure don't want to promise anything, even to myself.

--
Ethan Grammatikidis

Those who are slower at parsing information must
necessarily be faster at problem-solving.



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] android hacking?
  2009-10-07 22:32 [9fans] android hacking? Tim Newsham
  2009-10-07 22:42 ` Christopher Nielsen
  2009-10-08  9:41 ` matt
@ 2009-10-29 20:03 ` Enrico Weigelt
  2009-10-29 23:09   ` Tim Newsham
  2 siblings, 1 reply; 16+ messages in thread
From: Enrico Weigelt @ 2009-10-29 20:03 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Tim Newsham wrote:
> Anyone playing with android phones?  There's a lot of devices
> on it that might be interesting to export.  Would be pretty
> easy to make a 9p server that gives you access to the
> GPS positioning, the accelerometer, or processed position
> (compass, pitch, roll), etc..

That's one of the next things on my 2do list ;-)

We're currently designing a new (9p-based) interface for these
kind of vector devices @gpm-dev.

Once that's done, I'll try to use my G2's accelerometer as
mouse replacement ;-)


cu
--
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 cellphone: +49 174 7066481   email: info@metux.de   skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] android hacking?
  2009-10-29 20:03 ` Enrico Weigelt
@ 2009-10-29 23:09   ` Tim Newsham
  2009-11-24 17:35     ` Enrico Weigelt
  0 siblings, 1 reply; 16+ messages in thread
From: Tim Newsham @ 2009-10-29 23:09 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> We're currently designing a new (9p-based) interface for these
> kind of vector devices @gpm-dev.

What's gpm-dev?  Can you provide more info?

> cu

Tim Newsham
http://www.thenewsh.com/~newsham/



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] android hacking?
  2009-10-29 23:09   ` Tim Newsham
@ 2009-11-24 17:35     ` Enrico Weigelt
  0 siblings, 0 replies; 16+ messages in thread
From: Enrico Weigelt @ 2009-11-24 17:35 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

* Tim Newsham <newsham@lava.net> wrote:
> >We're currently designing a new (9p-based) interface for these
> >kind of vector devices @gpm-dev.
>
> What's gpm-dev?  Can you provide more info?

The developer maillist of the "General purpose mouse" (GPM) project.

GPM is the standard driver for mice (and similar devices) on
Linux and provides things like copy-on-paste on the console.

cu
--
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt@metux.de
 mobile: +49 174 7066481   icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2009-11-24 17:35 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-07 22:32 [9fans] android hacking? Tim Newsham
2009-10-07 22:42 ` Christopher Nielsen
2009-10-08  9:41 ` matt
2009-10-08 10:12   ` hiro
2009-10-08 11:28     ` matt
2009-10-08 14:34     ` Anthony Sorace
2009-10-08 16:24       ` matt
2009-10-08 16:44       ` Tim Newsham
2009-10-08 23:10         ` hiro
2009-10-08 23:32           ` Tim Newsham
2009-10-09 12:31           ` matt
2009-10-08 16:40     ` Tim Newsham
2009-10-10  2:08       ` Ethan Grammatikidis
2009-10-29 20:03 ` Enrico Weigelt
2009-10-29 23:09   ` Tim Newsham
2009-11-24 17:35     ` Enrico Weigelt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).