├── system_ext.prop
├── sepolicy
├── vendor
│ ├── property.te
│ ├── domain.te
│ ├── bluetooth.te
│ ├── vendor_qtelephony.te
│ ├── wcnss_service.te
│ ├── hal_bluetooth_qti.te
│ ├── hal_audio_default.te
│ ├── hal_iop_default.te
│ ├── hal_perf_default.te
│ ├── init.te
│ ├── platform_app.te
│ ├── thermal-engine.te
│ ├── system_app.te
│ ├── hal_power_default.te
│ ├── hal_lineage_touch_default.te
│ ├── hal_ifaa.te
│ ├── property_contexts
│ ├── hal_param.te
│ ├── hwservice.te
│ ├── sensors.te
│ ├── vendor_init.te
│ ├── hal_cameraHIDL.te
│ ├── device.te
│ ├── tee.te
│ ├── attributes
│ ├── opf.te
│ ├── hal_lineage_livedisplay_qti.te
│ ├── hal_nfc_default.te
│ ├── rild.te
│ ├── file.te
│ ├── dashd.te
│ ├── wifi-mac-generator.te
│ ├── hal_param_default.te
│ ├── hal_ifaa_default.te
│ ├── hal_camera_default.te
│ ├── hal_cameraHIDL_default.te
│ ├── hwservice_contexts
│ ├── hal_fingerprint_device.te
│ ├── file_contexts
│ └── genfs_contexts
├── public
│ └── file.te
└── private
│ ├── seapp_contexts
│ └── pocketmode_app.te
├── setup-makefiles.py
├── odm.prop
├── livedisplay
├── .clang-format
├── vendor.lineage.livedisplay-service.oneplus_sdm845.xml
├── vendor.lineage.livedisplay-service.oneplus_sdm845.rc
├── Android.bp
├── service.cpp
├── DisplayModes.h
└── DisplayModes.cpp
├── pocketmode
├── proguard.flags
├── Android.bp
├── AndroidManifest.xml
└── src
│ └── org
│ └── lineageos
│ └── pocketmode
│ ├── BootCompletedReceiver.java
│ ├── PocketModeService.java
│ └── PocketSensor.java
├── configs
├── gps
│ ├── gps.conf
│ ├── lowi.conf
│ ├── flp.conf
│ ├── xtwifi.conf
│ ├── apdr.conf
│ ├── sap.conf
│ └── izat.conf
├── public.libraries.txt
├── privapp-permissions-hotword.xml
├── component-overrides.xml
├── system_properties.xml
├── privapp-permissions-qti.xml
├── nfc
│ ├── libnfc-nci.conf
│ └── libnfc-nxp_RF.conf
├── qti_whitelist.xml
└── media_codecs_performance.xml
├── wifi
├── p2p_supplicant_overlay.conf
└── wpa_supplicant_overlay.conf
├── fastboot-info.txt
├── rro_overlays
└── WifiOverlay
│ ├── Android.bp
│ ├── AndroidManifest.xml
│ └── res
│ └── values
│ └── config.xml
├── lineage.dependencies
├── product.prop
├── init
├── init.recovery.qcom.rc
├── Android.bp
├── fstab.qcom
├── init.class_main.sh
└── init.qcom.class_core.sh
├── overlay-lineage
├── packages
│ └── apps
│ │ ├── Settings
│ │ └── res
│ │ │ └── values
│ │ │ └── config.xml
│ │ ├── Aperture
│ │ └── app
│ │ │ └── src
│ │ │ └── main
│ │ │ └── res
│ │ │ └── values
│ │ │ └── config.xml
│ │ └── Dialer
│ │ └── java
│ │ └── com
│ │ └── android
│ │ └── dialer
│ │ └── callrecord
│ │ └── res
│ │ └── values
│ │ └── config.xml
├── hardware
│ └── oneplus
│ │ └── doze
│ │ └── res
│ │ └── values
│ │ └── config.xml
└── lineage-sdk
│ ├── packages
│ └── LineageSettingsProvider
│ │ └── res
│ │ └── values
│ │ └── defaults.xml
│ └── lineage
│ └── res
│ └── res
│ └── values
│ └── config.xml
├── blob-patches
└── PowerOffAlarm.patch
├── seccomp
└── mediacodec.policy
├── Android.bp
├── idc
└── gf_input.idc
├── overlay
├── frameworks
│ └── base
│ │ └── packages
│ │ ├── SystemUI
│ │ └── res
│ │ │ ├── values-sw372dp
│ │ │ └── dimens.xml
│ │ │ └── values
│ │ │ └── config.xml
│ │ └── SettingsProvider
│ │ └── res
│ │ └── values
│ │ └── defaults.xml
└── packages
│ └── services
│ └── Telephony
│ └── res
│ └── values
│ └── config.xml
├── system.prop
├── framework_compatibility_matrix.xml
├── touch
└── include
│ └── TouchscreenGestureConfig.h
├── audio
├── bluetooth_hearing_aid_audio_policy_configuration.xml
├── listen_platform_info.xml
├── graphite_ipc_platform_info.xml
├── audio_output_policy.conf
├── audio_tuning_mixer_tavil.txt
└── audio_effects.xml
├── keylayout
└── gf_input.kl
├── extract-files.py
├── compatibility_matrix.xml
├── config.fs
├── BoardConfigCommon.mk
└── vendor.prop
/system_ext.prop:
--------------------------------------------------------------------------------
1 | # DPM
2 | persist.vendor.dpm.feature=11
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/property.te:
--------------------------------------------------------------------------------
1 | vendor_public_prop(vendor_nfc_prop)
2 |
--------------------------------------------------------------------------------
/setup-makefiles.py:
--------------------------------------------------------------------------------
1 | #!./extract-files.py --regenerate_makefiles
2 |
--------------------------------------------------------------------------------
/odm.prop:
--------------------------------------------------------------------------------
1 | # QC framework value-adds
2 | ro.vendor.qti.va_odm.support=1
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/domain.te:
--------------------------------------------------------------------------------
1 | allow domain opf_file:file r_file_perms;
2 |
--------------------------------------------------------------------------------
/livedisplay/.clang-format:
--------------------------------------------------------------------------------
1 | ../../../../build/soong/scripts/system-clang-format
--------------------------------------------------------------------------------
/sepolicy/vendor/bluetooth.te:
--------------------------------------------------------------------------------
1 | get_prop(bluetooth, vendor_bluetooth_prop)
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_qtelephony.te:
--------------------------------------------------------------------------------
1 | set_prop(vendor_qtelephony, radio_prop)
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/wcnss_service.te:
--------------------------------------------------------------------------------
1 | r_dir_file(wcnss_service, sysfs_project_info)
2 |
--------------------------------------------------------------------------------
/pocketmode/proguard.flags:
--------------------------------------------------------------------------------
1 | -keep class org.lineageos.pocketmode.* {
2 | *;
3 | }
4 |
--------------------------------------------------------------------------------
/sepolicy/public/file.te:
--------------------------------------------------------------------------------
1 | # sysfs
2 | type sysfs_fpc_proximity, fs_type, sysfs_type;
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_bluetooth_qti.te:
--------------------------------------------------------------------------------
1 | r_dir_file(hal_bluetooth_qti, vendor_data_file)
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_audio_default.te:
--------------------------------------------------------------------------------
1 | get_prop(hal_audio_default, vendor_bluetooth_prop)
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_iop_default.te:
--------------------------------------------------------------------------------
1 | allow hal_iop_default proc_meminfo:file r_file_perms;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_perf_default.te:
--------------------------------------------------------------------------------
1 | allow hal_perf_default proc_meminfo:file r_file_perms;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/init.te:
--------------------------------------------------------------------------------
1 | allow init op1_file:dir mounton;
2 | allow init op2_file:dir mounton;
3 |
--------------------------------------------------------------------------------
/configs/gps/gps.conf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/LineageOS/android_device_oneplus_sdm845-common/HEAD/configs/gps/gps.conf
--------------------------------------------------------------------------------
/sepolicy/vendor/platform_app.te:
--------------------------------------------------------------------------------
1 | hal_client_domain(platform_app, hal_ifaa)
2 |
3 | binder_call(platform_app, hal_ifaa_default)
4 |
--------------------------------------------------------------------------------
/sepolicy/vendor/thermal-engine.te:
--------------------------------------------------------------------------------
1 | allow thermal-engine sysfs:dir r_dir_perms;
2 |
3 | r_dir_file(thermal-engine, sysfs_devfreq)
4 |
--------------------------------------------------------------------------------
/wifi/p2p_supplicant_overlay.conf:
--------------------------------------------------------------------------------
1 | disable_scan_offload=1
2 | p2p_no_group_iface=1
3 | persistent_reconnect=1
4 | bss_max_count=400
5 |
--------------------------------------------------------------------------------
/sepolicy/private/seapp_contexts:
--------------------------------------------------------------------------------
1 | user=system seinfo=platform name=org.lineageos.pocketmode domain=pocketmode_app type=system_app_data_file
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/system_app.te:
--------------------------------------------------------------------------------
1 | typeattribute system_app system_writes_vendor_properties_violators;
2 |
3 | set_prop(system_app, vendor_nfc_prop)
4 |
--------------------------------------------------------------------------------
/fastboot-info.txt:
--------------------------------------------------------------------------------
1 | version 1
2 | flash boot
3 | flash dtbo
4 | flash --apply-vbmeta vbmeta
5 | flash system
6 | flash vendor
7 | if-wipe erase userdata
8 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_power_default.te:
--------------------------------------------------------------------------------
1 | allow hal_power_default proc_touchpanel:dir search;
2 | allow hal_power_default proc_touchpanel:file rw_file_perms;
3 |
--------------------------------------------------------------------------------
/configs/public.libraries.txt:
--------------------------------------------------------------------------------
1 | libqti-perfd-client.so
2 | libadsprpc.so
3 | libcdsprpc.so
4 | libsdsprpc.so
5 | libfastcvopt.so
6 | liblistensoundmodel2.so
7 | libOpenCL.so
8 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_lineage_touch_default.te:
--------------------------------------------------------------------------------
1 | allow hal_lineage_touch_default proc_touchpanel:dir search;
2 | allow hal_lineage_touch_default proc_touchpanel:file rw_file_perms;
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_ifaa.te:
--------------------------------------------------------------------------------
1 | binder_call(hal_ifaa_client, hal_ifaa_server)
2 | binder_call(hal_ifaa_server, hal_ifaa_client)
3 |
4 | hal_attribute_hwservice(hal_ifaa, hal_ifaa_hwservice)
5 |
--------------------------------------------------------------------------------
/sepolicy/vendor/property_contexts:
--------------------------------------------------------------------------------
1 | # Bluetooth
2 | persist.vendor.bluetooth. u:object_r:vendor_bluetooth_prop:s0
3 |
4 | # NFC
5 | persist.vendor.nfc. u:object_r:vendor_nfc_prop:s0
6 |
--------------------------------------------------------------------------------
/rro_overlays/WifiOverlay/Android.bp:
--------------------------------------------------------------------------------
1 | runtime_resource_overlay {
2 | name: "WifiOverlay",
3 | theme: "WifiOverlay",
4 | sdk_version: "current",
5 | product_specific: true
6 | }
7 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_param.te:
--------------------------------------------------------------------------------
1 | binder_call(hal_param_client, hal_param_server)
2 | binder_call(hal_param_server, hal_param_client)
3 |
4 | hal_attribute_hwservice(hal_param, hal_param_hwservice)
5 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hwservice.te:
--------------------------------------------------------------------------------
1 | type hal_cameraHIDL_hwservice, hwservice_manager_type;
2 | type hal_ifaa_hwservice, hwservice_manager_type;
3 | type hal_param_hwservice, hwservice_manager_type;
4 |
--------------------------------------------------------------------------------
/sepolicy/vendor/sensors.te:
--------------------------------------------------------------------------------
1 | allow sensors sensors_vendor_data_file:dir create_dir_perms;
2 | allow sensors sensors_vendor_data_file:file create_file_perms;
3 |
4 | get_prop(sensors, sensors_prop)
5 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_init.te:
--------------------------------------------------------------------------------
1 | allow vendor_init tmpfs:chr_file { read open };
2 | allow vendor_init tmpfs:dir { create_dir_perms mounton };
3 |
4 | allow vendor_init op2_file:file create_file_perms;
5 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_cameraHIDL.te:
--------------------------------------------------------------------------------
1 | binder_call(hal_cameraHIDL_client, hal_cameraHIDL_server)
2 | binder_call(hal_cameraHIDL_server, hal_cameraHIDL_client)
3 |
4 | hal_attribute_hwservice(hal_cameraHIDL, hal_cameraHIDL_hwservice)
5 |
--------------------------------------------------------------------------------
/wifi/wpa_supplicant_overlay.conf:
--------------------------------------------------------------------------------
1 | disable_scan_offload=1
2 | p2p_disabled=1
3 | tdls_external_control=1
4 | wowlan_triggers=magic_pkt
5 | bss_max_count=400
6 | config_methods=virtual_display virtual_push_button keypad
7 | driver_param="no_rrm=1"
8 |
--------------------------------------------------------------------------------
/lineage.dependencies:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "repository": "android_hardware_oneplus",
4 | "target_path": "hardware/oneplus"
5 | },
6 | {
7 | "repository": "android_kernel_oneplus_sdm845",
8 | "target_path": "kernel/oneplus/sdm845"
9 | }
10 | ]
11 |
--------------------------------------------------------------------------------
/product.prop:
--------------------------------------------------------------------------------
1 | # Audio
2 | af.fast_track_multiplier=1
3 | audio.deep_buffer.media=true
4 | audio.offload.min.duration.secs=30
5 | audio.offload.video=true
6 | audio.sys.noisy.broadcast.delay=500
7 | audio.sys.offload.pstimeout.secs=3
8 | ro.af.client_heap_size_kbyte=7168
9 |
--------------------------------------------------------------------------------
/sepolicy/vendor/device.te:
--------------------------------------------------------------------------------
1 | type dash_device, dev_type;
2 | type fingerprintd_device, dev_type;
3 | type op1_block_device, dev_type;
4 | type op2_block_device, dev_type;
5 | type param_block_device, dev_type;
6 | type reserve1_block_device, dev_type;
7 | type reserve2_block_device, dev_type;
8 |
--------------------------------------------------------------------------------
/sepolicy/vendor/tee.te:
--------------------------------------------------------------------------------
1 | typeattribute tee data_between_core_and_vendor_violators;
2 |
3 | allow tee fingerprintd_data_file:dir create_dir_perms;
4 | allow tee fingerprintd_data_file:file create_file_perms;
5 |
6 | allow tee mnt_vendor_file:dir create_dir_perms;
7 | allow tee mnt_vendor_file:file create_file_perms;
8 |
--------------------------------------------------------------------------------
/init/init.recovery.qcom.rc:
--------------------------------------------------------------------------------
1 | on fs
2 | wait /dev/block/platform/soc/${ro.boot.bootdevice}
3 | symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
4 |
5 | on init
6 | setprop sys.usb.configfs 1
7 |
8 | on property:init.svc.fastbootd=running
9 | rm /dev/block/bootdevice/by-name/boot_aging
10 |
--------------------------------------------------------------------------------
/sepolicy/vendor/attributes:
--------------------------------------------------------------------------------
1 | # HALs
2 | attribute hal_cameraHIDL;
3 | attribute hal_cameraHIDL_client;
4 | attribute hal_cameraHIDL_server;
5 |
6 | attribute hal_ifaa;
7 | attribute hal_ifaa_client;
8 | attribute hal_ifaa_server;
9 |
10 | attribute hal_param;
11 | attribute hal_param_client;
12 | attribute hal_param_server;
13 |
--------------------------------------------------------------------------------
/sepolicy/vendor/opf.te:
--------------------------------------------------------------------------------
1 | type opf, domain;
2 | type opf_exec, exec_type, vendor_file_type, file_type;
3 |
4 | init_daemon_domain(opf)
5 |
6 | type_transition opf device:file opf_file;
7 |
8 | allow opf device:dir create_dir_perms;
9 | allow opf device:file create_file_perms;
10 |
11 | allow opf opf_file:file create_file_perms;
12 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_lineage_livedisplay_qti.te:
--------------------------------------------------------------------------------
1 | allow hal_lineage_livedisplay_qti display_vendor_data_file:dir rw_dir_perms;
2 | allow hal_lineage_livedisplay_qti display_vendor_data_file:file create_file_perms;
3 |
4 | allow hal_lineage_livedisplay_qti sysfs_graphics:dir r_dir_perms;
5 | allow hal_lineage_livedisplay_qti sysfs_livedisplay_tuneable:file rw_file_perms;
6 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_nfc_default.te:
--------------------------------------------------------------------------------
1 | hal_client_domain(hal_nfc_default, hal_secure_element)
2 |
3 | allow hal_nfc_default hal_secure_element_hwservice:hwservice_manager find;
4 |
5 | allow hal_nfc_default nfc_vendor_data_file:dir create_dir_perms;
6 | allow hal_nfc_default nfc_vendor_data_file:file create_file_perms;
7 |
8 | get_prop(hal_nfc_default, vendor_nfc_prop)
9 |
--------------------------------------------------------------------------------
/livedisplay/vendor.lineage.livedisplay-service.oneplus_sdm845.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | vendor.lineage.livedisplay
4 | 1
5 |
6 | IDisplayModes
7 | default
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/overlay-lineage/packages/apps/Settings/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | 254
10 |
11 |
12 |
--------------------------------------------------------------------------------
/sepolicy/private/pocketmode_app.te:
--------------------------------------------------------------------------------
1 | type pocketmode_app, domain;
2 |
3 | app_domain(pocketmode_app)
4 |
5 | allow pocketmode_app app_api_service:service_manager find;
6 |
7 | allow pocketmode_app system_app_data_file:dir create_dir_perms;
8 | allow pocketmode_app system_app_data_file:{ file lnk_file } create_file_perms;
9 |
10 | allow pocketmode_app sysfs_fpc_proximity:file { w_file_perms getattr };
11 |
--------------------------------------------------------------------------------
/sepolicy/vendor/rild.te:
--------------------------------------------------------------------------------
1 | hal_client_domain(rild, hal_param)
2 |
3 | allow rild vendor_data_file:dir rw_dir_perms;
4 | allow rild vendor_data_file:file create_file_perms;
5 |
6 | allow rild block_device:dir search;
7 |
8 | allow rild param_block_device:blk_file rw_file_perms;
9 |
10 | allow rild diag_device:chr_file rw_file_perms;
11 |
12 | allow rild proc:file w_file_perms;
13 | allow rild proc_net:file w_file_perms;
14 |
--------------------------------------------------------------------------------
/sepolicy/vendor/file.te:
--------------------------------------------------------------------------------
1 | # files
2 | type oem_file, file_type;
3 | type op1_file, file_type;
4 | type op2_file, file_type;
5 | type opf_file, file_type;
6 |
7 | # procfs
8 | type proc_touchpanel, fs_type, proc_type;
9 |
10 | # sysfs
11 | type sysfs_dash_charger, fs_type, proc_type, sysfs_type;
12 | type sysfs_fod, fs_type, sysfs_type;
13 | type sysfs_fpc, fs_type, sysfs_type;
14 | type sysfs_project_info, fs_type, sysfs_type;
15 |
--------------------------------------------------------------------------------
/blob-patches/PowerOffAlarm.patch:
--------------------------------------------------------------------------------
1 | --- a/smali/com/qualcomm/qti/poweroffalarm/PowerOffAlarmUtils.smali
2 | +++ b/smali/com/qualcomm/qti/poweroffalarm/PowerOffAlarmUtils.smali
3 | @@ -624,6 +624,10 @@
4 | .local v8, "rtcTime":J
5 | sub-long v10, v1, v4
6 |
7 | + const-wide/32 v12, 0xea60
8 | +
9 | + sub-long/2addr v10, v12
10 | +
11 | .line 127
12 | .local v10, "timeDelta":J
13 | const-wide/16 v12, 0x0
14 |
--------------------------------------------------------------------------------
/pocketmode/Android.bp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2024 The LineageOS Project
3 | *
4 | * SPDX-License-Identifier: Apache-2.0
5 | */
6 |
7 | android_app {
8 | name: "OnePlusPocketMode",
9 |
10 | srcs: ["src/**/*.java"],
11 |
12 | certificate: "platform",
13 | platform_apis: true,
14 | privileged: true,
15 | system_ext_specific: true,
16 |
17 | optimize: {
18 | proguard_flags_files: ["proguard.flags"],
19 | },
20 | }
21 |
--------------------------------------------------------------------------------
/seccomp/mediacodec.policy:
--------------------------------------------------------------------------------
1 | # device specific syscalls
2 | # extension of services/mediacodec/minijail/seccomp_policy/mediacodec-seccomp-arm.policy
3 | pselect6: 1
4 | eventfd2: 1
5 | sendto: 1
6 | recvfrom: 1
7 | _llseek: 1
8 | sysinfo: 1
9 | getcwd: 1
10 | getdents64: 1
11 | ARM_cacheflush: 1
12 | inotify_init1: 1
13 | inotify_add_watch: 1
14 | inotify_rm_watch: 1
15 | uname: 1
16 | ueventd: 1
17 | timer_create: 1
18 | timer_settime: 1
19 | rt_sigtimedwait: 1
20 |
--------------------------------------------------------------------------------
/sepolicy/vendor/dashd.te:
--------------------------------------------------------------------------------
1 | type dashd, domain;
2 | type dashd_exec, exec_type, vendor_file_type, file_type;
3 |
4 | init_daemon_domain(dashd)
5 |
6 | allow dashd sysfs_battery_supply:file w_file_perms;
7 |
8 | allow dashd proc_cmdline:file r_file_perms;
9 |
10 | allow dashd dash_device:chr_file rw_file_perms;
11 | allow dashd kmsg_device:chr_file rw_file_perms;
12 |
13 | r_dir_file(dashd, sysfs_battery_supply)
14 | r_dir_file(dashd, sysfs_dash_charger)
15 | r_dir_file(dashd, sysfs_usb_supply)
16 |
--------------------------------------------------------------------------------
/sepolicy/vendor/wifi-mac-generator.te:
--------------------------------------------------------------------------------
1 | type wifi-mac-generator, domain;
2 | type wifi-mac-generator_exec, exec_type, vendor_file_type, file_type;
3 |
4 | init_daemon_domain(wifi-mac-generator)
5 |
6 | allow wifi-mac-generator vendor_shell_exec:file rx_file_perms;
7 | allow wifi-mac-generator vendor_toolbox_exec:file rx_file_perms;
8 |
9 | r_dir_file(wifi-mac-generator, vendor_data_file)
10 |
11 | allow wifi-mac-generator mnt_vendor_file:dir search;
12 | allow wifi-mac-generator mnt_vendor_file:file w_file_perms;
13 |
--------------------------------------------------------------------------------
/Android.bp:
--------------------------------------------------------------------------------
1 | soong_namespace {
2 | imports: ["hardware/oneplus"],
3 | }
4 |
5 | install_symlink {
6 | name: "firmware_wlan_mac.bin_symlink",
7 | vendor: true,
8 | installed_location: "firmware/wlan/qca_cld/wlan_mac.bin",
9 | symlink_target: "/mnt/vendor/persist/wlan_mac.bin",
10 | }
11 |
12 | install_symlink {
13 | name: "firmware_WCNSS_qcom_cfg.ini_symlink",
14 | vendor: true,
15 | installed_location: "firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini",
16 | symlink_target: "/vendor/etc/wifi/WCNSS_qcom_cfg.ini",
17 | }
18 |
--------------------------------------------------------------------------------
/overlay-lineage/packages/apps/Aperture/app/src/main/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 | true
9 |
10 |
11 |
12 | - 3
13 |
14 |
15 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_param_default.te:
--------------------------------------------------------------------------------
1 | type hal_param_default, domain;
2 | hal_server_domain(hal_param_default, hal_param)
3 |
4 | type hal_param_default_exec, exec_type, vendor_file_type, file_type;
5 | init_daemon_domain(hal_param_default)
6 |
7 | allow hal_param_default self:qipcrtr_socket create_socket_perms_no_ioctl;
8 |
9 | allow hal_param_default block_device:dir search;
10 |
11 | allow hal_param_default param_block_device:blk_file rw_file_perms;
12 |
13 | r_dir_file(hal_param_default, sysfs_project_info)
14 |
15 | get_prop(hal_param_default, exported_default_prop)
16 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_ifaa_default.te:
--------------------------------------------------------------------------------
1 | type hal_ifaa_default, domain;
2 | hal_server_domain(hal_ifaa_default, hal_ifaa)
3 |
4 | type hal_ifaa_default_exec, exec_type, vendor_file_type, file_type;
5 | init_daemon_domain(hal_ifaa_default)
6 |
7 | add_hwservice(hal_ifaa_default, hal_ifaa_hwservice)
8 |
9 | hwbinder_use(hal_ifaa_default)
10 |
11 | binder_call(hal_ifaa_default, hal_perf_default)
12 |
13 | allow hal_ifaa_default hal_perf_hwservice:hwservice_manager find;
14 |
15 | allow hal_ifaa_default ion_device:chr_file r_file_perms;
16 | allow hal_ifaa_default tee_device:chr_file rw_file_perms;
17 |
18 | r_dir_file(hal_ifaa_default, firmware_file)
19 |
20 | get_prop(hal_ifaa_default, hwservicemanager_prop)
21 |
--------------------------------------------------------------------------------
/configs/privapp-permissions-hotword.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/idc/gf_input.idc:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2010 The Android Open Source Project
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | #
16 | # Emulator keyboard configuration file #2.
17 | #
18 |
19 | keyboard.hasAssociatedDisplay = 1
20 | keyboard.orientationAware = 1
21 |
22 |
--------------------------------------------------------------------------------
/livedisplay/vendor.lineage.livedisplay-service.oneplus_sdm845.rc:
--------------------------------------------------------------------------------
1 | on init
2 | chmod 0660 /sys/class/drm/card0-DSI-1/dimlayer_bl_en
3 | chmod 0660 /sys/devices/platform/soc/ae00000.qcom,mdss_mdp/main_display/display_mode
4 | chmod 0660 /sys/devices/platform/soc/ae00000.qcom,mdss_mdp/main_display/hbm
5 | chown system graphics /sys/class/drm/card0-DSI-1/dimlayer_bl_en
6 | chown system system /sys/devices/platform/soc/ae00000.qcom,mdss_mdp/main_display/display_mode
7 | chown system system /sys/devices/platform/soc/ae00000.qcom,mdss_mdp/main_display/hbm
8 |
9 | on post-fs-data
10 | mkdir /data/misc/display 0770 system graphics
11 |
12 | service vendor.livedisplay-hal-oneplus_sdm845 /vendor/bin/hw/vendor.lineage.livedisplay-service.oneplus_sdm845
13 | class late_start
14 | user system
15 | group system
16 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_camera_default.te:
--------------------------------------------------------------------------------
1 | hal_client_domain(hal_camera_default, hal_cameraHIDL)
2 |
3 | allow hal_camera_default mnt_vendor_file:dir w_dir_perms;
4 | allow hal_camera_default mnt_vendor_file:file create_file_perms;
5 |
6 | allow hal_camera_default oem_file:dir w_dir_perms;
7 | allow hal_camera_default oem_file:file create_file_perms;
8 |
9 | allow hal_camera_default persist_file:dir w_dir_perms;
10 | allow hal_camera_default persist_file:file create_file_perms;
11 |
12 | allow hal_camera_default input_device:dir r_dir_perms;
13 | allow hal_camera_default input_device:chr_file r_file_perms;
14 |
15 | allow hal_camera_default xdsp_device:chr_file r_file_perms;
16 |
17 | allow hal_camera_default proc_meminfo:file r_file_perms;
18 |
19 | get_prop(hal_camera_default, ctl_default_prop)
20 | get_prop(hal_camera_default, vendor_mmi_prop)
21 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_cameraHIDL_default.te:
--------------------------------------------------------------------------------
1 | type hal_cameraHIDL_default, domain;
2 | hal_server_domain(hal_cameraHIDL_default, hal_cameraHIDL)
3 |
4 | type hal_cameraHIDL_default_exec, exec_type, vendor_file_type, file_type;
5 | init_daemon_domain(hal_cameraHIDL_default)
6 |
7 | add_hwservice(hal_cameraHIDL_default, hal_cameraHIDL_hwservice)
8 |
9 | hwbinder_use(hal_cameraHIDL_default)
10 |
11 | binder_call(hal_cameraHIDL_default, hal_perf_default)
12 |
13 | allow hal_cameraHIDL_default hal_perf_hwservice:hwservice_manager find;
14 |
15 | allow hal_cameraHIDL_default ion_device:chr_file r_file_perms;
16 | allow hal_cameraHIDL_default tee_device:chr_file rw_file_perms;
17 |
18 | allow hal_cameraHIDL_default vendor_camera_data_file:dir create_dir_perms;
19 |
20 | r_dir_file(hal_cameraHIDL_default, firmware_file)
21 |
22 | get_prop(hal_cameraHIDL_default, hwservicemanager_prop)
23 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res/values-sw372dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 | 4dp
20 |
21 |
--------------------------------------------------------------------------------
/overlay-lineage/packages/apps/Dialer/java/com/android/dialer/callrecord/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 | true
19 | 4
20 |
21 |
--------------------------------------------------------------------------------
/overlay-lineage/hardware/oneplus/doze/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 | oneplus.sensor.pickup
20 | oneplus.sensor.pocket
21 |
22 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 | true
23 |
24 |
25 |
--------------------------------------------------------------------------------
/configs/gps/lowi.conf:
--------------------------------------------------------------------------------
1 | #*====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*
2 | #
3 | # LOWI Config file - default
4 | #
5 | # GENERAL DESCRIPTION
6 | # This file contains the config params for LOWI
7 | #
8 | # Copyright (c) 2019 Qualcomm Technologies, Inc.
9 | # All Rights Reserved.
10 | # Confidential and Proprietary - Qualcomm Technologies, Inc.
11 | #
12 | # 2012-2013 Qualcomm Atheros, Inc.
13 | # All Rights Reserved.
14 | # Qualcomm Atheros Confidential and Proprietary.
15 | #
16 | # Export of this technology or software is regulated by the U.S. Government.
17 | # Diversion contrary to U.S. law prohibited.
18 | #=============================================================================*/
19 |
20 | # X86 ONLY - UBUNTU:
21 | # Copy this file in the same directory where the executable is
22 |
23 | # Log level
24 | # EL_LOG_OFF = 0, EL_ERROR = 1, EL_WARNING = 2, EL_INFO = 3, EL_DEBUG = 4, EL_VERBOSE = 5, EL_LOG_ALL = 100
25 | LOWI_LOG_LEVEL = 4
26 | LOWI_USE_LOWI_LP = 0
27 |
28 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 | true
25 |
26 |
--------------------------------------------------------------------------------
/configs/component-overrides.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/pocketmode/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
15 |
16 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hwservice_contexts:
--------------------------------------------------------------------------------
1 | vendor.nxp.eventprocessor::INxpEseEvtProcessor u:object_r:hal_secure_element_hwservice:s0
2 | vendor.nxp.nxpese::INxpEse u:object_r:hal_secure_element_hwservice:s0
3 | vendor.nxp.nxpnfc::INxpNfc u:object_r:hal_nfc_hwservice:s0
4 | vendor.goodix.hardware.biometrics.fingerprint::IGoodixFingerprintDaemon u:object_r:hal_fingerprint_hwservice:s0
5 | vendor.oneplus.camera.CameraHIDL::IOnePlusCameraProvider u:object_r:hal_cameraHIDL_hwservice:s0
6 | vendor.oneplus.fingerprint.extension::IVendorFingerprintExtensions u:object_r:hal_fingerprint_hwservice:s0
7 | vendor.oneplus.hardware.camera::IOnePlusCameraProvider u:object_r:hal_cameraHIDL_hwservice:s0
8 | vendor.oneplus.hardware.CameraMDMHIDL::IOnePlusCameraMDM u:object_r:hal_cameraHIDL_hwservice:s0
9 | vendor.oneplus.hardware.ifaa::IOneplusIfaa u:object_r:hal_ifaa_hwservice:s0
10 | vendor.oneplus.hardware.param::IOneplusParam u:object_r:hal_param_hwservice:s0
11 |
--------------------------------------------------------------------------------
/system.prop:
--------------------------------------------------------------------------------
1 | # AB Update
2 | ro.build.ab_update=true
3 |
4 | # BPF
5 | ro.kernel.ebpf.supported=true
6 |
7 | # CNE
8 | persist.vendor.cne.feature=1
9 |
10 | # CoreSight STM
11 | persist.debug.coresight.config=stm-events
12 |
13 | # Dex2oat
14 | dalvik.vm.dex2oat64.enabled=true
15 |
16 | # Display
17 | debug.sf.enable_hwc_vds=1
18 |
19 | # fastbootd
20 | ro.fastbootd.available=true
21 |
22 | # GPS
23 | persist.vendor.overlay.izat.optin=rro
24 |
25 | # IMS
26 | persist.dbg.volte_avail_ovr=1
27 | persist.dbg.vt_avail_ovr=1
28 | persist.dbg.wfc_avail_ovr=1
29 |
30 | # Media
31 | media.settings.xml=/vendor/etc/media_profiles_vendor.xml
32 | ro.media.recorder-max-base-layer-fps=60
33 |
34 | # NFC
35 | ro.nfc.port=I2C
36 |
37 | # QC framework value-adds
38 | ro.vendor.qti.va_aosp.support=1
39 |
40 | # Radio
41 | persist.netmon.linger=5000
42 | persist.vendor.data.mode=concurrent
43 | ro.vendor.use_data_netmgrd=true
44 | telephony.lteOnCdmaDevice=1
45 |
46 | # RCS
47 | persist.rcs.supported=0
48 |
49 | # Sensors
50 | persist.vendor.sensors.enable.mag_filter=true
51 |
52 | # WiFi
53 | config.disable_rtt=true
54 |
55 | # WiFi Display
56 | persist.debug.wfd.enable=1
57 | persist.sys.wfd.virtual=0
58 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_fingerprint_device.te:
--------------------------------------------------------------------------------
1 | typeattribute hal_fingerprint_default data_between_core_and_vendor_violators;
2 |
3 | allow hal_fingerprint_default self:netlink_socket create_socket_perms_no_ioctl;
4 |
5 | binder_call(hal_fingerprint_default, hal_perf_default)
6 |
7 | allow hal_fingerprint_default hal_perf_hwservice:hwservice_manager find;
8 |
9 | allow hal_fingerprint_default fingerprintd_data_file:dir rw_dir_perms;
10 | allow hal_fingerprint_default fingerprintd_data_file:file create_file_perms;
11 |
12 | allow hal_fingerprint_default fingerprintd_device:chr_file rw_file_perms;
13 | allow hal_fingerprint_default tee_device:chr_file rw_file_perms;
14 | allow hal_fingerprint_default qdsp_device:chr_file rw_file_perms;
15 | allow hal_fingerprint_default xdsp_device:chr_file rw_file_perms;
16 |
17 | allow hal_fingerprint_default proc_touchpanel:dir search;
18 | allow hal_fingerprint_default proc_touchpanel:file rw_file_perms;
19 |
20 | allow hal_fingerprint_default sysfs_fod:file rw_file_perms;
21 |
22 | allow hal_fingerprint_default sysfs_fpc:dir r_dir_perms;
23 | allow hal_fingerprint_default sysfs_fpc:file rw_file_perms;
24 |
25 | get_prop(hal_fingerprint_default, adsprpc_prop)
26 | get_prop(hal_fingerprint_default, vendor_default_prop)
27 |
--------------------------------------------------------------------------------
/rro_overlays/WifiOverlay/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
21 |
22 |
27 |
28 |
--------------------------------------------------------------------------------
/livedisplay/Android.bp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (C) 2019-2025 The LineageOS Project
3 | //
4 | // Licensed under the Apache License, Version 2.0 (the "License");
5 | // you may not use this file except in compliance with the License.
6 | // You may obtain a copy of the License at
7 | //
8 | // http://www.apache.org/licenses/LICENSE-2.0
9 | //
10 | // Unless required by applicable law or agreed to in writing, software
11 | // distributed under the License is distributed on an "AS IS" BASIS,
12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | // See the License for the specific language governing permissions and
14 | // limitations under the License.
15 |
16 | cc_binary {
17 | name: "vendor.lineage.livedisplay-service.oneplus_sdm845",
18 | init_rc: ["vendor.lineage.livedisplay-service.oneplus_sdm845.rc"],
19 | vintf_fragments: ["vendor.lineage.livedisplay-service.oneplus_sdm845.xml"],
20 | relative_install_path: "hw",
21 | srcs: [
22 | "DisplayModes.cpp",
23 | "service.cpp",
24 | ],
25 | shared_libs: [
26 | "libbase",
27 | "libbinder_ndk",
28 | "libbinder",
29 | "libutils",
30 | "vendor.lineage.livedisplay-V1-ndk",
31 | ],
32 | proprietary: true,
33 | }
34 |
--------------------------------------------------------------------------------
/overlay-lineage/lineage-sdk/packages/LineageSettingsProvider/res/values/defaults.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
24 | 2
25 |
26 |
27 | true
28 |
29 |
--------------------------------------------------------------------------------
/pocketmode/src/org/lineageos/pocketmode/BootCompletedReceiver.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2016 The CyanogenMod Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package org.lineageos.pocketmode;
18 |
19 | import android.content.BroadcastReceiver;
20 | import android.content.Context;
21 | import android.content.Intent;
22 | import android.os.UserHandle;
23 | import android.util.Log;
24 |
25 | public class BootCompletedReceiver extends BroadcastReceiver {
26 | private static final String TAG = "OnePlusPocketMode";
27 |
28 | @Override
29 | public void onReceive(final Context context, Intent intent) {
30 | Log.d(TAG, "Starting");
31 | context.startServiceAsUser(new Intent(context, PocketModeService.class),
32 | UserHandle.CURRENT);
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/framework_compatibility_matrix.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | vendor.oneplus.fingerprint.extension
4 | 1.0
5 |
6 | IVendorFingerprintExtensions
7 | default
8 |
9 |
10 |
11 | vendor.oneplus.hardware.CameraMDMHIDL
12 | 1.0
13 |
14 | IOnePlusCameraMDM
15 | default
16 |
17 |
18 |
19 | vendor.oneplus.hardware.camera
20 | 1.0
21 |
22 | IOnePlusCameraProvider
23 | default
24 |
25 |
26 |
27 | vendor.oneplus.hardware.ifaa
28 | 2.0
29 |
30 | IOneplusIfaa
31 | default
32 |
33 |
34 |
35 | vendor.oneplus.hardware.param
36 | 1.0
37 |
38 | IOneplusParam
39 | default
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/overlay/packages/services/Telephony/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
21 |
22 |
24 |
25 |
26 | org.codeaurora.ims
27 |
28 |
29 | com.android.service.ims
30 |
31 |
--------------------------------------------------------------------------------
/init/Android.bp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (C) 2024 The LineageOS Project
3 | //
4 | // SPDX-License-Identifier: Apache-2.0
5 | //
6 |
7 | prebuilt_etc {
8 | name: "fstab.qcom",
9 | src: "fstab.qcom",
10 | vendor: true,
11 | ramdisk_available: true,
12 | }
13 |
14 | prebuilt_etc {
15 | name: "init.oem.rc",
16 | src: "init.oem.rc",
17 | sub_dir: "init/hw",
18 | vendor: true,
19 | }
20 |
21 | prebuilt_etc {
22 | name: "init.qcom.rc",
23 | src: "init.qcom.rc",
24 | sub_dir: "init/hw",
25 | vendor: true,
26 | }
27 |
28 | prebuilt_etc {
29 | name: "init.recovery.qcom.rc",
30 | src: "init.recovery.qcom.rc",
31 | sub_dir: "init",
32 | recovery: true,
33 | }
34 |
35 | prebuilt_etc {
36 | name: "init.target.rc",
37 | src: "init.target.rc",
38 | sub_dir: "init/hw",
39 | vendor: true,
40 | }
41 |
42 | prebuilt_etc {
43 | name: "ueventd.qcom.rc",
44 | filename: "ueventd.rc",
45 | src: "ueventd.qcom.rc",
46 | vendor: true,
47 | }
48 |
49 | sh_binary {
50 | name: "init.class_main.sh",
51 | src: "init.class_main.sh",
52 | vendor: true,
53 | }
54 |
55 | sh_binary {
56 | name: "init.qcom.class_core.sh",
57 | src: "init.qcom.class_core.sh",
58 | vendor: true,
59 | }
60 |
61 | sh_binary {
62 | name: "init.qcom.early_boot.sh",
63 | src: "init.qcom.early_boot.sh",
64 | vendor: true,
65 | }
66 |
67 | sh_binary {
68 | name: "init.qcom.post_boot.sh",
69 | src: "init.qcom.post_boot.sh",
70 | vendor: true,
71 | }
72 |
73 | sh_binary {
74 | name: "init.qcom.sh",
75 | src: "init.qcom.sh",
76 | vendor: true,
77 | }
78 |
--------------------------------------------------------------------------------
/livedisplay/service.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2019-2025 The LineageOS Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #define LOG_TAG "vendor.lineage.livedisplay-service.oneplus_sdm845"
18 |
19 | #include
20 | #include
21 | #include
22 | #include
23 | #include "DisplayModes.h"
24 |
25 | using ::aidl::vendor::lineage::livedisplay::DisplayModes;
26 |
27 | int main() {
28 | android::ProcessState::self()->setThreadPoolMaxThreadCount(1);
29 | android::ProcessState::self()->startThreadPool();
30 |
31 | std::shared_ptr dm = ndk::SharedRefBase::make();
32 |
33 | std::string instance = std::string() + DisplayModes::descriptor + "/default";
34 | binder_status_t status = AServiceManager_addService(dm->asBinder().get(), instance.c_str());
35 | CHECK_EQ(status, STATUS_OK);
36 |
37 | LOG(INFO) << "LiveDisplay HAL service ready.";
38 |
39 | ABinderProcess_joinThreadPool();
40 | return EXIT_FAILURE; // should not reach
41 | }
42 |
--------------------------------------------------------------------------------
/touch/include/TouchscreenGestureConfig.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2025 The LineageOS Project
3 | * SPDX-License-Identifier: Apache-2.0
4 | */
5 |
6 | #ifndef TOUCH_ONEPLUS_TOUCHSCREENGESTURECONFIG_H
7 | #define TOUCH_ONEPLUS_TOUCHSCREENGESTURECONFIG_H
8 |
9 | #include