Commit graph

188 commits

Author SHA1 Message Date
Marc Bourgoin
0b7fd0697a xpeng: Commonize sepolicy
Change-Id: Idbc4e5f655fd19cc4754aab99d8bb236a73f9a12
2023-04-30 22:25:57 -06:00
Marc Bourgoin
3990edbe31 xpeng: Remove media_profiles
No longer needed as we handle media completely from common tree now

Change-Id: I158630bbb1543bdfe10a51bf63e8419f81f04263
2023-04-28 16:13:52 +02:00
Marc Bourgoin
77966535c1 xpeng: sm7325.mk -> common.mk
Since we support both sm8350 and sm7325 it makes sense to just rename this

Change-Id: I0c6c113c3655816eb632c7e5fa41c38f982b87a0
2023-04-28 16:13:52 +02:00
Marc Bourgoin
3431a34bbf xpeng: Commonize init.oem.fingerprint2.sh
It turns out berlna still needs this to initialize FP sensor
even though in the real world only one is used, so we might
as well leave this in common for berlna and xpeng

Change-Id: I651a16102473a078c4a870a4880b251cf93d0070
2023-04-28 08:11:27 -06:00
Lukasz Patron
1d400f0e5a xpeng: resource-overlay: Configure aux camera for Aperture
Change-Id: I543f078dd4dba30e1b22737d5c22d591e3fb34e6
2023-04-18 22:58:37 -06:00
Marc Bourgoin
2018e57b2b xpeng: Update blobs from xpeng_g-user 12 S1RXS32M.50-13-15 343f9-7dba8
Change-Id: I9b3d5acdecb49ead5b7f2a50c27d30acbaf67134
2023-04-17 23:28:09 -06:00
Marc Bourgoin
ab8bfebb28 xpeng: Move fingerprint HW ident to vendor/bin
Change-Id: Iba11012cb65a28f35ccf085cb701b342d8bec636
2023-04-17 22:40:24 -06:00
Marc Bourgoin
d49a3afe90 xpeng: Use common cvp blobs
Change-Id: If8175e081069ab82683f44886126a4b7bcf877cd
2023-04-17 22:40:24 -06:00
Marc Bourgoin
02b52edf46 xpeng: Move overlay-lineage to resource-overlay
Change-Id: I785040aa17bb8471c8d4e2041e69f09e5cedb8d2
2023-04-17 22:40:24 -06:00
Marc Bourgoin
571881636e xpeng: Fix fingerprint sensor entries in ramdisk
We aren't currently using GKI so we need to drop this from our bash script
and since it also handles insmod of the kernel modules we can drop that from
the rc script

Change-Id: Ia1a0c2cc68b37c12306094ef69fdef3379225201
2023-04-17 22:40:24 -06:00
Marc Bourgoin
8bc9f71519 xpeng: Use vendor repo for copying touch firmware to recovery
Unfortunately, the method used by berlna is not compatible for VAB devices,
so let's swap to using vendor repo to copy the touchscreen firmware.

Change-Id: Idc93f41f4295511ee8b568a463881c92ca21584c
2023-04-17 22:40:24 -06:00
electimon
7a0063f49d xpeng: Postpone wlan module loading
* qcacld needs icnss subsys to be up in order to
  probe, so lets move loading to post-fs-data

Change-Id: Ic0e6fbba689324091a28fa325d8f958c6e6508eb
Signed-off-by: electimon <electimon@gmail.com>
2023-04-17 22:40:24 -06:00
Marc Bourgoin
72a7ab0b82 xpeng: Convert tree from berlna
The partition reserved sizes were taking from stock ROM

IE, blockdev --getsize64 /dev/block/mapper/system_a

Also add TARGET_IS_VAB cflag as ro.virtual_ab.enabled is true on stock
so that our commonized tree can enable VAB-specific changes.

Change-Id: I922f61e5a0380d16eba5967f6c77346437290eb6
2023-04-17 22:40:23 -06:00
Nolen Johnson
32f768abbc
berlna: Build fingerprint interface to vendor
Change-Id: I8207fb5d84867efb8e9556f2788c8ae9ee28b841
2023-02-21 11:28:46 -08:00
Nolen Johnson
b15fc6819f
berlna: Migrate to OSS fingerprint interface
Change-Id: Ib179df9f9e509834eed2031d370d18ee98feac48
2023-02-21 11:28:46 -08:00
Jiyong Park
5019dd6b89
berlna: Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

Bug: 161456198
Test: m
Merged-In: I14a1c57bd06f1f2aa52491f779c7030d4de03547
Change-Id: I7b9055909b901843631314b9577a9e578a739d00
2023-02-21 11:28:46 -08:00
Nolen Johnson
83dda9c067
berlna: Correct camera overrides
Change-Id: I572a67ad0ab914e3aeaac20af3a3876306f62767
2023-02-21 11:28:46 -08:00
Marc Bourgoin
c31589f82d
berlna: Commonize color modes overlay
Change-Id: I1a7bfae03ac68e2ca61b8b6889a687c392375f27
2023-02-21 11:28:46 -08:00
dianlujitao
3e92f3a671
berlna: update-sha1sums: Handle line with opts
Change-Id: Ia41000b36f3535a3cf0ef8d7650d0d540de728de
2023-02-21 11:28:46 -08:00
dianlujitao
d5cf94e956
berlna: update-sha1sums: Better handle line breaks
Change-Id: I15cfda82a5bc6f05c0d7b9db209064ba498dac11
2023-02-21 11:28:46 -08:00
dianlujitao
ebcbb8bc80
berlna: Format update-sha1sums.py with yapf
Change-Id: I396ad6d79ea6e47ba8b9a56da317123c7579aa67
2023-02-21 11:28:46 -08:00
Bruno Martins
5cb5e7ff45
berlna: Add unpinning support to update-sha1sums.py script
Change-Id: I9035b449cea6d78927a459dc247075b3d4512e46
2023-02-21 11:28:46 -08:00
LuK1337
2db5910f7d
berlna: Handle moved blobs in update-sha1sums.py script
Change-Id: Iccab8c8620c7ff680768aac2d9cbf5b5067af8d7
2023-02-21 11:28:46 -08:00
LuK1337
4310e05ca5
berlna: Add script to update sha1sums of kanged blobs
Change-Id: Id2e8cfb8d3b6f65f69c91a89bacd615fdcc45753
2023-02-21 11:28:46 -08:00
Michael Bestas
a36f4d8ee9
berlna: Remove bdroid_buildcfg.h
As of I3c7aed1bdb45db728d319f7d757400e44d232283 the Bluetooth stack
defaults to reasonable defaults that should work for all devices.

Change-Id: I056d63c4c8a2727e384172e964dc0000b6773504
2023-02-21 11:28:46 -08:00
LuK1337
4ec340e783
berlna: Set a default Settings.Global.DEVICE_NAME
Change-Id: I310c1ffc581b72653783d1093d9e7ebde544bb16
2023-02-21 11:28:46 -08:00
Sal Savage
1d7427c90e
berlna: Replace BTM_DEF_LOCAL_NAME with a sysprop
Change-Id: I2c90efac01e61500eb1be23bb0ae6f96c2acdc53
2023-02-21 11:28:46 -08:00
Erfan Abdi
c19b3ae1e9
berlna: Add module aliases
Change-Id: I9f474eda4789fba3d8f0a8943c5df09f13f49b59
2023-02-16 07:38:19 -08:00
Andrew Hexen
6d68dc9b56
berlna: update modules.load
* Switch to non-GKI list.

Change-Id: I7d231decfdcb39542c5fcda695d8cc3ac58d1e3b
2023-02-16 07:38:11 -08:00
Andrew Hexen
b57b4d233d
berlna: modules: wire up recovery haptics
* Driver no longer panics kernel.

Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: I130e57ddd476ef0ee9dab58158dd66a267cc005c
2023-02-01 04:20:45 -08:00
Andrew Hexen
b985836432
berlna: recovery: add touch script to recovery
Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: I3daf399871b997f18a6d2aa25fac4926c373def3
2023-02-01 02:00:23 -08:00
Joshua Blanchard
6817881611
berlna: Add services for init.oem.fingerprint*.sh
These scripts are how we determine the fingerprint hardware and
start the proper hal service.

- Import stock services for oem fingerprint scripts

- Add needed sepolicy changes

Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: If120fc341cee015a46f38cde93b09b8ba940e933
2023-01-26 09:56:59 -08:00
Andrew Hexen
a1a654e3c4
berlna: update audio, overlays, rootdir from S1RMS32.48-18-11-2-19
Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: I7511c63493d554b21d85f2774ff9054eb2fc02f1
2023-01-26 09:39:49 -08:00
SGCMarkus
648bb269bd
berlna: overlays: enable 5G SA and NSA
Change-Id: Icf55910aebae8d0ae519f0a0c20708aa81ae0bfc
2023-01-26 09:39:42 -08:00
Cosmin Tanislav
e437126afc
berlna: remove old dt2w overlay
berlna is now using a custom sensors lib for it, remove the old overlay.

Change-Id: Ie3388571ef6e7ac47cf14b1159635354f7daf276
2023-01-26 09:39:39 -08:00
sb6596
90785f4c01
berlna: Drop unused TARGET_TAP_TO_WAKE_NODE flag
* We now have sensors doing it for us

Signed-off-by: sb6596 <shubhamprince111@gmail.com>
Change-Id: Ia2f164f879bd895bba51b1d7db19efd09e03951a
2023-01-26 09:39:36 -08:00
Cosmin Tanislav
bff83b0c5b
berlna: enable double tap sensor proximity check
Change-Id: I4b800d9d9b8aefbee38c287ae72828b67e8d46ca
2023-01-26 09:39:33 -08:00
Cosmin Tanislav
d39e501b80
berlna: sensors: Implement double tap sensor
Change-Id: I6c217c994d6e4d5ae062a31a44fffc9f097a7f6f
2023-01-26 09:39:26 -08:00
Cosmin Tanislav
ccaae7da9e
berlna: sensors: Create sysfs polling one shot sensor
Change-Id: Ie78d7729201836bacd65a57f76e22adb61159192
2023-01-26 04:05:19 -08:00
Cosmin Tanislav
7771e8d864
berlna: sensors: Fix locking around setOperationMode and activate
Change-Id: I9a09f45f012662c8f92fa40da3a4b9dd691a1b2c
2023-01-26 04:05:19 -08:00
Cosmin Tanislav
07729462e5
berlna: sensors: Move one shot sensor out of main class
Change-Id: Ib7ac0c55409f2dc7f8fb114167e9f4b2e8859223
2023-01-26 04:05:19 -08:00
Cosmin Tanislav
6087c8e558
berlna: sensors: Make sensor set mode operation function virtual
Change-Id: I62c94a6ad250417162cfc9eaca8cb490ce650d9c
2023-01-26 04:05:19 -08:00
Cosmin Tanislav
387ca5318d
berlna: sensors: Make sensor flush function virtual
Change-Id: I46532fc726d9e0c2073100ff1f6008fcde9e821c
2023-01-26 04:05:19 -08:00
Cosmin Tanislav
1adc6cd0c0
berlna: sensors: Make sensor run function virtual
Change-Id: Ie50900903bbf4a302baff084f229c37c5c324742
2023-01-26 04:05:19 -08:00
Cosmin Tanislav
fe4ad452f3
berlna: sensors: Make sensor batch function virtual
Change-Id: I2de1e919234c4893b0b70390c0189cae38dbbe6c
2023-01-26 04:05:18 -08:00
Cosmin Tanislav
b093d06738
berlna: Add dummy sensors sub HAL
Change-Id: Ie20ed775344990de3e16e2eefba1754d831027fb
2023-01-26 04:05:18 -08:00
Cosmin Tanislav
458871e380
berlna: Import hals.conf
Change-Id: Ifdc949ff5c8e008de4d58162fd90f9cd91d3581d
2023-01-26 04:05:18 -08:00
Lucchetto
08eb943a6d
berlna: Lights: Move to android.hardware.light-V1-ndk_platform
Signed-off-by: Lucchetto <lucchetto.tie@live.com>
Change-Id: I25b6c277feeb7c21bcf752a612d27a4f2bafead2
2023-01-26 04:05:18 -08:00
dianlujitao
4ba4469097
berlna: lights: Restore QCOM notification LED behavior
Change-Id: Idb952c8b91caa03a07f1bac75a1f5126cd87f416
2023-01-26 04:05:18 -08:00
dianlujitao
f364528ccf
berlna: Clean up lights HAL
Change-Id: Iaa5f7b62261730d12ddbbdc0c87ef3c2fbf8b395
2023-01-26 04:05:18 -08:00