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>
33 lines
633 B
Plaintext
33 lines
633 B
Plaintext
//
|
|
// Copyright (C) 2017-2020 The LineageOS Project
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
android_app {
|
|
name: "XiaomiParts",
|
|
|
|
srcs: ["src/**/*.java"],
|
|
|
|
certificate: "platform",
|
|
platform_apis: true,
|
|
system_ext_specific: true,
|
|
privileged: true,
|
|
|
|
static_libs: [
|
|
"org.lineageos.settings.resources",
|
|
],
|
|
|
|
required: [
|
|
"privapp_whitelist_org.lineageos.settings.xml",
|
|
],
|
|
|
|
}
|
|
|
|
prebuilt_etc {
|
|
name: "privapp_whitelist_org.lineageos.settings.xml",
|
|
src: "permissions/privapp_whitelist_org.lineageos.settings.xml",
|
|
sub_dir: "permissions",
|
|
system_ext_specific: true,
|
|
}
|