Compare commits
37 Commits
android-11
...
android-8.
Author | SHA1 | Date | |
---|---|---|---|
|
50a598c339 | ||
|
93abd86dac | ||
|
5a9c96ec32 | ||
|
b9a1e2ec5c | ||
|
4299615fed | ||
|
e17d1dd03b | ||
|
d5356ee268 | ||
|
3772908b38 | ||
|
ea419e9266 | ||
|
242ad2b8dd | ||
|
8165b69e2c | ||
|
4ca7363d39 | ||
|
e7ca75151b | ||
|
313c678c18 | ||
|
5570b50a52 | ||
|
26514452f0 | ||
|
2cd74842ae | ||
|
898773be18 | ||
|
9e83890d87 | ||
|
887436270d | ||
|
bb8623c559 | ||
|
d69d0ee67b | ||
|
44de60f56c | ||
|
9ece067361 | ||
|
b27a9affd2 | ||
|
3e0f024cad | ||
|
afff20d8a4 | ||
|
b01ca6ae48 | ||
|
bdbd72c7da | ||
|
99d0cda107 | ||
|
4ba8184713 | ||
|
e4185d0cb0 | ||
|
006a105a32 | ||
|
7e339c7b92 | ||
|
76abd6cb76 | ||
|
85658e55b3 | ||
|
ddd243d375 |
1
Android.bp
Normal file
1
Android.bp
Normal file
@ -0,0 +1 @@
|
|||||||
|
subdirs = [ "cmds" ]
|
11
base.mk
11
base.mk
@ -71,3 +71,14 @@ PRODUCT_COPY_FILES += \
|
|||||||
device/phh/treble/twrp/twrp.rc:system/etc/init/twrp.rc \
|
device/phh/treble/twrp/twrp.rc:system/etc/init/twrp.rc \
|
||||||
device/phh/treble/twrp/twrp.sh:system/bin/twrp.sh \
|
device/phh/treble/twrp/twrp.sh:system/bin/twrp.sh \
|
||||||
device/phh/treble/twrp/busybox-armv7l:system/bin/busybox_phh
|
device/phh/treble/twrp/busybox-armv7l:system/bin/busybox_phh
|
||||||
|
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
device/phh/treble/files/samsung-gpio_keys.kl:system/phh/samsung-gpio_keys.kl \
|
||||||
|
device/phh/treble/files/samsung-sec_touchscreen.kl:system/phh/samsung-sec_touchscreen.kl
|
||||||
|
|
||||||
|
#MTK incoming SMS fix
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
mtk-sms-fwk-ready
|
||||||
|
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
Stk
|
||||||
|
14
cmds/Android.bp
Normal file
14
cmds/Android.bp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
cc_binary {
|
||||||
|
name: "mtk-sms-fwk-ready",
|
||||||
|
srcs: [
|
||||||
|
"mtk-sms-fwk-ready.cpp",
|
||||||
|
],
|
||||||
|
shared_libs: [
|
||||||
|
"vendor.mediatek.hardware.radio@2.6",
|
||||||
|
"libutils",
|
||||||
|
"libhidlbase",
|
||||||
|
],
|
||||||
|
init_rc: [
|
||||||
|
"mtk-sms-fwk-ready.rc"
|
||||||
|
],
|
||||||
|
}
|
12
cmds/mtk-sms-fwk-ready.cpp
Normal file
12
cmds/mtk-sms-fwk-ready.cpp
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#include <iostream>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <vendor/mediatek/hardware/radio/2.6/IRadio.h>
|
||||||
|
|
||||||
|
using ::vendor::mediatek::hardware::radio::V2_6::IRadio;
|
||||||
|
using ::android::sp;
|
||||||
|
|
||||||
|
int main(int argc, char **argv) {
|
||||||
|
auto svc = IRadio::getService(argv[1]);
|
||||||
|
|
||||||
|
svc->setSmsFwkReady(1);
|
||||||
|
}
|
3
cmds/mtk-sms-fwk-ready.rc
Normal file
3
cmds/mtk-sms-fwk-ready.rc
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
on property:sys.boot_completed=1
|
||||||
|
exec u:r:phhsu_daemon:s0 root -- /system/bin/mtk-sms-fwk-ready slot1
|
||||||
|
exec u:r:phhsu_daemon:s0 root -- /system/bin/mtk-sms-fwk-ready slot2
|
11
files/samsung-gpio_keys.kl
Normal file
11
files/samsung-gpio_keys.kl
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# Copyright (C) 2018 The LineageOS Project
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
key 114 VOLUME_DOWN
|
||||||
|
key 115 VOLUME_UP
|
||||||
|
key 116 POWER
|
||||||
|
key 703 ASSIST
|
||||||
|
key 103 SYSTEM_NAVIGATION_UP
|
||||||
|
key 105 SYSTEM_NAVIGATION_LEFT
|
||||||
|
key 106 SYSTEM_NAVIGATION_RIGHT
|
||||||
|
key 108 SYSTEM_NAVIGATION_DOWN
|
29
files/samsung-sec_touchscreen.kl
Normal file
29
files/samsung-sec_touchscreen.kl
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# Copyright (c) 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 "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.
|
||||||
|
|
||||||
|
key 172 WAKEUP
|
||||||
|
|
2
gapps.mk
2
gapps.mk
@ -16,7 +16,7 @@ PRODUCT_PACKAGES += \
|
|||||||
CalculatorGoogle \
|
CalculatorGoogle \
|
||||||
PrebuiltDeskClockGoogle \
|
PrebuiltDeskClockGoogle \
|
||||||
CalendarGooglePrebuilt \
|
CalendarGooglePrebuilt \
|
||||||
GoogleHome \
|
GoogleNow \
|
||||||
LatinImeGoogle \
|
LatinImeGoogle \
|
||||||
phh-overrides
|
phh-overrides
|
||||||
|
|
||||||
|
12
generate.sh
12
generate.sh
@ -2,14 +2,21 @@
|
|||||||
|
|
||||||
rom_script=''
|
rom_script=''
|
||||||
if [ -n "$1" ];then
|
if [ -n "$1" ];then
|
||||||
|
if echo "$1" | grep -qF /;then
|
||||||
|
rom_script=''
|
||||||
|
for i in "$@";do
|
||||||
|
rom_script="$rom_script"$'\n''$(call inherit-product, '$i')'
|
||||||
|
done
|
||||||
|
else
|
||||||
rom_script='$(call inherit-product, device/phh/treble/'$1'.mk)'
|
rom_script='$(call inherit-product, device/phh/treble/'$1'.mk)'
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
echo 'PRODUCT_MAKEFILES := \' > AndroidProducts.mk
|
echo 'PRODUCT_MAKEFILES := \' > AndroidProducts.mk
|
||||||
|
|
||||||
for part in a ab;do
|
for part in a ab;do
|
||||||
for apps in vanilla gapps foss gapps-go;do
|
for apps in vanilla gapps foss gapps-go;do
|
||||||
for arch in arm64 arm;do
|
for arch in arm64 arm a64;do
|
||||||
for su in yes no;do
|
for su in yes no;do
|
||||||
apps_suffix=""
|
apps_suffix=""
|
||||||
apps_script=""
|
apps_script=""
|
||||||
@ -39,6 +46,9 @@ for part in a ab;do
|
|||||||
if [ "$arch" == "arm" ];then
|
if [ "$arch" == "arm" ];then
|
||||||
vndk="vndk-binder32.mk"
|
vndk="vndk-binder32.mk"
|
||||||
fi
|
fi
|
||||||
|
if [ "$arch" == "a64" ];then
|
||||||
|
vndk="vndk32.mk"
|
||||||
|
fi
|
||||||
|
|
||||||
su_suffix='N'
|
su_suffix='N'
|
||||||
if [ "$su" == "yes" ];then
|
if [ "$su" == "yes" ];then
|
||||||
|
@ -71,7 +71,7 @@ namespace.sphal.links = default,vndk,rs
|
|||||||
namespace.sphal.link.default.shared_libs = libc.so:libm.so:libdl.so:libstdc++.so:liblog.so:libnativewindow.so:libEGL.so:libsync.so:libGLESv1_CM.so:libGLESv2.so:libvndksupport.so:libz.so
|
namespace.sphal.link.default.shared_libs = libc.so:libm.so:libdl.so:libstdc++.so:liblog.so:libnativewindow.so:libEGL.so:libsync.so:libGLESv1_CM.so:libGLESv2.so:libvndksupport.so:libz.so
|
||||||
|
|
||||||
# WARNING: only VNDK-SP libs can be listed here. DO NOT EDIT this line.
|
# WARNING: only VNDK-SP libs can be listed here. DO NOT EDIT this line.
|
||||||
namespace.sphal.link.vndk.shared_libs = android.hardware.renderscript@1.0.so:android.hardware.graphics.allocator@2.0.so:android.hardware.graphics.mapper@2.0.so:android.hardware.graphics.common@1.0.so:android.hidl.memory@1.0.so:libhwbinder.so:libbase.so:libcutils.so:libhardware.so:libhidlbase.so:libhidlmemory.so:libhidltransport.so:libion.so:libutils.so:libc++.so:android.hidl.base@1.0.so:libion.so
|
namespace.sphal.link.vndk.shared_libs = android.hardware.renderscript@1.0.so:android.hardware.graphics.allocator@2.0.so:android.hardware.graphics.mapper@2.0.so:android.hardware.graphics.common@1.0.so:android.hidl.memory@1.0.so:libhwbinder.so:libbase.so:libcutils.so:libhardware.so:libhidlbase.so:libhidlmemory.so:libhidltransport.so:libion.so:libutils.so:libc++.so:android.hidl.base@1.0.so
|
||||||
|
|
||||||
# Renderscript gets separate namespace
|
# Renderscript gets separate namespace
|
||||||
namespace.sphal.link.rs.shared_libs = libRS_internal.so
|
namespace.sphal.link.rs.shared_libs = libRS_internal.so
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
<signature>MIIDxzCCAq+gAwIBAgIJAML7APITsgV7MA0GCSqGSIb3DQEBBQUAMHoxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRYwFAYDVQQHDA1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKDAtHb29nbGUgSW5jLjEQMA4GA1UECwwHQW5kcm9pZDEWMBQGA1UEAwwNY2hyb21lX2NhbmFyeTAeFw0xNjAyMjkxOTA5MDdaFw00MzA3MTcxOTA5MDdaMHoxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRYwFAYDVQQHDA1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKDAtHb29nbGUgSW5jLjEQMA4GA1UECwwHQW5kcm9pZDEWMBQGA1UEAwwNY2hyb21lX2NhbmFyeTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANXfeAoZlr0ya1HBzIfAz/nLLjpPJeAPvuX5dueaxmiQgv2hNG22acriFuiiJI6TU0t8AIVJD5Ifbc4OOuA0zeFhdzWWGnmTRH6x27WI7bzOKnAqOvv21ZBmE9i8Vo++K13xWdTs3qVn1bn9oUONxFu0wKDzXYZhoj1Jom0RZGjXm16xuPlEuOzMcjiNBDoYuxPAXkMcK/G1gP4P4nAV8Rd/GGIjKRS/SUtcShhoAMOQhs4WIEkUrvEVRwhBDIbpM87oFbCVdBH38r0XS6F6CdhPJsKFhoEfq4c01HZqNmDpCPA8AAcCuSWqmXoTIqs7OqkWgduE2bInbWU7WMaTl+kCAwEAAaNQME4wHQYDVR0OBBYEFB/AsC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xFu0wKDzXYZhoj1Jom0RZGjXm16xuPlEuOzMcjiNBDoYuxPAXkMcK/G1gP4P4nAV8Rd/GGIjKRS/SUtcShhoAMOQhs4WIEkUrvEVRwhBDIbpM87oFbCVdBH38r0XS6F6CdhPJsKFhoEfq4c01HZqNmDpCPA8AAcCuSWqmXoTIqs7OqkWgduE2bInbWU7WMaTl+kCAwEAAaNQME4wHQYDVR0OBBYEFB/AsC4iPAqaLoNytNSx29qByI7+MB8GA1UdIwQYMBaAFB/AsC4iPAqaLoNytNSx29qByI7+MAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBAMb2Td3ro/+MGVnCPAbwBSOZMVLUKGqt6zr8CShW9mtFHnmy29EaWSYYAj1M4+6Vpkq85NsgBEck7rnUjV8A3Q0NKdTys1KRKJqVvQRBN6SwqQenSf/abxQCa8Z+69rh+3BkIU1HLtu5lrMDZwon5H91L5mpORn6vItd20uW132lwSDeUEW2CHslTrodoFuTUcSUlRiq/URfUH3baO1QHXkxpQwrBPKL5deJfcZnxh5MAtAGSQL7gHvayEFlDppETXdDO7vgGTH2dEK2TjKWALbGiKkxSqjRyTNt4/FOj10TqNRdUamj+ydVJgzGQ8bki4Vc6NnKm/r4asusxapkVR4=</signature>
|
||||||
</webviewprovider>
|
</webviewprovider>
|
||||||
<webviewprovider description="Google WebView" packageName="com.google.android.webview" availableByDefault="true">
|
<webviewprovider description="Google WebView" packageName="com.google.android.webview" availableByDefault="true">
|
||||||
<signature>MIIDuzCCAqOgAwIBAgIJANi6DgBQG4ZTMA0GCSqGSIb3DQEBBQUAMHQxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRYwFAYDVQQHDA1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKDAtHb29nbGUgSW5jLjEQMA4GA1UECwwHQW5kcm9pZDEQMA4GA1UEAwwHd2VidmlldzAeFw0xNDA4MDgyMzIwMjBaFw00MTEyMjQyMzIwMjBaMHQxCzAJBgNVB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FR76+5UdwFBQI3Gn22g6puJnVukQm/wXQ+ajoiS4QclrNlixoDQsZ4STLH4+Wju2wIWKFFArIhVEIlbamq+p6BghuzH3aIz/Fy0YTQKi7SA+0fuNeCaqlSm5pYSt6p5CH89y1Fr+wFc5r3iLRnUwRcy08ESC7bZJnxV3d/YQ5valTxBbzku/dQbXVj/xg69H8l8M=</signature>
|
||||||
</webviewprovider>
|
</webviewprovider>
|
||||||
<!-- The default WebView implementation -->
|
<!-- The default WebView implementation -->
|
||||||
<webviewprovider description="AOSP WebView" packageName="com.android.webview" availableByDefault="true" isFallback="true" />
|
<webviewprovider description="AOSP WebView" packageName="com.android.webview" availableByDefault="true" isFallback="true" />
|
||||||
|
@ -1,7 +1,12 @@
|
|||||||
#!/system/bin/sh
|
#!/system/bin/sh
|
||||||
|
|
||||||
if grep -qF android.hardware.boot /vendor/manifest.xml;then
|
[ "$(getprop vold.decrypt)" == "trigger_restart_min_framework" ] && exit 0
|
||||||
bootctl mark-boot-successful
|
if [ -f /vendor/bin/mtkmal ];then
|
||||||
|
if [ "$(getprop persist.mtk_ims_support)" == 1 -o "$(getprop persist.mtk_epdg_support)" == 1 ];then
|
||||||
|
setprop persist.mtk_ims_support 0
|
||||||
|
setprop persist.mtk_epdg_support 0
|
||||||
|
reboot
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Clear looping services
|
#Clear looping services
|
||||||
@ -12,3 +17,7 @@ getprop | \
|
|||||||
while read svc ;do
|
while read svc ;do
|
||||||
setprop ctl.stop $svc
|
setprop ctl.stop $svc
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if grep -qF android.hardware.boot /vendor/manifest.xml;then
|
||||||
|
bootctl mark-boot-successful
|
||||||
|
fi
|
||||||
|
7
phhgsi_a64_a/BoardConfig.mk
Normal file
7
phhgsi_a64_a/BoardConfig.mk
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
include build/make/target/board/generic_arm_a/BoardConfig.mk
|
||||||
|
include device/phh/treble/board-base.mk
|
||||||
|
|
||||||
|
ifeq ($(BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE),)
|
||||||
|
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1572864000
|
||||||
|
endif
|
||||||
|
TARGET_USES_64_BIT_BINDER := true
|
@ -1,4 +1,6 @@
|
|||||||
include build/make/target/board/generic_arm64_a/BoardConfig.mk
|
include build/make/target/board/generic_arm64_a/BoardConfig.mk
|
||||||
include device/phh/treble/board-base.mk
|
include device/phh/treble/board-base.mk
|
||||||
|
|
||||||
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648
|
ifeq ($(BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE),)
|
||||||
|
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2080374784
|
||||||
|
endif
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
include build/make/target/board/generic_arm64_ab/BoardConfig.mk
|
include build/make/target/board/generic_arm64_ab/BoardConfig.mk
|
||||||
include device/phh/treble/board-base.mk
|
include device/phh/treble/board-base.mk
|
||||||
|
|
||||||
|
ifeq ($(BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE),)
|
||||||
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648
|
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648
|
||||||
|
endif
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
include build/make/target/board/generic_arm_a/BoardConfig.mk
|
include build/make/target/board/generic_arm_a/BoardConfig.mk
|
||||||
include device/phh/treble/board-base.mk
|
include device/phh/treble/board-base.mk
|
||||||
|
|
||||||
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1056964608
|
ifeq ($(BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE),)
|
||||||
|
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1313583104
|
||||||
|
endif
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
include build/make/target/board/generic_arm_ab/BoardConfig.mk
|
include build/make/target/board/generic_arm_ab/BoardConfig.mk
|
||||||
include device/phh/treble/board-base.mk
|
include device/phh/treble/board-base.mk
|
||||||
|
|
||||||
|
ifeq ($(BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE),)
|
||||||
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1073741824
|
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1073741824
|
||||||
|
endif
|
||||||
|
75
rw-system.sh
75
rw-system.sh
@ -40,6 +40,37 @@ fixSPL() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
changeKeylayout() {
|
||||||
|
cp -a /system/usr/keylayout /mnt/phh/keylayout
|
||||||
|
changed=false
|
||||||
|
|
||||||
|
if getprop ro.vendor.build.fingerprint | \
|
||||||
|
grep -qE -e ".*(crown|star)[q2]*lte.*" -e ".*(SC-0[23]K|SCV3[89]).*";then
|
||||||
|
changed=true
|
||||||
|
|
||||||
|
cp /system/phh/samsung-gpio_keys.kl /mnt/phh/keylayout/gpio_keys.kl
|
||||||
|
cp /system/phh/samsung-sec_touchscreen.kl /mnt/phh/keylayout/sec_touchscreen.kl
|
||||||
|
chmod 0644 /mnt/phh/keylayout/gpio_keys.kl /mnt/phh/keylayout/sec_touchscreen.kl
|
||||||
|
fi
|
||||||
|
|
||||||
|
if getprop ro.vendor.build.fingerprint |grep -iq \
|
||||||
|
-e xiaomi/polaris -e xiaomi/sirius -e xiaomi/dipper \
|
||||||
|
-e xiaomi/wayne -e xiaomi/jasmine -e xiaomi/jasmine_sprout \
|
||||||
|
-e xiaomi/platina -e xiaomi/sakura -e xiaomi/ysl \
|
||||||
|
-e xiaomi/nitrogen -e xiaomi/daisy;then
|
||||||
|
cp /system/phh/empty /mnt/phh/keylayout/uinput-goodix.kl
|
||||||
|
chmod 0644 /mnt/phh/keylayout/uinput-goodix.kl
|
||||||
|
cp /system/phh/empty /mnt/phh/keylayout/uinput-fpc.kl
|
||||||
|
chmod 0644 /mnt/phh/keylayout/uinput-fpc.kl
|
||||||
|
changed=true
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$changed" == true ];then
|
||||||
|
mount -o bind /mnt/phh/keylayout /system/usr/keylayout
|
||||||
|
restorecon -R /system/usr/keylayout
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
if mount -o remount,rw /system;then
|
if mount -o remount,rw /system;then
|
||||||
resize2fs $(grep ' /system ' /proc/mounts |cut -d ' ' -f 1) || true
|
resize2fs $(grep ' /system ' /proc/mounts |cut -d ' ' -f 1) || true
|
||||||
elif mount -o remount,rw /;then
|
elif mount -o remount,rw /;then
|
||||||
@ -48,7 +79,13 @@ fi
|
|||||||
mount -o remount,ro /system || true
|
mount -o remount,ro /system || true
|
||||||
mount -o remount,ro / || true
|
mount -o remount,ro / || true
|
||||||
|
|
||||||
|
mkdir -p /mnt/phh/
|
||||||
|
mount -t tmpfs -o rw,nodev,relatime,mode=755,gid=0 none /mnt/phh || true
|
||||||
|
set +e
|
||||||
fixSPL
|
fixSPL
|
||||||
|
set -e
|
||||||
|
|
||||||
|
changeKeylayout
|
||||||
|
|
||||||
if grep vendor.huawei.hardware.biometrics.fingerprint /vendor/manifest.xml;then
|
if grep vendor.huawei.hardware.biometrics.fingerprint /vendor/manifest.xml;then
|
||||||
mount -o bind system/phh/huawei/fingerprint.kl /vendor/usr/keylayout/fingerprint.kl
|
mount -o bind system/phh/huawei/fingerprint.kl /vendor/usr/keylayout/fingerprint.kl
|
||||||
@ -87,3 +124,41 @@ if grep -qF 'mkdir /data/.fps 0770 system fingerp' vendor/etc/init/hw/init.mmi.r
|
|||||||
chown system:9015 /sys/devices/soc/soc:fpc_fpc1020/irq
|
chown system:9015 /sys/devices/soc/soc:fpc_fpc1020/irq
|
||||||
chown system:9015 /sys/devices/soc/soc:fpc_fpc1020/irq_cnt
|
chown system:9015 /sys/devices/soc/soc:fpc_fpc1020/irq_cnt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if getprop ro.vendor.build.fingerprint |grep -q -i \
|
||||||
|
-e xiaomi/clover -e xiaomi/wayne -e xiaomi/sakura \
|
||||||
|
-e xiaomi/nitrogen -e xiaomi/whyred -e xiaomi/platina \
|
||||||
|
-e xiaomi/ysl;then
|
||||||
|
setprop persist.sys.qcom-brightness $(cat /sys/class/leds/lcd-backlight/max_brightness)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if getprop ro.vendor.build.fingerprint |grep -q -i -e xiaomi/wayne -e xiaomi/jasmine;then
|
||||||
|
setprop persist.imx376_sunny.low.lux 310
|
||||||
|
setprop persist.imx376_sunny.light.lux 280
|
||||||
|
setprop persist.imx376_ofilm.low.lux 310
|
||||||
|
setprop persist.imx376_ofilm.light.lux 280
|
||||||
|
fi
|
||||||
|
|
||||||
|
for f in /vendor/lib/mtk-ril.so /vendor/lib64/mtk-ril.so /vendor/lib/libmtk-ril.so /vendor/lib64/libmtk-ril.so;do
|
||||||
|
[ ! -f $f ] && continue
|
||||||
|
ctxt="$(ls -lZ $f |grep -oE 'u:object_r:[^:]*:s0')"
|
||||||
|
b="$(echo "$f"|tr / _)"
|
||||||
|
|
||||||
|
cp -a $f /mnt/phh/$b
|
||||||
|
sed -i \
|
||||||
|
-e 's/AT+EAIC=2/AT+EAIC=3/g' \
|
||||||
|
/mnt/phh/$b
|
||||||
|
chcon "$ctxt" /mnt/phh/$b
|
||||||
|
mount -o bind /mnt/phh/$b $f
|
||||||
|
|
||||||
|
setprop persist.sys.phh.radio.force_cognitive true
|
||||||
|
setprop persist.sys.radio.ussd.fix true
|
||||||
|
done
|
||||||
|
|
||||||
|
mount -o bind /system/phh/empty /vendor/overlay/SysuiDarkTheme/SysuiDarkTheme.apk || true
|
||||||
|
mount -o bind /system/phh/empty /vendor/overlay/SysuiDarkTheme/SysuiDarkThemeOverlay.apk || true
|
||||||
|
|
||||||
|
#If we have both Samsung and AOSP power hal, take Samsung's
|
||||||
|
if [ -f /vendor/bin/hw/vendor.samsung.hardware.miscpower@1.0-service ];then
|
||||||
|
mount -o bind /system/phh/empty /vendor/bin/hw/android.hardware.power@1.0-service
|
||||||
|
fi
|
||||||
|
1
sepolicy/bootanim.te
Normal file
1
sepolicy/bootanim.te
Normal file
@ -0,0 +1 @@
|
|||||||
|
allow bootanim gpu_device:dir r_dir_perms;
|
@ -24,7 +24,7 @@ if [ -n "$FOUND_HUAWEI" ];then
|
|||||||
setprop debug.hwui.profile true
|
setprop debug.hwui.profile true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if getprop ro.hardware |grep -qiE qcom;then
|
if getprop ro.hardware |grep -qiE -e qcom -e judyln -e judypn;then
|
||||||
FOUND_QCOM=1
|
FOUND_QCOM=1
|
||||||
setprop persist.sys.overlay.devinputjack true
|
setprop persist.sys.overlay.devinputjack true
|
||||||
fi
|
fi
|
||||||
|
3
vndk.rc
3
vndk.rc
@ -4,6 +4,9 @@ on post-fs
|
|||||||
mount none /system/etc/usb_audio_policy_configuration.xml /vendor/etc/usb_audio_policy_configuration.xml bind
|
mount none /system/etc/usb_audio_policy_configuration.xml /vendor/etc/usb_audio_policy_configuration.xml bind
|
||||||
export LD_CONFIG_FILE /system/etc/ld.config.${persist.sys.vndk}.txt
|
export LD_CONFIG_FILE /system/etc/ld.config.${persist.sys.vndk}.txt
|
||||||
|
|
||||||
|
# HACK to fix Bluetooth audio on custom roms
|
||||||
|
mount none /vendor/lost+found /vendor/etc/audio bind
|
||||||
|
|
||||||
service phh_on_boot /system/bin/phh-on-boot.sh
|
service phh_on_boot /system/bin/phh-on-boot.sh
|
||||||
oneshot
|
oneshot
|
||||||
disabled
|
disabled
|
||||||
|
Loading…
Reference in New Issue
Block a user