Commit graph

592 commits

Author SHA1 Message Date
Bruno Martins
b2e66f9cc7 sm8350-common: Update init scripts from OOS 11.2.5.5
Change-Id: Ia4e798ae3c5cbdb7246669b833c75e7058efa523
2021-06-01 21:43:16 +01:00
Bruno Martins
7c98da93ba sm8350-common: Remove useless or unused init scripts
Change-Id: I579319d620b14aab0decd49587d58a20262576ae
2021-06-01 17:40:16 +01:00
Will McVicker
f6f7e210d6 sm8350-common: Add support for vendor_boot
This enables boot header v3 which creates a vendor_boot images that
holds the vendor kernel modules.

Signed-off-by: Will McVicker <willmcvicker@google.com>
Fixes: 151949371
Test: boot, verify vendor_boot ramdisk is loaded, check lsmod
Change-Id: Ia1b7df306d3a9f0e2f1f3ec8e7c2547da0b07596
2021-06-01 11:29:04 +02:00
Bruno Martins
f9ba3937a7 sm8350-common: Import common fstab from OOS
Change-Id: I30d05c1b4f02137a109e30ffd491435acf0b3df3
2021-06-01 11:29:04 +02:00
Bruno Martins
7c0842401b sm8350-common: Populate initial common blobs list
Change-Id: I7c92ac6198463913907d8ee4a0faf998f5573a68
2021-06-01 11:29:04 +02:00
Leo Liou
8aed92f399 sm8350-common: Inherit the virtual a/b config
For devices launching with virtual A/B, inherit the virtual A/B
device base configuration.

Bug: 146466421
Bug: 149155051
Test: boot to home, check system property of virtual_ab
Test: Run full storage-qa test
Change-Id: I8ebbbe897dc9278f43e37a6a9599b89d68419b27
Signed-off-by: Leo Liou <leoliou@google.com>
2021-06-01 11:12:31 +02:00
Daniel Rosenberg
5d0602d85a sm8350-common: Enable casefolding support on userdata
This enables casefolding, which is required for removal of sdcardfs.

Test: Wipe data and boot. lsattr /data/media, check for +F
Bug: 138322712
Change-Id: I020aa6bb9c121e7bda83c07bc9fb37dcfa26702c
2021-06-01 11:12:31 +02:00
Bruno Martins
410e7ff323 sm8350-common: Initial common device tree conversion
Change-Id: I0d7188b3fa82dddf3f9fb9523d716a8f15f46184
2021-06-01 11:12:31 +02:00
Bruno Martins
2bee5a8ca6 sm8250-common: Move "proprietary" seccomp policies to vendor
Also discard unused qspm.policy as we don't ship qspm.

Change-Id: Icc1b978d373de8b0b7bc3e483c088c2cdeb5d325
2021-06-01 10:56:16 +02:00
Bruno Martins
191c30fbd9 sm8250-common: Prepend "system/" before paths where necessary
Change-Id: I29a61453565d0b2a27c601b8e58edbe1bad3ec9a
2021-06-01 10:40:49 +02:00
Bruno Martins
70bd2661d2 sm8250-common: Ditch rild.libpath prop
This is only needed for AOSP rild services. It's currently
unused since the move to QCRIL.

Change-Id: I5eb4d0bc2d086d5a2f29e3c3f5ee2d8f0220f5f5
2021-06-01 10:23:44 +02:00
LuK1337
647b59d0c5 sm8250-common: overlay-lineage: Unset def_clock_position as 2 is default
Change-Id: Ic59ef7269eb211c6b784d6c7a003ac3083d4693c
2021-05-31 22:57:10 +02:00
Bruno Martins
6d2fb2f68b sm8250-common: overlay-lineage: Place volume panel on the left by default
Change-Id: Iffcfad9af472ada48c0dc12cf238fd959355bc6a
2021-05-31 22:56:02 +02:00
Bruno Martins
919636446c sm8250-common: Move unnecessary WFD priv-app permissions whitelist
Our apk does not have these permissions in AndroidManifest.xml.

Change-Id: I5c8adf64e83a570f8c6a90ad7f082c78b707cb07
2021-05-28 00:14:43 +02:00
LuK1337
f972f8c9fb sm8250-common: Update blobs from OOS 11.0.6.6
Change-Id: I5b0519136cbca2b94c90fbae114197f4f1d4416e
2021-05-27 14:26:19 +02:00
LuK1337
ce7f97800c sm8250-common: Decommonize voice call volume steps
Apparently there are issues on non-8T with vol steps set to 9.

Change-Id: Icc8f1dd75c67cf2cc247301ec8606326e4b6f3d5
2021-05-20 09:33:00 +02:00
Hikari-no-Tenshi
756ac6b751 sm8250-common: fod: Remove no longer needed chown/chmod and sepolicy
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: Id7d6c7e1196db020673ea92f691d93ca3511dcf4
2021-05-18 16:52:03 +02:00
alk3pInjection
e57d3a223a sm8250-common: fod: Properly set dim
Matches the behavior of stock rom

Co-authored-by: Hikari-no-Tenshi <kyryljan.serhij@gmail.com>
Signed-off-by: alk3pInjection <webmaster@raspii.tech>
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: I76566f0cf427dcf858fae222e71090ed82eeb710
2021-05-18 16:52:03 +02:00
Art_Chen
2a0985f372 sm8250-common: fod: Return touched z-order only
OnePlus places FP layer upon the dimlayer, causing the former one
highlighted. Only return the z-order with fingerprint pressed to
target the layer we need.

Signed-off-by: alk3pInjection <webmaster@raspii.tech>
Change-Id: I4666718018aa135a7d6387d957f136f23a5a5670
2021-05-18 16:52:03 +02:00
Nauval Rizky
1a67d0fdc2 sm8250-common: doze: Introduce raise to wake gesture
* Highly inspired by iOS raise to wake

- Adapted to OnePlus sm8250 doze

sm8250-common: doze: Add min interval for raise2wake

* avoid having early wakeup
* also fix typo in acquire timeout

sm8250-common: doze: Enable pickup when raise to wake is toggled

- This is needed in order for raise to wake to function properly.

sm8250-common: doze: Fix pickup status for raise to wake

Co-authored-by: AnierinB <anierinb@evolution-x.org>
Co-authored-by: AshutoshSundresh <ashutoshsundresh@gmail.com>
Co-authored-by: LuK1337 <priv.luk@gmail.com>
Signed-off-by: AnierinB <anierinb@evolution-x.org>
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Signed-off-by: LuK1337 <priv.luk@gmail.com>
Change-Id: I5df0c4f11f1b24ab813abc393960c5f03f5fab1f
2021-05-16 17:03:16 +02:00
LuK1337
bb16435fa4 sm8250-common: Relocate volume steps customization to vendor.prop
Change-Id: Ic0d0666de7899dde5afbd1cd40370ccea2837419
2021-05-04 19:45:43 +02:00
Han Wang
fad4f2f288 sm8250-common: Switch to OOS volume steps
* Call volume step is directly picked from OOS and it seems
   that OOS hardcoded media volume step to 30, which is the
   behavior that user experiences.

Change-Id: Ib306646dbde61934d8a29447cd186f54f775a407
2021-05-04 19:44:30 +02:00
LuK1337
1dc5f1546b sm8250-common: sepolicy: Label op_charger
Health HAL wants to access it.

Change-Id: I07a8c11324c0a8b9bae6e7c027aa69df7ee5b7d1
2021-05-04 19:40:51 +02:00
LuK1337
86b4e9c707 sm8250-common: vibrator: Sync with upstream
Change-Id: Ia72f93829bbeaf9c80aafa5b7d4310948029a078
2021-04-28 18:29:10 +02:00
LuK1337
2bf9eeee2f sm8250-common: overlay: Map out our display modes
Change-Id: I2755d5a938848d41382f1d3945f008d94eec1cbd
2021-04-27 18:49:50 +02:00
LuK1337
de5498efab sm8250-common: livedisplay: Rip out IDisplayModes
We are now using AOSP-ish display modes implementation.

Change-Id: Iba9d570dd7cef116e18f3e327c8ab5f5e63f2697
2021-04-27 09:35:23 +02:00
LuK1337
4c76d02e85 sm8250-common: livedisplay: Don't write to DCI_P3 node on boot_completed
Apparently on hotdogb DCI_P3=0 looks really bad...

Change-Id: If63ee6aaa5ae09e1acc9204c3a2b8201c1950488
2021-04-26 15:41:05 +02:00
LuK1337
bb16a2e105 sm8250-common: livedisplay: Reset display mode prop on modeID == 0
Change-Id: I19e1e99fc1a850a18f0d76e9644f7000d087da29
2021-04-26 15:41:04 +02:00
Nolen Johnson
9a36678b92 sm8250-common: Kill deprecated/unneeded board flags
* TARGET_KERNEL_ARCH - no-op unless it differs from TARGET_ARCH.

Change-Id: I8d140fecdbbaac979bc8398745ffa95b911e4c89
2021-04-23 20:11:14 +02:00
Anton Hansson
0c11497347 sm8250-common: Remove obsolete dex settings
This block is completely redundant because..
- WITH_DEXPREOPT := true is the default
- WITH_DEXPREOPT_PIC is never read
- DEX_PREOPT_DEFAULT := nostripping has no effect when the
  BOARD_USES_SYSTEM_OTHER_ODEX flag is set to true

Test: make
Change-Id: I618a1e395ca1a14555cd50eef1a4f1aa079b553d
2021-04-23 20:11:14 +02:00
LuK1337
cd50a1bbe9 sm8250-common: Unset NEED_KERNEL_MODULE_SYSTEM
We are building vendor image ^.^

Change-Id: Ia7f47528c116749f897d7bcfbff6acf290a220fd
2021-04-23 20:11:14 +02:00
Michael Bestas
6115bfd27c sm8250-common: Remove unused TARGET_SPECIFIC_HEADER_PATH
Change-Id: I5518d31fa6c6f56f05dc374bfd8f98b3cd2e62cc
2021-04-23 20:07:17 +02:00
Nolen Johnson
ab44ad8b4b sm8250-common: Kill deprecated TARGET_USES_MKE2FS
* This has been useless since some time in Pie.

Change-Id: Ic02238aa0f1c25cfad20a2b827c3c2fe128f3543
2021-04-23 19:53:24 +02:00
LuK1337
1dd29a35a0 sm8250-common: Unset BOARD_VNDK_VERSION
Change-Id: Ie9e8615eb7fe186dbb595fc3fa0d2bfc013b5d47
2021-04-23 19:51:58 +02:00
LuK1337
54bd3e5a06 sm8250-common: KeyHandler: Use HEAVY_CLICK for MODE_NORMAL_EFFECT
Now that we support OOS style haptics, regular 250ms vibration
feels kinda out of place here.

Change-Id: I392df4c75bbef3f7e3ad1f3cf7f0e1c2bbf447ee
2021-04-15 12:47:33 +02:00
LuK1337
04cf04fab5 sm8250-common: vibrator: Implement OOS style effects for LED vibrator
This change implements the following effects:
- Effect::CLICK
- Effect::DOUBLE_CLICK
- Effect::TICK
- Effect::HEAVY_CLICK

Effect write streams were dumped using following strace command:
- strace -fp `pidof vendor.oneplus.hardware.lmvibrator@1.0-service` -e openat,write

Also, these effects can easily be tested with following test app:
- https://github.com/luk1337/VibeTest

Change-Id: Ie65caa0c65dc81bb35a7bcc56870649e895ced3f
2021-04-14 18:57:16 +02:00
LuK1337
dc3d086fbd sm8250-common: Import QTI vibrator HAL
Change-Id: I6ed3252c6da746c8fb24f44b3b3ec2b1f32a6cb2
2021-04-14 18:57:16 +02:00
LuK1337
41bff4b172 sm8250-common: KeyHandler: Do nothing when action != ACTION_DOWN
This makes sure we only change the ringer mode / play haptics once.

Change-Id: Ie5a6050338cee75cd8fe6da6edfae03141263033
2021-04-14 18:57:16 +02:00
LuK1337
6de1b949cd sm8250-common: Enable TARGET_QTI_USB_SUPPORTS_AUDIO_ACCESSORY
We can handle analog audio just fine, no need to
inform the user that their device is not supported.

Change-Id: I7dda01e7bd2560e8c782245dea3f3b7519c3b0b6
2021-04-10 11:00:57 +02:00
LuK1337
7432867822 sm8250-common: livedisplay: Implement IAntiFlicker interface
Change-Id: I1dbc6d8989a80fe7b06d4356aeb717417997a793
2021-04-09 12:09:28 +02:00
LuK1337
335e820c4c sm8250-common: livedisplay: Uprev to 2.1
Change-Id: I98b2ea16ed342339ee652d5cb79dcfd22f8c0a0d
2021-04-09 12:09:28 +02:00
LuK1337
880e595f0d sm8250-common: MSM -> MDM
Change-Id: I8f93368b279392e42e9c9469cdb88bc5d673cf69
2021-04-07 11:53:16 +02:00
LuK1337
31d0853c6b sm8250-common: touch: Remove unused paths from rc file
Change-Id: I01fa814d331b1b4f3d8c505d217e3e6baf7e1b36
2021-04-07 11:32:26 +02:00
LuK1337
90a75a667c sm8250-common: tri-state-key: Remove useless logging
Change-Id: I60d19bbb1bda3490c2077d15127a0ff1889693d7
2021-04-07 11:27:50 +02:00
LuK1337
24047d6b28 sm8250-common: livedisplay: Update hbm path
Change-Id: I9ecbce2634ce48f64dd48b3a7f2999880378ac3e
2021-04-06 10:13:24 +02:00
LuK1337
1ddd2ecb9a sm8250-common: oneplus-fwk: Update op features list
Change-Id: I34f8dc2520639384a138e35ab17c482fd44671ef
2021-04-05 11:58:46 +02:00
LuK1337
0eb7ac4671 sm8250-common: Update LOG_TAG's in {fod,livedisplay,powershare,touch} services
Change-Id: I98a2091aa4e47c1fc09edf7cfc1ab1a8316c1d9e
2021-04-04 17:53:48 +02:00
LuK1337
2a71acaa19 sm8250-common: Decommonize reserved partition sizes
Change-Id: I12d333c4688f265ddfcf55feaee155640c4e1efe
2021-04-02 03:09:08 +02:00
LuK1337
6cac812f0b sm8250-common: Decommonize BOARD_ONEPLUS_DYNAMIC_PARTITIONS_SIZE
Change-Id: I8e423551a64bcf3cb96ff30a04fa56cdfa0d2d0e
2021-04-02 02:05:28 +02:00
LuK1337
fea51bce3c sm8250-common: Update blobs from OOS 11.0.5.5
Change-Id: Iaa7ca6c73513a4bccda4c6738d78b47bf52630dd
2021-03-30 12:13:40 +02:00