Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cedbfc6708 | ||
|
|
b58f84e69e | ||
|
|
6805c32dee | ||
|
|
11dfbc2183 | ||
|
|
b721fa0442 | ||
|
|
c4981408f4 | ||
|
|
947a32835e | ||
|
|
ab88a4ec04 | ||
|
|
1e5643b2de | ||
|
|
419ddf1dc7 | ||
|
|
f779337e92 | ||
|
|
f924808c0a | ||
|
|
1b95974a33 |
@@ -2,7 +2,6 @@ soong_namespace {
|
||||
imports: [
|
||||
"hardware/google/interfaces",
|
||||
"hardware/google/pixel",
|
||||
"bootable/deprecated-ota",
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
@@ -32,17 +32,17 @@ BUILD_BROKEN_INCORRECT_PARTITION_IMAGES := true
|
||||
|
||||
# Architecture
|
||||
TARGET_ARCH := arm64
|
||||
TARGET_ARCH_VARIANT := armv8-2a-dotprod
|
||||
TARGET_ARCH_VARIANT := armv8-a
|
||||
TARGET_CPU_ABI := arm64-v8a
|
||||
TARGET_CPU_ABI2 :=
|
||||
TARGET_CPU_VARIANT := cortex-a76
|
||||
TARGET_CPU_VARIANT := generic
|
||||
TARGET_CPU_VARIANT_RUNTIME := cortex-a76
|
||||
|
||||
TARGET_2ND_ARCH := arm
|
||||
TARGET_2ND_ARCH_VARIANT := armv8-2a
|
||||
TARGET_2ND_ARCH_VARIANT := armv8-a
|
||||
TARGET_2ND_CPU_ABI := armeabi-v7a
|
||||
TARGET_2ND_CPU_ABI2 := armeabi
|
||||
TARGET_2ND_CPU_VARIANT := cortex-a76
|
||||
TARGET_2ND_CPU_VARIANT := generic
|
||||
TARGET_2ND_CPU_VARIANT_RUNTIME := cortex-a76
|
||||
|
||||
# ART
|
||||
@@ -238,6 +238,7 @@ VENDOR_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
|
||||
# Sepolicy
|
||||
include device/qcom/sepolicy_vndr/SEPolicy.mk
|
||||
include device/lineage/sepolicy/libperfmgr/sepolicy.mk
|
||||
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += $(COMMON_PATH)/sepolicy/private
|
||||
BOARD_SEPOLICY_DIRS += $(COMMON_PATH)/sepolicy/vendor
|
||||
|
||||
# SurfaceFlinger
|
||||
|
||||
@@ -105,29 +105,29 @@ public class Action {
|
||||
|
||||
// process the actions
|
||||
if (action.equals(ACTION_HOME)) {
|
||||
triggerVirtualKeypress(KeyEvent.KEYCODE_HOME, isLongpress);
|
||||
triggerVirtualKeypress(context, KeyEvent.KEYCODE_HOME, isLongpress);
|
||||
return;
|
||||
} else if (action.equals(ACTION_BACK)) {
|
||||
triggerVirtualKeypress(KeyEvent.KEYCODE_BACK, isLongpress);
|
||||
triggerVirtualKeypress(context, KeyEvent.KEYCODE_BACK, isLongpress);
|
||||
return;
|
||||
} else if (action.equals(ACTION_SEARCH)) {
|
||||
triggerVirtualKeypress(KeyEvent.KEYCODE_SEARCH, isLongpress);
|
||||
triggerVirtualKeypress(context, KeyEvent.KEYCODE_SEARCH, isLongpress);
|
||||
return;
|
||||
} else if (action.equals(ACTION_MENU)
|
||||
|| action.equals(ACTION_MENU_BIG)) {
|
||||
triggerVirtualKeypress(KeyEvent.KEYCODE_MENU, isLongpress);
|
||||
triggerVirtualKeypress(context, KeyEvent.KEYCODE_MENU, isLongpress);
|
||||
return;
|
||||
} else if (action.equals(ACTION_IME_NAVIGATION_LEFT)) {
|
||||
triggerVirtualKeypress(KeyEvent.KEYCODE_DPAD_LEFT, isLongpress);
|
||||
triggerVirtualKeypress(context, KeyEvent.KEYCODE_DPAD_LEFT, isLongpress);
|
||||
return;
|
||||
} else if (action.equals(ACTION_IME_NAVIGATION_RIGHT)) {
|
||||
triggerVirtualKeypress(KeyEvent.KEYCODE_DPAD_RIGHT, isLongpress);
|
||||
triggerVirtualKeypress(context,KeyEvent.KEYCODE_DPAD_RIGHT, isLongpress);
|
||||
return;
|
||||
} else if (action.equals(ACTION_IME_NAVIGATION_UP)) {
|
||||
triggerVirtualKeypress(KeyEvent.KEYCODE_DPAD_UP, isLongpress);
|
||||
triggerVirtualKeypress(context, KeyEvent.KEYCODE_DPAD_UP, isLongpress);
|
||||
return;
|
||||
} else if (action.equals(ACTION_IME_NAVIGATION_DOWN)) {
|
||||
triggerVirtualKeypress(KeyEvent.KEYCODE_DPAD_DOWN, isLongpress);
|
||||
triggerVirtualKeypress(context, KeyEvent.KEYCODE_DPAD_DOWN, isLongpress);
|
||||
return;
|
||||
} else if (action.equals(ACTION_TORCH)) {
|
||||
try {
|
||||
@@ -305,8 +305,10 @@ public class Action {
|
||||
}
|
||||
}
|
||||
|
||||
public static void triggerVirtualKeypress(final int keyCode, boolean longpress) {
|
||||
InputManager im = InputManager.getInstance();
|
||||
public static void triggerVirtualKeypress(Context context,final int keyCode,boolean longpress) {
|
||||
InputManager im = context.getSystemService(InputManager.class);
|
||||
if (im == null) return;
|
||||
|
||||
long now = SystemClock.uptimeMillis();
|
||||
int downflags = 0;
|
||||
int upflags = 0;
|
||||
|
||||
13
common.mk
13
common.mk
@@ -185,10 +185,8 @@ PRODUCT_COPY_FILES += \
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml
|
||||
|
||||
# Health
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.health-service.qti \
|
||||
android.hardware.health-service.qti_recovery
|
||||
# Health
|
||||
$(call inherit-product, vendor/qcom/opensource/healthd-ext/health-vendor-product.mk)
|
||||
|
||||
# HIDL
|
||||
PRODUCT_PACKAGES += \
|
||||
@@ -232,7 +230,6 @@ PRODUCT_PACKAGES += \
|
||||
|
||||
# Recovery
|
||||
PRODUCT_PACKAGES += \
|
||||
init.recovery.qcom.sh \
|
||||
init.recovery.qcom.rc \
|
||||
init.recovery.usb.rc
|
||||
|
||||
@@ -348,6 +345,7 @@ PRODUCT_PROPERTY_OVERRIDES += \
|
||||
# Power
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.power-service.lineage-libperfmgr \
|
||||
android.hardware.power@1.2.vendor \
|
||||
libqti-perfd-client
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
@@ -413,7 +411,6 @@ PRODUCT_SOONG_NAMESPACES += \
|
||||
kernel/realme/sm7125 \
|
||||
hardware/google/interfaces \
|
||||
hardware/google/pixel \
|
||||
bootable/deprecated-ota \
|
||||
hardware/lineage/interfaces/power-libperfmgr \
|
||||
hardware/oplus \
|
||||
hardware/qcom-caf/common/libqti-perfd-client
|
||||
@@ -482,10 +479,6 @@ PRODUCT_PACKAGES += \
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/qcom/opensource/vibrator/excluded-input-devices.xml:$(TARGET_COPY_OUT_VENDOR)/etc/excluded-input-devices.xml
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
prebuilts/vndk/v30/arm64/arch-arm64-armv8-a/shared/vndk-core/libgui.so:$(TARGET_COPY_OUT_SYSTEM)/lib64/libxxx.so \
|
||||
prebuilts/vndk/v30/arm64/arch-arm-armv8-a/shared/vndk-core/libgui.so:$(TARGET_COPY_OUT_SYSTEM)/lib/libxxx.so \
|
||||
|
||||
# Vulkan
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute.xml \
|
||||
|
||||
@@ -57,4 +57,7 @@
|
||||
<!-- Location on the screen of the center of the physical power button. -->
|
||||
<dimen name="physical_power_button_center_screen_location_y">912px</dimen>
|
||||
|
||||
<!-- Blur radius behind Notification Shade -->
|
||||
<dimen name="max_shade_window_blur_radius">17dp</dimen>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2018 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.
|
||||
-->
|
||||
<resources>
|
||||
<integer name="max_depth_blur_radius">11</integer>
|
||||
<dimen name="max_depth_blur_radius_enhanced">15dp</dimen>
|
||||
</resources>
|
||||
@@ -82,15 +82,6 @@ prebuilt_etc {
|
||||
vendor: true,
|
||||
}
|
||||
|
||||
// Recovery-specific file in bin/
|
||||
prebuilt_etc {
|
||||
name: "init.recovery.qcom.sh",
|
||||
src: "bin/init.recovery.qcom.sh",
|
||||
filename: "init.recovery.qcom.sh",
|
||||
recovery: true,
|
||||
vendor: true,
|
||||
}
|
||||
|
||||
// Vendor-specific shell scripts in bin/
|
||||
sh_binary {
|
||||
name: "init.at.class_main.sh",
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
#!/system/bin/sh
|
||||
|
||||
while [ ! -d /dev/block/mapper ]; do
|
||||
sleep 1
|
||||
done
|
||||
|
||||
ln -s /dev/block/mapper/* /dev/block/bootdevice/by-name/
|
||||
|
||||
exit 0
|
||||
1
sepolicy/private/seapp_contexts
Normal file
1
sepolicy/private/seapp_contexts
Normal file
@@ -0,0 +1 @@
|
||||
user=bluetooth seinfo=default name=com.android.bluetooth domain=bluetooth type=bluetooth_data_file levelFrom=all isPrivApp=true
|
||||
2
sepolicy/vendor/platform_app.te
vendored
2
sepolicy/vendor/platform_app.te
vendored
@@ -2,4 +2,4 @@ allow platform_app vendor_sysfs_kgsl:lnk_file read;
|
||||
|
||||
r_dir_file(platform_app, proc_decimal)
|
||||
|
||||
|
||||
allow platform_app vendor_bluetooth_prop:file read;
|
||||
|
||||
3
sepolicy/vendor/property_contexts
vendored
3
sepolicy/vendor/property_contexts
vendored
@@ -4,3 +4,6 @@ ro.hwui.render_ahead u:object_r:default_prop:s0
|
||||
ro.config.avoid_gfx_accel u:object_r:config_prop:s0
|
||||
persist.vendor.fingerprint.fp_id u:object_r:vendor_default_prop:s0
|
||||
oppo.goodix.fp u:object_r:default_prop:s0
|
||||
|
||||
# Bluetooth LEA
|
||||
ro.vendor.bluetooth.lea.* u:object_r:vendor_bluetooth_prop:s0
|
||||
@@ -112,6 +112,7 @@ ro.hardware.egl=adreno
|
||||
ro.hardware.vulkan=adreno
|
||||
ro.opengles.version=196610
|
||||
ro.vendor.cabc.enable=true
|
||||
ro.surface_flinger.blur_disabled_by_default=true
|
||||
vendor.display.comp_mask=0
|
||||
vendor.display.disable_decimation=1
|
||||
vendor.display.disable_excl_rect=0
|
||||
@@ -124,6 +125,7 @@ vendor.display.qdcm.mode_combine=1
|
||||
vendor.display.enable_default_color_mode=1
|
||||
vendor.gralloc.disable_ubwc=0
|
||||
vendor.display.disable_metadata_dynamic_fps=1
|
||||
vendor.display.enable_perf_hint_large_comp_cycle=1
|
||||
ro.surface_flinger.enable_frame_rate_override=false
|
||||
ro.hwui.render_ahead=10
|
||||
ro.surface_flinger.set_idle_timer_ms=80
|
||||
@@ -151,6 +153,9 @@ ro.qcom.adreno.qgl.ShaderStorageImageExtendedFormats=0
|
||||
# FM
|
||||
vendor.hw.fm.init=0
|
||||
|
||||
# FUSE passthrough
|
||||
persist.sys.fuse.passthrough.enable=true
|
||||
|
||||
#Graphics
|
||||
debug.hwui.use_hint_manager=true
|
||||
debug.hwui.target_cpu_time_percent=30
|
||||
|
||||
Reference in New Issue
Block a user