-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Switch from omni-9.0 to aosp-11.0 - Enable retrofitted dynamic partitions - Switch to common qcom-decrypt - Update blobs for decryption Change-Id: If63d2f3900afb14c06ea8ce84d5d4b3ca1c2e45a
- Loading branch information
1 parent
4df59cd
commit 76d2f52
Showing
57 changed files
with
383 additions
and
836 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ | |
# | ||
|
||
PRODUCT_MAKEFILES := \ | ||
$(LOCAL_DIR)/omni_FP3.mk | ||
$(LOCAL_DIR)/twrp_FP3.mk |
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
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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,109 +1,41 @@ | ||
# Copyright (c) 2017-2018,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 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. | ||
# | ||
|
||
import /init.recovery.qcom_decrypt.rc | ||
|
||
on init | ||
setprop sys.usb.configfs 1 | ||
#setprop prepdecrypt.setpatch true | ||
#setprop prepdecrypt.loglevel 2 | ||
|
||
on property:ro.boot.usbcontroller=* | ||
setprop sys.usb.controller ${ro.boot.usbcontroller} | ||
write /sys/class/udc/${ro.boot.usbcontroller}/device/../mode peripheral | ||
|
||
on fs | ||
wait /dev/block/platform/soc/${ro.boot.bootdevice} | ||
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice | ||
|
||
chmod 0660 /dev/qseecom | ||
chown system drmrpc /dev/qseecom | ||
chmod 0664 /dev/ion | ||
chown system system /dev/ion | ||
|
||
install_keyring | ||
|
||
setprop ro.board.platform msm8953 | ||
start boot-1-0 | ||
start prepdecrypt | ||
|
||
on boot | ||
setprop sys.usb.config adb | ||
|
||
service prepdecrypt /sbin/prepdecrypt.sh | ||
oneshot | ||
disabled | ||
user root | ||
group root | ||
seclabel u:r:recovery:s0 | ||
|
||
service hwservicemanager /sbin/hwservicemanager | ||
user root | ||
group root | ||
disabled | ||
onrestart setprop hwservicemanager.ready false | ||
seclabel u:r:recovery:s0 | ||
|
||
service servicemanager /sbin/servicemanager | ||
disabled | ||
user root | ||
group root readproc | ||
seclabel u:r:recovery:s0 | ||
writepid /dev/cpuset/system-background/tasks | ||
|
||
# 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 boot-1-0 /sbin/[email protected] | ||
user root | ||
group root | ||
disabled | ||
seclabel u:r:recovery:s0 | ||
|
||
service gatekeeper-1-0 /sbin/[email protected] | ||
user root | ||
group root | ||
disabled | ||
seclabel u:r:recovery:s0 | ||
|
||
service keymaster-4-0 /sbin/[email protected] | ||
user root | ||
group root | ||
disabled | ||
seclabel u:r:recovery:s0 | ||
|
||
# This helps fix ld.config.txt errors from the linker on Android 8.1+ | ||
service ldconfigtxt /sbin/touch /sbin/ld.config.txt | ||
oneshot | ||
seclabel u:r:recovery:s0 | ||
|
||
on boot | ||
export LD_CONFIG_FILE /sbin/ld.config.txt | ||
# save battery by switching to interactive once booted | ||
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive | ||
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor interactive | ||
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor interactive | ||
write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor interactive | ||
|
||
on property:crypto.ready=1 | ||
start sbinqseecomd | ||
|
||
on property:crypto.ready=0 | ||
stop sbinqseecomd | ||
stop keymaster-4-0 | ||
stop gatekeeper-1-0 | ||
stop hwservicemanager | ||
stop keystore | ||
stop servicemanager | ||
|
||
on property:vendor.sys.listeners.registered=true | ||
start hwservicemanager | ||
start keymaster-4-0 | ||
start gatekeeper-1-0 | ||
start servicemanager | ||
|
||
# Handled by TWRP | ||
service keystore /sbin/keystore /tmp/misc/keystore | ||
disabled | ||
oneshot | ||
user root | ||
group root drmrpc readproc | ||
seclabel u:r:recovery:s0 | ||
writepid /dev/cpuset/foreground/tasks | ||
|
||
service keystore_auth /sbin/keystore_auth | ||
disabled | ||
oneshot | ||
user system | ||
group root | ||
seclabel u:r:recovery:s0 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.