forked from TeamWin/android_device_asus_X01BD
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: Ie91f483eb4b7fea29eb6a68657d654b3459e6ced
- Loading branch information
Showing
32 changed files
with
1,396 additions
and
535 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# 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 | ||
|
||
#TODO: Add 'check' as fs_mgr_flags with data partition. | ||
# Currently we dont have e2fsck compiled. So fs check would failed. | ||
|
||
# Non-A/B fstab.qcom variant | ||
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags> | ||
# Huaiqn modify by liunianliang for non-A/B system, 2018/12/10 begin | ||
# /dev/block/bootdevice/by-name/system / ext4 ro,barrier=1,discard wait,verify | ||
# Huaiqn modify by liunianliang for non-A/B system, 2018/12/10 end | ||
/dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,barrier=1,noauto_da_alloc,discard,noatime,lazytime wait,check,forceencrypt=footer,quota,reservedsize=128M | ||
/devices/soc/c084000.sdhci/mmc_host* /storage/sdcard1 vfat nosuid,nodev wait,voldmanaged=sdcard1:auto,encryptable=footer | ||
/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults | ||
/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/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 | ||
/devices/soc/a800000.ssusb/a800000.dwc3/xhci-hcd.0.auto* /storage/usbotg vfat nosuid,nodev wait,voldmanaged=usbotg:auto | ||
/dev/block/bootdevice/by-name/dsp /vendor/dsp ext4 ro,nosuid,nodev,barrier=1 wait | ||
/dev/block/bootdevice/by-name/cache /cache ext4 nosuid,nodev,noatime,barrier=1 wait | ||
/dev/block/bootdevice/by-name/persist /mnt/vendor/persist ext4 noatime,nosuid,nodev,barrier=1 wait |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,26 @@ | ||
# Copyright (c) 2009-2012, 2014-2015, 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 BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 early-init | ||
mkdir /firmware 0771 system system | ||
|
||
on fs | ||
wait /dev/block/platform/soc/${ro.boot.bootdevice} | ||
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice | ||
on init | ||
chmod 0660 /dev/qseecom | ||
chown system drmrpc /dev/qseecom | ||
chmod 0664 /dev/ion | ||
chown system system /dev/ion | ||
install_keyring | ||
|
||
# Needed to make qseecomd work in recovery | ||
chmod 0777 /dev/qseecom | ||
chmod 0664 /dev/ion | ||
chown system system /dev/ion | ||
|
||
setprop crypto.ready 0 | ||
on fs | ||
wait /dev/block/platform/soc/${ro.boot.bootdevice} | ||
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice | ||
install_keyring | ||
mount vfat /dev/block/bootdevice/by-name/modem /firmware ro shortname=lower uid=1000 gid=1000 dmask=227 fmask=337 | ||
setprop crypto.ready 1 | ||
|
||
# Separate copy needed to use /sbin/linker64 instead of /system/bin/linker64 | ||
# separate copy needed to use /sbin/linker64 instead of /system/bin/linker64 | ||
service sbinqseecomd /sbin/qseecomd | ||
user root | ||
group root | ||
disabled | ||
seclabel u:r:recovery:s0 | ||
|
||
service prepdecrypt /sbin/prepdecrypt.sh | ||
oneshot | ||
disabled | ||
user root | ||
group root | ||
seclabel u:r:recovery:s0 | ||
|
||
service hwservicemanager /sbin/hwservicemanager | ||
user root | ||
group root | ||
|
@@ -75,8 +41,7 @@ service keystore_auth /sbin/keystore_auth | |
disabled | ||
seclabel u:r:recovery:s0 | ||
|
||
# keystore is started and stopped on demand by TWRP | ||
service keystore /sbin/keystore /tmp/misc/keystore | ||
service keystore /sbin/keystore /data/misc/keystore | ||
user root | ||
group root drmrpc readproc | ||
disabled | ||
|
@@ -94,19 +59,29 @@ service keymaster-3-0 /sbin/[email protected] | |
disabled | ||
seclabel u:r:recovery:s0 | ||
|
||
on init | ||
on boot | ||
# Workaround for adb not coming up | ||
setprop sys.usb.config mtp,adb | ||
setprop sys.usb.config adb | ||
start hwservicemanager | ||
start prepdecrypt | ||
|
||
# Double tap to wake | ||
chown system system /proc/tpd_gesture | ||
chmod 644 /proc/tpd_gesture | ||
write /proc/tpd_gesture 1 | ||
|
||
on property:crypto.ready=0 | ||
stop sbinqseecomd | ||
stop keymaster-3-0 | ||
stop gatekeeper-1-0 | ||
stop hwservicemanager | ||
stop keystore | ||
stop servicemanager | ||
|
||
on property:crypto.ready=1 | ||
start sbinqseecomd | ||
|
||
on property:vendor.sys.listeners.registered=true | ||
start hwservicemanager | ||
start keymaster-3-0 | ||
start gatekeeper-1-0 | ||
start servicemanager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.