Various a-only fixes:
Create apex folder Create mnt/storage/full Create /product symlink Start apex Override zygote
This commit is contained in:
parent
2e4d8bcb0a
commit
d3f427ccd3
10
apex-setup.rc
Normal file
10
apex-setup.rc
Normal file
@ -0,0 +1,10 @@
|
||||
on early-fs
|
||||
mkdir /mnt/runtime/full 0755 root root
|
||||
mkdir /mnt/runtime/full/self 0755 root root
|
||||
mkdir /apex 0777 root root
|
||||
mount tmpfs tmpfs /apex mode=0755,uid=0,gid=0
|
||||
restorecon /apex
|
||||
exec u:r:su:s0 -- /system/bin/apexd --bootstrap
|
||||
export ANDROID_RUNTIME_ROOT /apex/com.android.runtime
|
||||
export ANDROID_TZDATA_ROOT /apex/com.android.tzdata
|
||||
symlink /system/product /product
|
23
base.mk
23
base.mk
@ -38,7 +38,6 @@ PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/phh/treble/vndk-detect:system/bin/vndk-detect \
|
||||
device/phh/treble/vndk.rc:system/etc/init/vndk.rc \
|
||||
device/phh/treble/ld.config.26.txt:system/etc/ld.config.26.txt \
|
||||
|
||||
#USB Audio
|
||||
PRODUCT_COPY_FILES += \
|
||||
@ -53,7 +52,7 @@ PRODUCT_COPY_FILES += \
|
||||
|
||||
# LineageOS build may need this to make NFC work
|
||||
PRODUCT_PACKAGES += \
|
||||
NfcNci
|
||||
NfcNci \
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/phh/treble/rw-system.sh:system/bin/rw-system.sh \
|
||||
@ -64,11 +63,11 @@ PRODUCT_COPY_FILES += \
|
||||
device/phh/treble/phh-on-boot.sh:system/bin/phh-on-boot.sh
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
treble-environ-rc
|
||||
treble-environ-rc \
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
bootctl \
|
||||
vintf
|
||||
vintf \
|
||||
|
||||
# Fix Offline Charging on Huawmeme
|
||||
PRODUCT_PACKAGES += \
|
||||
@ -141,3 +140,19 @@ PRODUCT_COPY_FILES += \
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.software.secure_lock_screen.xml:system/etc/permissions/android.software.secure_lock_screen.xml \
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/phh/treble/apex-setup.rc:system/etc/init/apex-setup.rc \
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/phh/treble/ld.config.26.txt:system/etc/ld.config.26.txt \
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
system/core/rootdir/init.zygote32.rc:system/etc/init/zygote/init.zygote32.rc \
|
||||
system/core/rootdir/init.zygote32_64.rc:system/etc/init/zygote/init.zygote32_64.rc \
|
||||
system/core/rootdir/init.zygote64_32.rc:system/etc/init/zygote/init.zygote64_32.rc \
|
||||
system/core/rootdir/init.zygote64.rc:system/etc/init/zygote/init.zygote64.rc \
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/av/apex/mediaswcodec.rc:system/etc/init/mediaswcodec-treble.rc \
|
||||
device/phh/treble/environ/init.treble-environ.rc:system/etc/init/init.treble-environ.rc \
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user