Still no 100% sure about your requirement, approach and goal.
Anyway, I assume (please confirm, since I'm wrong in the most of
times) that you are not trying to take a shortcut like (netcfg eth0
dhcp)  to make your interface/device to work and what you really want
is something like Wifi or Bluetooth that has a nice setting ui with a
status icon and can work with other interfaces(eg. 3g, airplan mode)
correctly. And you are willing to add new code into the framework for
your interface. For this, you can start at the files in
framework/base/wifi/*.java

Also, in Android-x86, we have implemented Ethernet support,  you may
take a look at
http://git.android-x86.org/?p=platform/frameworks/base.git;a=commit;h=73c8442658704e5749c5fc6fd6f93c15fcf1d7c6
http://git.android-x86.org/?p=platform/frameworks/base.git;a=commit;h=ed0db68a4733396c22b4fe88ff72ad0699e0fc49
http://git.android-x86.org/?p=platform/frameworks/base.git;a=commit;h=b3de8efe6b88a345310abb71e890025d50caf86b

On Sat, Jan 23, 2010 at 11:50 AM, Metuki Sabhe <sabhe.met...@gmail.com> wrote:
> Hi Yi Sun,
>
> Can you please elaborate ?
>
> I am adding a new interface which will have a gateway to the internet,
> what should I do to make the framework recognize it ?
>
> Can you please point me to a file(s) I should use as a reference ?
>
> Thanks,
> Sabhe
>
> On Sat, Jan 23, 2010 at 8:03 PM, Yi Sun <beyo...@gmail.com> wrote:
>> You need to do this in the status tracker as the wifi does
>>
>> On Sat, Jan 23, 2010 at 7:59 AM, Metuki Sabhe <sabhe.met...@gmail.com> wrote:
>>> hi,
>>>
>>> I use dhcpcd to get DHCP properties on a new interface I created (not
>>> wifi).
>>> DHCP succeeds, and I can see all the dhcp.myinterface0.xxx properties
>>> get set correctly.
>>> But dns still doesn't work, and indeed net.dns1 is still not set by
>>> dhcpcd, only dhcp.xxx.dns1 is set.
>>>
>>> I tried to add "setprop net.dns1 xxx" to the file:
>>> to /system/etc/dhcpcd/dhcpcd-hooks/20-dns.conf
>>> but it didn't work, because dhcpcd runs not as root anymore
>>> (can I prevent it from dropping the root credentials btw ? i couldn't
>>> find how).
>>>
>>> How should I get net.dns1 to be set too ?
>>> What is the relation between dhcp.xxx.dns1 and net.dns1 ?
>>> Who is setting net.dns1 ?
>>> I guess that the framework is doing that, but should it work
>>> automagically on any interface ?
>>> Anyway I can do that from dhcpcd ?
>>>
>>> thanks!!!
>>> sabhe
>>>
>>> --
>>> unsubscribe: android-porting+unsubscr...@googlegroups.com
>>> website: http://groups.google.com/group/android-porting
>>
>>
>>
>> --
>> Android-x86
>> http://www.android-x86.org
>>
>> --
>> unsubscribe: android-porting+unsubscr...@googlegroups.com
>> website: http://groups.google.com/group/android-porting
>
> --
> unsubscribe: android-porting+unsubscr...@googlegroups.com
> website: http://groups.google.com/group/android-porting



-- 
Android-x86
http://www.android-x86.org

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to