commit | 1c4e84af8f365c8ca96b30738e9aea8ed8f83aa8 | [log] [tgz] |
---|---|---|
author | Alex Deymo <deymo@google.com> | Tue Sep 22 16:58:10 2015 -0700 |
committer | Alex Deymo <deymo@google.com> | Wed Sep 23 08:43:09 2015 -0700 |
tree | 9843dec65b670a21745b3bde00663b83e3b5d301 | |
parent | d7971efc3a8e54042534207a8f34bfe3b6325f3f [diff] |
Read official-build and dev-mode from the system properties. This patch determines whether we are running in "dev-mode" and whehter this is an official build in the "ro.secure" and "ro.debuggable" system properties. To reduce excessive logging output, this patch moved the logging of dev-mode and unofficial builds to the beginning of the program and logs just once. Bug: 24077521 Test: Deployed an -eng build, update_engine thinks it is in dev-mode and non-official build. Change-Id: Ib44823cb27dec3d39e1736d982869742b8211a57