see "android/system/core/logcat/logcat.cpp"

and

find openLogFile function.

===============================================
static int openLogFile (const char *pathname)
{
    return open(g_outputFileName, O_WRONLY | O_APPEND | O_CREAT, 
                     S_IRUSR | S_IWUSR);
}
===============================================

When open Logfile, openLogFile function set logfile's permission.


2012년 12월 18일 화요일 오전 10시 3분 4초 UTC+9, Modem Bsp 님의 말:
>
> Hello.
>
> I use logcat, I extract log file(ex. main, radio, system, events)
> So, I typed to below by init.rc
> -----------
> service logcat-events /system/bin/logcat -v time -b events -f 
> /data/logger/events.log -n 4 -r 4096
> oneshot
>  on property:persist.service.events.enable=1
> start logcat-events
>  on property:persist.service.events.enable=0
> stop logcat-events
> ----------
> And then, by adb, I use 'start logcat-events'.
> The results file's permission is 0600, But I can't take 'root permission' 
> for some reason.
> So I use usr permission. I want to 0604 permission for log files.
>
> If I typed 'logcat -v time -b events -f /data/logger/events.log -n 4 -r 
> 4096' by adb shell, file permission is 0604.
> But if I typed 'start logcat-events', file permission is 0600.
> How to set logcat file permission by init.rc service.
> Please......
>

-- 
-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to