mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_polaris
synced 2026-01-27 14:27:18 +00:00
polaris: Rename rootdir to init and migrate to blueprints
Change-Id: I6a1e20817445ce0f25bb04fbf91d4883effcec4a
This commit is contained in:
18
init/Android.bp
Normal file
18
init/Android.bp
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// Copyright (C) 2024 The LineageOS Project
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
prebuilt_etc {
|
||||
name: "fstab.qcom",
|
||||
src: "fstab.qcom",
|
||||
soc_specific: true,
|
||||
ramdisk_available: true,
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "init.target.rc",
|
||||
src: "init.target.rc",
|
||||
sub_dir: "init/hw",
|
||||
soc_specific: true,
|
||||
}
|
||||
21
init/fstab.qcom
Normal file
21
init/fstab.qcom
Normal file
@@ -0,0 +1,21 @@
|
||||
# Android fstab file.
|
||||
# The filesystem that contains the filesystem e2fsck binary (typically /system) cannot
|
||||
# specify 'check', and must come before any filesystems that do specify 'check'
|
||||
|
||||
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
|
||||
system /system ext4 ro,barrier=1,discard wait,logical,first_stage_mount
|
||||
system_ext /system_ext ext4 ro,barrier=1,discard wait,logical,first_stage_mount
|
||||
product /product ext4 ro,barrier=1,discard wait,logical,first_stage_mount
|
||||
vendor /vendor ext4 ro,barrier=1,discard wait,logical,first_stage_mount
|
||||
odm /odm ext4 ro,barrier=1,discard wait,logical,first_stage_mount
|
||||
/dev/block/bootdevice/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=0,noauto_da_alloc latemount,wait,check,fileencryption=ice,quota
|
||||
/dev/block/bootdevice/by-name/modem /vendor/firmware_mnt vfat ro,shortname=lower,uid=0,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait
|
||||
/dev/block/bootdevice/by-name/dsp /vendor/dsp ext4 ro,nosuid,nodev,barrier=1 wait
|
||||
/dev/block/bootdevice/by-name/persist /mnt/vendor/persist ext4 noatime,nosuid,nodev,barrier=1 wait
|
||||
/dev/block/bootdevice/by-name/bluetooth /vendor/bt_firmware vfat ro,shortname=lower,uid=1002,gid=3002,dmask=227,fmask=337,context=u:object_r:bt_firmware_file:s0 wait
|
||||
/dev/block/bootdevice/by-name/cache /cache ext4 noatime,nosuid,nodev,barrier=1 wait
|
||||
/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults
|
||||
/dev/block/bootdevice/by-name/boot /boot emmc defaults recoveryonly
|
||||
/dev/block/bootdevice/by-name/recovery /recovery emmc defaults recoveryonly
|
||||
|
||||
/devices/platform/soc/a600000.ssusb/a600000.dwc3/xhci-hcd.0.auto* /storage/usbotg vfat nosuid,nodev wait,voldmanaged=usbotg:auto
|
||||
32
init/init.target.rc
Normal file
32
init/init.target.rc
Normal file
@@ -0,0 +1,32 @@
|
||||
# Copyright (c) 2013-2018, 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.
|
||||
#
|
||||
#
|
||||
|
||||
on fs
|
||||
chmod 644 /mnt/vendor/persist/audio/us_manual_cal
|
||||
chmod 644 /persist/audio/us_manual_cal
|
||||
Reference in New Issue
Block a user