[Q] JB-4.3 Torch, permissions, system accounts, standards and stuff
Warning Android NOOB here!!!
Talked with patch_Adams tonight via PM and he sent me some logs that pointed out why torch might not be working in some 4.3 quincyatt ROMs. At least it allowed me to get it working on PAC. (need to learn how to get that log myself) He hasn't gotten back to me yet as to whether the same thing worked in Beanstalk but I'm betting it did. Not sure about any of the other 4.3 ROMS. The torch device ( /sys/devices/virtual/ledflash/sec_ledflash/torch ) had the permissions bits -rw-rw----, UID 'system' and GID 'camera'. I flipped the bits on my device's node wide open ( -rwxrwxrwx ) and torch worked fine.
What I'm wondering is if there are any guidelines or standards as to how these things should be set up. File, directory, program and device node permission and UID/GID masks have significant implications on security and who can do what with what on what...yada yada. I haven't found any documentation anywhere that discusses this with respect to Android. Typically a phone belongs to one person and we don't "log in" to our phones like we would a network computer. While this is Linux-based it seemed strange that the concept of different system accounts existed. I was a bit surprised to see the user "system" and the group "camera" for system hardware alongside the "root" UID and GID.
Anyone know of any documentation that discusses this stuff??
PS: Yeah I know this belongs in the dev section but I can't post there yet....