58 Commits

Author SHA1 Message Date
Randall Huang
a3abaacfe5 miatoll: Enable zram-writeback job
This patch enables zram-writeback job. It will run idle marking
at 60m since the device is boot. After that, it will do first
writeback after 3hour to sweep initiallized cold pages out.
After that, it periodically write out every 24hour.

Bug: 117682284
Bug: 127185055
Test: confirm with manual testing
Change-Id: I6857c79ca3ce6a3619f4b7e200d7f17a8decd659
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2021-04-23 07:15:21 +00:00
Michael Wright
fd9678234e miatoll: Enable haptic text cursor
Support has landed in WebView, so time to turn it on in framework!

Bug: 111461797
Test: manual
Change-Id: I064cf3512928637895932b3405adaec74b1ceed2
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2021-04-23 07:15:21 +00:00
Alexey Kuzmin
4d537dc4e3 miatoll: Turn on support of multiple vibration intensities
Bug: 121202530
Test: manual
Change-Id: Id8ce35089b520fe73e9d18f9778a72bdb52b4015
2021-04-23 07:15:21 +00:00
Sonal Singh
1a91f9cee3 miatoll: overlay: Pin surfaceflinger
PA Notes:
- Not merged to master, but merged to internal master.
- Original commit removes libsurfaceflinger but I do not
  because we have enough memory.

Test: Builds as expected after this change, and flashes successfully.
Bug: 176197656

Signed-off-by: Sonal Singh <sonal.singh.19993@gmail.com>
2021-04-23 07:15:21 +00:00
kdrag0n
a6c07829d9 miatoll: Don't pin camera app in memory
The default camera app can be *huge* in some cases, e.g. when the app in
question is Google Camera. The system will only pin up to the first 80
MiB of the APK file, as well as the first 80 MiB of its odex. There are
several problems with this:

  - We could easily end up with 160 MiB of camera app files pinned,
    which is a tall order with the usable RAM that we have
  - The data that gets pinned may not even be the most critical data for
    launching the camera

Let's disable pinning of the camera app to save precious RAM on this
device.

Signed-off-by: Sonal Singh <sonal.singh.19993@gmail.com>
2021-04-23 07:15:21 +00:00
Jesse Chan
d068e65338 miatoll: overlay: Set fast charging indicator threshold to 10.8W
We no longer call 7.5W charging "fast charging" nowadays

Change-Id: I3a11f50f89933bd44b70d9f30a6e74a3d77abb25
2021-04-23 07:15:21 +00:00
Jesse Chan
1316e16ad0 miatoll: overlay: Configure SQLite to operate in MEMORY mode
This change yields considerable SQLite performance gains. It
should be generally safe as this device has irremovable battery.

Some OEMs have been doing this for years.

Signed-off-by: Jesse Chan <jc@lineageos.org>
Change-Id: Ic775c3fa735a32653d8e7f4c15cac26c6ebc262c
2021-04-23 07:15:21 +00:00
Cosme Domínguez Díaz
1a2455e6b6 miatoll: Add more defaults
overlay: Disable UI touch sounds by default
 Set brightness & screen timeout default
  Disable bluetooth by default
2021-04-23 07:15:21 +00:00
Volodymyr Zhdanov
d0980488b6 miatoll: increase statusbar height a bit
* I want punch hole to be centered on statubar
2021-04-23 07:15:21 +00:00
darkbeast69
83ec70c420 miatoll: overlays: Import Vibration Patterns from gram 2021-04-23 07:15:21 +00:00
darkbeast69
dd386feca7 miatoll: Decommonized Tree check-in
there is no no need for common tree if all device is this much identical
clean overlays
2021-04-23 07:15:10 +00:00
Weilun Du
8ef6293311 sm6250-common: Add Tethering Config
Tethering package is APEX and we need to create a RRO to overwrite
the values for config_tether_wifi_regexs and config_tether_wifi_p2p_regexs.
BUG: 163800715

Signed-off-by: Weilun Du <wdu@google.com>
Change-Id: Ia0834f5215ff8c3b13effa591bd2f84d93419a06
2020-12-05 00:36:18 +02:00
Ryan Mitchell
a6db72a1fc sm6250-common: Use component-override to configure Bluetooth
Runtime Resource Overlays (RROs) can no longer change the value of
resources in manifest when read during PackagerParser.

This change uses component-override to enable the service by default
on sunfish devices.

Remove usages of profile_supported_* from overlays as they no
longer configure the enable state of Bluetooth componenets.

Bug: 135048762
Test:
      adb shell pm query-services \
      com.android.bluetooth/.a2dpsink.A2dpSinkService
      adb shell pm query-services \
      com.android.bluetooth/.avrcp.AvrcpTargetService
      adb shell pm query-services \
      com.android.bluetooth/.avrcpcontroller.AvrcpControllerService
      adb shell pm query-services \
      com.android.bluetooth/.ba.BATService
      adb shell pm query-services \
      com.android.bluetooth/.hfpclient.HeadsetClientService
      adb shell pm query-services \
      com.android.bluetooth/.hid.HidDeviceService
      adb shell pm query-services \
      com.android.bluetooth/.sap.SapService

Change-Id: If41df9fdefbcd952f8387451dc137565343e3d75
2020-12-05 00:36:18 +02:00
Volodymyr Zhdanov
98c9d2a95b sm6250-common: overlay: Add pinned files from stock 2020-12-05 00:36:18 +02:00
Bruno Martins
b8e451aeec sm6250-common: overlay: Pin standard SystemUI instead of Google's
Change-Id: If96bb13d6cc2c2156d8df111a1037247c96c6e0f
2020-12-05 00:36:18 +02:00
Nicolas Geoffray
590ca15581 sm6250-common: overlay: Update in pinned files.
Remove or update paths that don't exist.

Bug: 119800099
Test: boots
Change-Id: Idd0066e2ab737c9edcf9a745a19aca7421f62575
2020-12-05 00:36:18 +02:00
Jeongik Cha
3b8553c99f sm6250-common: overlay: Update config overlay with new SystemUI location
The app is moving to /product

Test: m
Test: check if it can boot
Bug: 137908189
Change-Id: Ifd73ba03884543e33d61c74d933ad8171dd3b259
2020-12-05 00:36:18 +02:00
Martin Stjernholm
b69a68b581 sm6250-common: overlay: Update paths to the new ART APEX.
Test: Presubmits
Bug: 135753770
Change-Id: If522ab29b6c4e9aab91f5ba41e10947799315f33
2020-12-05 00:36:18 +02:00
Rick Yiu
ac2981bdca sm6250-common: overlay: sync pinner service configs from crosshatch
Bug: 130103428
Test: verified with dumpsys pinner
Change-Id: I8ffe5eee1d40a5ac6be2112621ccda4b4dd5be1a
2020-12-05 00:36:18 +02:00
Volodymyr Zhdanov
d795f22b08 sm6250-common: Remove wifi related internal overlays
This reverts commit 51e488c63c0e15aac8deb4ac3892ee0ca5b2bffc.
2020-12-05 00:36:17 +02:00
inthewaves
4f5ec3b16e sm6250-common: overlay: add config for biometric sensors 2020-12-05 00:08:57 +02:00
Fiona Campbell
9c463757b8 sm6250-common: Add brightness float values to config file.
Test: manual testing - ensure that the brightness value in
Settings>Display>Brightness Level can go the full range from 0% to 100%.

[wight554: adapted for our value]

Change-Id: Ife1f2796bb3b8ec5f508903afd30a31556b49cbe
Signed-off-by: Volodymyr Zhdanov <wight554@gmail.com>
2020-12-05 00:08:57 +02:00
Brad Ebinger
b2c3d6432a sm6250-common: Add translatable="false" tags to ims package overlays
Bug: 147569830
Test: atest TeleServiceTests:PhoneGlobalsTest
Change-Id: I57d80bbf17fafdc87ba04c6e7f7ab9573482e395
2020-12-05 00:08:57 +02:00
Brad Ebinger
61394f2ce9 sm6250-common: Remove old configuration and use new config for MMTEL/RCS
Remove the old config_ims_package device config and configure the
new MMTEL and RCS configurations in Telephony instead. Also,
configure the RcsService to be the default RCS service.

Bug: 111305845
Test: make checkbuild
Change-Id: I0d709b8248f1c40f0a5b50ec799396706eeadd65
2020-12-05 00:08:57 +02:00
maxwen
d646153a0b sm6250-common: Update overlay to hide sRGB toggle
* Now expected as an array in Settings package

Change-Id: I92a56abb0fc1379e4482d1889d04d8db6a14ea2b
2020-12-03 01:13:05 +02:00
dianlujitao
4372eed462 sm6250-common: Hide sRGB toggle in developer options
* This is only available on Nexus/Pixel devices, and we have our own
   implementation in livedisplay.

Change-Id: I8343e4986d7dd8413bd8d36dfad0309a4c08026e
2020-12-03 01:12:55 +02:00
Demon000
5d74742307 sm6250-common: overlay: enable DT2W 2020-08-18 14:44:17 +03:00
TheMalachite
6fdeeb9833 sm6250-common: overlay: Import correct mainBuiltInDisplayCutout
Change-Id: I35c98114261215bdadb8b0ef863420677f3b2e68
2020-08-13 18:16:18 +03:00
Demon000
e5d5f85e51 sm6250-common: overlay: adjust ramp rates for 255 max brightness 2020-08-13 18:16:18 +03:00
LuK1337
e56248445e sm6250-common: overlay: use 16dp rounded corner padding
Change-Id: I9f81f684d491ed447b7bdb2ca70f558bf75ebc67
2020-08-13 18:16:18 +03:00
Demon000
8dc9578354 sm6250-common: overlay: define automatic brightness overlays 2020-08-13 18:16:18 +03:00
Demon000
fbf5932b94 sm6250-common: overlay: define intrusive notification led 2020-08-13 18:16:18 +03:00
Demon000
7e49500e83 sm6250-common: overlay: status bar height and corner radius 2020-08-13 18:16:18 +03:00
Wang Han
aac7ef6785 sm6250-common: overlay: Configure number of physical SIM slots
Needed by telephony-common.
2020-07-25 13:10:47 +03:00
Demon000
aed7150e72 sm6250-common: overlay: import power profile 2020-07-23 13:05:39 +03:00
dianlujitao
14509d9e2f sm6250-common: Switch to QTI bt stack
Change-Id: I47016b066ae800d0071dbad6a1235cbc9db3cf80
2020-07-18 13:15:53 +02:00
Demon000
e002473989 sm6250-common: overlay: CarrierConfig: import configuration from stock 2020-07-15 23:03:28 +03:00
Demon000
8350b84214 sm6250-common: overlay: Bluetooth: import configuration from stock 2020-07-15 23:03:28 +03:00
Amruth Ramachandran
9c57868dfc sm6250-common: overlay: Enable IWLAN assisted mode
Add  qti.data.iwlan package
  Enable IWLAN HAL

Bug: 130182008
Test: WFC sanity
Change-Id: Icd8b0ff567df13b7efd3ce8fd7fc768c733ac489
2020-07-15 23:03:28 +03:00
Demon000
adc6dc7c54 sm6250-common: overlay: use /dev/input for jack changes detection 2020-07-15 23:03:28 +03:00
Demon000
0f88523462 sm6250-common: overlay: declare automatic brightness availability 2020-07-15 23:03:28 +03:00
Demon000
f7d8997048 sm6250-common: overlay: enable accelerated color transformations 2020-07-15 23:03:28 +03:00
Demon000
2e8f6a90ce sm6250-common: overlay: configure bluetooth power usage 2020-07-15 23:03:28 +03:00
Demon000
776680cec8 sm6250-common: overlay: support unprocessed audio sources 2020-07-15 23:03:28 +03:00
Demon000
5ab8e4473f sm6250-common: overlay: declare hotswap capability 2020-07-15 23:03:28 +03:00
Demon000
e9b808a352 sm6250-common: overlay: disable phone object update on registration state change 2020-07-15 23:03:28 +03:00
Demon000
e9df0999f5 sm6250-common: overlay: configure IMS 2020-07-15 23:03:28 +03:00
Demon000
7bcdcafeb4 sm6250-common: overlay: configure mobile tcp buffers 2020-07-15 23:03:28 +03:00
Demon000
3c193c1865 sm6250-common: overlay: decouple interactive mode from display 2020-07-15 23:03:28 +03:00
Demon000
07c1c93f5c sm6250-common: overlay: add radio attributes 2020-07-15 23:03:28 +03:00