From 6ac2b06ae52fbff18ec32e303220f75097c2d7ab Mon Sep 17 00:00:00 2001 From: kierancyphus Date: Wed, 4 Oct 2023 17:48:54 +0800 Subject: [PATCH] Add Lassen Default Mask to list of masks In this case, there is no metric or trace configuration that we need to add so simply adding a `.conf` file is sufficient. Test: build, flash and run `adb shell find vendor -name *lassen_default*` and ensure that the file is there. Bug: 302435001 Change-Id: Id43fb3f3db86cdbe0c3a24f7a6e0af6fa14ae9d8 --- device.mk | 4 +++ radio/config/lassen_default/Android.bp | 33 ++++++++++++++++++++++++ radio/config/lassen_default/logging.conf | 1 + 3 files changed, 38 insertions(+) create mode 100644 radio/config/lassen_default/Android.bp create mode 100644 radio/config/lassen_default/logging.conf diff --git a/device.mk b/device.mk index fef49dc2..8d4c5eeb 100644 --- a/device.mk +++ b/device.mk @@ -1001,6 +1001,10 @@ PRODUCT_PACKAGES += \ empty_modem_log_mask.nprf \ empty_modem_log_mask.xml +# Lassen default log mask +PRODUCT_PACKAGES += \ + lassen_default.conf + endif # Vibrator Diag diff --git a/radio/config/lassen_default/Android.bp b/radio/config/lassen_default/Android.bp new file mode 100644 index 00000000..35b0715d --- /dev/null +++ b/radio/config/lassen_default/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: "lassen_default.conf", + vendor: true, + proprietary: true, + src: "logging.conf", + relative_install_path: "radio/log_masks/lassen_default" +} diff --git a/radio/config/lassen_default/logging.conf b/radio/config/lassen_default/logging.conf new file mode 100644 index 00000000..69fbd5fe --- /dev/null +++ b/radio/config/lassen_default/logging.conf @@ -0,0 +1 @@ +modem_logging_control START -o /data/vendor/radio/logs/always-on -n 50 -s 50 -i 1 --enable_exmetric --enable_exmetric_internal \ No newline at end of file