From 9c8f2bdaeb74a23ea6cdade1f169900e8f27958e Mon Sep 17 00:00:00 2001 From: Alan Chen Date: Fri, 10 Nov 2023 10:05:11 +0800 Subject: [PATCH] Add extensive_logging config file Bug: 302417853 Test: manual, file shows on device Change-Id: I930d93ab5f3275bf39373cea51067b9787286da0 --- device.mk | 7 +++- radio/config/extensive_logging/Android.bp | 33 +++++++++++++++++++ .../extensive_logging/extensive_logging.conf | 1 + 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 radio/config/extensive_logging/Android.bp create mode 100644 radio/config/extensive_logging/extensive_logging.conf diff --git a/device.mk b/device.mk index 1c929cb6..a2f1bc0e 100644 --- a/device.mk +++ b/device.mk @@ -422,6 +422,10 @@ PRODUCT_PROPERTY_OVERRIDES += \ persist.vendor.verbose_logging_enabled=false endif +# Vendor modem extensive logging default property +PRODUCT_PROPERTY_OVERRIDES += \ + persist.vendor.modem.extensive_logging_enabled=false + # CP Logging properties PRODUCT_PROPERTY_OVERRIDES += \ ro.vendor.sys.modem.logging.loc = /data/vendor/slog \ @@ -987,7 +991,8 @@ PRODUCT_PACKAGES += \ logging.conf \ default.cfg \ default.nprf \ - default_metrics.xml + default_metrics.xml \ + extensive_logging.conf # Log Masks for logmasklibrary below # default modem log mask diff --git a/radio/config/extensive_logging/Android.bp b/radio/config/extensive_logging/Android.bp new file mode 100644 index 00000000..679e4e46 --- /dev/null +++ b/radio/config/extensive_logging/Android.bp @@ -0,0 +1,33 @@ +// +// Copyright (C) 2023 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "//device/google/zuma:device_google_zuma_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: [ + "//device/google/zuma:device_google_zuma_license", + ], +} + +prebuilt_etc { + name: "extensive_logging.conf", + vendor: true, + proprietary: true, + src: "extensive_logging.conf", + relative_install_path: "modem" +} diff --git a/radio/config/extensive_logging/extensive_logging.conf b/radio/config/extensive_logging/extensive_logging.conf new file mode 100644 index 00000000..9772cde6 --- /dev/null +++ b/radio/config/extensive_logging/extensive_logging.conf @@ -0,0 +1 @@ +modem_logging_control START -o /data/vendor/radio/logs/always-on -n 50 -s 50 -i 0 --enable_exmetric --enable_exmetric_internal --enable_dsp \ No newline at end of file