From 246b0fd0d9cccc28150f71d55d817f9cacf2a7e0 Mon Sep 17 00:00:00 2001 From: Yusuke Sato Date: Thu, 25 Feb 2016 10:51:57 -0800 Subject: [PATCH] Use ro.debuggable instead of ro.build.type Change-Id: I4d7c8c353ff47fbeee065b2c4fdd984768d0da00 --- init/perfboot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init/perfboot.py b/init/perfboot.py index 91e6c2bcb..713290bcd 100755 --- a/init/perfboot.py +++ b/init/perfboot.py @@ -191,9 +191,9 @@ def restore_dropbox(device, original_dropbox_max_files): def init_perf(device, output, record_list, tags): device.wait() - build_type = device.get_prop('ro.build.type') + debuggable = device.get_prop('ro.debuggable') original_dropbox_max_files = None - if build_type != 'user': + if debuggable == '1': # Workaround for Dropbox issue (http://b/20890386). original_dropbox_max_files = disable_dropbox(device)