Commit Graph

710 Commits

Author SHA1 Message Date
TheScarastic
fb57c7ffee sdm845-common: Add Xiaomi's vendor platform signature
Change-Id: I727bbad29ca86723d4e1be2004c98e5e99b05497
2018-11-15 15:57:08 +01:00
Luca Stefani
d07717d430 sdm845-common: Create mount point symlinks for backward compatibility
Change-Id: I54c244a41e2060a1f6b8d70cc4bd7c4ec0a39c10
2018-11-15 15:38:21 +01:00
Bruno Martins
7379a96e8e sdm845-common: overlay: Pin the same RenderScript libs as stock
Change-Id: I13b087d186b8509bf35130835b89812fee7abc05
2018-11-14 21:05:02 +01:00
Erik Kline
8ec77262c1 sdm845-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
2018-11-13 22:08:28 +01:00
Jorim Jaggi
7548c9549d sdm845-common: Pin HOME application
Test: adb shell dumpsys pinner after boot
Bug: 111132016
Bug: 78585335
Change-Id: I4ed0587ae5348bbe03ad9ac5f1c5b1726dbb8246
2018-11-13 22:08:28 +01:00
TheScarastic
36dd40da7d sdm845-common: Update overlays from stock P builds
Change-Id: I91503058784f4ab8353f4a642c702e0ff8e90459
2018-11-13 14:51:50 +01:00
TheScarastic
818103cdb8 sdm845-common: Enable camera double tap power gesture
Change-Id: I3478ed41afcbd300346f1e0a91789eaf2d5b9680
2018-11-12 14:03:29 +01:00
TheScarastic
9a6820d32e sdm845-common: Enable custom audio policy
* This is needed for full support of all audio usecases
   and matches stock.

 * Set all default board flags for sdm845 targets used
   while building the custom audio policy HAL.

Change-Id: I2d6e9ac0c5b49e1cf311ba100ddb4c216a35e2c2
2018-11-08 21:06:55 +08:00
Bruno Martins
daadbfd720 sdm845-common: Add framework manifest
* Mentioning CodeAurora, AtFwd hal is implemented as an Android service
   and it starts from the system partition, that is, it's not a traditional
   vendor hal and hence it should be declared in the framework manifest.

Change-Id: I0aa37ae9b3baacf42dcfa54419f62fc528b00bcb
2018-11-08 13:46:33 +01:00
Bruno Martins
a5290b73d0 sdm845-common: Add framework compatibility matrix
Change-Id: Iacf789939d6dcbd169563bc49ab31a748a57444e
2018-11-08 13:46:33 +01:00
Mayank Rana
ae951bfe69 sdm845-common: Add androidboot.usbcontroller to boot command line
Add androidboot.usbcontroller parameter to specify device node
for USB controller used to execute USB ConfigFS initialization
sequences for recovery boot.

Change-Id: I087e750338e848507abfc3a41f27b66bbf38ea10
2018-11-02 23:55:51 +01:00
Chitti Babu Theegala
1a08a0c15c sdm845-common: Set TARGET_2ND_ARCH_VARIANT as armv8-a
Change from armv7-a-neon to armv8-a for 32-bit shared
libraries ABI compatibility.

Change-Id: I68b8459e3fc3301de90eafd198662810e5f2fbf2
2018-11-02 23:55:51 +01:00
Udaya Bhaskara Reddy Mallavarapu
aa2758d0d6 sdm845-common: Enable 64 bit DRM plugins compilation
Enable 64 bit compilation for DRM plugins.
This will generate DRM plugins, HALs & oemcrypto_test in 64 bit.

Change-Id: I451db39edea3446d9816fcaba77caa8d3b097afb
2018-11-02 23:55:51 +01:00
TheScarastic
b1dd701123 sdm845-common: Update additional properties for P
Change-Id: I4f7f5319f994cdcd6525b6e0c05eae9f5fcb0cb1
2018-11-02 23:07:28 +02:00
TheScarastic
5c7cd35ae9 sdm845-common: sepolicy: Remove boot breaking rules
* Now defined in the latest builds, remove duplicate property contexts
   in order to allow devices to boot.

This reverts commit 683242f174.

Change-Id: I76d7381721abf28c283acc1b54f17f586fa908b0
2018-10-31 21:44:13 +01:00
Bruno Martins
5e0296c34e sdm845-common: Commonize and update to P blobs
* All sdm845 targets got P builds by now, so lets maintain a common list.

 * From: Xiaomi/polaris/polaris:9/PKQ1.180729.001/8.10.25:user/release-keys

Change-Id: I27b8cd5f6e3e445dfe43248a94cb949b603fc940
2018-10-31 21:43:54 +01:00
TheScarastic
4acd8db273 sdm845-common: Support play/pause in headphone jack keylayout
Change-Id: Icc8aa42f2756dac5d2b167ae28a5e9999cff294c
2018-10-31 21:36:02 +01:00
Wang Han
5d07f08ff7 sdm845-common: Configure number of physical SIM slots
* Needed by telephony-common

Change-Id: I18c058d295ed2eaf23e8ca5d1f3933b65806ed48
2018-10-31 18:25:48 +00:00
TheScarastic
15015937bc sdm845-common: Disable diag services
These services are pretty useless for production builds. Moreover,
cnss_diag was running in the background and continuously writing logs
to sdcard/wlan_logs, so disable them.

Change-Id: I4a9dea38179f39ca939174b60a132f1cbbc1fa44
2018-10-30 17:14:57 +01:00
Bruno Martins
683242f174 sdm845-common: sepolicy: Add property context for panel related props
Change-Id: I61c1c944104f02c58ba2141e56facdbe7a547ab5
2018-10-30 15:59:29 +01:00
Philip Cuadra
ec81ca34b2 sdm845-common: Enable Camera App pinning
This change enables Camera app pinning on sdm845 targets

Bug 28251566

Change-Id: Icc357441af65e8ece897311bdaf8acc063d3f6ab
2018-10-27 15:24:03 +01:00
Jean-Michel Trivi
15f81608ab sdm845-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
2018-10-26 15:00:56 +02:00
rago
6b0d784a87 sdm845-common: Set voice call volume steps to 7
Bug: 28426597
Change-Id: Icf78d9acec75c500982b1e4391af4d6f3933da37
2018-10-26 15:00:56 +02:00
Bruno Martins
206df7a767 sdm845-common: Disable framework ZSL as per stock
* ZSL breaks camera in certains apps such as Instagram and WhatsApp.

Change-Id: I6e875c16b1968344c79c90c89f0311889d396fe7
2018-10-26 14:44:02 +02:00
LuK1337
9c529e3442 sdm845-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
2018-10-23 23:13:48 +02:00
notsyncing
47d697a7ec sdm845-common: Include missing stock audio properties
Change-Id: If36605711a3b7f4c379a237016018b945f5ecb04
2018-10-17 11:08:31 +02:00
TheScarastic
5f92fe4aa9 sdm845-common: Create a button jack keylayout
Xiaomi sends a custom keycode while trying to adjust volume through
in-headphone volume buttons so add a custom keylayout to handle such
usecase.

Change-Id: I86c6a84051bd0c23b3b25eb02f070fbdc8a1376c
2018-10-15 19:08:47 +02:00
Garik Badalyan
102437da17 sdm845-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
2018-10-06 23:53:13 +01:00
LuK1337
5ce113c81c sdm845-common: Remove unsupported media profiles
Change-Id: Iec2bbd4d3701cf10ab09ab18f15a1c31190a9a73
2018-10-06 15:46:10 +01:00
notsyncing
f9253e0fbd sdm845-common: Import stock media profiles configuration
Change-Id: If896b5d7b2c56c6df9b03b24d24eb7bd08063fc9
2018-10-06 15:46:07 +01:00
Bruno Martins
d8036f0b8f sdm845-common: Ship additional textclassifier's smart selection models
Change-Id: I4de9326fe60a395454834906552518afbc376f49
2018-10-06 13:57:40 +02:00
Bruno Martins
c96e6315e6 sdm845-common: Update fstab to reflect P changes
* Several mount points got updated for treble compliance,
   so keep fstab up-to-date and also remove contexts accordingly.

Change-Id: I3dc7e08e9b64b759b03f1a93c85f161a5c1a554f
2018-10-06 10:26:56 +08:00
Bruno Martins
38e6c85e09 sdm845-common: Enable audio offload with video content
Change-Id: I61a4c6889faecc8ba7866fd808b5391d278b2a34
2018-10-06 01:36:30 +02:00
TheScarastic
6eaf05c1ff sdm845-common: Add additional CarrierConfig overlays from MIUI
It seems that Xiaomi made their own additions in separate files
so add them to support more carrier specific functions

Change-Id: I94c701a9ee229002f0bb69a05c088be60025f453
2018-10-05 19:38:01 +02:00
Bruno Martins
8d5007541b sdm845-common: Update CarrierConfig overlays for P
* Taken from MIUI 8.9.20 Global dev build for polaris

Change-Id: I82bed9862bf0b662591d3bb6fc472f46c2be7f92
2018-10-04 23:03:20 +01:00
TheScarastic
b3024e7f5f sdm845-common: Build tinymix
Change-Id: If98d407ca25bafccda133d6c0ede9cb241fe5632
2018-10-04 23:50:29 +02:00
LuK1337
48eb9245a9 sdm845-common: sepolicy: Allow init to chown/chmod on pseudo files in /sys
Change-Id: Idf9cca465b9db3cfc9714ce170c5bf965968f79d
2018-10-03 10:31:51 +02:00
Bruno Martins
e218c4568c sdm845-common: Ship proper postprocessing soundfx libs
* The lib responsible for audio postprocessing (libvolumelistener)
   from Xiaomi causes stuttering distorted audio. Replace with a working
   copy from enchilada.

Change-Id: I27d631e5fea0dbd338c18a529b26d1ef700affd7
2018-10-03 00:15:03 +02:00
LuK1337
f7a71fb484 sdm845-common: Fix build of our bluetooth header
Change-Id: I45c5a123c86f3a9ec1ac72011c018a937d4fc70f
2018-10-02 12:59:22 +02:00
LuK1337
9d7e26ea10 sdm845-common: Load A2DP configuration from a2dp_audio_policy_configuration.xml
* CAF configuration doesn't really work for us.

Change-Id: Ib062430f9005a67354e2352a81fffd8cadc3c7cf
2018-10-02 12:48:18 +02:00
Bruno Martins
622aea6627 sdm845-common: Import and bind mount stock custom audio policy config
* The purpose is to apply the same BT A2DP fix that used to be
   applied in the individual device trees.

Change-Id: I500948b5e1e11ee11097ee2e115b0c23dd808a12
2018-10-02 12:48:07 +02:00
Bruno Martins
f8eb722196 sdm845-common: Decommonize NFC packages
* Funfact: beryllium doesn't have NFC support.

Change-Id: I49071fa35c17d46649575e3e7fa8417925c31b9d
2018-10-02 11:51:46 +02:00
TheScarastic
2f08e5a83f sdm845-common: Add support for beryllium
Change-Id: I2afb4d98f009c161969931923bb3dfd0b9b879d7
2018-09-29 01:05:45 +01:00
TheScarastic
3a543a414a sdm845-common: Adjust wake_gesture node regex to support all devices
Change-Id: Ic983a1a07c8c2c30ef4b59659b61b62d57e40880
2018-09-29 01:05:45 +01:00
Bruno Martins
b0fe1ba093 sdm845-common: Add support for ursa
Change-Id: I7fecff228b7a400d5987268c139bc4bd8e495f67
2018-09-29 01:24:20 +02:00
Bruno Martins
1c3597e4e3 sdm845-common: Move offmode charging daemon away
* Follow-up change for commit ea5882d that simply moves the
   prebuilt to its proper place.

Change-Id: I40d37ea6ae53fe8fe919dda758db22df3c1c4229
2018-09-29 01:10:15 +02:00
Bruno Martins
4117a9f89f sdm845-common: Really disable vendor.ss_ramdump service
* Apparently relying on property persist.vendor.sys.ssr.enable_ramdumps=0
   to be set results in trying to stop the service too early. Forcebly
   stop it after boot is completed.

Change-Id: I00ee60039c52c0656a29ee16c4f006718b3b5f9a
2018-09-26 02:12:03 +02:00
Christopher N. Hesse
dcfd70a80e sdm845-common: Prebuilt kernel support
Change-Id: I21ec2b8f8e825d0192cef874a20ad7f92673e5b1
2018-09-26 01:10:08 +01:00
Bruno Martins
646da87ff2 sdm845-common: sepolicy: Fix lights HAL denials
Change-Id: I190f1e311d20978fa70804c595bfb6d35a370bc6
2018-09-25 23:45:23 +01:00
Bruno Martins
89bc0814bb sdm845-common: Include missing Doze app dependency
Change-Id: I5ff278a80396ba40ed8305412fe933849ddd3e9a
2018-09-24 15:25:23 +02:00