Merge "crash_reporter: determine official image using ro.secure"

This commit is contained in:
Steve Fung 2015-09-29 17:17:23 +00:00 committed by Gerrit Code Review
commit 8e7209d498

View file

@ -128,7 +128,11 @@ crash_done() {
is_official_image() {
[ ${FORCE_OFFICIAL} -ne 0 ] && return 0
getprop ro.product.description | grep -q Official
if [ "$(getprop ro.secure)" = "1" ]; then
return 0
else
return 1
fi
}
# Returns 0 if the a crash test is currently running. NOTE: Mirrors