* It turns out moving this to class main doesn't work as well
as some had thought it would, so restore the previous logic
to use class hal, and restart if the backend isn't up yet
Change-Id: Ib8b417d89108dcf80d0d159e8d84e5327944b2a1
This basically adds required code to support both switch and extcon
based tri-state-key. This also adds tri-state-key-calibrate script for
devices that need to be calibrated on boot (OnePlus7+)
Change-Id: I2e6c5d2861569750bead05edacf6e328a5227077
* Add DND modes
* alarms only
* important interruptions
* total silence
* Add option to mute media when going to silent mode
Change-Id: Ia59e06f0a0dd3047b3771bb3ac8d5e338d0a75c3
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.
Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.
Bug: 73535841
Change-Id: Iabb0556dc1c80c7fc7f6c76d61d5e441b03cdce0
* This is a partial revert of 5fba81168e8446448da68a5e546c2aa77b8dd148.
* CAF adds the kernel headers dep to fetch one single value that is
removed in that commit. Easier to just carry it here, especially
considering most devices won't have this in generated_kernel_headers,
even.
Change-Id: I5b7daab2731e4b6b529cdb1ccf0fe173f677f8fd
* Reference e7db7fc560
* Adapted and rewritten in Kt
* Use Theme.SubSettingsBase for theme
* Replace PreferenceActivity with CollapsingToolbarBaseActivity
* Add Titles to preference screen
* Remove onOptionsItemSelected and where neccessary move to activity
Change-Id: I4d35ade6f45022944df4db787948c03b5bc14e5f
Signed-off-by: Rohan Hasabe <rohanhasabe8@gmail.com>
Signed-off-by: Bruno Martins <bgcngm@gmail.com>
Targeting S+ (version 31 and above) requires that an explicit value
for android:exported be defined when intent filters are present
Change-Id: I12d27c23624eb5259da582b86ac1bd7572754f0c
* Highly inspired by iOS raise to wake
- Adapted to OnePlus sdm845 doze
doze: Add min interval for raise2wake
* avoid having early wakeup
* also fix typo in acquire timeout
doze: Enable pickup when raise to wake is toggled
- This is needed in order for raise to wake to function properly.
doze: Fix pickup status for raise to wake
Co-authored-by: AnierinB <anierinb@evolution-x.org>
Co-authored-by: AshutoshSundresh <ashutoshsundresh@gmail.com>
Co-authored-by: LuK1337 <priv.luk@gmail.com>
Signed-off-by: AnierinB <anierinb@evolution-x.org>
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Signed-off-by: LuK1337 <priv.luk@gmail.com>
Change-Id: I5df0c4f11f1b24ab813abc393960c5f03f5fab1f