okay...that was a sufficient explanation. I presume that since the ability to do things like SEND_SMS are not available natively, the question does not arise. However, with the recent introduction of the ability to record audio from native code, there should be a permission check for it (android.permission.RECORD_AUDIO) Is it a similar patch like the internet check.?
On Dec 20, 8:18 pm, Chris Stratton <cs07...@gmail.com> wrote: > For which permission? There are a variety of different ways things > are handled. > > For example, access to a hardware device is often protected by the > unix permissions of the device file and filesystems/mounts. > > Network permission is done with a very short patch to add a check for > the hardcoded android network group id for internet-type sockets, but > not for unix domain ones. > > And of course there are syscalls that only work for the superuser, as > on a normal linux kernel. > > On Dec 19, 4:15 pm, Earlence <earlencefe...@gmail.com> wrote: > > > but a little more detailed explanation. > > > On Dec 19, 10:13 pm, Earlence <earlencefe...@gmail.com> wrote: > > > > yup. more or less. > > > > On Dec 19, 9:48 pm, hedwin <hedwin.kon...@gmail.com> wrote: > > > > > In various parts in the android source code calls are made to getuid, > > > > getgid to verify whether parts of the code are allowed to execute > > > > based > > > > on file permissions. Is that what you are looking for? > > > > > On Sun, Dec 19, 2010 at 9:15 AM, Earlence <earlencefe...@gmail.com> > > > > wrote: > > > > > Hi, > > > > > > I've been looking around for code that performs permission > > > > > verification Eg: verifying whether a uid has the rights to perform a > > > > > certain operation. Where in the kernel sources is this located? > > > > > > -- > > > > > unsubscribe: android-kernel+unsubscr...@googlegroups.com > > > > > website:http://groups.google.com/group/android-kernel -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel