ls -l on Android device

Mike Frysinger vapier at gentoo.org
Fri Jan 8 03:41:47 UTC 2010


On Thursday 07 January 2010 19:10:13 Tom Spear wrote:
> Hi all, I have an Android (ARM7) based device which I have loaded
> busybox on. I noticed recently that using the default shell, when I do
> an ls -l, the long format outputs the user name and group name that
> map to whatever uid and gid own a particular file. The same happens
> when I compile busybox for my x86 PC and do it there. However, when I
> cross compile it for my Android device, and place it on there, it only
> ever shows the uid and gid number in the long output.
> 
> I looked through the code for busybox and for the default shell, and
> while I'm not an expert with C, I think it's due to the fact that
> Android uses a stripped down libc called bionic. They use a different
> function that works slightly differently.
> 
> Anyways, I'd like to request a config option or test that checks if we
> are trying to link against bionic and uses the proper function for the
> Android OS.

what exactly do you mean by "a different function" ?  if the standard 
functions that busybox uses do not do the correct thing under "bionic", that 
sounds like a bug in "bionic".

please research the issue and post the exact functions/structures that are in 
play here.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20100107/dd602faa/attachment.pgp>


More information about the busybox mailing list