* New translations strings.xml (Czech)
* New translations strings.xml (Italian)
* New translations strings.xml (Russian)
* New translations strings.xml (Turkish)
We ship unmodified prebuilt kernel therefore we can't ship fast charge.
The ROM now includes a battery information panel.
Rename charge control to percentage-based charge control.
Signed-off-by: AnierinB <anierin@evolution-x.org>
Accessibility service for toggling Pixel torch when both volume buttons
are simultaneously pressed.
Used https://github.com/cyb3rko/flashdim as a reference for the key
event detection.
This change also implements PixelTorchHelper, a helper class for both
the tile and accessibility service (potentially more) for code
reusability and state syncing between services via sharedPrefs.
Signed-off-by: AnierinB <anierin@evolution-x.org>
We will always start an invisible activity on QS tile long press which
fire ACTION_QS_TILE_PREFERENCES action. Then use route logic to replace
current invisible activity with the corresponding tile activity if it
has one, otherwise start the App Info activity (default behavior).
Signed-off-by: iusmac <iusico.maxim@libero.it>
Signed-off-by: AnierinB <anierin@evolution-x.org>
- Move all features to the appropriate locations in Settings rather than
having an entire activity/fragment for assorted features.
- Set pixel torch as UNAVAILABLE onTorchModeUnavailable.
- Display accurate message if get*StringResourceId fails.
- Include overlay to disable ROM side cycle_count preference.
- Remove Jitter benchmark (we have it ROM side).
- Remove Direct HBM.
- Remove ShakeUtils and LeonidsLib.
- Remove about activity/fragment.
- Various misc changes and cleanups.
Signed-off-by: AnierinB <anierin@evolution-x.org>
Also included:
Drop HBM info warning as it seems a bit redundant.
Drop empty preference category in saturation fragment.
Signed-off-by: AnierinB <anierin@evolution-x.org>
During onSensorChanged, the lux level is set as the summary for the
current_lux_level preference.
Listener is registered when enabling the main switch and when the
fragment is resumed (only if the main switch is on). Listener is
unregistered when the main switch is turned off and when the fragment
is paused (only if the main switch is on).
Signed-off-by: AnierinB <anierin@evolution-x.org>
Move temperature and refresh interval prefs there as checkboxes.
This also makes the refresh interval 5000ms by default and 1000ms
when checked.
Signed-off-by: AnierinB <anierin@evolution-x.org>
When clicked, a AlertDialog will appear, providing explanations
regarding what each preference represents.
Signed-off-by: AnierinB <anierin@evolution-x.org>
To apply the saturation changes, the method executes the command
"service call SurfaceFlinger 1022 f [saturation]" using
Runtime.getRuntime().exec() when the seekbar progress is set.
However, when the devices color mode is set to 'saturated',
a saturation value of 1.0 does not register any changes. To
overcome this, a value of 1.001 is set for a seek bar value of 100.
Co-authored-by: SKULSHADY <anushekprasal@gmail.com>
Signed-off-by: AnierinB <anierin@evolution-x.org>
Previously, the status, health and capacity level values returned
by the respective nodes were always in English (by design ofc),
providing no straightforward way to support translations. This
commit overcomes that limitation by mapping these values to
string resources using a switch-case mechanism.
With this change, we link each English value obtained from the node
to a specific case. Each case is directly associated with a unique
string resource ID. Utilizing this ID, we retrieve the corresponding
string from resources, effectively enabling support for translations.
All possible status values were retrieved from:
db1fca1f81/drivers/power/supply/power_supply_sysfs.c (L75)
All possible capacity level values were retrieved from:
db1fca1f81/drivers/power/supply/power_supply_sysfs.c (L122)
All possible health values were retrieved from:
db1fca1f81/drivers/power/supply/power_supply_sysfs.c (L95)
Signed-off-by: AnierinB <anierin@evolution-x.org>
This makes it more clear rather than only disabling the preferences
when isFileReadable or isFileWritable returns false.
Signed-off-by: AnierinB <anierin@evolution-x.org>