mirror of
https://github.com/Evolution-X-Devices/device_google_walleye
synced 2026-02-01 07:33:36 +00:00
Bug: 31420007 Change-Id: I1a3687a339c0830e058ac3c8b4f4a4e51bac272b Signed-off-by: Thierry Strudel <tstrudel@google.com>
52 lines
1.9 KiB
Plaintext
52 lines
1.9 KiB
Plaintext
#
|
|
# Copyright (C) 2016 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.
|
|
#
|
|
|
|
import init.${ro.hardware}.usb.rc
|
|
|
|
on early-init
|
|
mount debugfs debugfs /sys/kernel/debug
|
|
chmod 0755 /sys/kernel/debug
|
|
|
|
on init
|
|
# Support legacy paths
|
|
symlink /sdcard /mnt/sdcard
|
|
symlink /sdcard /storage/sdcard0
|
|
|
|
on fs
|
|
wait /dev/block/platform/soc/${ro.boot.bootdevice}
|
|
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
|
|
|
|
mount_all fstab.${ro.hardware}
|
|
swapon_all fstab.${ro.hardware}
|
|
|
|
# Keeping following partitions outside fstab file. As user may not have
|
|
# these partition flashed on the device. Failure to mount any partition in fstab file
|
|
# results in failure to launch late-start class.
|
|
|
|
wait /dev/block/bootdevice/by-name/cache
|
|
mount ext4 /dev/block/bootdevice/by-name/cache /cache nosuid nodev barrier=1
|
|
|
|
wait /dev/block/bootdevice/by-name/persist
|
|
mount ext4 /dev/block/bootdevice/by-name/persist /persist nosuid nodev barrier=1
|
|
restorecon_recursive /persist
|
|
mkdir /persist/data 0700 system system
|
|
|
|
wait /dev/block/bootdevice/by-name/dsp
|
|
mount ext4 /dev/block/bootdevice/by-name/dsp /dsp ro nosuid nodev barrier=1
|
|
|
|
wait /dev/block/bootdevice/by-name/modem
|
|
mount vfat /dev/block/bootdevice/by-name/modem /firmware ro shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337
|