Disable userdebug diagnostics
Change-Id: Icbdc3a61ab7b27f2aa0a6a07181b96edd9ee191a
This commit is contained in:
parent
35f66e77be
commit
d26fdcfef2
23 changed files with 23 additions and 24 deletions
|
@ -179,7 +179,7 @@ int main() {
|
|||
|
||||
printf("\n------ UFS error history ------\n");
|
||||
std::string build_type = android::base::GetProperty(BUILD_TYPE_PROPERTY, "");
|
||||
if (build_type == "userdebug") {
|
||||
if (build_type == "eng") {
|
||||
std::string sg_read_buffer = "/vendor/bin/sg_read_buffer";
|
||||
std::ifstream sg_read_buffer_file(sg_read_buffer.c_str());
|
||||
if (sg_read_buffer_file.is_open()) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
on property:ro.build.type=userdebug
|
||||
on property:ro.build.type=eng
|
||||
write /dev/sys/block/bootdevice/pixel/enable_pixel_ufs_logging 1
|
||||
chown system /dev/sg3
|
||||
|
||||
|
|
|
@ -3,6 +3,6 @@ BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/storage/sepolicy
|
|||
PRODUCT_PACKAGES += dump_storage
|
||||
|
||||
# Pixel storage tool
|
||||
PRODUCT_PACKAGES_DEBUG += \
|
||||
PRODUCT_PACKAGES_ENG += \
|
||||
sg_write_buffer \
|
||||
sg_read_buffer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue