I got your point.  I will try other way to get my result.

I hope your raised open question can be addressed in this forum and it
can be closed soon to provide a convenient way for developer for some
specific purpose.

On Mar 14, 11:47 pm, Jean-Baptiste Queru <[email protected]> wrote:
> You'd have to run as root, but that's not possible. Very little of the
> system runs as root (in fact even the system server itself, which is
> the core of the android runtime, doesn't run as root).
>
> JBQ
>
> On Sat, Mar 14, 2009 at 8:32 AM, [email protected]
>
>
>
>
>
> <[email protected]> wrote:
>
> > Is there any workaround I can do to use port 223 at the moment?  Will
> > this exception happen if I run my application as root?  Is it possible
> > runing my application ( myapp.apk) as root ? Thanks.
>
> > On Mar 14, 11:06 pm, Jean-Baptiste Queru <[email protected]> wrote:
> >> We normally prefer to keep this groups for discussions about changes
> >> in Android that affect application writers. Android-developers might
> >> have been a more appropriate group for your question, though this is
> >> the right place to discuss how to improve the situation.
>
> >> The short answer is: yes, Android applications can't access ports
> >> lower than 1024. That's a bit of an unfortunate situation. I don't
> >> believe that there's been any change in that area between the original
> >> release and the latest source code.
>
> >> I believe that one of the open questions is to decide whether access
> >> to low ports should be granted under the regular internet permission,
> >> whether a separate permission should cover all the low ports, or
> >> whether the low ports should be individually covered by separate
> >> permissions (in which case the list of such ports and the way they're
> >> grouped would have to be decided).
>
> >> JBQ
>
> >> On Sat, Mar 14, 2009 at 7:56 AM, [email protected]
>
> >> <[email protected]> wrote:
>
> >> > I can not find answer from [email protected], so post
> >> > here again.
>
> >> > The java.net.BindException happened when I tried to new MulticastSocket
> >> > (223). It should be because the port 223 is lower than 1024.  I tried
> >> > with a normal Java application (not Android), the socket can be
> >> > created successfully.  So, this access control should only be from
> >> > Android platform.
>
> >> >  Is there any way to use the socket port lower than 1024 in Android?
> >> > My application has to use this port to receive data from other
> >> > official/commercial tool which I can not change. I've added INTERNET
> >> > permission and I can create the socket successfully if I change it to
> >> > other port bigger than 1023.
>
> >> --
> >> Jean-Baptiste M. "JBQ" Queru
> >> Android Engineer, Google.
>
> >> Questions sent directly to me that have no reason for being private
> >> will likely get ignored or forwarded to a public forum with no further
> >> warning.- Hide quoted text -
>
> >> - Show quoted text -
>
> --
> Jean-Baptiste M. "JBQ" Queru
> Android Engineer, Google.
>
> Questions sent directly to me that have no reason for being private
> will likely get ignored or forwarded to a public forum with no further
> warning.- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to