Merge "Turn on feature flag to use bugreport API by default"
This commit is contained in:
committed by
Android (Google) Code Review
commit
73e3aa192e
@@ -110,11 +110,11 @@ public class BugreportPreference extends CustomDialogPreferenceCompat {
|
|||||||
try {
|
try {
|
||||||
final Context context = getContext();
|
final Context context = getContext();
|
||||||
// USE_BUGREPORT_API is a system property flag used to switch back to the old workflow
|
// USE_BUGREPORT_API is a system property flag used to switch back to the old workflow
|
||||||
// using dumpstate. By using the default value as false, old workflow remains
|
// using dumpstate. By using the default value as true, new workflow using Bugreport
|
||||||
// untouched. To switch to the new workflow using Bugreport API run the following
|
// API is triggered. To switch to the old workflow directly using dumpstate run the
|
||||||
// commands on the terminal:
|
// following commands on the terminal:
|
||||||
// * adb root
|
// * adb root
|
||||||
// * adb shell setprop settings_use_bugreport_api true
|
// * adb shell setprop settings_use_bugreport_api false
|
||||||
if (FeatureFlagUtils.isEnabled(context, FeatureFlagUtils.USE_BUGREPORT_API)) {
|
if (FeatureFlagUtils.isEnabled(context, FeatureFlagUtils.USE_BUGREPORT_API)) {
|
||||||
Intent triggerShellBugreport = new Intent();
|
Intent triggerShellBugreport = new Intent();
|
||||||
triggerShellBugreport.setAction(INTENT_BUGREPORT_REQUESTED);
|
triggerShellBugreport.setAction(INTENT_BUGREPORT_REQUESTED);
|
||||||
|
Reference in New Issue
Block a user