Commit graph

447 commits

Author SHA1 Message Date
Bruno Martins
e817d534a0 Doze: Add missing preference listeners
* Otherwise, it resulted in Doze service not being activated
   when enabling one of the features for the first time after
   a clean installation.

Change-Id: I625d9109fb85c970f0e59b1cbcabba7d4375d2f3
2019-08-29 10:03:22 +00:00
LuK1337
764f507c35 Doze: Make use of real pickup sensor
* Use it for the pickup feature instead of the tilt sensor

Change-Id: I6172154e0cb0278fc0b7dc31d612f5e8ac619d90
2019-08-29 10:03:11 +00:00
ezio84
be68fd6e75 sdm710-common: doze: use ExecutorService for listener registration
Replicate what Google did for SystemUI in this commit.
fabc743bcf

Registering a sensor seems to be an expensive operation,
and we do it on each screen-on event, so moving it to
an asynchronous task looks like a good idea anyway.

By moving all non-essential binder calls of the main thread or to the
next frame, we bring this down to 5ms, such that window animation
and Keyguard animation starts about at the same time.

The interesting part about the ExecutorService:
"Memory consistency effects: Actions in a thread prior to the submission
of a Runnable or Callable task to an ExecutorService happen-before any
actions taken by that task, which in turn happen-before the result is
retrieved via Future.get()."
(from https://developer.android.com/reference/java/util/concurrent/ExecutorService)

Change-Id: I4f37bb9a7dc9d7775d587d4ebd4b6619f3b77e81
2019-08-29 10:02:54 +00:00
Bruno Martins
2f05326436 sdm710-common: Doze: Minor code simplification and clean up
Change-Id: Idff05f2626138c96dccd3ab4c26c4df1be40a606
2019-08-29 10:02:38 +00:00
Bruno Martins
a7e74415e0 sdm710-common: Doze: Build with AAPT2
Change-Id: Iab14804817e6b90bf4d773d9359a04f1e119264a
2019-08-29 10:02:22 +00:00
Bruno Martins
f0d2246d27 sdm710-common: Doze: Re-integrate into Settings
* Apply the default Oreo theme and inherit the layouts
   from Google for the Settings app, in order to keep
   UI consistency.

 * Get rid of SettingsDrawerActivity as it no longer fits in
   and include the back button in the action bar.

 * Kill the icon drawable not only because is a leftover,
   but also doesn't really serve any puropose in the new UI.

Change-Id: I53b6d3bb99d63852ba34d71e16ae99f05223569e
2019-08-29 10:02:10 +00:00
Bruno Martins
1dcb684eea sdm710-common: Doze: Apply LineageOS rebrand
Change-Id: I4daa1092494fdf207ef54dc79f787bcbe1d01a08
2019-08-29 10:02:00 +00:00
Álvaro Brey
ea1e874137 modules: doze: Fix devicesettings path
* Was broken when moved to modules, since it iss a relative path
Change-Id: I7d934e7cfeccdc4bcaaf917de1316e81b34ae220
2019-08-29 10:01:47 +00:00
xiaobai
91d1679e81 sdm710-common: import doze from mi5 2019-08-29 10:01:30 +00:00
Marc K
7456bdd6a3 sdm710-common: Enable proximity check on wake
Change-Id: I6506408447b15464238a2eefd98306efbaffbd84
2019-08-29 10:01:13 +00:00
haran
8e05b6be7a sdm710-common: Remove some overlays that are default
Change-Id: I2340316577c4b56604125f9007161e2ac5b3241c
2019-08-29 10:00:55 +00:00
LuK1337
9fe48b1c2e sdm710-common: Set default clock position to left
Change-Id: I2b597579851434972cd29510ff90dfa8ddc6564f
2019-08-29 10:00:37 +00:00
dianlujitao
83d2143ddc sdm710-common: Wait for MPCTL to start on boot
Change-Id: Ib79b48e1d362872d9d97373d5ca2ad42f7fbc638
2019-08-29 10:00:22 +00:00
Jesse Chan
014e1c6350 sdm710-common: overlay-lineage: enable option for full screen aspect ratio
Change-Id: Ibf0bfabd06d704e220c8a74b60e6a822fa39dcf4
2019-08-29 09:59:44 +00:00
Danny Baumann
fdc1adae35 sdm710-common: overlay-lineage: Enable call recording
Change-Id: I1b4478b330b13cf5d0fe1ed0d40f43e4b3825f33
2019-08-29 09:59:33 +00:00
invisiblek
c14f0a53cf sdm710-common: Configure custom led capabilities 2019-08-29 09:59:21 +00:00
SamarV-121
62041ac3d9 sdm710-common: Add hardware keys overlays 2019-08-29 09:59:11 +00:00
raymanfx
40221b1b1c sdm710-common: Fix platform signature
* Taken from /system/etc/selinux/plat_mac_permissions.xml

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-08-29 09:58:52 +00:00
Wang Han
3b4402cd40 sdm710-common: Configure number of physical SIM slots
* Needed by telephony-common

Change-Id: I18c058d295ed2eaf23e8ca5d1f3933b65806ed48
2019-08-29 09:57:30 +00:00
Bruno Martins
d731f1129a sdm710-common: Beautify rounded corners
Change-Id: Ifb3ff156eca7a02daec82138aee449b121c071eb
2019-08-29 09:57:17 +00:00
LuK1337
774aa87672 sdm710-common: overlay: Use 16dp rounded corner padding
Change-Id: I9f81f684d491ed447b7bdb2ca70f558bf75ebc67
2019-08-29 09:57:04 +00:00
SamarV-121
95cabe4133 sdm710-common: Add notch cutout config 2019-08-29 09:56:48 +00:00
Erik Kline
d281417bad sdm710-common: Use tether automatic upstream selection
(config_tether_upstream_automatic=true)

Test: as follows
    - built, flashed, booted
Bug: 32163131
Bug: 62648872
Bug: 63282480
Bug: 110118584
Bug: 110260419

Change-Id: I604cda53d6d37a33de3e3ccc65c0da781d21278b
2019-08-29 09:56:36 +00:00
dianlujitao
4cb4078b40 sdm710-common: sepolicy: Allow system_server to read vendor camera props
Change-Id: I43a2404d9399a931b03e1d2c8589d0d4adb10fc3
2019-08-29 09:56:23 +00:00
LuK1337
8543dadc25 sdm710-common: Allow appdomain to get vendor_camera_prop
* Some apps rely on this and won't work properly if they
  can't read this property. See ~ Snapchat.

Change-Id: I737e28f038941e6d18b96ff512f29dbe0ad7b7e4
2019-08-29 09:56:08 +00:00
Pranav Vashi
0f3fa494fb sdm710-common: Enable Wi-Fi MAC randomization
Change-Id: Ibcabf871f0e35a6f81905392f749478f96b3c47d
2019-08-29 09:55:42 +00:00
Dan Pasanen
ebb248df7f sdm710-common: set ui thread runnable time to zero
* https://source.android.com/devices/tech/debug/jank_jitter#sys.use_fifo_ui

Change-Id: Idc7723e14b3e3920d5736589dcf44e5525d10518
Signed-off-by: Joe Maples <joe@frap129.org>
2019-08-29 09:55:24 +00:00
LuK1337
3dc9353e20 sdm710-common: Add debug IMS props to workaround CarrierConfig restrictions
We support IMS features on carriers not listed in the CarrierConfig,
so let's use the props to enable it everywhere.

Change-Id: Id3ad71d522a22048f7ad86d89695ad262361632d
2019-08-29 09:54:35 +00:00
Jean-Michel Trivi
fb7306640b sdm710-common: Media volume: from 15 to 25 steps
Test: play media, use all 25 vol steps and observe varying attenuation
Bug: 32195657
Change-Id: I7ac87df0b2b15de3a7bb87e739bd88ef7b185236
2019-08-29 09:54:09 +00:00
rago
b820fcc369 sdm710-common: Set voice call volume steps to 7
Bug: 28426597
Change-Id: Icf78d9acec75c500982b1e4391af4d6f3933da37
2019-08-29 09:53:46 +00:00
SamarV-121
2cae618f55 sdm710-common: Add some system props from stock 2019-08-29 09:53:07 +00:00
Pengfei Xiao
9734d3aed8 sdm710-common: IMS: Enable config_enable_video_crbt for more mnc/mcc
- Enable config_enable_video_crbt for mnc/mcc 204/04
460/01/03/05/06/09/11/12

Change-Id: I966c014460297eb8fb5ea15d834a00099837b49d
CRs-Fixed: 2464898
2019-08-29 09:52:50 +00:00
GuaiYiHu
51b265a622 sdm710-common: Import CarrierConfig overlay
* 9b063f8dec
2019-08-29 09:52:38 +00:00
GuaiYiHu
e62acbf841 sdm710-common: Configurate overlay for bluetooth
Change-Id: I5206156f1a95be97c65511cba3d77a3abf9cde18
2019-08-29 09:52:23 +00:00
SamarV-121
17477faa1e sdm710-common: Import fw/base overlays and power_profile from stock 2019-08-29 09:51:56 +00:00
luca020400
44fc9b6b61 sdm710-common: lights: update service entry for pie 2019-08-29 09:50:38 +00:00
Bruno Martins
f8f10ac731 sdm710-common: Add a custom lights HAL
* This overrides stock liblights and fixes LCD backlight issues.
 * Also fix lights HAL denials

Change-Id: Iafa2ba2338932879b7a1dc480b50559e3328fd21
2019-08-29 09:49:47 +00:00
Garik Badalyan
887fe8faf1 sdm710-common: IMS: Whitelist org.codeaurora.ims package
org.codeaurora.ims has become a priv-app
to acquire some permissions we need to
whitelist the package.

Change-Id: I3f31f949e054cc79f8cff99e66cbcb70f5f0715f
2019-08-29 09:46:17 +00:00
Devi Sandeep Endluri V V
f57563fa4a sdm710-common: Add priv-app permissions to whitelist.
Added priv-app to whitelist so as to provide priv app permissions.

CRs-Fixed: 2131551
Change-Id: I0f2446e1946cdd7cf8b1641a46818317acfaefdd
2019-08-29 09:46:05 +00:00
Garik Badalyan
dfef1ff267 sdm710-common: White-list telephony modules.
Some telephony modules require access to
platform APIs, i.e. @hide, and hence need
to be white-listed. This change white lists
these packages.

Change-Id: I1dfd9478b59f52350e4e7ecfdb2b80f1178cfd9c
CRs-Fixed: 2219897
2019-08-29 09:45:52 +00:00
Bruno Martins
285ae282b3 sdm710-common: Fix typo from CodeAurora in the QTI whitelist
* Let com.qualcomm.qcrilmsgtunnel break free

Change-Id: I6243a6d21da7709bf6612270d7638f1231b9f601
2019-08-29 09:45:40 +00:00
Wileen Chiu
8c9cc62169 sdm710-common: Remove datastatusnotification from whitelisting
- remove com.qti.qualcomm.datastatusnotification
from the whitelisting list

Change-Id: I59437b2542e9fbf68688e225b2e886937eda4e21
2019-08-29 09:45:18 +00:00
Sukanya Rajkhowa
0bdd7f8fbf sdm710-common: Remove EmbmsService from whitelist services
EmbmsService will start only when a client binds to it

CRs-Fixed: 2035310

Change-Id: I237cbd3868730d30d58b4ce971bd9d8d1d68b46c
2019-08-29 09:45:04 +00:00
Ruthwar Kumar Ambeer
762b7c90db sdm710-common: Add background atel services in whitelist
telephony services are white-listed who all need
to freely run in the background. This is temporary
work-around and some of the services will be
removed from the list based on the feasibility.

Change-Id: Ice11429b5b78d5786dc701251b507b7dac5745ee
2019-08-29 09:45:00 +00:00
Demon Singur
4c2177841e sdm710-common: Build separate system and vendor HIDL libs
Change-Id: If8e2211e643bdb0ff67fb248e7fe33b78077a06e
2019-08-29 09:44:18 +00:00
dianlujitao
a3f33d8e73 sdm710-common: Build dummy android.hidl.[base,manager]@1.0
Change-Id: I81a081130869c4d92f30b2674e75bb6b096a7a2c
2019-08-29 09:43:56 +00:00
SamarV-121
9d212ba3f5 Init trees 2019-08-29 09:37:42 +00:00