From da54e5f2dd09f2860afa5f1d6bb758417e69344f Mon Sep 17 00:00:00 2001
From: Felipe Leme <felipeal@google.com>
Date: Mon, 29 Oct 2018 14:06:14 -0700
Subject: [PATCH] Added system property (dumpstate.unroot) to run dumpstate as
 shell.

This is useful to test how it would behave on devices with user builds.

Bug: 117980186
Test: adb shell setprop dumpstate.unroot true && \
      adb shell cmd activity bug-report --progress

Change-Id: If9094bbe0c29e8180f1b35d2b4ac95343a1bd0eb
---
 public/property_contexts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/public/property_contexts b/public/property_contexts
index 5a24274d6..36357b77c 100644
--- a/public/property_contexts
+++ b/public/property_contexts
@@ -172,6 +172,7 @@ aac_drc_reference_level u:object_r:exported2_default_prop:s0 exact int
 ro.aac_drc_effect_type u:object_r:exported2_default_prop:s0 exact int
 drm.64bit.enabled u:object_r:exported2_default_prop:s0 exact bool
 dumpstate.dry_run u:object_r:exported_dumpstate_prop:s0 exact bool
+dumpstate.unroot u:object_r:exported_dumpstate_prop:s0 exact bool
 hal.instrumentation.enable u:object_r:exported2_default_prop:s0 exact bool
 init.svc.bugreport u:object_r:exported2_default_prop:s0 exact string
 init.svc.console u:object_r:exported2_default_prop:s0 exact string
-- 
GitLab