Helping the competition
You can't get any more information than provided by the stat command that I know of - filesize, whether or not it is a symlink or a directory, # of blocks...
Bootstrapping a daemon onto the phone can be a little tricky as well, must replace an existing phone file that already has executable permission (the very oldest jailbreak trick) and that can be set to run automatically to change permissions on the phone for you.