From 58cb8ab9631c52a39f6666563791ef3c9db9c715 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Sun, 6 Jun 2021 23:00:56 +0200 Subject: [PATCH] sm8350-common: Install charger_fw_fstab.qti to /vendor/etc We are loading it for offline charging mode, see init.target.rc. Change-Id: Ie6f1a1f7cdf8fed740766cbfe3d59ce815e90b2f --- common.mk | 1 + rootdir/Android.mk | 8 ++++++++ rootdir/etc/charger_fw_fstab.qti | 33 ++++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 rootdir/etc/charger_fw_fstab.qti diff --git a/common.mk b/common.mk index 05056b7..6412a5b 100644 --- a/common.mk +++ b/common.mk @@ -204,6 +204,7 @@ PRODUCT_PACKAGES += \ # Common init scripts PRODUCT_PACKAGES += \ + charger_fw_fstab.qti \ fstab.qcom \ ftm_power_config.sh \ init.class_main.sh \ diff --git a/rootdir/Android.mk b/rootdir/Android.mk index 3b1a902..182b938 100644 --- a/rootdir/Android.mk +++ b/rootdir/Android.mk @@ -1,5 +1,13 @@ LOCAL_PATH := $(call my-dir) +include $(CLEAR_VARS) +LOCAL_MODULE := charger_fw_fstab.qti +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/charger_fw_fstab.qti +LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC) +include $(BUILD_PREBUILT) + include $(CLEAR_VARS) LOCAL_MODULE := fstab.qcom LOCAL_MODULE_TAGS := optional diff --git a/rootdir/etc/charger_fw_fstab.qti b/rootdir/etc/charger_fw_fstab.qti new file mode 100644 index 0000000..87dd4a9 --- /dev/null +++ b/rootdir/etc/charger_fw_fstab.qti @@ -0,0 +1,33 @@ +# Copyright (c) 2019 - 2020, The Linux Foundation. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above +# copyright notice, this list of conditions and the following +# disclaimer in the documentation and/or other materials provided +# with the distribution. +# * Neither the name of The Linux Foundation nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS +# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# Android fstab file. +# The filesystem that contains the filesystem checker binary (typically /system) cannot +# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK + +# +/dev/block/bootdevice/by-name/modem /vendor/firmware_mnt vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait,slotselect