ANDROID: dm: allow adb disable-verity only in userdebug
authorBadhri Jagan Sridharan <Badhri@google.com>
Mon, 27 Jun 2016 23:25:55 +0000 (16:25 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Thu, 18 Aug 2016 13:26:03 +0000 (18:56 +0530)
commit255fb5b67821db231dcc6e23da14fce3bb7ce2bb
treee1e5955c1151ba1bfa4f9b2e01829005fb80d09b
parentd5dc479e87d584f924f44a45082a221f4a21bfa2
ANDROID: dm: allow adb disable-verity only in userdebug

adb disable-verity was allowed when the phone is in the
unlocked state. Since the driver is now aware of the build
variant, honor "adb disable-verity" only in userdebug
builds.

(Cherry-picked from
https://partner-android-review.git.corp.google.com/#/c/622117)

BUG: 29276559
Signed-off-by: Badhri Jagan Sridharan <Badhri@google.com>
Change-Id: I7ce9f38d8c7a62361392c5a8ccebb288f8a3a2ea
drivers/md/dm-android-verity.c