Merge "logd: use ro.debuggable instead of ro.build.type"
This commit is contained in:
commit
d18a6d4764
3 changed files with 7 additions and 7 deletions
|
@ -1,8 +1,8 @@
|
|||
#! /system/bin/sh
|
||||
# logpersist cat start and stop handlers
|
||||
progname="${0##*/}"
|
||||
case `getprop ro.build.type` in
|
||||
userdebug|eng) ;;
|
||||
case `getprop ro.debuggable` in
|
||||
1) ;;
|
||||
*) echo "${progname} - Permission denied"
|
||||
exit 1
|
||||
;;
|
||||
|
|
|
@ -8,7 +8,7 @@ persist.logd.security bool false Enable security buffer.
|
|||
ro.device_owner bool false Override persist.logd.security to false
|
||||
ro.logd.kernel bool+ svelte+ Enable klogd daemon
|
||||
ro.logd.statistics bool+ svelte+ Enable logcat -S statistics.
|
||||
ro.build.type string if user, logd.statistics &
|
||||
ro.debuggable number if not "1", logd.statistics &
|
||||
ro.logd.kernel default false.
|
||||
persist.logd.logpersistd string Enable logpersist daemon, "logcatd"
|
||||
turns on logcat -f in logd context
|
||||
|
@ -46,10 +46,10 @@ persist.log.tag.<tag> string build default for log.tag.<tag>
|
|||
|
||||
NB:
|
||||
- bool+ - "true", "false" and comma separated list of "eng" (forced false if
|
||||
ro.build.type is "user") or "svelte" (forced false if ro.config.low_ram is
|
||||
ro.debuggable is not "1") or "svelte" (forced false if ro.config.low_ram is
|
||||
true).
|
||||
- svelte - see ro.config.low_ram for details.
|
||||
- svelte+ - see ro.config.low_ram and ro.build.type for details.
|
||||
- svelte+ - see ro.config.low_ram and ro.debuggable for details.
|
||||
- ro - <base property> temporary override, ro.<base property> platform default.
|
||||
- persist - <base property> override, persist.<base property> platform default.
|
||||
- build - VERBOSE for native, DEBUG for jvm isLoggable, or developer option.
|
||||
|
|
|
@ -202,8 +202,8 @@ bool property_get_bool(const char *key, int flag) {
|
|||
return false;
|
||||
}
|
||||
if (flag & BOOL_DEFAULT_FLAG_ENG) {
|
||||
property_get("ro.build.type", property, "");
|
||||
if (!strcmp(property, "user")) {
|
||||
property_get("ro.debuggable", property, "");
|
||||
if (strcmp(property, "1")) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue