* Since changing overlays is now guarded with enforceCallingPermission()
instead of enforceCallingOrSelfPermission() we can no longer call
setEnabled() after resetting our identify.
Change-Id: I25df30d0ba83f15ca1124d6fc6f79d3465d052f2
*) On pie, lineage system server is starting before
overlay manager service so mOverlay was being
initialized with null (and crashing).
*) Change to only attempt to get service handles after
boot phase system services ready.
Change-Id: I4965ce6015275a421e2e3864e66e77b8c15477f0
* New devices don't have hardware navigation buttons
Change-Id: I989ec6f7f07fd746c24b3eecb527412e3c5ec0e0
Signed-off-by: Giuseppe Barillari <joe2k01dev@gmail.com>
*) Don't depend on framework libs when building our org.lineageos.platform-res
package (as per framework-res bp).
*) It doesn't work out of the box because our resources refer to android: framework-res
attributes (and compile fails).
*) We can fix this in soong by making org.lineageos.platform-res depend on
framework-res (see topic:pie-sdk-no-framework-libs). This allows us to
build with no_framework_libs true.
Change-Id: I426d44ef2521971adfc6b8ad33a7cc042b04e0e6
* Since we removed onehand from settings
we need to make sure user doesn't have them
set in settings otherwise we will hit
ArrayIndexOutOfBoundsException exception.
* Fixes : BUGBASH-1525
Change-Id: I7a5737ecfe5e70c3f0108c03b3e8745eade80433
(cherry picked from commit eb8fc0648f645a265ce8d1b6daf575795eb69510)
* An alternative to using the getRecentTasksForUser method
that got removed with the following commit:
5fa397533f
Change-Id: I752c2445c3ffc0933dfe6290c99d839a036e4bc3
*) This was initialized from Settings.Global.DEVICE_PROVISIONED and it is no
longer possible to access system settings during provider startup since:
235272a216
*) LINEAGE_SETUP_WIZARD_COMPLETED has been deprecated since 14.1:
797a45aa69
*) We will later cleanup the unused setting during topic:pie-db-upgrade
Change-Id: I185648ca25995fae80362642d297573795d04bfa
Replaces the need for:
32e67e6020
*) frameworks/support are now built with gradle and are included as prebuilts.
*) API level 26 (8.0) introduced PreferenceDataStorage which can be used
to implement what we need without touching the support library.
Change-Id: Ide3417019ccf8bde5dca3b2aec3d2075e7c8b597
* Apparently creating it so early can cause serious breakages
that make StorageManagerService and UsbDeviceManager end up
getting null pointer when trying to get KeyguardManager with
ctx.getSystemService(KeyguardManager.class).
* Moving ctx.getSystemService(KeyguardManager.class) out of
constructor to isKeyguardLocked() solves these issues.
* Also move to getSystemService(Class<T>) while at it.
Change-Id: Ib3f65ba2e726149089ab1fb12030321e0ecdeab1
*) the sdk is now using aapt2
*) aapt2 is unhappy with "lineage:..." name attribute value format
(errors with invalid character).
*) update in a way that aapt2 is happy with
Change-Id: I96ecc14c4a6de00272a5ad4f513b62f21289ac45
* The current API makes no sense, and doesn't really
fit with how the other boolean features work
* While we're at it, place AutoContrast properly
Change-Id: I81d7805411c281e435c7451c0b62689711dbb323
* For non-RGB segmented battery LEDs, we currently don't allow any kind
of brightness control, because the alpha channel is taken up by the level
* To remedy this, set the brightness in the color channel like we do for
setting panel backlight brightness by setting the brightness as R/G/B
Change-Id: I4e47861643e0b2b8766af0f2ff275069fc580108
* This service is currently used for loading custom hostname,
it may be used for more than that in the future.
Change-Id: I9b4da124b54bdc28544becb2ad25b7b43d46f123
* Keep CABC in low-power mode, it helps save battery
* Keep ACO in low-power mode, it helps save battery
* Only disable color enhancement if it's not the default,
because some devices *need* color enhancement enabled
Change-Id: Id8c47bdf06782d783e175cd679847c227f3b3636
Allow fine-tuned management of trust warnings,
the user is now able to disable specific warnings
instead of blocking everything
Change-Id: I04c7aa5fba76fd7500fd70c0c874fa0c3e59e03a
Signed-off-by: Joey <joey@lineageos.org>
* Apply the color tint with PorterDuff.Mode.MULTIPLY
as the original color is white, with transparencies
* Use the DarkReceiver tint's value as icons tint
* Results: Before and after: https://ibb.co/k15ony
* Test: Bright wallpaper with status bar contrasts:
https://ibb.co/dxupSy
Change-Id: I4f31cf5a9a3db4018543603a891fa7967ccbb4a3