Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1619214b authored by Steve Fung's avatar Steve Fung
Browse files

crash_reporter: determine official image using ro.secure

Instead of grepping the build description for "Official", use
the property ro.secure.

Bug: 24404853
Change-Id: Ia0423b3524ac9472db6a782509b56c9834c8d26e
parent d490db98
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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