18 Commits

Author SHA1 Message Date
Sebastiano Barezzi
41dbf85521 polaris: Add fstab entry for metadata partition 2024-10-01 06:28:04 +07:00
Bruno Martins
d41932857c polaris: Update fstab for dynamic partitions
Implemented as per docs: https://source.android.com/devices/tech/ota/dynamic_partitions/implement#fstab-changes

Co-authored-by: Chenyang Zhong <zhongcy95@gmail.com>
Change-Id: Ibaee7040087cf3e890fbc43557fd8f984da81509
2024-09-28 13:49:45 +01:00
Sebastiano Barezzi
38a38427e1 polaris: Switch to two-stage init mounting
* Stop handling cust and vendor mounting from kernel, first stage init is gonna do that, together with system (which is now /system)
* Use correct mount flags coming from kernel dts
* Move system, system_ext and vendor mount points to /dev/block/by-name/, we don't have bootdevice symlink to that point in init
* Copy fstab to ramdisk for first stage init

Change-Id: If8d75837f47c70f7ea02183bffaff233b4d6bb26
2022-08-26 16:25:20 +02:00
Bruno Martins
4891f4ba1e polaris: fstab: Set /system_ext mount point for recovery
Change-Id: Ie12a787e58d72f2a90a3ba015948203240978f36
2022-05-30 18:28:56 +01:00
padarshr
ffe2429039 polaris: Address 'LOCAL_MODULE_TAGS := eng debug' deprecation.
Newer AOSP deprecates LOCAL_MODULE_TAGS := eng debug.
We now remove that and instead add the package to
PRODUCT_PACKAGES_ENG or PRODUCT_PACKAGES_DEBUG as applicable.

To ensure that we don't miss out on any package during this switch,
we add these explicitly, even though it might have been already
added under PRODUCT_PACKAGES at some other location.

Change-Id: I35bd67c3e7752be5bcd8f8682864062173e92724
2019-09-14 17:06:56 +01:00
Bruno Martins
2d5b7fadb4 polaris: Drop display feature service override
This custom HAL is now dead after the switch to OSS display HAL,
therefore there's no need to override the service anymore.

Change-Id: Ied16935684495bcab3b4ce7fe3061df9cff3ea39
2019-09-12 11:09:39 +01:00
Bruno Martins
e96c263588 polaris: Kill Xiaomi's display feature
* This damn HAL was breaking night light and who knows what else.

 * Remove all its related props as those are useless without
   the service running.

Change-Id: Ia1a9ba58e74129bc1cac0f0a0fe863d3057750e2
2019-08-02 11:26:32 +02:00
Bruno Martins
cf2ba14f2f polaris: Add device specific init script
Change-Id: I754044ed120d46a9b70f786ef1513978a025e313
2019-07-31 21:41:44 +01:00
1nfrag
f672f28e93 polaris: Set up NFC
Change-Id: Ib10e931059ad185e26541ceb68390124bb64686e
2019-07-31 21:41:44 +01:00
Bruno Martins
ab3deada92 polaris: Append device manifest to common one
* No more hacks needed.

Change-Id: Ie5798c2223752eb9a73204eced65aacb29eb8b68
2019-07-30 22:17:13 +01:00
Bruno Martins
db26edf571 polaris: Override stock NXP NFC config
Change-Id: Ia888b05b55936439e9ec286e73cab7ae7d6317cf
2019-05-05 12:52:19 +01:00
Bruno Martins
78ba07f23e polaris: Copy device fstab to vendor
Change-Id: I63e6126d48a2efb586b80567f80a1498f0b81cb7
2019-03-13 22:08:46 +00:00
Bruno Martins
c4ba1c316f polaris: Add device-specific fstab and flags
* This got decommonized in order to support perseus,
   which is a system-as-root device.

Change-Id: I0eba72337e7f190d86c37aa6aff893fdac61975e
2019-01-11 23:21:14 +00:00
1nfrag
c26e3ae038 polaris: Import and bind mount stock manifest
* Stock vendor manifest from MIUI 8.9.20

Change-Id: Ie073fd4d71180f7e9c0b05b78018cb03fbf1ccb5
2018-10-02 20:42:54 +02:00
Bruno Martins
ba0291908f polaris: Drop all device-specific treble hacks
* Android 9 (P) is now available as public beta, meaning that all the hacks
   for running 8.1 with 8.0 blobs can now be dropped.

Change-Id: I68595dd790dec51fb45ccd1d3fb907be81f3b896
2018-09-30 09:07:03 +01:00
Bruno Martins
205f2eda0d polaris: Ignore custom audio policy configuration
* After "audiopolicy: update APM to use custom audio policy configuration"
   change in frameworks/av, APM first loads config from /vendor/etc/audio/
   instead of /vendor/etc/. While that was intended, it uncovered several
   issues in the rather outdated configs shipped in Android 8.0 based
   vendor images for polaris.

 * This ensures that common audio policy configuration is forcebly picked,
   thus fixing BT A2DP and audio routing when using USB-C DACs.

Change-Id: Idb1c7c1348a85af4b3168b7a74c51d73b1406b53
2018-08-06 23:18:19 +02:00
Pierre-Hugues Husson
9355330e38 polaris: Override vendor's usb_audio_policy_configuration
Android 8.1 added the support for new type of USB Audio devices
(USB_HEADSET, instead of old USB_DEVICE)
Some older USB devices got converted to this USB_HEADSET while still
using the old protocol.
There is no driver change needed, but the audio policy needs to be
changed.
Since vendors are simply using AOSP usb_audio_policy_configuration
Override it by ourself.

Change-Id: I5c43cd7c95f721914cf94f4dc20c992b4f6a24e9
2018-08-06 18:48:56 +02:00
Bruno Martins
c29e46cef9 polaris: Ship KPTI patched time daemon
* To go along with rebased kernel without having to revert
   KASLR commits.

Change-Id: If62275b5ac3d42d51edee7fe919d3b0aeb8ccd19
2018-08-04 12:08:26 +02:00