e261035d91/parts
Change-Id: I442f48780ca020f3e420ee4ccaf8ac07b05457cb
Signed-off-by: Anush02198 <anush.4376@gmail.com>
Signed-off-by: Ramadhani <ramadhanifals@gmail.com>
Signed-off-by: Drenzzz <naufalnazya@gmail.com>
garnet: parts: Fix cannot find symbol error for UQPR2
Signed-off-by: Ramadhani <ramadhanifals@gmail.com>
Signed-off-by: Drenzzz <naufalnazya@gmail.com>
garnet: parts: Migrate to CompoundButton.OnCheckedChangeListener
This fixes compilation error for UQPR2.
Signed-off-by: Ramadhani <ramadhanifals@gmail.com>
Signed-off-by: Drenzzz <naufalnazya@gmail.com>
garnet: parts: Checkout thermal profiles to xiaomi-sm8250 implementation
Signed-off-by: Ramadhani <ramadhanifals@gmail.com>
Signed-off-by: Drenzzz <naufalnazya@gmail.com>
garnet: parts: Fix thermal profile screen state handling
Signed-off-by: Ramadhani <ramadhanifals@gmail.com>
Signed-off-by: Drenzzz <naufalnazya@gmail.com>
garnet: Remove order preference for Thermal Profiles
- In Infinity X rom this tab at top spoils the look of Battery section
Signed-off-by: Ramadhani <ramadhanifals@gmail.com>
Signed-off-by: Drenzzz <naufalnazya@gmail.com>
garnet: parts: Drop doze settings
Signed-off-by: kleidione <kleidione@gmail.com>
Signed-off-by: Drenzzz <naufalnazya@gmail.com>
garnet: parts: Refactor ClearSpeakerFragment code
- Removed unused imports
- Proper resource release by using try-finally block
- Added null checks for MediaPlayer methods
- Remove audio parameter as its unused
Change-Id: I7dc2ba7baf6e0193e13583a7454da296254d7333
Signed-off-by: Jyotiraditya Panda <jyotiraditya@aospa.co>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: Coptan99 <omarcoptan9@gmail.com>
Signed-off-by: Drenzzz <naufalnazya@gmail.com>
garent: parts: Get rid of proguard flags
This is obsolete.
Change-Id: I1b692d3e1a96c49ac6efd54907ea23c4b4494f7e
Signed-off-by: Ramadhani <ramadhanifals@gmail.com>
Signed-off-by: Drenzzz <naufalnazya@gmail.com>
garnet: parts: Supports 90hz refresh rate
Co-Authored-By: Arian <39061882+ArianK16a@users.noreply.github.com>
sapphire: parts: Remove unused HDR override in BootCompletedReceiver for
non-HDR devices
Removed the `overrideHdrTypes` method and its call in
`BootCompletedReceiver`
since the target device does not support HDR10, Dolby Vision, HLG, or
HDR10+.
Also removed unused imports (`DisplayManager`, `Display`,
`HdrCapabilities`,
`IntentFilter`, `IBinder`) to clean up the code. This prevents the
system from
falsely advertising HDR capabilities, avoiding potential app
compatibility issues.
The `ThermalUtils` and `RefreshUtils` service startups remain unchanged.
Signed-off-by: Saroj-Tajpuriya
<80759612+saroj-nokia@users.noreply.github.com>
garnet: parts: Start parts services as early as possible on bootup
BOOT_COMPLETED intent is broadcast only after the device is unlocked and
user data (encrypted storage) is available.
Use LOCKED_BOOT_COMPLETED intent for services that don't require
accessing data.
Change-Id: I800df08f9c61925ac394f3e6d4861ba68a157797
Signed-off-by: kenway214 <kenway214@outlook.com>
Co-Authored-By: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: UnmoveD <unmoved2121@gmail.com>
sapphire: Remove HDR type override from BootCompletedReceiver
sapphire: parts: Add permissions and whitelist for Xiaomi parts
- Added `privapp_whitelist_org.lineageos.settings.xml
- Updated AndroidManifest.xml with required permissions:
- `android.permission.INTERACT_ACROSS_USERS_FULL` for cross-user
interactions.
- `android.permission.WRITE_SETTINGS` for modifying system settings.
- Whitelisted `android.permission.WRITE_SECURE_SETTINGS` for the
`org.lineageos.settings`
package to ensure functionality requiring secure settings
modification.
Signed-off-by: kenway214 <kenway214@outlook.com>
Signed-off-by: UnmoveD <unmoved2121@gmail.com>
sapphire: parts: Introduce Display Satutaion Service and TileUtils
* Adjust Saturation Value Handling for Device Color Mode Compatibility
This update refines the saturation adjustment mechanism. When the seek
bar progress is set, the method executes
the command "service call SurfaceFlinger 1022 f [saturation]" via
Runtime.getRuntime().exec() to apply the saturation changes.
However, it was observed that when the device's color mode is set to
"saturated," a saturation value of 1.0 does not trigger any visual
changes.
To address this, the code now sets a value of 1.001 for a seek bar value
of 100, ensuring the desired effect is consistently applied.
* TileUtils Implementation: Implemented TileUtils to handle the addition
of Quick Settings tiles, specifically for the saturation feature.
This is done with reference to the guidelines provided by Google
https://developer.android.com/develop/ui/views/quicksettings-tiles#prompt-user
this ensuring a seamless integration and user experience when creating
new tiles.
Signed-off-by: Pabloescobar-reborn <pabloescobarreborn77@gmail.com>
Co-Authored-By: kenway214 <kenway214@outlook.com>
Co-Authored-By: AnierinB <anierin@evolution-x.org>
Co-Authored-By: SKULSHADY <anushekprasal@gmail.com>
Co-Authored-By: jhenrique09 <jhenrique09.mcz@hotmail.com>
Signed-off-by: UnmoveD <unmoved2121@gmail.com>
sapphire: parts: Remove unused import for DisplayManager in
BootCompletedReceiver
sapphire: parts: Introduce High Brightness Mode (HBM) and Auto HBM QS
tile
* Before anyone bullies me for this, I know this is very dumb way, but
it works.....
( its just a haxx not actual hbm)
* Also introduce TileHandlerActivity to add support for long-press
actions on QS tiles
- AutoHbmTileService → AutoHbmActivity
Signed-off-by: pabloescobar-reborn <pabloescobarreborn77@gmail.com>
Signed-off-by: kenway214 <kenway214@outlook.com>
Co-Authored-By: AnierinB <anierin@evolution-x.org>
Signed-off-by: UnmoveD <unmoved2121@gmail.com>
Signed-off-by: Saroj-Tajpuriya
<80759612+saroj-nokia@users.noreply.github.com>
sapphire: parts: Switch back to thermal profiles
nuked thermal tile service
Signed-off-by: UnmoveD <unmoved2121@gmail.com>
sapphire: parts: Introduce GameBar v4.0
Signed-off-by: kenway214 <kenway214@outlook.com>
peridot: parts: Add FPS meter support with selectable method for GameBar
- Introduced `GameBarFpsMeter` class to support FPS overlay using the
new Android 13+ TaskFpsCallback API.
- Added fallback legacy sysfs method
(`/sys/class/drm/sde-crtc-0/measured_fps`) for older devices.
- Updated GameBar to show FPS using selected method.
Signed-off-by: kenway214 <kenway214@outlook.com>
bump to v4
4
Signed-off-by: UnmoveD <unmoved2121@gmail.com>
sapphire: parts: Fix compilation error in BootCompletedReceiver for
DozeUtils
Signed-off-by: Saroj-Tajpuriya
<80759612+saroj-nokia@users.noreply.github.com>
Update BootCompletedReceiver.java
Signed-off-by: Saroj-Tajpuriya
<80759612+saroj-nokia@users.noreply.github.com>
sapphire: parts: remove duplicate TileHandlerActivity
Signed-off-by: Saroj-Tajpuriya
<80759612+saroj-nokia@users.noreply.github.com>
Co-Authored-By: AspectPower <AspectPower@proton.me>
Co-Authored-By: kenway214 <kenway214@outlook.com>
Co-Authored-By: AnierinB <anierin@evolution-x.org>
Co-Authored-By: SKULSHADY <anushekprasal@gmail.com>
Co-Authored-By: jhenrique09 <jhenrique09.mcz@hotmail.com>
Co-Authored-By: Arian <39061882+ArianK16a@users.noreply.github.com>
Co-Authored-By: Jyotiraditya Panda <jyotiraditya@aospa.co>
Co-Authored-By: Adithya R <gh0strider.2k18.reborn@gmail.com>
Co-Authored-By: Coptan99 <omarcoptan9@gmail.com>
Co-Authored-By: Drenzzz <naufalnazya@gmail.com>
Co-Authored-By: Ramadhani <ramadhanifals@gmail.com>
Co-Authored-By: Anush02198 <anush.4376@gmail.com>
Co-Authored-By: UnmoveD <unmoved2121@gmail.com>
269 lines
11 KiB
XML
269 lines
11 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2015-2016 The CyanogenMod Project
|
|
2017-2018 The LineageOS Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
package="org.lineageos.settings"
|
|
android:versionCode="1"
|
|
android:versionName="1.0"
|
|
android:sharedUserId="android.uid.system">
|
|
|
|
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
|
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
|
<uses-permission android:name="android.permission.GET_TASKS" />
|
|
<uses-permission android:name="android.permission.ACCESS_SURFACE_FLINGER" />
|
|
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
|
|
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
|
|
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
|
|
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
|
|
<uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" tools:ignore="ProtectedPermissions" />
|
|
<uses-sdk
|
|
android:minSdkVersion="24"
|
|
android:targetSdkVersion="30"/>
|
|
|
|
<application
|
|
android:label="@string/device_settings_app_name"
|
|
android:persistent="true"
|
|
android:defaultToDeviceProtectedStorage="true"
|
|
android:directBootAware="true"
|
|
android:theme="@style/Theme.SubSettingsBase">
|
|
|
|
<receiver
|
|
android:name=".BootCompletedReceiver"
|
|
android:exported="true"
|
|
android:permission="android.permission.RECEIVE_BOOT_COMPLETED">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
|
<action android:name="android.intent.action.LOCKED_BOOT_COMPLETED" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</receiver>
|
|
|
|
<provider
|
|
android:name="androidx.startup.InitializationProvider"
|
|
android:authorities="${applicationId}.androidx-startup"
|
|
tools:replace="android:authorities"/>
|
|
|
|
<receiver
|
|
android:name=".Startup"
|
|
android:exported="false">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
|
<action android:name="android.intent.action.LOCKED_BOOT_COMPLETED" />
|
|
</intent-filter>
|
|
</receiver>
|
|
|
|
<activity
|
|
android:name=".thermal.ThermalActivity"
|
|
android:label="@string/thermal_title">
|
|
<intent-filter>
|
|
<action android:name="com.android.settings.action.IA_SETTINGS" />
|
|
</intent-filter>
|
|
<meta-data
|
|
android:name="com.android.settings.category"
|
|
android:value="com.android.settings.category.ia.battery" />
|
|
<meta-data
|
|
android:name="com.android.settings.summary"
|
|
android:resource="@string/thermal_summary" />
|
|
</activity>
|
|
|
|
<service
|
|
android:name=".thermal.ThermalService"
|
|
android:permission="ThermalService">
|
|
</service>
|
|
|
|
<activity
|
|
android:name=".speaker.ClearSpeakerActivity"
|
|
android:label="@string/clear_speaker_title">
|
|
<intent-filter>
|
|
<action android:name="com.android.settings.action.IA_SETTINGS" />
|
|
</intent-filter>
|
|
<meta-data
|
|
android:name="com.android.settings.category"
|
|
android:value="com.android.settings.category.ia.sound" />
|
|
<meta-data
|
|
android:name="com.android.settings.summary"
|
|
android:resource="@string/clear_speaker_summary" />
|
|
</activity>
|
|
|
|
<activity
|
|
android:name=".refreshrate.RefreshActivity"
|
|
android:label="@string/refresh_title"
|
|
android:exported="false">
|
|
<intent-filter>
|
|
<action android:name="com.android.settings.action.IA_SETTINGS" />
|
|
</intent-filter>
|
|
<meta-data
|
|
android:name="com.android.settings.category"
|
|
android:value="com.android.settings.category.ia.display" />
|
|
<meta-data
|
|
android:name="com.android.settings.summary"
|
|
android:resource="@string/refresh_summary" />
|
|
</activity>
|
|
|
|
<service
|
|
android:name=".refreshrate.RefreshService"
|
|
android:exported="true"
|
|
android:permission="RefreshService">
|
|
</service>
|
|
|
|
<!-- Display Saturation activity -->
|
|
<activity
|
|
android:name=".saturation.SaturationActivity"
|
|
android:label="@string/saturation_title"
|
|
android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="com.android.settings.action.IA_SETTINGS" />
|
|
</intent-filter>
|
|
<meta-data
|
|
android:name="com.android.settings.category"
|
|
android:value="com.android.settings.category.ia.display" />
|
|
<meta-data
|
|
android:name="com.android.settings.summary"
|
|
android:resource="@string/saturation_summary" />
|
|
</activity>
|
|
|
|
<!-- Display Saturation tile service -->
|
|
<service
|
|
android:name=".saturation.SaturationTileService"
|
|
android:label="@string/saturation_title"
|
|
android:icon="@drawable/ic_saturation_tile"
|
|
android:exported="true"
|
|
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
|
|
<intent-filter>
|
|
<action android:name="android.service.quicksettings.action.QS_TILE" />
|
|
</intent-filter>
|
|
</service>
|
|
|
|
<!-- TileHandler activity -->
|
|
<activity
|
|
android:name=".TileHandlerActivity"
|
|
android:exported="true"
|
|
android:noHistory="true"
|
|
android:theme="@android:style/Theme.NoDisplay">
|
|
<intent-filter>
|
|
<action android:name="android.service.quicksettings.action.QS_TILE_PREFERENCES" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<!-- Auto HBM activity -->
|
|
<activity
|
|
android:name=".autohbm.AutoHbmActivity"
|
|
android:label="@string/auto_hbm_title"
|
|
android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="com.android.settings.action.IA_SETTINGS" />
|
|
</intent-filter>
|
|
<meta-data
|
|
android:name="com.android.settings.category"
|
|
android:value="com.android.settings.category.ia.display" />
|
|
<meta-data
|
|
android:name="com.android.settings.summary"
|
|
android:resource="@string/auto_hbm_summary" />
|
|
</activity>
|
|
|
|
<!-- Auto HBM service -->
|
|
<service
|
|
android:name=".autohbm.AutoHbmService"
|
|
android:exported="false" />
|
|
|
|
<!-- Auto HBM tile service -->
|
|
<service
|
|
android:name=".autohbm.AutoHbmTileService"
|
|
android:label="@string/auto_hbm_title"
|
|
android:icon="@drawable/ic_auto_hbm_tile"
|
|
android:exported="true"
|
|
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
|
|
<intent-filter>
|
|
<action android:name="android.service.quicksettings.action.QS_TILE" />
|
|
</intent-filter>
|
|
<meta-data
|
|
android:name="android.service.quicksettings.TOGGLEABLE_TILE"
|
|
android:value="true" />
|
|
</service>
|
|
|
|
<!--HBM tile service -->
|
|
<service
|
|
android:name=".autohbm.HbmTileService"
|
|
android:label="@string/tile_hbm"
|
|
android:icon="@drawable/ic_hbm_tile"
|
|
android:exported="true"
|
|
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
|
|
<intent-filter>
|
|
<action android:name="android.service.quicksettings.action.QS_TILE" />
|
|
</intent-filter>
|
|
<meta-data
|
|
android:name="android.service.quicksettings.TOGGLEABLE_TILE"
|
|
android:value="true" />
|
|
</service>
|
|
|
|
<!-- GameBar Overlay -->
|
|
<activity
|
|
android:name=".gamebar.GameBarSettingsActivity"
|
|
android:label="@string/game_bar_title"
|
|
android:theme="@style/Theme.SubSettingsBase"
|
|
android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="com.android.settings.action.IA_SETTINGS" />
|
|
</intent-filter>
|
|
<meta-data
|
|
android:name="com.android.settings.category"
|
|
android:value="com.android.settings.category.ia.apps" />
|
|
<meta-data
|
|
android:name="com.android.settings.summary"
|
|
android:resource="@string/game_bar_summary" />
|
|
</activity>
|
|
|
|
<!-- GameBar AppSelector -->
|
|
<activity android:name=".gamebar.GameBarAppSelectorActivity" />
|
|
<activity android:name=".gamebar.GameBarAppRemoverActivity" />
|
|
|
|
<!-- GameBar Overlay Tile Service -->
|
|
<service
|
|
android:name=".gamebar.GameBarTileService"
|
|
android:label="@string/game_bar_tile_label"
|
|
android:icon="@drawable/ic_gamebar"
|
|
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"
|
|
android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="android.service.quicksettings.action.QS_TILE" />
|
|
</intent-filter>
|
|
<meta-data
|
|
android:name="android.service.quicksettings.TOGGLEABLE_TILE"
|
|
android:value="true" />
|
|
</service>
|
|
|
|
<!-- GameBar Overlay Monitor Service -->
|
|
<service
|
|
android:name=".gamebar.GameBarMonitorService"
|
|
android:exported="false" />
|
|
|
|
<!-- GameBar BootReceiver -->
|
|
<receiver
|
|
android:name=".gamebar.GameBarBootReceiver"
|
|
android:exported="true"
|
|
android:enabled="true"
|
|
android:permission="android.permission.RECEIVE_BOOT_COMPLETED">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
|
<action android:name="android.intent.action.LOCKED_BOOT_COMPLETED" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</receiver>
|
|
</application>
|
|
</manifest>
|