├── odm.prop
├── sepolicy
├── vendor
│ ├── domain.te
│ ├── cameraserver.te
│ ├── vendor_mdm_helper.te
│ ├── hal_sensors_default.te
│ ├── toolbox.te
│ ├── hal_power_default.te
│ ├── seapp_contexts
│ ├── platform_app.te
│ ├── surfaceflinger.te
│ ├── system_server.te
│ ├── app.te
│ ├── kernel.te
│ ├── vendor_sensors_qti.te
│ ├── hal_audio_default.te
│ ├── hal_bluetooth_default.te
│ ├── vendor_poweroffalarm_app.te
│ ├── vendor_hal_perf_default.te
│ ├── vendor_init-qcom-sensors-sh.te
│ ├── vendor_snapcam_app.te
│ ├── hal_dms.te
│ ├── hal_secure_element_default.te
│ ├── hal_param.te
│ ├── vendor_sensors.te
│ ├── hal_display.te
│ ├── hal_hdcpkey.te
│ ├── vendor_wcnss_service.te
│ ├── hal_cameraHIDL.te
│ ├── hal_display_iris.te
│ ├── hal_hdcpkey_default.te
│ ├── opf.te
│ ├── hwservice.te
│ ├── init.te
│ ├── system_app.te
│ ├── device.te
│ ├── rild.te
│ ├── vl53l1_daemon_main.te
│ ├── wifi-mac-generator.te
│ ├── hal_nfc_default.te
│ ├── hal_graphics_composer_default.te
│ ├── property.te
│ ├── vendor_init.te
│ ├── tri-state-key-calibrate.te
│ ├── dashd.te
│ ├── attributes
│ ├── hal_param_default.te
│ ├── hal_dms_default.te
│ ├── hal_display_default.te
│ ├── hal_cameraHIDL_default.te
│ ├── vendor_qti_init_shell.te
│ ├── file.te
│ ├── hal_camera_default.te
│ ├── hwservice_contexts
│ └── hal_fingerprint_default.te
└── private
│ ├── system_server.te
│ ├── seapp_contexts
│ ├── property_contexts
│ └── keyhandler_app.te
├── Android.bp
├── DeviceSettings
├── proguard.flags
├── res
│ ├── drawable-xxhdpi
│ │ ├── image1.jpg
│ │ ├── image2.jpg
│ │ ├── image3.jpg
│ │ └── image4.jpg
│ ├── mipmap-hdpi
│ │ ├── ic_background.png
│ │ └── ic_foreground.png
│ ├── mipmap-mdpi
│ │ ├── ic_background.png
│ │ └── ic_foreground.png
│ ├── mipmap-xhdpi
│ │ ├── ic_background.png
│ │ └── ic_foreground.png
│ ├── mipmap-xxhdpi
│ │ ├── ic_background.png
│ │ └── ic_foreground.png
│ ├── mipmap-xxxhdpi
│ │ ├── ic_background.png
│ │ └── ic_foreground.png
│ ├── drawable
│ │ ├── ic_down_icon.xml
│ │ ├── ic_up_icon.xml
│ │ ├── ic_dolby_atmos.xml
│ │ ├── ic_middle_icon.xml
│ │ ├── ic_doze.xml
│ │ ├── ic_info.xml
│ │ ├── ic_power.xml
│ │ ├── ic_vibration_icon.xml
│ │ ├── ic_5g.xml
│ │ ├── ic_hbm_tile.xml
│ │ ├── ic_dolby.xml
│ │ ├── ic_intensity_icon.xml
│ │ ├── ic_qs_log.xml
│ │ ├── ic_hbm_mode_icon.xml
│ │ ├── inactive_dot.xml
│ │ ├── active_dot.xml
│ │ ├── ic_custom_seekbar_minus.xml
│ │ ├── ic_linux.xml
│ │ ├── ic_custom_seekbar_plus.xml
│ │ ├── ic_custom_seekbar_reset.xml
│ │ ├── ic_info_outline.xml
│ │ ├── ic_autohbm_mode_icon.xml
│ │ ├── ic_info_outline_24dp.xml
│ │ ├── ic_hbm_mode.xml
│ │ ├── ic_settings_device.xml
│ │ ├── ic_settings_device_qs.xml
│ │ ├── ic_gestures_icon.xml
│ │ ├── ic_dc_tile.xml
│ │ ├── ic_dc_mode_icon.xml
│ │ ├── ic_fps.xml
│ │ └── ic_fps_overlay_icon.xml
│ ├── values
│ │ ├── colors.xml
│ │ ├── styles.xml
│ │ ├── cr_colors.xml
│ │ ├── dimens.xml
│ │ ├── config.xml
│ │ ├── cr_attrs.xml
│ │ └── arrays.xml
│ ├── mipmap-anydpi
│ │ └── ic_launcher.xml
│ ├── layout
│ │ └── image_layout.xml
│ ├── values-ja
│ │ └── strings.xml
│ ├── values-vi
│ │ └── strings.xml
│ ├── values-af
│ │ └── strings.xml
│ ├── values-ar
│ │ └── strings.xml
│ ├── values-ca
│ │ └── strings.xml
│ ├── values-da
│ │ └── strings.xml
│ ├── values-el
│ │ └── strings.xml
│ ├── values-fi
│ │ └── strings.xml
│ ├── values-in
│ │ └── strings.xml
│ ├── values-iw
│ │ └── strings.xml
│ ├── values-ko
│ │ └── strings.xml
│ ├── values-lt
│ │ └── strings.xml
│ ├── values-ro
│ │ └── strings.xml
│ ├── values-sk
│ │ └── strings.xml
│ ├── values-sr
│ │ └── strings.xml
│ └── values-sv
│ │ └── strings.xml
├── src
│ ├── aidl
│ │ └── com
│ │ │ └── qualcomm
│ │ │ └── qcrilmsgtunnel
│ │ │ └── IQcrilMsgTunnel.aidl
│ └── org
│ │ └── lineageos
│ │ └── device
│ │ └── DeviceSettings
│ │ ├── AutoRefreshRateSwitch.java
│ │ ├── ModeSwitch
│ │ └── HBMModeSwitch.java
│ │ ├── RefreshRateSwitch.java
│ │ ├── DeviceSettingsActivity.java
│ │ ├── HBMModeService.java
│ │ ├── AutoHBMThresholdPreference.java
│ │ ├── FPSTileService.java
│ │ ├── ViewPagerAdapter.java
│ │ ├── Protocol.java
│ │ └── HBMModeTileService.java
└── Android.bp
├── gps
├── gps.conf
├── lowi.conf
└── flp.conf
├── rootdir
├── etc
│ ├── init.cust.rc
│ ├── init.recovery.qcom.rc
│ └── init.color.rc
└── bin
│ ├── init.oplus_chg.sh
│ ├── init.qti.qcv.sh
│ └── init.qti.chg_policy.sh
├── wifi
├── p2p_supplicant_overlay.conf
└── wpa_supplicant_overlay.conf
├── rro_overlays
└── WifiResCommon
│ ├── Android.bp
│ ├── res
│ └── values
│ │ ├── integers.xml
│ │ ├── strings.xml
│ │ └── bools.xml
│ └── AndroidManifest.xml
├── overlay
├── frameworks
│ └── base
│ │ ├── core
│ │ └── res
│ │ │ └── res
│ │ │ └── drawable-nodpi
│ │ │ └── udfps_icon_pressed.png
│ │ └── packages
│ │ ├── SettingsProvider
│ │ └── res
│ │ │ └── values
│ │ │ └── defaults.xml
│ │ └── SystemUI
│ │ └── res
│ │ └── values
│ │ └── config.xml
└── packages
│ ├── apps
│ ├── Dialer
│ │ └── java
│ │ │ └── com
│ │ │ └── android
│ │ │ └── dialer
│ │ │ └── callrecord
│ │ │ └── res
│ │ │ └── values
│ │ │ └── config.xml
│ └── Settings
│ │ └── res
│ │ └── values
│ │ ├── dimens.xml
│ │ ├── config.xml
│ │ └── arrays.xml
│ └── services
│ └── Telephony
│ └── res
│ └── values
│ └── config.xml
├── task_profiles
├── cgroups_31.json
└── task_profiles_31.json
├── wifi-mac-generator
├── wifi-mac-generator.rc
├── Android.mk
└── wifi-mac-generator.sh
├── configs
├── adaptivecharging.xml
├── permissions
│ ├── privapp-permissions-hotword.xml
│ └── privapp-permissions-qti.xml
├── component-overrides.xml
├── media
│ └── media_codecs_vendor_audio.xml
├── apn
│ └── apns-conf.xml
└── public.libraries.txt
├── remove_packages
└── Android.mk
├── seccomp
└── mediacodec.policy
├── gpt-utils
├── sparse_crc32.h
└── Android.bp
├── overlay-superior
├── hardware
│ └── oneplus
│ │ └── doze
│ │ └── res
│ │ └── values
│ │ └── config.xml
├── packages
│ └── apps
│ │ └── Settings
│ │ └── res
│ │ └── values
│ │ ├── arrays.xml
│ │ └── config.xml
└── frameworks
│ └── base
│ └── packages
│ └── SystemUI
│ └── res
│ └── values
│ ├── dimens.xml
│ └── config.xml
├── system_ext.prop
├── bootctrl
└── Android.bp
├── setup-makefiles.sh
├── interfaces.mk
├── update-sha1sums.py
├── extract-files.sh
└── system.prop
/odm.prop:
--------------------------------------------------------------------------------
1 | # Audio
2 | ro.vendor.qti.va_odm.support=1
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/domain.te:
--------------------------------------------------------------------------------
1 | allow domain opf_file:file r_file_perms;
2 |
--------------------------------------------------------------------------------
/Android.bp:
--------------------------------------------------------------------------------
1 | soong_namespace {
2 | imports: ["hardware/qcom-caf/bootctrl"],
3 | }
4 |
--------------------------------------------------------------------------------
/sepolicy/private/system_server.te:
--------------------------------------------------------------------------------
1 | allow system_server app_zygote:process getpgid;
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/cameraserver.te:
--------------------------------------------------------------------------------
1 | binder_call(cameraserver, hal_cameraHIDL_default)
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_mdm_helper.te:
--------------------------------------------------------------------------------
1 | r_dir_file(vendor_mdm_helper, sysfs_project_info)
2 |
--------------------------------------------------------------------------------
/DeviceSettings/proguard.flags:
--------------------------------------------------------------------------------
1 | -keep class org.lineageos.device.DeviceSettings.* {
2 | *;
3 | }
4 |
--------------------------------------------------------------------------------
/gps/gps.conf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_oneplus_avicii-common/thirteen/gps/gps.conf
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_sensors_default.te:
--------------------------------------------------------------------------------
1 | allow hal_sensors_default vendor_diag_device:chr_file rw_file_perms;
2 |
--------------------------------------------------------------------------------
/rootdir/etc/init.cust.rc:
--------------------------------------------------------------------------------
1 | on property:ro.boot.product.hardware.sku=9
2 | setprop persist.radio.multisim.config ssss
3 |
--------------------------------------------------------------------------------
/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/vendor/toolbox.te:
--------------------------------------------------------------------------------
1 | allow toolbox per_boot_file:dir create_dir_perms;
2 | allow toolbox per_boot_file:file create_file_perms;
3 |
--------------------------------------------------------------------------------
/sepolicy/private/seapp_contexts:
--------------------------------------------------------------------------------
1 | user=system seinfo=platform name=org.lineageos.settings.device domain=keyhandler_app type=system_app_data_file
2 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/sepolicy/vendor/seapp_contexts:
--------------------------------------------------------------------------------
1 | user=system seinfo=platform name=com.qualcomm.qti.poweroffalarm domain=vendor_poweroffalarm_app type=system_app_data_file
2 |
--------------------------------------------------------------------------------
/sepolicy/vendor/platform_app.te:
--------------------------------------------------------------------------------
1 | allow platform_app hal_dms_hwservice:hwservice_manager find;
2 | allow platform_app hal_dms_default:binder { call transfer };
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/surfaceflinger.te:
--------------------------------------------------------------------------------
1 | allow surfaceflinger hal_display_hwservice:hwservice_manager find;
2 |
3 | binder_call(surfaceflinger, hal_display_default)
4 |
--------------------------------------------------------------------------------
/sepolicy/vendor/system_server.te:
--------------------------------------------------------------------------------
1 | # Allow system_server to read Fast Charging status
2 | allow system_server vendor_sysfs_battery_supply:file { getattr open read };
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/app.te:
--------------------------------------------------------------------------------
1 | allow { appdomain -isolated_app } adsprpcd_file:dir r_dir_perms;
2 | allow { appdomain -isolated_app } public_adsprpcd_file:file r_file_perms;
3 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable-xxhdpi/image1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_oneplus_avicii-common/thirteen/DeviceSettings/res/drawable-xxhdpi/image1.jpg
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable-xxhdpi/image2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_oneplus_avicii-common/thirteen/DeviceSettings/res/drawable-xxhdpi/image2.jpg
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable-xxhdpi/image3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_oneplus_avicii-common/thirteen/DeviceSettings/res/drawable-xxhdpi/image3.jpg
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable-xxhdpi/image4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_oneplus_avicii-common/thirteen/DeviceSettings/res/drawable-xxhdpi/image4.jpg
--------------------------------------------------------------------------------
/DeviceSettings/res/mipmap-hdpi/ic_background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_oneplus_avicii-common/thirteen/DeviceSettings/res/mipmap-hdpi/ic_background.png
--------------------------------------------------------------------------------
/DeviceSettings/res/mipmap-hdpi/ic_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_oneplus_avicii-common/thirteen/DeviceSettings/res/mipmap-hdpi/ic_foreground.png
--------------------------------------------------------------------------------
/DeviceSettings/res/mipmap-mdpi/ic_background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_oneplus_avicii-common/thirteen/DeviceSettings/res/mipmap-mdpi/ic_background.png
--------------------------------------------------------------------------------
/DeviceSettings/res/mipmap-mdpi/ic_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_oneplus_avicii-common/thirteen/DeviceSettings/res/mipmap-mdpi/ic_foreground.png
--------------------------------------------------------------------------------
/sepolicy/vendor/kernel.te:
--------------------------------------------------------------------------------
1 | allow kernel param_block_device:dir search;
2 | allow kernel param_block_device:blk_file rw_file_perms;
3 | allow kernel per_boot_file:file r_file_perms;
4 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_sensors_qti.te:
--------------------------------------------------------------------------------
1 | allow vendor_sensors_qti vendor_persist_sensors_file:dir { search };
2 | allow vendor_sensors_qti vendor_diag_device:chr_file rw_file_perms;
3 |
--------------------------------------------------------------------------------
/DeviceSettings/res/mipmap-xhdpi/ic_background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_oneplus_avicii-common/thirteen/DeviceSettings/res/mipmap-xhdpi/ic_background.png
--------------------------------------------------------------------------------
/DeviceSettings/res/mipmap-xhdpi/ic_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_oneplus_avicii-common/thirteen/DeviceSettings/res/mipmap-xhdpi/ic_foreground.png
--------------------------------------------------------------------------------
/DeviceSettings/res/mipmap-xxhdpi/ic_background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_oneplus_avicii-common/thirteen/DeviceSettings/res/mipmap-xxhdpi/ic_background.png
--------------------------------------------------------------------------------
/DeviceSettings/res/mipmap-xxhdpi/ic_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_oneplus_avicii-common/thirteen/DeviceSettings/res/mipmap-xxhdpi/ic_foreground.png
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_audio_default.te:
--------------------------------------------------------------------------------
1 | # Dolby
2 | allow hal_audio_default hal_dms_default:binder { transfer call };
3 | allow hal_audio_default hal_dms_hwservice:hwservice_manager find;
4 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_bluetooth_default.te:
--------------------------------------------------------------------------------
1 | allow hal_bluetooth_default vendor_data_file:file r_file_perms;
2 |
3 | allow hal_bluetooth_default vendor_diag_device:chr_file rw_file_perms;
4 |
--------------------------------------------------------------------------------
/DeviceSettings/res/mipmap-xxxhdpi/ic_background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_oneplus_avicii-common/thirteen/DeviceSettings/res/mipmap-xxxhdpi/ic_background.png
--------------------------------------------------------------------------------
/DeviceSettings/res/mipmap-xxxhdpi/ic_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_oneplus_avicii-common/thirteen/DeviceSettings/res/mipmap-xxxhdpi/ic_foreground.png
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_poweroffalarm_app.te:
--------------------------------------------------------------------------------
1 | allow vendor_poweroffalarm_app mnt_vendor_file:dir { search };
2 | allow vendor_poweroffalarm_app system_app_data_file:dir { getattr search };
3 |
--------------------------------------------------------------------------------
/sepolicy/private/property_contexts:
--------------------------------------------------------------------------------
1 | ro.camera. u:object_r:vendor_camera_prop:s0
2 | ro.gfx.driver.1 u:object_r:graphics_config_prop:s0
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_hal_perf_default.te:
--------------------------------------------------------------------------------
1 | allow vendor_hal_perf_default hal_fingerprint_default:dir r_dir_perms;
2 | allow vendor_hal_perf_default hal_fingerprint_default:file r_file_perms;
3 |
--------------------------------------------------------------------------------
/rro_overlays/WifiResCommon/Android.bp:
--------------------------------------------------------------------------------
1 | runtime_resource_overlay {
2 | name: "WifiResCommon",
3 | theme: "WifiResCommon",
4 | sdk_version: "current",
5 | product_specific: true
6 | }
7 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_init-qcom-sensors-sh.te:
--------------------------------------------------------------------------------
1 | allow vendor_init-qcom-sensors-sh vendor_persist_sensors_file:dir setattr;
2 | allow vendor_init-qcom-sensors-sh vendor_persist_sensors_file:file setattr;
3 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_snapcam_app.te:
--------------------------------------------------------------------------------
1 | allow vendor_snapcam_app shell_data_file:dir search;
2 | allow vendor_snapcam_app vendor_xdsp_device:chr_file r_file_perms;
3 | allow vendor_snapcam_app zygote:unix_stream_socket getopt;
4 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/drawable-nodpi/udfps_icon_pressed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperiorOS-Devices/device_oneplus_avicii-common/thirteen/overlay/frameworks/base/core/res/res/drawable-nodpi/udfps_icon_pressed.png
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_dms.te:
--------------------------------------------------------------------------------
1 | binder_call(hal_dms_client, hal_dms_server)
2 | binder_call(hal_dms_server, hal_dms_client)
3 |
4 | add_hwservice(hal_dms_server, hal_dms_hwservice)
5 | allow hal_dms_client hal_dms_hwservice:hwservice_manager find;
6 |
--------------------------------------------------------------------------------
/task_profiles/cgroups_31.json:
--------------------------------------------------------------------------------
1 | {
2 | "Cgroups": [
3 | {
4 | "Controller": "schedtune",
5 | "Path": "/dev/stune",
6 | "Mode": "0755",
7 | "UID": "system",
8 | "GID": "system"
9 | }
10 | ]
11 | }
12 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_secure_element_default.te:
--------------------------------------------------------------------------------
1 | # Allow hal_secure_element_default to get vendor_nfc_prop
2 | get_prop(hal_secure_element_default, vendor_nfc_prop)
3 |
4 | allow hal_secure_element_default hal_nfc_hwservice:hwservice_manager { find };
5 |
--------------------------------------------------------------------------------
/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 | add_hwservice(hal_param_server, hal_param_hwservice)
5 | allow hal_param_client hal_param_hwservice:hwservice_manager find;
6 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_sensors.te:
--------------------------------------------------------------------------------
1 | r_dir_file(vendor_sensors, sysfs_project_info)
2 | allow vendor_sensors oem_file:dir { search };
3 | allow vendor_sensors oem_file:file { getattr open read };
4 | allow vendor_sensors mnt_vendor_file:file { getattr open read };
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 | interworking=1
7 | config_methods=virtual_display virtual_push_button keypad
8 | driver_param="no_rrm=1"
9 |
--------------------------------------------------------------------------------
/DeviceSettings/src/aidl/com/qualcomm/qcrilmsgtunnel/IQcrilMsgTunnel.aidl:
--------------------------------------------------------------------------------
1 | // IQcrilMsgTunnel.aidl
2 | package com.qualcomm.qcrilmsgtunnel;
3 |
4 | interface IQcrilMsgTunnel {
5 | int sendOemRilRequestRaw(in byte[] request, out byte[] response, in int sub);
6 | }
7 |
--------------------------------------------------------------------------------
/wifi-mac-generator/wifi-mac-generator.rc:
--------------------------------------------------------------------------------
1 | service vendor.wifi-mac-generator /vendor/bin/wifi-mac-generator
2 | class main
3 | user wifi
4 | group wifi
5 | oneshot
6 | disabled
7 |
8 | on post-fs-data
9 | start vendor.wifi-mac-generator
10 |
--------------------------------------------------------------------------------
/rootdir/etc/init.recovery.qcom.rc:
--------------------------------------------------------------------------------
1 | import /init.recovery.target.rc
2 |
3 | on fs
4 | wait /dev/block/platform/soc/${ro.boot.bootdevice}
5 | symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
6 |
7 | on init
8 | setprop sys.usb.configfs 1
9 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_display.te:
--------------------------------------------------------------------------------
1 | binder_call(hal_display_client, hal_display_server)
2 | binder_call(hal_display_server, hal_display_client)
3 |
4 | add_hwservice(hal_display_server, hal_display_hwservice)
5 | allow hal_display_client hal_display_hwservice:hwservice_manager find;
6 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_hdcpkey.te:
--------------------------------------------------------------------------------
1 | binder_call(hal_hdcpkey_client, hal_hdcpkey_server)
2 | binder_call(hal_hdcpkey_server, hal_hdcpkey_client)
3 |
4 | add_hwservice(hal_hdcpkey_server, hal_hdcpkey_hwservice)
5 | allow hal_hdcpkey_client hal_hdcpkey_hwservice:hwservice_manager find;
6 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_wcnss_service.te:
--------------------------------------------------------------------------------
1 | # Allow vendor_wcnss_service to read files in sysfs_project_info
2 | r_dir_file(vendor_wcnss_service, sysfs_project_info)
3 |
4 | # Allow vendor_wcnss_service to get vendor_oem_wifi_prop
5 | get_prop(vendor_wcnss_service, vendor_oem_wifi_prop)
6 |
--------------------------------------------------------------------------------
/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 | add_hwservice(hal_cameraHIDL_server, hal_cameraHIDL_hwservice)
5 | allow hal_cameraHIDL_client hal_cameraHIDL_hwservice:hwservice_manager find;
6 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_display_iris.te:
--------------------------------------------------------------------------------
1 | binder_call(hal_display_iris_client, hal_display_iris_server)
2 | binder_call(hal_display_iris_server, hal_display_iris_client)
3 |
4 | add_hwservice(hal_display_iris_server, hal_display_iris_hwservice)
5 | allow hal_display_iris_client hal_display_iris_hwservice:hwservice_manager find;
6 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_hdcpkey_default.te:
--------------------------------------------------------------------------------
1 | type hal_hdcpkey_default, domain;
2 | hal_server_domain(hal_hdcpkey_default, hal_hdcpkey)
3 |
4 | type hal_hdcpkey_default_exec, exec_type, vendor_file_type, file_type;
5 | init_daemon_domain(hal_hdcpkey_default)
6 |
7 | allow hal_hdcpkey_default param_block_device:blk_file rw_file_perms;
8 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/wifi-mac-generator/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH := $(call my-dir)
2 |
3 | include $(CLEAR_VARS)
4 | LOCAL_MODULE := wifi-mac-generator
5 | LOCAL_MODULE_CLASS := ETC
6 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES)
7 | LOCAL_SRC_FILES := wifi-mac-generator.sh
8 | LOCAL_INIT_RC := wifi-mac-generator.rc
9 | include $(BUILD_PREBUILT)
10 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hwservice.te:
--------------------------------------------------------------------------------
1 | type hal_cameraHIDL_hwservice, hwservice_manager_type;
2 | type hal_display_hwservice, hwservice_manager_type;
3 | type hal_display_iris_hwservice, hwservice_manager_type;
4 | type hal_hdcpkey_hwservice, hwservice_manager_type;
5 | type hal_param_hwservice, hwservice_manager_type;
6 | type hal_dms_hwservice, hwservice_manager_type;
7 |
--------------------------------------------------------------------------------
/sepolicy/vendor/init.te:
--------------------------------------------------------------------------------
1 | allow init hal_power_service:service_manager add;
2 | allow init adsprpcd_file:file mounton;
3 |
4 | allow init vendor_data_file:file lock;
5 | allow init hal_audio_default:binder call;
6 | allow init platform_app:binder call;
7 |
8 | allow init per_boot_file:file ioctl;
9 | allowxperm init per_boot_file:file ioctl { F2FS_IOC_SET_PIN_FILE };
10 |
--------------------------------------------------------------------------------
/sepolicy/vendor/system_app.te:
--------------------------------------------------------------------------------
1 | allow system_app sysfs_dm:file rw_file_perms;
2 | allow system_app sysfs_vibrator:file rw_file_perms;
3 | allow system_app sysfs_vibrator:dir r_dir_perms;
4 | allow system_app sysfs_leds:dir search;
5 | allow system_app proc_pagetypeinfo:file r_file_perms;
6 |
7 | allow system_app sysfs_zram:dir search;
8 | allow system_app sysfs_zram:file r_file_perms;
9 |
--------------------------------------------------------------------------------
/configs/adaptivecharging.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/remove_packages/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH := $(call my-dir)
2 |
3 | include $(CLEAR_VARS)
4 | LOCAL_MODULE := RemovePackages
5 | LOCAL_MODULE_CLASS := APPS
6 | LOCAL_MODULE_TAGS := optional
7 | LOCAL_OVERRIDES_PACKAGES := MusicFX SoundAmplifierPrebuilt AudioFX
8 | LOCAL_UNINSTALLABLE_MODULE := true
9 | LOCAL_CERTIFICATE := PRESIGNED
10 | LOCAL_SRC_FILES := /dev/null
11 | include $(BUILD_PREBUILT)
12 |
--------------------------------------------------------------------------------
/sepolicy/vendor/device.te:
--------------------------------------------------------------------------------
1 | type byte_cntr_device, dev_type;
2 | type dash_device, dev_type;
3 | type fingerprintd_device, dev_type;
4 | type fragment_monitor_device, dev_type;
5 | type param_block_device, dev_type;
6 | type param_device, dev_type;
7 | type reserve1_block_device, dev_type;
8 | type reserve2_block_device, dev_type;
9 | type therm_device, dev_type;
10 | type vl53l1_device, dev_type;
11 |
--------------------------------------------------------------------------------
/sepolicy/private/keyhandler_app.te:
--------------------------------------------------------------------------------
1 | type keyhandler_app, domain;
2 |
3 | app_domain(keyhandler_app)
4 |
5 | allow keyhandler_app self:netlink_kobject_uevent_socket { read bind setopt create };
6 |
7 | allow keyhandler_app app_api_service:service_manager find;
8 |
9 | allow keyhandler_app system_app_data_file:dir create_dir_perms;
10 | allow keyhandler_app system_app_data_file:{ file lnk_file } create_file_perms;
11 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_down_icon.xml:
--------------------------------------------------------------------------------
1 |
7 |
9 |
10 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_up_icon.xml:
--------------------------------------------------------------------------------
1 |
7 |
9 |
10 |
--------------------------------------------------------------------------------
/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/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 vendor_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 |
15 | set_prop(rild, vendor_rild_prop)
16 |
--------------------------------------------------------------------------------
/rro_overlays/WifiResCommon/res/values/integers.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 1000
5 |
6 |
7 | 32
8 |
9 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_dolby_atmos.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vl53l1_daemon_main.te:
--------------------------------------------------------------------------------
1 | type vl53l1_daemon_main, domain;
2 | type vl53l1_daemon_main_exec, exec_type, vendor_file_type, file_type;
3 |
4 | init_daemon_domain(vl53l1_daemon_main)
5 |
6 | allow vl53l1_daemon_main self:{
7 | netlink_generic_socket
8 | netlink_iscsi_socket
9 | netlink_kobject_uevent_socket
10 | netlink_socket
11 | } create_socket_perms_no_ioctl;
12 |
13 | allow vl53l1_daemon_main sysfs_vl53l1:dir search;
14 | allow vl53l1_daemon_main sysfs_vl53l1:file rw_file_perms;
15 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_nfc_default.te:
--------------------------------------------------------------------------------
1 | # Allow access to the HALs
2 | hal_client_domain(hal_nfc_default, hal_secure_element)
3 |
4 | # Allow hal_nfc_default to find hal_secure_element_hwservice
5 | allow hal_nfc_default hal_secure_element_hwservice:hwservice_manager find;
6 |
7 | allow hal_nfc_default vendor_nfc_vendor_data_file:file create_file_perms;
8 | allow hal_nfc_default vendor_nfc_vendor_data_file:dir rw_dir_perms;
9 |
10 | # Allow hal_nfc_default to get vendor_nfc_prop
11 | get_prop(hal_nfc_default, vendor_nfc_prop)
12 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_middle_icon.xml:
--------------------------------------------------------------------------------
1 |
7 |
9 |
10 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_graphics_composer_default.te:
--------------------------------------------------------------------------------
1 | hal_client_domain(hal_graphics_composer_default, hal_display_iris)
2 | hal_server_domain(hal_graphics_composer_default, hal_display_iris)
3 |
4 | add_hwservice(hal_graphics_composer_default, hal_display_iris_hwservice)
5 |
6 | allow hal_graphics_composer_default vendor_persist_file:file rw_file_perms;
7 |
8 | allow hal_graphics_composer_default sysfs_devices_system_cpu:file rw_file_perms;
9 |
10 | allow hal_graphics_composer_default vendor_diag_device:chr_file rw_file_perms;
11 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_doze.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_info.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/sepolicy/vendor/property.te:
--------------------------------------------------------------------------------
1 | vendor_internal_prop(vendor_cwb_prop)
2 | vendor_internal_prop(vendor_db_security_prop)
3 | vendor_public_prop(vendor_fingerprint_prop)
4 | vendor_internal_prop(vendor_gps_prop)
5 | vendor_internal_prop(vendor_nfc_prop)
6 | vendor_internal_prop(vendor_oem_bluetooth_prop)
7 | vendor_internal_prop(vendor_oem_wifi_prop)
8 | vendor_internal_prop(vendor_rild_prop)
9 | vendor_internal_prop(vendor_set_wlan_prop)
10 | vendor_internal_prop(vendor_shell_prop)
11 |
12 | # Dolby
13 | type vendor_dolby_loglevel_prop, property_type;
14 |
--------------------------------------------------------------------------------
/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 proc_direct_swappiness:file w_file_perms;
5 | #allow vendor_init proc_hung_task:file w_file_perms;
6 | #allow vendor_init proc_swappiness:file w_file_perms;
7 | #allow vendor_init proc_watermark_boost_factor:file rw_file_perms;
8 |
9 | get_prop(vendor_init, vendor_db_security_prop)
10 | set_prop(vendor_init, vendor_oem_bluetooth_prop)
11 | set_prop(vendor_init, vendor_oem_wifi_prop)
12 |
--------------------------------------------------------------------------------
/rro_overlays/WifiResCommon/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/sepolicy/vendor/tri-state-key-calibrate.te:
--------------------------------------------------------------------------------
1 | type tri-state-key-calibrate, domain;
2 | type tri-state-key-calibrate_exec, exec_type, vendor_file_type, file_type;
3 |
4 | init_daemon_domain(tri-state-key-calibrate)
5 |
6 | allow tri-state-key-calibrate vendor_shell_exec:file rx_file_perms;
7 | allow tri-state-key-calibrate vendor_toolbox_exec:file rx_file_perms;
8 |
9 | allow tri-state-key-calibrate sysfs_tri_state_key:file w_file_perms;
10 |
11 | allow tri-state-key-calibrate mnt_vendor_file:dir search;
12 |
13 | r_dir_file(tri-state-key-calibrate, oem_file)
14 |
--------------------------------------------------------------------------------
/rootdir/bin/init.oplus_chg.sh:
--------------------------------------------------------------------------------
1 | #! /vendor/bin/sh
2 |
3 | export PATH=/vendor/bin
4 |
5 | prefix="/sys/class/oplus_chg"
6 |
7 | if [[ -d "$prefix" ]]
8 | then
9 | for i in `ls "$prefix"`
10 | do
11 | for j in `ls "$prefix"/"$i"`
12 | do
13 | #skip directories to prevent possible security issues.
14 | if [[ -d "$prefix"/"$i"/"$j" ]]
15 | then
16 | continue
17 | else
18 | chown -h system.system "$prefix"/"$i"/"$j"
19 | fi
20 | done
21 | done
22 | fi
--------------------------------------------------------------------------------
/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 vendor_sysfs_battery_supply:file w_file_perms;
7 | allow dashd vendor_sysfs_usb_supply:file w_file_perms;
8 |
9 | allow dashd proc_cmdline:file r_file_perms;
10 |
11 | allow dashd dash_device:chr_file rw_file_perms;
12 | allow dashd kmsg_device:chr_file rw_file_perms;
13 |
14 | r_dir_file(dashd, vendor_sysfs_battery_supply)
15 | r_dir_file(dashd, vendor_sysfs_usb_supply)
16 | r_dir_file(dashd, sysfs_dash_charger)
17 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_power.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_vibration_icon.xml:
--------------------------------------------------------------------------------
1 |
7 |
9 |
10 |
--------------------------------------------------------------------------------
/sepolicy/vendor/attributes:
--------------------------------------------------------------------------------
1 | # HALs
2 | attribute hal_cameraHIDL;
3 | attribute hal_cameraHIDL_client;
4 | attribute hal_cameraHIDL_server;
5 |
6 | attribute hal_display;
7 | attribute hal_display_client;
8 | attribute hal_display_server;
9 |
10 | attribute hal_display_iris;
11 | attribute hal_display_iris_client;
12 | attribute hal_display_iris_server;
13 |
14 | attribute hal_hdcpkey;
15 | attribute hal_hdcpkey_client;
16 | attribute hal_hdcpkey_server;
17 |
18 | attribute hal_param;
19 | attribute hal_param_client;
20 | attribute hal_param_server;
21 |
22 | attribute hal_dms;
23 | attribute hal_dms_client;
24 | attribute hal_dms_server;
25 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_5g.xml:
--------------------------------------------------------------------------------
1 |
7 |
10 |
13 |
14 |
--------------------------------------------------------------------------------
/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 | allow hal_param_default param_device:chr_file rw_file_perms;
14 |
15 | r_dir_file(hal_param_default, sysfs_project_info)
16 |
17 | get_prop(hal_param_default, exported_default_prop)
18 | get_prop(hal_param_default, build_prop)
19 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_dms_default.te:
--------------------------------------------------------------------------------
1 | type hal_dms_default, domain;
2 | hal_server_domain(hal_dms_default, hal_dms)
3 |
4 | type hal_dms_default_exec, exec_type, vendor_file_type, file_type;
5 | init_daemon_domain(hal_dms_default)
6 |
7 | allow hal_dms_default hal_audio_default:binder call;
8 | allow hal_dms_default platform_app:binder call;
9 | allow hal_dms_default vendor_data_file:file { rw_file_perms create };
10 | allow hal_dms_default vendor_data_file:dir { rw_file_perms add_name };
11 |
12 | allow hal_dms_default vendor_media_data_file:dir { add_name remove_name read write search open };
13 | allow hal_dms_default vendor_media_data_file:file { read write open create ioctl getattr lock unlink };
14 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_hbm_tile.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/configs/permissions/privapp-permissions-hotword.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/DeviceSettings/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 | #66000000
16 |
17 |
--------------------------------------------------------------------------------
/rootdir/bin/init.qti.qcv.sh:
--------------------------------------------------------------------------------
1 | #! /vendor/bin/sh
2 | #=============================================================================
3 | # Copyright (c) 2020 Qualcomm Technologies, Inc.
4 | # All Rights Reserved.
5 | # Confidential and Proprietary - Qualcomm Technologies, Inc.
6 | #=============================================================================
7 |
8 | soc_id=`cat /sys/devices/soc0/soc_id` 2> /dev/null
9 |
10 | # Store soc_id in ro.vendor.qti.soc_id
11 | setprop ro.vendor.qti.soc_id $soc_id
12 |
13 | # For chipsets in QCV family, convert soc_id to soc_name
14 | # and store it in ro.vendor.qti.soc_name.
15 | if [ "$soc_id" -eq 415 ] || [ "$soc_id" -eq 439 ] || [ "$soc_id" -eq 456 ]; then
16 | setprop ro.vendor.qti.soc_name lahaina
17 | elif [ "$soc_id" -eq 450 ]; then
18 | setprop ro.vendor.qti.soc_name shima
19 | fi
20 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_display_default.te:
--------------------------------------------------------------------------------
1 | type hal_display_default, domain;
2 | hal_server_domain(hal_display_default, hal_display)
3 |
4 | type hal_display_default_exec, exec_type, vendor_file_type, file_type;
5 | init_daemon_domain(hal_display_default)
6 |
7 | add_hwservice(hal_display_default, hal_display_hwservice)
8 |
9 | hwbinder_use(hal_display_default)
10 |
11 | binder_call(hal_display_default, vendor_hal_display_color)
12 |
13 | allow hal_display_default vendor_hal_display_postproc_hwservice:hwservice_manager find;
14 |
15 | allow hal_display_default sysfs_aod:file rw_file_perms;
16 | allow hal_display_default sysfs_color:file rw_file_perms;
17 |
18 | allow hal_display_default sysfs:file rw_file_perms;
19 | allow hal_display_default sysfs_fod:file rw_file_perms;
20 |
21 | get_prop(hal_display_default, hwservicemanager_prop)
22 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_dolby.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/configs/permissions/privapp-permissions-qti.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_intensity_icon.xml:
--------------------------------------------------------------------------------
1 |
6 |
8 |
9 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_qs_log.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
10 |
13 |
14 |
--------------------------------------------------------------------------------
/DeviceSettings/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
16 |
17 |
--------------------------------------------------------------------------------
/DeviceSettings/res/values/cr_colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
15 |
16 | #66000000
17 |
18 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_hbm_mode_icon.xml:
--------------------------------------------------------------------------------
1 |
7 |
9 |
10 |
--------------------------------------------------------------------------------
/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, vendor_hal_perf_default)
12 |
13 | allow hal_cameraHIDL_default vendor_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 |
--------------------------------------------------------------------------------
/gpt-utils/sparse_crc32.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2010 The Android Open Source 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 | #ifndef _LIBSPARSE_SPARSE_CRC32_H_
18 | #define _LIBSPARSE_SPARSE_CRC32_H_
19 |
20 | #include
21 |
22 | uint32_t sparse_crc32(uint32_t crc, const void* buf, size_t size);
23 |
24 | #endif
25 |
--------------------------------------------------------------------------------
/DeviceSettings/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 | 320dp
16 | 40dp
17 |
18 |
--------------------------------------------------------------------------------
/rootdir/etc/init.color.rc:
--------------------------------------------------------------------------------
1 | on boot
2 | chown system system /sys/class/drm/card0-DSI-1/native_display_p3_mode
3 | chown system system /sys/class/drm/card0-DSI-1/native_display_srgb_color_mode
4 |
5 | # Set sRGB calibration on Natural and Boosted Mode.
6 | on property:persist.sys.sf.native_mode=0
7 | write /sys/class/drm/card0-DSI-1/native_display_p3_mode 0
8 | write /sys/class/drm/card0-DSI-1/native_display_srgb_color_mode 1
9 |
10 | # Set unmanaged calibration on Saturated Mode.
11 | on property:persist.sys.sf.native_mode=1
12 | write /sys/class/drm/card0-DSI-1/native_display_srgb_color_mode 0
13 | write /sys/class/drm/card0-DSI-1/native_display_p3_mode 0
14 |
15 | # Set P3 calibration on Adaptive/Automatic Mode.
16 | on property:persist.sys.sf.native_mode=2
17 | write /sys/class/drm/card0-DSI-1/native_display_srgb_color_mode 0
18 | write /sys/class/drm/card0-DSI-1/native_display_p3_mode 1
19 |
--------------------------------------------------------------------------------
/overlay-superior/hardware/oneplus/doze/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 | oneplus.sensor.op_motion_detect
20 |
21 |
--------------------------------------------------------------------------------
/DeviceSettings/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
15 |
16 |
17 | true
18 |
19 |
--------------------------------------------------------------------------------
/overlay/packages/apps/Dialer/java/com/android/dialer/callrecord/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
15 | true
16 | 4
17 |
18 |
--------------------------------------------------------------------------------
/sepolicy/vendor/vendor_qti_init_shell.te:
--------------------------------------------------------------------------------
1 | allow vendor_qti_init_shell proc_modules:file r_file_perms;
2 |
3 | allow vendor_qti_init_shell sysfs:file write;
4 |
5 | allow vendor_qti_init_shell sysfs_fsc:dir r_dir_perms;
6 | allow vendor_qti_init_shell sysfs_fsc:file rw_file_perms;
7 |
8 | allow vendor_qti_init_shell vendor_data_file:dir create_dir_perms;
9 | allow vendor_qti_init_shell vendor_data_file:file create_file_perms;
10 |
11 | allow vendor_qti_init_shell vendor_file:file execute_no_trans;
12 | allow vendor_qti_init_shell vendor_file:system module_load;
13 |
14 | allow vendor_qti_init_shell vendor_sysfs_scsi_host:dir r_dir_perms;
15 | allow vendor_qti_init_shell vendor_sysfs_scsi_host:file rw_file_perms;
16 |
17 | allow vendor_qti_init_shell vendor_wcnss_service_exec:file execute_no_trans;
18 |
19 | get_prop(vendor_qti_init_shell, exported_system_prop)
20 | set_prop(vendor_qti_init_shell, ctl_default_prop)
21 | set_prop(vendor_qti_init_shell, vendor_set_wlan_prop)
22 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 | true
23 |
24 |
25 |
--------------------------------------------------------------------------------
/overlay/packages/apps/Settings/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 | 8dp
20 | - 80%
21 |
22 |
--------------------------------------------------------------------------------
/DeviceSettings/res/mipmap-anydpi/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/sepolicy/vendor/file.te:
--------------------------------------------------------------------------------
1 | # files
2 | type oem_file, file_type;
3 | type opf_file, file_type;
4 | type public_adsprpcd_file, file_type;
5 |
6 | # procfs
7 | type proc_direct_swappiness, fs_type, proc_type;
8 | type proc_swappiness, fs_type, proc_type;
9 | type proc_touchpanel, fs_type, proc_type;
10 | #type proc_watermark_boost_factor, fs_type, proc_type;
11 |
12 | # sysfs
13 | type sysfs_aod, sysfs_type, fs_type;
14 | type sysfs_dash_charger, fs_type, proc_type, sysfs_type;
15 | type sysfs_dbg, fs_type, sysfs_type;
16 | type sysfs_fod, fs_type, sysfs_type;
17 | type sysfs_fsc, fs_type, sysfs_type;
18 | type sysfs_fuse, fs_type, sysfs_type;
19 | type sysfs_project_info, fs_type, sysfs_type;
20 | type sysfs_tpd, fs_type, sysfs_type;
21 | type sysfs_tri_state_key, sysfs_type, fs_type;
22 | type sysfs_vl53l1, fs_type, sysfs_type;
23 | type vendor_sysfs_video_call_on, fs_type, sysfs_type;
24 | type sysfs_color, fs_type, sysfs_type;
25 |
26 | # Data files
27 | type per_boot_file, file_type, data_file_type, core_data_file_type;
28 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/inactive_dot.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/active_dot.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/rro_overlays/WifiResCommon/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
11 |
12 |
13 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/overlay/packages/apps/Settings/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
15 |
16 | true
17 |
18 |
19 | false
20 |
21 |
--------------------------------------------------------------------------------
/configs/component-overrides.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/system_ext.prop:
--------------------------------------------------------------------------------
1 | # DPM
2 | persist.vendor.dpm.feature=11
3 |
4 | # Bluetooth
5 | bluetooth.device.class_of_device=90,2,12
6 | bluetooth.profile.a2dp.source.enabled=true
7 | bluetooth.profile.asha.central.enabled=true
8 | bluetooth.profile.avrcp.target.enabled=true
9 | bluetooth.profile.bap.broadcast.assist.enabled=true
10 | bluetooth.profile.bap.unicast.client.enabled=true
11 | bluetooth.profile.bas.client.enabled=true
12 | bluetooth.profile.ccp.server.enabled=true
13 | bluetooth.profile.csip.set_coordinator.enabled=true
14 | bluetooth.profile.gatt.enabled=true
15 | bluetooth.profile.hap.client.enabled=true
16 | bluetooth.profile.hfp.ag.enabled=true
17 | bluetooth.profile.hid.device.enabled=true
18 | bluetooth.profile.hid.host.enabled=true
19 | bluetooth.profile.map.server.enabled=true
20 | bluetooth.profile.mcp.server.enabled=true
21 | bluetooth.profile.opp.enabled=true
22 | bluetooth.profile.pan.nap.enabled=true
23 | bluetooth.profile.pan.panu.enabled=true
24 | bluetooth.profile.pbap.server.enabled=true
25 | bluetooth.profile.sap.server.enabled=true
26 | bluetooth.profile.vcp.controller.enabled=true
27 |
--------------------------------------------------------------------------------
/configs/media/media_codecs_vendor_audio.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/overlay/packages/apps/Settings/res/values/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
23 |
24 | - 0
25 | - -1
26 | - -1
27 |
28 |
29 |
--------------------------------------------------------------------------------
/bootctrl/Android.bp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (C) 2018 The Android Open Source 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 | cc_library {
18 | name: "bootctrl.lito",
19 | defaults: ["bootctrl_hal_defaults"],
20 | static_libs: ["libgptutils.oneplus_lito"],
21 | }
22 |
23 | cc_library_shared {
24 | name: "android.hardware.boot@1.1-impl-qti",
25 | stem: "android.hardware.boot@1.0-impl-1.1-qti",
26 | defaults: ["android.hardware.boot@1.1-impl-qti_defaults"],
27 | static_libs: ["libgptutils.oneplus_lito"],
28 | }
29 |
--------------------------------------------------------------------------------
/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 vendor_persist_file:dir w_dir_perms;
10 | allow hal_camera_default vendor_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 vendor_xdsp_device:chr_file r_file_perms;
16 |
17 | allow hal_camera_default vl53l1_device:chr_file rw_file_perms;
18 |
19 | allow hal_camera_default proc_meminfo:file r_file_perms;
20 | allow hal_camera_default vendor_sysfs_video_call_on:file rw_file_perms;
21 |
22 | get_prop(hal_camera_default, ctl_default_prop)
23 | get_prop(hal_camera_default, vendor_camera_prop)
24 | get_prop(hal_camera_default, vendor_db_security_prop)
25 | get_prop(hal_camera_default, vendor_mmi_prop)
26 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_custom_seekbar_minus.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
19 |
22 |
23 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_linux.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/gpt-utils/Android.bp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (C) 2018 The Android Open Source 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 |
18 | cc_library {
19 | name: "libgptutils.oneplus_lito",
20 | vendor: true,
21 | recovery_available: true,
22 | shared_libs: [
23 | "libcutils",
24 | "liblog",
25 | "libz",
26 | ],
27 | cflags: [
28 | "-Wall",
29 | "-Werror",
30 | ],
31 | srcs: [
32 | "gpt-utils.cpp",
33 | ],
34 | owner: "qti",
35 | header_libs: [
36 | "generated_kernel_headers",
37 | ],
38 | export_include_dirs: ["."],
39 | }
40 |
--------------------------------------------------------------------------------
/configs/apn/apns-conf.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/DeviceSettings/res/values/cr_attrs.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_custom_seekbar_plus.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
19 |
22 |
23 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_custom_seekbar_reset.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
19 |
22 |
23 |
--------------------------------------------------------------------------------
/DeviceSettings/res/layout/image_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
19 |
20 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_info_outline.xml:
--------------------------------------------------------------------------------
1 |
13 |
19 |
22 |
23 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_autohbm_mode_icon.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
23 |
24 |
27 |
28 |
--------------------------------------------------------------------------------
/overlay-superior/packages/apps/Settings/res/values/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
23 |
24 | - Vivid
25 | - Natural
26 | - AMOLED Wide Gamut
27 | - sRGB
28 | - Display P3
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_info_outline_24dp.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
20 |
23 |
24 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_hbm_mode.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
23 |
26 |
27 |
--------------------------------------------------------------------------------
/setup-makefiles.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | # Copyright (C) 2016 The CyanogenMod Project
4 | # Copyright (C) 2017-2020 The LineageOS Project
5 | #
6 | # SPDX-License-Identifier: Apache-2.0
7 | #
8 |
9 | set -e
10 |
11 | # Load extract_utils and do some sanity checks
12 | MY_DIR="${BASH_SOURCE%/*}"
13 | if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
14 |
15 | ANDROID_ROOT="${MY_DIR}/../../.."
16 |
17 | HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
18 | if [ ! -f "${HELPER}" ]; then
19 | echo "Unable to find helper script at ${HELPER}"
20 | exit 1
21 | fi
22 | source "${HELPER}"
23 |
24 | # Initialize the helper for common
25 | setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${ANDROID_ROOT}" true
26 |
27 | # Warning headers and guards
28 | write_headers "avicii ebba"
29 |
30 | # The standard common blobs
31 | write_makefiles "${MY_DIR}/proprietary-files.txt" true
32 |
33 | # Finish
34 | write_footers
35 |
36 | if [ -s "${MY_DIR}/../${DEVICE}/proprietary-files.txt" ]; then
37 | # Reinitialize the helper for device
38 | setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false
39 |
40 | # Warning headers and guards
41 | write_headers
42 |
43 | # The standard device blobs
44 | write_makefiles "${MY_DIR}/../${DEVICE}/proprietary-files.txt" true
45 |
46 | # Finish
47 | write_footers
48 | fi
49 |
--------------------------------------------------------------------------------
/overlay-superior/packages/apps/Settings/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
25 | 1
26 |
27 |
28 | true
29 | false
30 |
31 |
32 |
--------------------------------------------------------------------------------
/DeviceSettings/src/org/lineageos/device/DeviceSettings/AutoRefreshRateSwitch.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2016 The OmniROM Project
3 | *
4 | * This program is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | *
17 | */
18 | package org.lineageos.device.DeviceSettings;
19 |
20 | import android.content.Context;
21 | import android.provider.Settings;
22 |
23 | import org.lineageos.device.DeviceSettings.DeviceSettings;
24 |
25 | public class AutoRefreshRateSwitch {
26 |
27 | public static final String SETTINGS_KEY = DeviceSettings.KEY_AUTO_REFRESH_RATE;
28 |
29 | public AutoRefreshRateSwitch() { }
30 |
31 | public static boolean isCurrentlyEnabled(Context context) {
32 | return Settings.System.getInt(context.getContentResolver(), SETTINGS_KEY, 1) == 1;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/overlay-superior/frameworks/base/packages/SystemUI/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
15 |
16 |
17 | 503px
18 | 503px
19 | 503px
20 | 24px
21 | 21px
22 | 627px
23 | 480px
24 | 336px
25 |
26 |
27 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 | true
25 |
26 |
27 | 0
28 |
29 |
31 | true
32 |
33 |
--------------------------------------------------------------------------------
/DeviceSettings/Android.bp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (C) 2013 The CyanogenMod Project
3 | // Copyright (C) 2018 The LineageOS Project
4 | // Copyright (C) 2019 Android Open Source Illusion Project
5 | //
6 | // Licensed under the Apache License, Version 2.0 (the "License");
7 | // you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.apache.org/licenses/LICENSE-2.0
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //
18 |
19 | android_app {
20 | name: "DeviceSettings",
21 |
22 | defaults: [
23 | "SettingsLibDefaults",
24 | ],
25 |
26 | srcs: [
27 | "src/**/*.java",
28 | "src/**/*.aidl",
29 | ],
30 | certificate: "platform",
31 | platform_apis: true,
32 | system_ext_specific: true,
33 | privileged: true,
34 |
35 | static_libs: [
36 | "androidx.core_core",
37 | "androidx.preference_preference",
38 | "org.lineageos.settings.resources",
39 | ],
40 |
41 | resource_dirs: ["res"],
42 |
43 | optimize: {
44 | proguard_flags_files: ["proguard.flags"],
45 | },
46 | }
47 |
--------------------------------------------------------------------------------
/DeviceSettings/src/org/lineageos/device/DeviceSettings/ModeSwitch/HBMModeSwitch.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2016 The OmniROM Project
3 | *
4 | * This program is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | *
17 | */
18 | package org.lineageos.device.DeviceSettings;
19 |
20 | import android.content.Context;
21 |
22 | public class HBMModeSwitch {
23 |
24 | private static final String FILE = "/sys/devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/hbm";
25 |
26 | public static String getFile() {
27 | if (Utils.fileWritable(FILE)) {
28 | return FILE;
29 | }
30 | return null;
31 | }
32 |
33 | public static boolean isSupported() {
34 | return Utils.fileWritable(getFile());
35 | }
36 |
37 | public static boolean isCurrentlyEnabled(Context context) {
38 | return Utils.getFileValueAsBoolean(getFile(), false);
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_settings_device.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
21 |
22 |
25 |
26 |
--------------------------------------------------------------------------------
/wifi-mac-generator/wifi-mac-generator.sh:
--------------------------------------------------------------------------------
1 | #!/vendor/bin/sh
2 | WLAN_MAC_VENDOR_PREFIX="C0EEFB"
3 | WLAN_MAC_PERSIST_PATH="/mnt/vendor/persist/wlan_mac.bin"
4 |
5 | function wait_for_file() {
6 | retries=0
7 |
8 | while [ ! -f "${1}" ]; do
9 | retries=$((retries + 1))
10 |
11 | if [ "${retries}" -eq 10 ]; then
12 | return 1
13 | fi
14 |
15 | sleep 1
16 | done
17 |
18 | return 0
19 | }
20 |
21 | if [[ ! -f "${WLAN_MAC_PERSIST_PATH}" ]] || [[ ! -s "${WLAN_MAC_PERSIST_PATH}" ]]; then
22 | MAC_0_PATH="/data/vendor/oemnvitems/4678_0"
23 |
24 | if ! wait_for_file "${MAC_0_PATH}"; then
25 | MAC_0="${WLAN_MAC_VENDOR_PREFIX}`xxd -l 3 -p /dev/urandom | tr '[:lower:]' '[:upper:]'`"
26 | else
27 | MAC_0=`xxd -p "${MAC_0_PATH}" | grep -o '..' | tac | tr -d '\n' | tr '[:lower:]' '[:upper:]'`
28 | fi
29 |
30 | MAC_1_PATH="/data/vendor/oemnvitems/4678_1"
31 |
32 | if ! wait_for_file "${MAC_1_PATH}"; then
33 | MAC_1="${WLAN_MAC_VENDOR_PREFIX}`xxd -l 3 -p /dev/urandom | tr '[:lower:]' '[:upper:]'`"
34 | else
35 | MAC_1=`xxd -p "${MAC_1_PATH}" | grep -o '..' | tac | tr -d '\n' | tr '[:lower:]' '[:upper:]'`
36 | fi
37 |
38 | echo "Intf0MacAddress=${MAC_0}" > "${WLAN_MAC_PERSIST_PATH}"
39 | echo "Intf1MacAddress=${MAC_1}" >> "${WLAN_MAC_PERSIST_PATH}"
40 | echo "Intf2MacAddress=000AF58989FD" >> "${WLAN_MAC_PERSIST_PATH}"
41 | echo "Intf3MacAddress=000AF58989FC" >> "${WLAN_MAC_PERSIST_PATH}"
42 | echo "END" >> "${WLAN_MAC_PERSIST_PATH}"
43 | fi
44 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_settings_device_qs.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
22 |
25 |
26 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_gestures_icon.xml:
--------------------------------------------------------------------------------
1 |
16 |
22 |
28 |
29 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hwservice_contexts:
--------------------------------------------------------------------------------
1 | vendor.goodix.hardware.biometrics.fingerprint::IGoodixFingerprintDaemon u:object_r:hal_fingerprint_hwservice:s0
2 | vendor.nxp.eventprocessor::INxpEseEvtProcessor u:object_r:hal_secure_element_hwservice:s0
3 | vendor.nxp.nxpese::INxpEse u:object_r:hal_secure_element_hwservice:s0
4 | vendor.nxp.nxpnfc::INxpNfc u:object_r:hal_nfc_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.display::IOneplusDisplay u:object_r:hal_display_hwservice:s0
10 | vendor.oneplus.hardware.hdcpkey::IOneplusHdcpKey u:object_r:hal_hdcpkey_hwservice:s0
11 | vendor.oneplus.hardware.param::IOneplusParam u:object_r:hal_param_hwservice:s0
12 | vendor.pixelworks.hardware.display::IIris u:object_r:hal_display_iris_hwservice:s0
13 | vendor.pixelworks.hardware.feature::IIrisFeature u:object_r:hal_display_iris_hwservice:s0
14 | vendor.qti.hardware.audiohalext::IAudioHalExt u:object_r:hal_audio_hwservice:s0
15 | vendor.dolby.hardware.dms::IDms u:object_r:hal_dms_hwservice:s0
16 |
--------------------------------------------------------------------------------
/DeviceSettings/src/org/lineageos/device/DeviceSettings/RefreshRateSwitch.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2016 The OmniROM Project
3 | *
4 | * This program is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | *
17 | */
18 | package org.lineageos.device.DeviceSettings;
19 |
20 | import android.content.Context;
21 | import android.provider.Settings;
22 |
23 | import org.lineageos.device.DeviceSettings.DeviceSettings;
24 |
25 | public class RefreshRateSwitch {
26 |
27 | public static boolean isCurrentlyEnabled(Context context) {
28 | boolean peak = Settings.System.getFloat(context.getContentResolver(),
29 | Settings.System.PEAK_REFRESH_RATE, 120f) == 120f;
30 | boolean min = Settings.System.getFloat(context.getContentResolver(),
31 | Settings.System.MIN_REFRESH_RATE, 60f) == 120f;
32 | return peak && min;
33 | }
34 |
35 | public static void setPeakRefresh(Context context, boolean enabled) {
36 | Settings.System.putFloat(context.getContentResolver(),
37 | Settings.System.PEAK_REFRESH_RATE, enabled ? 120f : 60f);
38 | Settings.System.putFloat(context.getContentResolver(),
39 | Settings.System.MIN_REFRESH_RATE, enabled ? 120f : 60f);
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/DeviceSettings/src/org/lineageos/device/DeviceSettings/DeviceSettingsActivity.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2017 The OmniROM Project
3 | *
4 | * This program is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | *
17 | */
18 | package org.lineageos.device.DeviceSettings;
19 |
20 | import android.app.Fragment;
21 | import android.os.Bundle;
22 | import androidx.preference.PreferenceFragment;
23 | import androidx.preference.PreferenceManager;
24 |
25 | import com.android.settingslib.collapsingtoolbar.CollapsingToolbarBaseActivity;
26 | import com.android.settingslib.widget.R;
27 |
28 | public class DeviceSettingsActivity extends CollapsingToolbarBaseActivity {
29 |
30 | private DeviceSettings mDeviceSettingsFragment;
31 |
32 | @Override
33 | protected void onCreate(Bundle savedInstanceState) {
34 | super.onCreate(savedInstanceState);
35 |
36 | Fragment fragment = getFragmentManager().findFragmentById(R.id.content_frame);
37 | if (fragment == null) {
38 | mDeviceSettingsFragment = new DeviceSettings();
39 | getFragmentManager().beginTransaction()
40 | .add(R.id.content_frame, mDeviceSettingsFragment)
41 | .commit();
42 | } else {
43 | mDeviceSettingsFragment = (DeviceSettings) fragment;
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/DeviceSettings/res/values/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 | - @string/notification_slider_mode_total_silence
21 | - @string/notification_slider_mode_silent
22 | - @string/notification_slider_mode_priority_only
23 | - @string/notification_slider_mode_vibrate
24 | - @string/notification_slider_mode_none
25 |
26 |
27 |
28 | - 0
29 | - 1
30 | - 2
31 | - 3
32 | - 4
33 |
34 |
35 |
36 |
37 | - @string/nsa_only
38 | - @string/sa_only
39 | - @string/nsa_sa
40 |
41 |
42 | - 0
43 | - 1
44 | - 2
45 |
46 |
47 |
--------------------------------------------------------------------------------
/configs/public.libraries.txt:
--------------------------------------------------------------------------------
1 | libnpu.so
2 | libhta_hexagon_runtime.so
3 | libqti-perfd-client.so
4 | libadsprpc.so
5 | libcdsprpc.so
6 | libsdsprpc.so
7 | libfastcvopt.so
8 | liblistensoundmodel2.so
9 | libOpenCL.so
10 | unnhal-acc-hta.so
11 | libarcsoft_hdr_denoise_api.so
12 | libarcsoft_tricam_verification.so
13 | libAlgoProcess.so 64
14 | libPolarrRender.so
15 | libapsexif.so 64
16 | libapsjpeg.so 64
17 | libmpbase.so
18 | libarcsoft_high_dynamic_range.so
19 | libarcsoft_smart_denoise.so
20 | libarcsoft_low_light_hdr.so
21 | libarcsoft_hdr_couple_api.so 64
22 | libarcsoft_high_dynamic_range_couple.so 64
23 | libarcsoft_super_night_raw.so 64
24 | libarcsoft_hdrplus_hvx_stub.so 64
25 | libVDSuperPhotoAPI.so 64
26 | libarcsoft_beautyshot.so 64
27 | libVDBlurless.so 64
28 | libVDDualCameraBlurlessAPI.so 64
29 | libapsdarksight.so 64
30 | libaps_frame_registration.so 64
31 | libSNPE.so 64
32 | libsymphony-cpu.so 64
33 | libsymphonypower.so 64
34 | libc++_shared.so 64
35 | libstdc++.so
36 | libarcsoft_dualcam_bokeh_api.so
37 | libarcsoft_dualcam_refocus_preview.so
38 | libarcsoft_dualcam_refocus_left.so
39 | libarcsoft_dualcam_refocus_uw.so
40 | libarcsoft_portrait_distortion_correction.so
41 | libarcsoft_portrait_distortion_correction_20801.so
42 | libmorpho_image_refiner_deflicker.so 64
43 | lib_oneplus_watermark.so 64
44 | vendor.qti.hardware.camera.postproc@1.0.so
45 | libSuperSensor.so 64
46 | libSuperSensorFallback.so 64
47 | libSuperSensorProcessor.so 64
48 | libSuperSensorProcessorCWrapper.so 64
49 | libarcsoft_stripe_removal.so 64
50 | libarcsoft_mfsr_frt.so 64
51 | libarcsoft_superportrait.so 64
52 | libAncSegBaseSdk.so 64
53 | libancbase_segbase.so 64
54 | libop-bokeh.so 64
55 | lib_bokehlib.so 64
56 | libhta.so 64
57 | libyuv2.so 64
58 | libsnpe_dsp_domains.so 64
59 | libsnpe_dsp_domains_v2.so 64
60 | libalCFR.so
61 | libqti-perfd-client.so
62 | libadsprpc.so
63 | libcdsprpc.so
64 | libsdsprpc.so
65 | libfastcvopt.so
66 | liblistensoundmodel2.so
67 | libOpenCL.so
68 | liblistenjni.qti.so
69 |
--------------------------------------------------------------------------------
/overlay/packages/services/Telephony/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
21 |
22 |
24 |
25 |
26 | true
27 |
28 |
29 | true
30 |
31 |
32 | org.codeaurora.ims
33 |
34 |
35 | org.codeaurora.ims
36 |
37 |
38 | false
39 |
40 |
--------------------------------------------------------------------------------
/sepolicy/vendor/hal_fingerprint_default.te:
--------------------------------------------------------------------------------
1 | allow hal_fingerprint_default self:netlink_socket create_socket_perms_no_ioctl;
2 |
3 | binder_call(hal_fingerprint_default, hal_display_default)
4 | binder_call(hal_fingerprint_default, vendor_hal_perf_default)
5 |
6 | allow hal_fingerprint_default hal_display_hwservice:hwservice_manager find;
7 | allow hal_fingerprint_default vendor_hal_perf_hwservice:hwservice_manager find;
8 |
9 | allow hal_fingerprint_default fingerprintd_device:chr_file rw_file_perms;
10 | allow hal_fingerprint_default mnt_vendor_file:dir create_dir_perms;
11 | allow hal_fingerprint_default mnt_vendor_file:file create_file_perms;
12 |
13 | allow hal_fingerprint_default oem_file:dir create_dir_perms;
14 | allow hal_fingerprint_default oem_file:file create_file_perms;
15 |
16 | allow hal_fingerprint_default tee_device:chr_file rw_file_perms;
17 | allow hal_fingerprint_default vendor_qdsp_device:chr_file rw_file_perms;
18 | allow hal_fingerprint_default vendor_xdsp_device:chr_file rw_file_perms;
19 |
20 | #allow hal_fingerprint_default proc_touchpanel:dir search;
21 | #allow hal_fingerprint_default proc_touchpanel:file rw_file_perms;
22 |
23 | allow hal_fingerprint_default mnt_vendor_file:dir create_dir_perms;
24 | allow hal_fingerprint_default mnt_vendor_file:file create_file_perms;
25 |
26 | allow hal_fingerprint_default oem_file:dir create_dir_perms;
27 | allow hal_fingerprint_default oem_file:file create_file_perms;
28 |
29 | allow hal_fingerprint_default proc:file rw_file_perms;
30 |
31 | allow hal_fingerprint_default vendor_sysfs_battery_supply:dir search;
32 | allow hal_fingerprint_default vendor_sysfs_battery_supply:file r_file_perms;
33 |
34 | allow hal_fingerprint_default sysfs_aod:file rw_file_perms;
35 | allow hal_fingerprint_default sysfs:file rw_file_perms;
36 | allow hal_fingerprint_default sysfs_fod:file rw_file_perms;
37 | allow hal_fingerprint_default sysfs_color:file rw_file_perms;
38 |
39 | get_prop(hal_fingerprint_default, vendor_adsprpc_prop)
40 | get_prop(hal_fingerprint_default, vendor_default_prop)
41 | set_prop(hal_fingerprint_default, vendor_fingerprint_prop)
42 |
--------------------------------------------------------------------------------
/DeviceSettings/src/org/lineageos/device/DeviceSettings/HBMModeService.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2020 Yet Another AOSP Project
3 | *
4 | * This program is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | *
17 | */
18 | package org.lineageos.device.DeviceSettings;
19 |
20 | import android.app.Service;
21 | import android.content.BroadcastReceiver;
22 | import android.content.Context;
23 | import android.content.Intent;
24 | import android.content.IntentFilter;
25 | import android.os.IBinder;
26 |
27 | import org.lineageos.device.DeviceSettings.HBMModeSwitch;
28 |
29 | public class HBMModeService extends Service {
30 |
31 | private BroadcastReceiver mReceiver = new BroadcastReceiver() {
32 | @Override
33 | public void onReceive(Context context, Intent intent) {
34 | String action = intent.getAction();
35 | if (action.equals(Intent.ACTION_SCREEN_OFF)) {
36 | Utils.writeValue(HBMModeSwitch.getFile(), "0");
37 | stopSelf();
38 | }
39 | }
40 | };
41 |
42 | @Override
43 | public int onStartCommand(Intent intent, int flags, int startId) {
44 | IntentFilter intentFilter = new IntentFilter(Intent.ACTION_SCREEN_OFF);
45 | registerReceiver(mReceiver, intentFilter);
46 | return START_REDELIVER_INTENT;
47 | }
48 |
49 | @Override
50 | public IBinder onBind(Intent intent) { return null; }
51 |
52 | @Override
53 | public void onDestroy() {
54 | unregisterReceiver(mReceiver);
55 | super.onDestroy();
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/gps/flp.conf:
--------------------------------------------------------------------------------
1 | ###################################
2 | ##### FLP settings #####
3 | ###################################
4 |
5 | ###################################
6 | # FLP BATCH SIZE
7 | ###################################
8 | # The number of batched locations
9 | # requested to modem. The desired number
10 | # defined below may not be satisfied, as
11 | # the modem can only return the number
12 | # of batched locations that can be allocated,
13 | # which is limited by memory. The default
14 | # batch size defined as 20 as below.
15 | BATCH_SIZE=20
16 |
17 | ###################################
18 | # FLP OUTDOOR TRIP BATCH SIZE
19 | ###################################
20 | # The number of batched locations
21 | # requested to modem for outdoor
22 | # trip batching. The desired number
23 | # defined below may not be satisfied, as
24 | # the modem can only return the number
25 | # of batched locations that can be allocated,
26 | # which is limited by memory. The default
27 | # trip batch size defined as 600 as below.
28 | OUTDOOR_TRIP_BATCH_SIZE=600
29 |
30 | ###################################
31 | # FLP BATCHING SESSION TIMEOUT
32 | ###################################
33 | # Duration with which batch session timeout
34 | # happens in milliseconds. If not specified
35 | # or set to zero, batching session timeout
36 | # defaults to 20 seconds by the modem.
37 | # BATCH_SESSION_TIMEOUT=20000
38 |
39 | ###################################
40 | # FLP BATCHING ACCURACY
41 | ###################################
42 | # Set to one of the defined values below
43 | # to define the accuracy of batching.
44 | # If not specified, accuracy defaults
45 | # to LOW.
46 | # FLP BATCHING ACCURACY values:
47 | # Low accuracy = 0
48 | # Medium accuracy = 1
49 | # High accuracy = 2
50 | ACCURACY=1
51 |
52 | ####################################
53 | # By default if network fixes are not sensor assisted
54 | # these fixes must be dropped. This parameter adds an exception
55 | # for targets where there is no PDR and we still want to
56 | # report out network fixes
57 | # 0: MUST NOT ALLOW NETWORK FIXES
58 | # 1: ALLOW NETWORK FIXES
59 | ####################################
60 | ALLOW_NETWORK_FIXES = 0
61 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_dc_tile.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/overlay-superior/frameworks/base/packages/SystemUI/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
15 |
16 |
17 |
18 | true
19 |
20 |
24 | 0
25 |
26 |
27 | 6
28 | 7
29 |
30 |
31 | true
32 |
33 |
35 | -1
36 |
37 |
38 | -15
39 |
40 |
41 | 15
42 |
43 |
44 | -40
45 |
46 |
47 | 40
48 |
49 |
50 |
--------------------------------------------------------------------------------
/DeviceSettings/src/org/lineageos/device/DeviceSettings/AutoHBMThresholdPreference.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2016 The OmniROM Project
3 | *
4 | * This program is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | *
17 | */
18 | package org.lineageos.device.DeviceSettings;
19 |
20 | import android.content.Context;
21 | import android.content.SharedPreferences;
22 | import android.os.Bundle;
23 | import android.util.AttributeSet;
24 | import androidx.preference.PreferenceManager;
25 |
26 | public class AutoHBMThresholdPreference extends CustomSeekBarPreference {
27 |
28 | private static int mMinVal = 0;
29 | private static int mMaxVal = 60000;
30 | private static int mDefVal = 30000;
31 |
32 | public AutoHBMThresholdPreference(Context context, AttributeSet attrs) {
33 | super(context, attrs);
34 |
35 | mInterval = 1000;
36 | mShowSign = false;
37 | mUnits = "";
38 | mContinuousUpdates = false;
39 | mMinValue = mMinVal;
40 | mMaxValue = mMaxVal;
41 | mDefaultValueExists = true;
42 | mDefaultValue = mDefVal;
43 | SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(getContext());
44 | mValue = Integer.parseInt(sharedPrefs.getString(DeviceSettings.KEY_AUTO_HBM_THRESHOLD, "30000"));
45 |
46 | setPersistent(false);
47 | }
48 |
49 | @Override
50 | protected void changeValue(int newValue) {
51 | SharedPreferences.Editor prefChange = PreferenceManager.getDefaultSharedPreferences(getContext()).edit();
52 | prefChange.putString(DeviceSettings.KEY_AUTO_HBM_THRESHOLD, String.valueOf(newValue)).commit();
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_dc_mode_icon.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/DeviceSettings/src/org/lineageos/device/DeviceSettings/FPSTileService.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (C) 2020 Omni ROM
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.device.DeviceSettings;
18 |
19 | import android.app.ActivityManager;
20 | import android.content.Intent;
21 | import android.os.Handler;
22 | import android.service.quicksettings.Tile;
23 | import android.service.quicksettings.TileService;
24 |
25 | // TODO: Add FPS drawables
26 | public class FPSTileService extends TileService {
27 |
28 | private final String KEY_FPS_INFO = "fps_info";
29 |
30 | private boolean isShowing = false;
31 |
32 | public FPSTileService() { }
33 |
34 | @Override
35 | public void onStartListening() {
36 | super.onStartListening();
37 | ActivityManager manager =
38 | (ActivityManager) getSystemService(this.ACTIVITY_SERVICE);
39 | for (ActivityManager.RunningServiceInfo service :
40 | manager.getRunningServices(Integer.MAX_VALUE)) {
41 | if (org.lineageos.device.DeviceSettings.FPSInfoService.class.getName().equals(
42 | service.service.getClassName())) {
43 | isShowing = true;
44 | }
45 | }
46 | updateTile();
47 | }
48 |
49 | @Override
50 | public void onClick() {
51 | Intent fpsinfo = new Intent(this, org.lineageos.device.DeviceSettings.FPSInfoService.class);
52 | if (!isShowing)
53 | this.startService(fpsinfo);
54 | else
55 | this.stopService(fpsinfo);
56 | isShowing = !isShowing;
57 | updateTile();
58 | }
59 |
60 | private void updateTile() {
61 | final Tile tile = getQsTile();
62 | tile.setState(isShowing ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE);
63 | tile.updateTile();
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_fps.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
23 |
27 |
30 |
31 |
--------------------------------------------------------------------------------
/DeviceSettings/res/drawable/ic_fps_overlay_icon.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
23 |
27 |
30 |
31 |
--------------------------------------------------------------------------------
/rootdir/bin/init.qti.chg_policy.sh:
--------------------------------------------------------------------------------
1 | #! /vendor/bin/sh
2 |
3 | #
4 | # Copyright (c) 2019-2020 Qualcomm Technologies, Inc.
5 | # All Rights Reserved.
6 | # Confidential and Proprietary - Qualcomm Technologies, Inc.
7 | #
8 | # Copyright (c) 2019 The Linux Foundation. All rights reserved.
9 | #
10 |
11 | export PATH=/vendor/bin
12 |
13 | soc_id=`getprop ro.vendor.qti.soc_id`
14 | if [ "$soc_id" -eq 415 ] || [ "$soc_id" -eq 439 ] || [ "$soc_id" -eq 450 ]; then
15 | setprop persist.vendor.hvdcp_opti.start 2
16 | exit 0
17 | fi
18 |
19 | if [ "$soc_id" -eq 441 ] || [ "$soc_id" -eq 471 ]; then
20 | #Scuba does not support usb-pd or charge pumps
21 | find /sys/class/power_supply/battery/ -type f -maxdepth 1 | xargs chown system.system
22 | find /sys/class/power_supply/bms/ -type f -maxdepth 1 | xargs chown system.system
23 | find /sys/class/power_supply/main/ -type f -maxdepth 1 | xargs chown system.system
24 | find /sys/class/power_supply/usb/ -type f -maxdepth 1 | xargs chown system.system
25 | else
26 | find /sys/class/power_supply/battery/ -type f -maxdepth 1 | xargs chown system.system
27 | find /sys/class/power_supply/bms/ -type f -maxdepth 1 | xargs chown system.system
28 | find /sys/class/power_supply/main/ -type f -maxdepth 1 | xargs chown system.system
29 | find /sys/class/power_supply/usb/ -type f -maxdepth 1 | xargs chown system.system
30 | find /sys/class/power_supply/charge_pump_master/ -type f -maxdepth 1 | xargs chown system.system
31 | find /sys/class/power_supply/pc_port/ -type f -maxdepth 1 | xargs chown system.system
32 | find /sys/class/power_supply/dc/ -type f -maxdepth 1 | xargs chown system.system
33 | find /sys/class/power_supply/parallel/ -type f -maxdepth 1 | xargs chown system.system
34 | find /sys/class/usbpd/usbpd0/ -type f -maxdepth 1 | xargs chown system.system
35 | find /sys/class/qc-vdm/ -type f -maxdepth 1 | xargs chown system.system
36 | find /sys/class/charge_pump/ -type f -maxdepth 1 | xargs chown system.system
37 | find /sys/class/qcom-battery/ -type f -maxdepth 1 | xargs chown system.system
38 |
39 | for i in 0 1 2 3 4 5 6 7 8 9
40 | do
41 | devname=`cat /sys/bus/iio/devices/iio:device$i/name`
42 | if [[ "$devname" == *smb* ]] || [[ "$devname" == *qg* ]] || [[ "$devname" == *div2_cp* ]]; then
43 | find /sys/bus/iio/devices/iio:device$i/ -type f -maxdepth 1 | xargs chown system.system
44 | fi
45 | done
46 | fi
47 |
48 | setprop persist.vendor.hvdcp_opti.start 1
49 |
--------------------------------------------------------------------------------
/DeviceSettings/src/org/lineageos/device/DeviceSettings/ViewPagerAdapter.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2018 Havoc-OS
3 | *
4 | * This program is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | *
17 | */
18 | package org.lineageos.device.DeviceSettings;
19 |
20 | import android.content.Context;
21 | import androidx.viewpager.widget.PagerAdapter;
22 | import androidx.viewpager.widget.ViewPager;
23 | import android.view.LayoutInflater;
24 | import android.view.View;
25 | import android.view.ViewGroup;
26 | import android.widget.ImageView;
27 |
28 | public class ViewPagerAdapter extends PagerAdapter {
29 |
30 | private Context context;
31 | private LayoutInflater layoutInflater;
32 | private Integer [] images = {R.drawable.image1,R.drawable.image2,R.drawable.image3,R.drawable.image4};
33 |
34 | public ViewPagerAdapter(Context context) {
35 | this.context = context;
36 | }
37 |
38 | public int getCount() {
39 | return images.length;
40 | }
41 |
42 | public boolean isViewFromObject(View view, Object object) {
43 | return view == object;
44 | }
45 |
46 | public Object instantiateItem(ViewGroup container, final int position) {
47 | layoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
48 | View view = layoutInflater.inflate(R.layout.image_layout, null);
49 | ImageView imageView = (ImageView) view.findViewById(R.id.imageView);
50 | imageView.setImageResource(images[position]);
51 |
52 | ViewPager vp = (ViewPager) container;
53 | vp.addView(view, 0);
54 | return view;
55 | }
56 |
57 | public void destroyItem(ViewGroup container, int position, Object object) {
58 | ViewPager vp = (ViewPager) container;
59 | View view = (View) object;
60 | vp.removeView(view);
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/interfaces.mk:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2021 The Android Open Source 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 | # Bluetooth
18 | PRODUCT_PACKAGES += \
19 | android.hardware.bluetooth@1.0.vendor
20 |
21 | # Camera
22 | PRODUCT_PACKAGES += \
23 | android.frameworks.displayservice@1.0.vendor
24 |
25 | # Crypto
26 | PRODUCT_PACKAGES += \
27 | android.hardware.gatekeeper@1.0.vendor \
28 | android.hardware.keymaster@4.1.vendor \
29 | android.hardware.keymaster@4.0.vendor
30 |
31 | # DRM
32 | PRODUCT_PACKAGES += \
33 | android.hardware.drm@1.4.vendor \
34 | android.hardware.drm@1.3.vendor \
35 | android.hardware.drm@1.2.vendor \
36 | android.hardware.drm@1.1.vendor \
37 | android.hardware.drm@1.0.vendor
38 |
39 | # GNSS
40 | PRODUCT_PACKAGES += \
41 | android.hardware.gnss@2.1 \
42 | android.hardware.gnss@2.1.vendor \
43 | android.hardware.gnss.measurement_corrections@1.1 \
44 | android.hardware.gnss.measurement_corrections@1.1.vendor \
45 | android.hardware.gnss.visibility_control@1.0 \
46 | android.hardware.gnss.visibility_control@1.0.vendor \
47 |
48 | # NeuralNetworks
49 | PRODUCT_PACKAGES += \
50 | android.hardware.neuralnetworks@1.3.vendor \
51 | android.hardware.neuralnetworks@1.2.vendor \
52 | android.hardware.neuralnetworks@1.1.vendor \
53 | android.hardware.neuralnetworks@1.0.vendor
54 |
55 | # RIL
56 | PRODUCT_PACKAGES += \
57 | android.system.net.netd@1.1.vendor \
58 | android.hardware.radio@1.5.vendor \
59 | android.hardware.radio@1.4.vendor \
60 | android.hardware.radio.config@1.2.vendor \
61 | android.hardware.radio.deprecated@1.0.vendor \
62 | android.hardware.secure_element@1.2.vendor \
63 | android.hardware.secure_element@1.1.vendor \
64 | android.hardware.secure_element@1.0.vendor
65 |
66 | # FP
67 | PRODUCT_PACKAGES += \
68 | android.hardware.biometrics.fingerprint@2.3.vendor
69 |
--------------------------------------------------------------------------------
/update-sha1sums.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | #
3 | # Copyright (C) 2016 The CyanogenMod Project
4 | # Copyright (C) 2017-2018 The LineageOS Project
5 | #
6 | # Licensed under the Apache License, Version 2.0 (the "License");
7 | # you may not use this file except in compliance with the License.
8 | # You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 | #
18 |
19 | from hashlib import sha1
20 | import sys
21 |
22 | device='sm7250-common'
23 | vendor='oneplus'
24 |
25 | lines = [ line for line in open('proprietary-files.txt', 'r') ]
26 | vendorPath = '../../../vendor/' + vendor + '/' + device + '/proprietary'
27 | needSHA1 = False
28 |
29 | def cleanup():
30 | for index, line in enumerate(lines):
31 | # Remove '\n' character
32 | line = line[:-1]
33 |
34 | # Skip empty or commented lines
35 | if len(line) == 0 or line[0] == '#':
36 | continue
37 |
38 | # Drop SHA1 hash, if existing
39 | if '|' in line:
40 | line = line.split('|')[0]
41 | lines[index] = '%s\n' % (line)
42 |
43 | def update():
44 | for index, line in enumerate(lines):
45 | # Remove '\n' character
46 | line = line[:-1]
47 |
48 | # Skip empty lines
49 | if len(line) == 0:
50 | continue
51 |
52 | # Check if we need to set SHA1 hash for the next files
53 | if line[0] == '#':
54 | needSHA1 = (' - from' in line)
55 | continue
56 |
57 | if needSHA1:
58 | # Remove existing SHA1 hash
59 | line = line.split('|')[0]
60 | filePath = line.split(':')[1] if len(line.split(':')) == 2 else line
61 |
62 | if filePath[0] == '-':
63 | file = open('%s/%s' % (vendorPath, filePath[1:]), 'rb').read()
64 | else:
65 | file = open('%s/%s' % (vendorPath, filePath), 'rb').read()
66 |
67 | hash = sha1(file).hexdigest()
68 | lines[index] = '%s|%s\n' % (line, hash)
69 |
70 | if len(sys.argv) == 2 and sys.argv[1] == '-c':
71 | cleanup()
72 | else:
73 | update()
74 |
75 | with open('proprietary-files.txt', 'w') as file:
76 | for line in lines:
77 | file.write(line)
78 |
79 | file.close()
80 |
--------------------------------------------------------------------------------
/rro_overlays/WifiResCommon/res/values/bools.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | true
5 |
6 |
7 | true
8 |
9 |
13 | true
14 |
15 |
16 | true
17 |
18 |
19 | true
20 |
21 |
25 | true
26 |
27 |
28 | true
29 |
30 |
31 | true
32 |
33 |
34 | true
35 |
36 |
37 | true
38 |
39 |
40 | true
41 |
42 |
43 | true
44 |
45 |
--------------------------------------------------------------------------------
/DeviceSettings/src/org/lineageos/device/DeviceSettings/Protocol.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2021 LibXZR
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.device.DeviceSettings;
18 |
19 | import android.os.RemoteException;
20 |
21 | import com.qualcomm.qcrilmsgtunnel.IQcrilMsgTunnel;
22 |
23 | import java.nio.ByteBuffer;
24 | import java.nio.ByteOrder;
25 |
26 | public class Protocol {
27 | private static final String QOEMHOOK = "QOEMHOOK";
28 | private static final int HEADER_SIZE = 16;
29 | private static final int QCRILHOOK_SET_SA_NSA_CMD = 13;
30 | private static final int REQUEST_ID = 561158;
31 | private static final int REQUEST_SIZE = 8;
32 | IQcrilMsgTunnel mService;
33 |
34 | public Protocol(IQcrilMsgTunnel service) {
35 | mService = service;
36 | }
37 |
38 | public enum NR_5G_DISABLE_MODE_TYPE {
39 | NAS_NR5G_DISABLE_MODE_NONE,
40 | NAS_NR5G_DISABLE_MODE_SA,
41 | NAS_NR5G_DISABLE_MODE_NSA
42 | }
43 |
44 | private static ByteBuffer createBufferWithNativeByteOrder(byte[] bArr) {
45 | ByteBuffer wrap = ByteBuffer.wrap(bArr);
46 | wrap.order(ByteOrder.nativeOrder());
47 | return wrap;
48 | }
49 |
50 | private static void addQcRilHookHeader(ByteBuffer buf, int requestId, int requestSize) {
51 | buf.put(QOEMHOOK.getBytes());
52 | buf.putInt(requestId);
53 | buf.putInt(requestSize);
54 | }
55 |
56 | public void setNrMode(int slot, NR_5G_DISABLE_MODE_TYPE mode) {
57 | int realMode = mode.ordinal();
58 | byte[] data = new byte[HEADER_SIZE + 3 * Integer.SIZE / 8];
59 | ByteBuffer buf = createBufferWithNativeByteOrder(data);
60 | addQcRilHookHeader(buf, REQUEST_ID, REQUEST_SIZE);
61 | buf.putInt(QCRILHOOK_SET_SA_NSA_CMD);
62 | buf.putInt(slot);
63 | buf.putInt(realMode);
64 | try {
65 | mService.sendOemRilRequestRaw(data, new byte[2048], slot);
66 | } catch (RemoteException ignored) {
67 | }
68 | }
69 | }
70 |
--------------------------------------------------------------------------------
/extract-files.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | # Copyright (C) 2016 The CyanogenMod Project
4 | # Copyright (C) 2017-2020 The LineageOS Project
5 | #
6 | # SPDX-License-Identifier: Apache-2.0
7 | #
8 |
9 | set -e
10 |
11 | # Load extract_utils and do some sanity checks
12 | MY_DIR="${BASH_SOURCE%/*}"
13 | if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
14 |
15 | ANDROID_ROOT="${MY_DIR}/../../.."
16 |
17 | HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
18 | if [ ! -f "${HELPER}" ]; then
19 | echo "Unable to find helper script at ${HELPER}"
20 | exit 1
21 | fi
22 | source "${HELPER}"
23 |
24 | # Default to sanitizing the vendor folder before extraction
25 | CLEAN_VENDOR=true
26 |
27 | ONLY_COMMON=
28 | ONLY_TARGET=
29 | KANG=
30 | SECTION=
31 |
32 | while [ "${#}" -gt 0 ]; do
33 | case "${1}" in
34 | --only-common )
35 | ONLY_COMMON=true
36 | ;;
37 | --only-target )
38 | ONLY_TARGET=true
39 | ;;
40 | -n | --no-cleanup )
41 | CLEAN_VENDOR=false
42 | ;;
43 | -k | --kang )
44 | KANG="--kang"
45 | ;;
46 | -s | --section )
47 | SECTION="${2}"; shift
48 | CLEAN_VENDOR=false
49 | ;;
50 | * )
51 | SRC="${1}"
52 | ;;
53 | esac
54 | shift
55 | done
56 |
57 | if [ -z "${SRC}" ]; then
58 | SRC="adb"
59 | fi
60 |
61 | function blob_fixup() {
62 | case "${1}" in
63 | system/etc/nfcee_access.xml)
64 | sed -i -e 's|xliff=\"urn:oasis:names:tc:xliff:document:1.2|android=\"http:\/\/schemas.android.com\/apk\/res\/android|' "${2}"
65 | ;;
66 | system_ext/lib64/libwfdnative.so)
67 | sed -i "s/android.hidl.base@1.0.so/libhidlbase.so\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00/" "${2}"
68 | ;;
69 | vendor/lib64/libgf_ud_hal.so|vendor/lib64/libgf_g6_ud_hal.so)
70 | sed -i "s|vendor.boot.verifiedbootstate|vendor.boot.fingerprintbstate|g" "${2}"
71 | ;;
72 | esac
73 | }
74 |
75 | if [ -z "${ONLY_TARGET}" ]; then
76 | # Initialize the helper for common device
77 | setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${ANDROID_ROOT}" true "${CLEAN_VENDOR}"
78 |
79 | extract "${MY_DIR}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}"
80 | fi
81 |
82 | if [ -z "${ONLY_COMMON}" ] && [ -s "${MY_DIR}/../${DEVICE}/proprietary-files.txt" ]; then
83 | # Reinitialize the helper for device
84 | source "${MY_DIR}/../${DEVICE}/extract-files.sh"
85 | setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}"
86 |
87 | extract "${MY_DIR}/../${DEVICE}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}"
88 | fi
89 |
90 | "${MY_DIR}/setup-makefiles.sh"
91 |
--------------------------------------------------------------------------------
/system.prop:
--------------------------------------------------------------------------------
1 | # ART
2 | dalvik.vm.image-dex2oat-filter=quicken
3 | dalvik.vm.image-dex2oat-threads=8
4 | dalvik.vm.image-dex2oat-cpu-set=0,1,2,3,4,5,6,7
5 | dalvik.vm.dex2oat-filter=quicken
6 | dalvik.vm.dex2oat-threads=8
7 | dalvik.vm.dex2oat-cpu-set=0,1,2,3,4,5,6,7
8 | dalvik.vm.boot-dex2oat-threads=8
9 | dalvik.vm.boot-dex2oat-cpu-set=0,1,2,3,4,5,6,7
10 |
11 | # Async MTE on system_server
12 | arm64.memtag.process.system_server=off
13 |
14 | # Audio
15 | audio.offload.min.duration.secs=30
16 | persist.vendor.audio.hac.enable=false
17 | persist.vendor.audio_hal.dsp_bit_width_enforce_mode=24
18 |
19 | # Atfwd client
20 | persist.vendor.radio.atfwd.start=true
21 |
22 | # Bluetooth
23 | persist.vendor.btstack.enable.lpa=true
24 | persist.vendor.btstack.enable.twsplus=true
25 | persist.vendor.btstack.enable.twsplussho=true
26 | persist.vendor.bt.a2dp.hal.implementation=true
27 |
28 | # Camera
29 | camera.disable_zsl_mode=true
30 |
31 | # Charger
32 | ro.charger.disable_init_blank=true
33 |
34 | # Dexopt
35 | dalvik.vm.dex2oat64.enabled=true
36 |
37 | # Display
38 | debug.gralloc.gfx_ubwc_disable=0
39 | debug.sf.enable_hwc_vds=0
40 | persist.vendor.color.matrix=2
41 | ro.surface_flinger.max_frame_buffer_acquired_buffers=3
42 |
43 | # CNE
44 | persist.vendor.cne.feature=1
45 |
46 | # Disable vsync for cpu rendered apps
47 | debug.cpurend.vsync=false
48 |
49 | # Fingerprint
50 | vendor.boot.fingerprintbstate=orange
51 |
52 | # IMS
53 | persist.dbg.volte_avail_ovr=1
54 | persist.dbg.vt_avail_ovr=1
55 | persist.dbg.wfc_avail_ovr=1
56 | persist.vendor.ims.disableADBLogs=1
57 | persist.vendor.ims.disableIMSLogs=1
58 | persist.vendor.ims.disableDebugDataPathLogs=1
59 | persist.vendor.ims.disableDebugLogs=1
60 | persist.vendor.ims.disableSigHandler=1
61 | persist.vendor.ims.disableQXDMLogs=1
62 |
63 | # IOP
64 | vendor.iop.enable_prefetch_ofr=1
65 | vendor.iop.enable_uxe=0
66 |
67 | # Media
68 | media.settings.xml=/vendor/etc/media_profiles_vendor.xml
69 |
70 | # Netflix
71 | ro.netflix.bsp_rev=Q7250-19133-1
72 |
73 | # Perf
74 | ro.vendor.qti.core_ctl_max_cpu=4
75 | ro.vendor.qti.core_ctl_min_cpu=2
76 |
77 | # Radio
78 | persist.sys.fflag.override.settings_provider_model=false
79 | ro.telephony.default_network=33,33
80 | telephony.lteOnCdmaDevice=1
81 |
82 | # Touchscreen
83 | persist.vendor.qti.inputopts.enable=true
84 | persist.vendor.qti.inputopts.movetouchslop=0.6
85 |
86 | # Netmgr
87 | persist.vendor.data.iwlan.enable=true
88 | persist.vendor.data.mode=concurrent
89 |
90 | # SSR
91 | persist.vendor.ssr.restart_level=ALL_ENABLE
92 |
93 | # Vendor
94 | ro.vendor.qti.va_aosp.support=1
95 |
96 | # Zygote
97 | persist.device_config.runtime_native.usap_pool_enabled=true
98 |
99 | # ZRAM writeback
100 | ro.zram.mark_idle_delay_mins=60
101 | ro.zram.first_wb_delay_mins=180
102 | ro.zram.periodic_wb_delay_hours=24
103 |
--------------------------------------------------------------------------------
/DeviceSettings/src/org/lineageos/device/DeviceSettings/HBMModeTileService.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2018 The OmniROM Project
3 | *
4 | * This program is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | *
17 | */
18 | package org.lineageos.device.DeviceSettings;
19 |
20 | import android.annotation.TargetApi;
21 | import android.content.BroadcastReceiver;
22 | import android.content.Context;
23 | import android.content.Intent;
24 | import android.service.quicksettings.Tile;
25 | import android.service.quicksettings.TileService;
26 | import androidx.preference.PreferenceManager;
27 |
28 | @TargetApi(24)
29 | public class HBMModeTileService extends TileService {
30 |
31 | private Intent mHbmIntent;
32 |
33 | @Override
34 | public void onDestroy() {
35 | super.onDestroy();
36 | }
37 |
38 | @Override
39 | public void onTileAdded() {
40 | super.onTileAdded();
41 | }
42 |
43 | @Override
44 | public void onTileRemoved() {
45 | tryStopService();
46 | super.onTileRemoved();
47 | }
48 |
49 | @Override
50 | public void onStartListening() {
51 | super.onStartListening();
52 | updateState();
53 | }
54 |
55 | @Override
56 | public void onStopListening() {
57 | super.onStopListening();
58 | }
59 |
60 | @Override
61 | public void onClick() {
62 | super.onClick();
63 | boolean enabled = HBMModeSwitch.isCurrentlyEnabled(this);
64 | // NOTE: reverse logic, enabled reflects the state before press
65 | Utils.writeValue(HBMModeSwitch.getFile(), enabled ? "0" : "5");
66 | if (!enabled) {
67 | mHbmIntent = new Intent(this,
68 | org.lineageos.device.DeviceSettings.HBMModeService.class);
69 | this.startService(mHbmIntent);
70 | }
71 | updateState();
72 | }
73 |
74 | private void updateState() {
75 | boolean enabled = HBMModeSwitch.isCurrentlyEnabled(this);
76 | if (!enabled) tryStopService();
77 | getQsTile().setState(enabled ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE);
78 | getQsTile().updateTile();
79 | }
80 |
81 | private void tryStopService() {
82 | if (mHbmIntent == null) return;
83 | this.stopService(mHbmIntent);
84 | mHbmIntent = null;
85 | }
86 | }
87 |
--------------------------------------------------------------------------------
/DeviceSettings/res/values-ja/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
14 |
15 | 音声
16 | Dolby Atmos
17 | OnePlus 設定
18 | OnePlus 専用の端末設定を調整する
19 | ディスプレイ
20 |
21 | sRGB モード
22 |
23 | 高輝度モード
24 | 高色域モード
25 |
26 | DCI-P3 高色域モード
27 |
28 | 夜間モード
29 | パネルモード
30 | 画面カラー補正モード
31 | OFF
32 | パネルモード
33 | 高輝度モード
34 | ディスプレイモード
35 | 解像度とリフレッシュレートを変更する
36 |
37 | 通知スライダー
38 | アクション
39 | 上部
40 | 中央
41 | 下部
42 | サイレント
43 | 優先通知のみ
44 | サイレント
45 | 振動
46 | 標準
47 | Alert Slider の設定
48 | 振動
49 | 強さ
50 | 振動の強さを決める
51 |
52 |
--------------------------------------------------------------------------------
/task_profiles/task_profiles_31.json:
--------------------------------------------------------------------------------
1 | {
2 | "Attributes": [
3 | {
4 | "Name": "STuneBoost",
5 | "Controller": "schedtune",
6 | "File": "schedtune.boost"
7 | },
8 | {
9 | "Name": "STunePreferIdle",
10 | "Controller": "schedtune",
11 | "File": "schedtune.prefer_idle"
12 | }
13 | ],
14 |
15 | "Profiles": [
16 | {
17 | "Name": "HighEnergySaving",
18 | "Actions": [
19 | {
20 | "Name": "JoinCgroup",
21 | "Params":
22 | {
23 | "Controller": "schedtune",
24 | "Path": "background"
25 | }
26 | }
27 | ]
28 | },
29 | {
30 | "Name": "NormalPerformance",
31 | "Actions": [
32 | {
33 | "Name": "JoinCgroup",
34 | "Params":
35 | {
36 | "Controller": "schedtune",
37 | "Path": ""
38 | }
39 | }
40 | ]
41 | },
42 | {
43 | "Name": "HighPerformance",
44 | "Actions": [
45 | {
46 | "Name": "JoinCgroup",
47 | "Params":
48 | {
49 | "Controller": "schedtune",
50 | "Path": "foreground"
51 | }
52 | }
53 | ]
54 | },
55 | {
56 | "Name": "MaxPerformance",
57 | "Actions": [
58 | {
59 | "Name": "JoinCgroup",
60 | "Params":
61 | {
62 | "Controller": "schedtune",
63 | "Path": "top-app"
64 | }
65 | }
66 | ]
67 | },
68 | {
69 | "Name": "RealtimePerformance",
70 | "Actions": [
71 | {
72 | "Name": "JoinCgroup",
73 | "Params":
74 | {
75 | "Controller": "schedtune",
76 | "Path": "rt"
77 | }
78 | }
79 | ]
80 | },
81 | {
82 | "Name": "CameraServicePerformance",
83 | "Actions": [
84 | {
85 | "Name": "JoinCgroup",
86 | "Params":
87 | {
88 | "Controller": "schedtune",
89 | "Path": "camera-daemon"
90 | }
91 | }
92 | ]
93 | },
94 | {
95 | "Name": "NNApiHALPerformance",
96 | "Actions": [
97 | {
98 | "Name": "JoinCgroup",
99 | "Params":
100 | {
101 | "Controller": "schedtune",
102 | "Path": "nnapi-hal"
103 | }
104 | }
105 | ]
106 | },
107 |
108 | {
109 | "Name": "CpuPolicySpread",
110 | "Actions": [
111 | {
112 | "Name": "SetAttribute",
113 | "Params":
114 | {
115 | "Name": "STunePreferIdle",
116 | "Value": "1"
117 | }
118 | }
119 | ]
120 | },
121 | {
122 | "Name": "CpuPolicyPack",
123 | "Actions": [
124 | {
125 | "Name": "SetAttribute",
126 | "Params":
127 | {
128 | "Name": "STunePreferIdle",
129 | "Value": "0"
130 | }
131 | }
132 | ]
133 | }
134 | ]
135 | }
136 |
--------------------------------------------------------------------------------
/DeviceSettings/res/values-vi/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
14 |
15 | Âm thanh
16 | Dolby Atmos
17 | Cài đặt OnePlus
18 | Điều chỉnh cài đặt thiết bị cụ thể của OnePlus
19 | Màn hình hiển thị
20 |
21 | chế độ sRGB
22 |
23 | Độ sáng cao
24 | Dải màu rộng
25 |
26 | Dải màu rộng DCI-P3
27 |
28 | Chế độ ban đêm
29 | Chế độ màn hình
30 | Các chế độ căn chỉnh màu màn hình
31 | Tắt
32 | Chế độ màn hình
33 | Độ sáng cao
34 | Chế độ hiển thị
35 | Thay đổi độ phân giải và tần số quét
36 |
37 | Thanh trượt thông báo
38 | Tác vụ
39 | Phía trên
40 | Chính giữa
41 | Phía dưới
42 | Tất cả im lặng
43 | Chỉ ưu tiên
44 | Im lặng
45 | Rung
46 | Bình thường
47 | Cài đặt Alert Slider
48 | Bộ rung
49 | Độ mạnh
50 | Chọn độ mạnh của bộ rung
51 |
52 |
--------------------------------------------------------------------------------
/DeviceSettings/res/values-af/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
14 |
15 | Audio
16 | Dolby Atmos
17 | OnePlus Settings
18 | Adjust OnePlus specific device settings
19 | Display
20 |
21 | sRGB mode
22 |
23 | High brightness mode
24 | Wide Color mode
25 |
26 | DCI-P3 wide colour gamut mode
27 |
28 | Night mode
29 | Panel modes
30 | Modes for panel color correction
31 | Off
32 | Panel modes
33 | High brightness modes
34 | Display modes
35 | Change resolution and refresh rate
36 |
37 | Notification slider
38 | Action
39 | Top position
40 | Middle position
41 | Bottom position
42 | Total silence
43 | Priority only
44 | Silent
45 | Vibrate
46 | Normal
47 | Alert Slider Settings
48 | Vibrator
49 | Strength
50 | Define the strength of the vibrator
51 |
52 |
--------------------------------------------------------------------------------
/DeviceSettings/res/values-ar/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
14 |
15 | Audio
16 | Dolby Atmos
17 | OnePlus Settings
18 | Adjust OnePlus specific device settings
19 | Display
20 |
21 | sRGB mode
22 |
23 | High brightness mode
24 | Wide Color mode
25 |
26 | DCI-P3 wide colour gamut mode
27 |
28 | Night mode
29 | Panel modes
30 | Modes for panel color correction
31 | Off
32 | Panel modes
33 | High brightness modes
34 | Display modes
35 | Change resolution and refresh rate
36 |
37 | Notification slider
38 | Action
39 | Top position
40 | Middle position
41 | Bottom position
42 | Total silence
43 | Priority only
44 | Silent
45 | Vibrate
46 | Normal
47 | Alert Slider Settings
48 | Vibrator
49 | Strength
50 | Define the strength of the vibrator
51 |
52 |
--------------------------------------------------------------------------------
/DeviceSettings/res/values-ca/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
14 |
15 | Audio
16 | Dolby Atmos
17 | OnePlus Settings
18 | Adjust OnePlus specific device settings
19 | Display
20 |
21 | sRGB mode
22 |
23 | High brightness mode
24 | Wide Color mode
25 |
26 | DCI-P3 wide colour gamut mode
27 |
28 | Night mode
29 | Panel modes
30 | Modes for panel color correction
31 | Off
32 | Panel modes
33 | High brightness modes
34 | Display modes
35 | Change resolution and refresh rate
36 |
37 | Notification slider
38 | Action
39 | Top position
40 | Middle position
41 | Bottom position
42 | Total silence
43 | Priority only
44 | Silent
45 | Vibrate
46 | Normal
47 | Alert Slider Settings
48 | Vibrator
49 | Strength
50 | Define the strength of the vibrator
51 |
52 |
--------------------------------------------------------------------------------
/DeviceSettings/res/values-da/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
14 |
15 | Audio
16 | Dolby Atmos
17 | OnePlus Settings
18 | Adjust OnePlus specific device settings
19 | Display
20 |
21 | sRGB mode
22 |
23 | High brightness mode
24 | Wide Color mode
25 |
26 | DCI-P3 wide colour gamut mode
27 |
28 | Night mode
29 | Panel modes
30 | Modes for panel color correction
31 | Off
32 | Panel modes
33 | High brightness modes
34 | Display modes
35 | Change resolution and refresh rate
36 |
37 | Notification slider
38 | Action
39 | Top position
40 | Middle position
41 | Bottom position
42 | Total silence
43 | Priority only
44 | Silent
45 | Vibrate
46 | Normal
47 | Alert Slider Settings
48 | Vibrator
49 | Strength
50 | Define the strength of the vibrator
51 |
52 |
--------------------------------------------------------------------------------
/DeviceSettings/res/values-el/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
14 |
15 | Audio
16 | Dolby Atmos
17 | OnePlus Settings
18 | Adjust OnePlus specific device settings
19 | Display
20 |
21 | sRGB mode
22 |
23 | High brightness mode
24 | Wide Color mode
25 |
26 | DCI-P3 wide colour gamut mode
27 |
28 | Night mode
29 | Panel modes
30 | Modes for panel color correction
31 | Off
32 | Panel modes
33 | High brightness modes
34 | Display modes
35 | Change resolution and refresh rate
36 |
37 | Notification slider
38 | Action
39 | Top position
40 | Middle position
41 | Bottom position
42 | Total silence
43 | Priority only
44 | Silent
45 | Vibrate
46 | Normal
47 | Alert Slider Settings
48 | Vibrator
49 | Strength
50 | Define the strength of the vibrator
51 |
52 |
--------------------------------------------------------------------------------
/DeviceSettings/res/values-fi/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
14 |
15 | Audio
16 | Dolby Atmos
17 | OnePlus Settings
18 | Adjust OnePlus specific device settings
19 | Display
20 |
21 | sRGB mode
22 |
23 | High brightness mode
24 | Wide Color mode
25 |
26 | DCI-P3 wide colour gamut mode
27 |
28 | Night mode
29 | Panel modes
30 | Modes for panel color correction
31 | Off
32 | Panel modes
33 | High brightness modes
34 | Display modes
35 | Change resolution and refresh rate
36 |
37 | Notification slider
38 | Action
39 | Top position
40 | Middle position
41 | Bottom position
42 | Total silence
43 | Priority only
44 | Silent
45 | Vibrate
46 | Normal
47 | Alert Slider Settings
48 | Vibrator
49 | Strength
50 | Define the strength of the vibrator
51 |
52 |
--------------------------------------------------------------------------------
/DeviceSettings/res/values-in/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
14 |
15 | Audio
16 | Dolby Atmos
17 | OnePlus Settings
18 | Adjust OnePlus specific device settings
19 | Display
20 |
21 | sRGB mode
22 |
23 | High brightness mode
24 | Wide Color mode
25 |
26 | DCI-P3 wide colour gamut mode
27 |
28 | Night mode
29 | Panel modes
30 | Modes for panel color correction
31 | Off
32 | Panel modes
33 | High brightness modes
34 | Display modes
35 | Change resolution and refresh rate
36 |
37 | Notification slider
38 | Action
39 | Top position
40 | Middle position
41 | Bottom position
42 | Total silence
43 | Priority only
44 | Silent
45 | Vibrate
46 | Normal
47 | Alert Slider Settings
48 | Vibrator
49 | Strength
50 | Define the strength of the vibrator
51 |
52 |
--------------------------------------------------------------------------------
/DeviceSettings/res/values-iw/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
14 |
15 | Audio
16 | Dolby Atmos
17 | OnePlus Settings
18 | Adjust OnePlus specific device settings
19 | Display
20 |
21 | sRGB mode
22 |
23 | High brightness mode
24 | Wide Color mode
25 |
26 | DCI-P3 wide colour gamut mode
27 |
28 | Night mode
29 | Panel modes
30 | Modes for panel color correction
31 | Off
32 | Panel modes
33 | High brightness modes
34 | Display modes
35 | Change resolution and refresh rate
36 |
37 | Notification slider
38 | Action
39 | Top position
40 | Middle position
41 | Bottom position
42 | Total silence
43 | Priority only
44 | Silent
45 | Vibrate
46 | Normal
47 | Alert Slider Settings
48 | Vibrator
49 | Strength
50 | Define the strength of the vibrator
51 |
52 |
--------------------------------------------------------------------------------
/DeviceSettings/res/values-ko/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
14 |
15 | Audio
16 | Dolby Atmos
17 | OnePlus Settings
18 | Adjust OnePlus specific device settings
19 | Display
20 |
21 | sRGB mode
22 |
23 | High brightness mode
24 | Wide Color mode
25 |
26 | DCI-P3 wide colour gamut mode
27 |
28 | Night mode
29 | Panel modes
30 | Modes for panel color correction
31 | Off
32 | Panel modes
33 | High brightness modes
34 | Display modes
35 | Change resolution and refresh rate
36 |
37 | Notification slider
38 | Action
39 | Top position
40 | Middle position
41 | Bottom position
42 | Total silence
43 | Priority only
44 | Silent
45 | Vibrate
46 | Normal
47 | Alert Slider Settings
48 | Vibrator
49 | Strength
50 | Define the strength of the vibrator
51 |
52 |
--------------------------------------------------------------------------------
/DeviceSettings/res/values-lt/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
14 |
15 | Audio
16 | Dolby Atmos
17 | OnePlus Settings
18 | Adjust OnePlus specific device settings
19 | Display
20 |
21 | sRGB mode
22 |
23 | High brightness mode
24 | Wide Color mode
25 |
26 | DCI-P3 wide colour gamut mode
27 |
28 | Night mode
29 | Panel modes
30 | Modes for panel color correction
31 | Off
32 | Panel modes
33 | High brightness modes
34 | Display modes
35 | Change resolution and refresh rate
36 |
37 | Notification slider
38 | Action
39 | Top position
40 | Middle position
41 | Bottom position
42 | Total silence
43 | Priority only
44 | Silent
45 | Vibrate
46 | Normal
47 | Alert Slider Settings
48 | Vibrator
49 | Strength
50 | Define the strength of the vibrator
51 |
52 |
--------------------------------------------------------------------------------
/DeviceSettings/res/values-ro/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
14 |
15 | Audio
16 | Dolby Atmos
17 | OnePlus Settings
18 | Adjust OnePlus specific device settings
19 | Display
20 |
21 | sRGB mode
22 |
23 | High brightness mode
24 | Wide Color mode
25 |
26 | DCI-P3 wide colour gamut mode
27 |
28 | Night mode
29 | Panel modes
30 | Modes for panel color correction
31 | Off
32 | Panel modes
33 | High brightness modes
34 | Display modes
35 | Change resolution and refresh rate
36 |
37 | Notification slider
38 | Action
39 | Top position
40 | Middle position
41 | Bottom position
42 | Total silence
43 | Priority only
44 | Silent
45 | Vibrate
46 | Normal
47 | Alert Slider Settings
48 | Vibrator
49 | Strength
50 | Define the strength of the vibrator
51 |
52 |
--------------------------------------------------------------------------------
/DeviceSettings/res/values-sk/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
14 |
15 | Audio
16 | Dolby Atmos
17 | OnePlus Settings
18 | Adjust OnePlus specific device settings
19 | Display
20 |
21 | sRGB mode
22 |
23 | High brightness mode
24 | Wide Color mode
25 |
26 | DCI-P3 wide colour gamut mode
27 |
28 | Night mode
29 | Panel modes
30 | Modes for panel color correction
31 | Off
32 | Panel modes
33 | High brightness modes
34 | Display modes
35 | Change resolution and refresh rate
36 |
37 | Notification slider
38 | Action
39 | Top position
40 | Middle position
41 | Bottom position
42 | Total silence
43 | Priority only
44 | Silent
45 | Vibrate
46 | Normal
47 | Alert Slider Settings
48 | Vibrator
49 | Strength
50 | Define the strength of the vibrator
51 |
52 |
--------------------------------------------------------------------------------
/DeviceSettings/res/values-sr/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
14 |
15 | Audio
16 | Dolby Atmos
17 | OnePlus Settings
18 | Adjust OnePlus specific device settings
19 | Display
20 |
21 | sRGB mode
22 |
23 | High brightness mode
24 | Wide Color mode
25 |
26 | DCI-P3 wide colour gamut mode
27 |
28 | Night mode
29 | Panel modes
30 | Modes for panel color correction
31 | Off
32 | Panel modes
33 | High brightness modes
34 | Display modes
35 | Change resolution and refresh rate
36 |
37 | Notification slider
38 | Action
39 | Top position
40 | Middle position
41 | Bottom position
42 | Total silence
43 | Priority only
44 | Silent
45 | Vibrate
46 | Normal
47 | Alert Slider Settings
48 | Vibrator
49 | Strength
50 | Define the strength of the vibrator
51 |
52 |
--------------------------------------------------------------------------------
/DeviceSettings/res/values-sv/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
14 |
15 | Audio
16 | Dolby Atmos
17 | OnePlus Settings
18 | Adjust OnePlus specific device settings
19 | Display
20 |
21 | sRGB mode
22 |
23 | High brightness mode
24 | Wide Color mode
25 |
26 | DCI-P3 wide colour gamut mode
27 |
28 | Night mode
29 | Panel modes
30 | Modes for panel color correction
31 | Off
32 | Panel modes
33 | High brightness modes
34 | Display modes
35 | Change resolution and refresh rate
36 |
37 | Notification slider
38 | Action
39 | Top position
40 | Middle position
41 | Bottom position
42 | Total silence
43 | Priority only
44 | Silent
45 | Vibrate
46 | Normal
47 | Alert Slider Settings
48 | Vibrator
49 | Strength
50 | Define the strength of the vibrator
51 |
52 |
--------------------------------------------------------------------------------