Commit Graph

652 Commits

Author SHA1 Message Date
LuK1337
f5974f82c3 Revert "sdm845-common: Make Android.mk search recursive"
No longer needed.

This reverts commit b56fd4bc01.

Change-Id: Iae9c4257a98dd4ba47ef9992b1dec133ccc56764
2022-04-08 18:13:18 +02:00
LuK1337
901baf95a9 sm8250-common: Autopatch vendor.qti.hardware.camera.postproc impl
Change-Id: If9b730f83853a169066291c6787dd81d5609ac5e
2022-04-03 21:05:31 +02:00
Lokesh Gidra
56fb9175ca sm8250-common: Use 6GB dalvik-heap config
We are currently using 2GB dalvik-heap config.

Bug: 145823510
Test: MPTS
Change-Id: I086d4a5c09634c3c7bd51ec5d08dcaa1551511b4
2022-04-01 15:19:21 +02:00
LuK1337
6bc9b4ac6e sm8250-common: Remove trust HAL from product packages
USB 1.3 HAL now provides the same functionality and even more.

Change-Id: Idda908a90d3b935e1065eb41abec4babeefc4fd0
2022-03-23 20:30:55 +02:00
Albert Wang
55895e141e sm8250-common: Update USB HAL to V1.3 implementation
Supports to enable/disable USB data signaling

Bug: 161414036
Test: Pass USB V1.3 HIDL tests
Signed-off-by: Albert Wang <albertccwang@google.com>
Change-Id: Iffe00f8753206fb66cd3ab96cae5aa5ad9c410cd
2022-03-23 20:30:53 +02:00
Michael Bestas
9595860018 sm8250-common: sepolicy: Migrate to vendor_ prefixed contexts
Change-Id: Id2785839653b275e1b51e5ff10e4e96b3fd18a46
2022-03-23 20:30:50 +02:00
Alexander Koskovich
65a414d1cf sm8250-common: Drop support for Snapdragon Camera.
* Won't be implemented this cycle (or ever again hopefully).

Change-Id: Ie2a346319dfe814deaf9833cb31640505cc6b7dc
2022-03-23 20:30:47 +02:00
Georg Veichtlbauer
74e3a80c0f sm8250-common: Remove CLANG compile flag
Defaults to true now project-wide.

Change-Id: I1e0ff5adadc889d81c90c816457a72d2621e4b5a
2022-03-17 11:46:16 +01:00
Kilian von Pflugk
b04fa8b9cf sm8250-common: Remove TARGET_USES_64_BIT_BINDER
The TARGET_USES_64_BIT_BINDER option is deprecated and can be removed

Change-Id: Ieab43c6baf17eff134a11312d8f8ee7d1b310d55
2022-03-12 09:51:18 +01:00
LuK1337
9c9e8bdcd2 sm8250-common: Unlock gc5035 camera
This change lets us use gc5035 camera, which was blocked by OnePlus long
time ago after people discovered its *magic* capabilities. By default
only `com.oem.autotest` can use it, however if we replace the first
character with a NULL byte, then strncmp returns 0, and thus we pass the
check and allow everyone to use it.

You can see the logs below that led me to discover that behavior.

[DEBUG  ] JIANJIA.cpp:89 PretendOpenCamera() logicalCameraId 4, m_ClientPackageName 0
[DEBUG  ] STELLA.cpp:1445 informKernel() force: -1 value: 6 buf: 5
[DEBUG  ] chxextensionmodule.cpp:1005 ExtendOpen() You shall not pass 0
[DEBUG  ] chxextensioninterface.cpp:298 chi_extend_open() [OP_EXT] OPEN_CAMERA X
[ERROR][HAL    ] camxhal3module.cpp:772 ProcessCameraOpen() Camera Open failed with error status = CamxResultEInvalidArg

Change-Id: I9b3e4e55f07cef40886e09941f7ed0523cdf8cfa
2022-03-05 01:35:32 +01:00
jabashque
6620360df7 sm8250-common: overlay: Decommonize refresh rate config
instantnoodle is a contrarian that has a 90Hz display, so unfortunately,
we have to set the refresh rate and peak refresh rate values for each
device instead.

Change-Id: I868d84352a46eed19b2433c6aff32a4d9c0b9d03
2022-02-28 01:06:31 +01:00
Bruno Martins
9530fdf1c5 sm8250-common: overlay: Enable smooth display with 120Hz
There's no point to keep using custom pref to set minimum refresh rate
when AOSP smooth display feature behaves in the exact same way in
our case.

Change-Id: I497918a9c9687443a9438fb6291769f6e51d9379
2022-02-27 18:25:56 +01:00
LuK1337
4386e25d5f sm8250-common: Update blobs from OOS 11.0.11.11
Change-Id: Ie778c23099989d4b91fa3a927882e5364f3c5358
2022-02-27 12:13:05 +01:00
LuK1337
5a6bc9a295 sm8250-common: sepolicy: Allow camera to access vendor_xdsp_device
Change-Id: I59ee2b5a5f37690c2d55f8ee3acb0cdfb127e678
2022-02-26 01:40:44 +01:00
LuK1337
aafc10c24b Revert "sm8250-common: Remove BOARD_SYSTEM_EXTIMAGE_EXTFS_INODE_COUNT"
Wasn't necessary.

This reverts commit e6efc6c08f.

Change-Id: I3ef84929299152b8f40ad4b8c45ee5099fca9fc5
2022-02-25 09:22:12 +01:00
Bruno Martins
e0c3fbb417 sm8250-common: Migrate to fingerprint HIDL v2.3
Change-Id: Ibf065cfb9b6b8210713ab6dba8302937f56cf4c1
2022-02-22 10:03:47 +01:00
Michael Bestas
e6efc6c08f sm8250-common: Remove BOARD_SYSTEM_EXTIMAGE_EXTFS_INODE_COUNT
* Uses too much of the reserved space so gapps no longer fit.

Change-Id: I0419cc1cef820ecac6b148cded9ecf296bfcb348
2022-02-22 09:49:30 +01:00
Alexander Koskovich
dbc084b1dc sm8250-common: overlay-lineage: Remove obsolete fps location config
Change-Id: I2569c77b4daa84263903f710d421d05d0a491d08
2022-02-21 22:06:10 +01:00
LuK1337
b07cd6f83d sm8250-common: Update WFD system stack from lemonadep
Change-Id: I728810877f3aa40a4fe068f23fd2cfc9194f8066
2022-02-21 22:06:10 +01:00
Sebastiano Barezzi
d19d2e1389 sm8250-common: Pin modified vendor.qti.hardware.camera.postproc@1.0-service-impl.so
The modified library NOPs out the instruction to change binder
threadpool, allowing the library to load and camera to work on S.

Command used:
$ SigScan -p "1F 0A 00 94" -P "1F 20 03 D5" -f vendor.qti.hardware.camera.postproc@1.0-service-impl.so

Change-Id: I1ef0ed29e4a2eb820826e5d7df1fa53c9e3df584
2022-02-21 22:06:10 +01:00
LuK1337
410a9a8456 sm8250-common: Switch to AOSP NfcNci
Change-Id: I3403084373445475ee1d997c47cfaa887bcfeb4a
2022-02-21 22:06:10 +01:00
LuK1337
ab4c715451 sm8250-common: Map our display modes out using AOSP overlays
Change-Id: I1124033f4c7dd5362514656bcab1da80f89f4080
2022-02-21 22:06:10 +01:00
LuK1337
1923f69826 sm8250-common: sepolicy: Address neverallows
Change-Id: I276ce4e598b6adb2bfb3a97288981c50c9ea7bc3
2022-02-21 22:06:10 +01:00
Bruno Martins
c1a2835bb6 sm8250-common: sepolicy: exported2_default_prop is no more
Change-Id: Ide8ae4c6caa5d5faf001b702a84c44328c858efc
2022-02-21 22:06:10 +01:00
Inseob Kim
b2949e1b97 sm8250-common: sepolicy: Attach vendor_property_type to properties.
We are going to enforce that each property has an explicit owner, such
as system, vendor, or product. This attaches vendor_property_type to
properties defined under vendor sepolicy directories.

Change-Id: Iedbbcc5086c09f549e91e73ece7311563c378347
2022-02-21 22:06:10 +01:00
SamarV-121
7669808105 Revert "sm8250-common: sepolicy: Label ro.gfx.driver.1"
* https://android-review.googlesource.com/c/platform/system/sepolicy/+/1344643

This reverts commit 75c37b543c.

Change-Id: I8cf513c21b91260ef914ea1621a7363c133d37d3
2022-02-21 22:06:10 +01:00
Bruno Martins
c0bcd16fce sm8250-common: sepolicy: Remove duplicate prefix
Change-Id: I2787ecd91e74f42885c7a10729e68e3f741dfb52
2022-02-21 22:06:10 +01:00
Bruno Martins
bf8b4d697b sm8250-common: Build Goodix fingerprint HIDL interface from source
Change-Id: I1a3ae9a726c29d813d8ea5a8ef8f68adf988d4ef
2022-02-21 22:06:10 +01:00
LuK1337
b8dbb9f8b9 sm8250-common: Build needed HIDL libs into vendor
Change-Id: I1db79176ac103cb7fc8db0fa4b4cfc699e38ad49
2022-02-21 22:06:10 +01:00
linjoey
58385e3fe3 sm8250-common: Modify Vulkan and OpenGL version to 2020-03-01
Bug: 191252896
Test: android.graphics.cts.VulkanDeqpLevelTest#testVulkanDeqpLevel pass
Change-Id: I0e598ee8a26cd614dc5076a87c514756ba39d740
2022-01-25 20:08:10 +01:00
Alastair Donaldson
97e005bfd4 sm8250-common: Add OpenGL ES and update Vulkan dEQP feature flags
Populates a new	feature	flag to	record the level of OpenGL ES dEQP
test support.  Updates the analogous Vulkan dEQP feature flag to the
value for the next dessert release.

Bug: 159841535
Bug: 175706433
Merged-In: Ib0fb8f83732d0b3f56bb11a97c84fdc7727c1026
Change-Id: Ic97a65fba95a67e3e16cedd0eb4f3f209f645421
2022-01-25 20:08:10 +01:00
Wilson Sung
f8217d4a99 sm8250-common: Set SOC manufacturer and chipset properties
Bug: 158284209
Bug: 180589452
Change-Id: I9be67a1a78ab1d3b4a0e717fb3381458eb4996da
2022-01-25 20:08:10 +01:00
Edwin Wong
b75478eac2 sm8250-common: Update clearkey plugin to drm HAL v1.4
Test: atest
  atest CtsMediaTestCases:android.media.cts.MediaDrmClearkeyTest#testGetPlaybackComponent

Bug: 182525516
Change-Id: I3adf55199301768bacb38103c3ef4ba24807df2f
2022-01-25 20:08:10 +01:00
Nicolas Geoffray
9977e8d095 sm8250-common: Remove odex/oat files from pinner list.
The pinner now asks the runtime for these files.

Test: adb shell dumpsys pinner
Bug: 144773394
Change-Id: I8de2a2935901cbd3eaa50ce2d8aa09f61080ba02
Merged-In: Ie633ea788dab3389a3407ec9a461b5837befca46
2022-01-25 20:08:10 +01:00
Kevin Jeon
75b21d1b22 sm8250-common: Update SurfaceFlinger pin on all targets
This change replaces the '/system/lib64/libsurfaceflinger.so' pin, as
the file was removed in ag/12524602. The updated pin relies on
go/aog/1552085, as system_service needs read access to SurfaceFlinger.

Bug: 176197656
Test: adb shell dumpsys pinner (coral)
      - shows that /system/bin/surfaceflinger is successfully pinned
      adb logcat | grep PinnerService (coral)
      - no longer shows a file-not-found error in PinnerService
Change-Id: Iae2a96c5fe4b1f5698d21de9970140321d11c460
2022-01-25 20:08:10 +01:00
Roger Ellis
24e1d71820 sm8250-common: Allow ELF prebuilts in PRODUCT_COPY_FILES.
* ELF prebuilts were banned in PRODUCT_COPY_FILES starting
   May 11th. See b/156534160 for long-term fix which should
   override this change.

Change-Id: Icd25b40ca4e4285319775046a1b70de30572be07
2022-01-25 20:08:10 +01:00
Tri Vo
19e5abe476 sm8250-common: Use PRODUCT_*_SEPOLICY_DIRS to build product sepolicy.
We are restoring the old behavior of BOARD_PLAT_*_SEPOLICY_DIR that
extends system sepolicy. To that end, we use another make variable to
specify product sepolicy.

Bug: 119305624
Test: m selinux_policy
Change-Id: I67636b7aaff2bd5ae5309981f9fa2f8ce51edf6f
2022-01-25 20:08:10 +01:00
LuK1337
7cc3f931ba sm8250-common: Update blobs from OOS 11.0.10.10
Change-Id: Ice2e6c36aa900eac7a0097e96d04a77ebdf4a1c7
2021-12-27 17:08:44 +01:00
LuK1337
c604096e59 sm8250-common: Build libssrec from source
Change-Id: Ib5b1d99a0b6980a76d4c83063c7a84a0c090b361
2021-10-28 23:54:02 +02:00
LuK1337
7616f79a6c sm8250-common: Update blobs from OOS 11.0.9.9
Change-Id: Ic581279a3fa3916ac8cf725705da8eb5a3a1755a
2021-10-28 16:21:26 +02:00
LuK1337
c10d1efc92 sm8250-common: Adjust for recent tri state key changes
tri-state-key package has been integrated into KeyHandler app, and
KeyHandler itself no longer needs to be added to lineage-sdk overlays.

Change-Id: I13b8f05e8e0b036c9303a01ec0c7e2d99b6756f7
2021-10-20 21:34:15 +02:00
LuK1337
43591c3713 sm8250-common: Switch to hardware/oneplus components
Change-Id: I26ba94eac5d7a0cdad07559afe55e6cabe2e161e
2021-09-20 15:05:35 +02:00
Bowgo Tsai
1bf94e3dc1 sm8250-common: Including product partition into vbmeta_system.img
vbmeta_system.img should include HASHTREE descriptors for system.img,
system_ext.img and product.img, which will be updated in a system-only
OTA manner.

Bug: 170180068
Test: Tree Hugger
Change-Id: Iaf81dc11313826d146adb31d4edfbbd5310c48f6
2021-09-03 14:49:33 +02:00
LuK1337
7ad5bbf53f sm8250-common: RIP remove_packages
No longer necessary since now we can just pass `OVERRIDES` to extract
utils and it'll handle it automatically for us :^)

Change-Id: I19c97f5daa72d809dae2442fcb2b8b81a702aaf2
2021-08-23 18:52:01 +02:00
Bruno Martins
e628853f9c sm8250-common: Update ODM features list from OSS 11.2.8.8
Change-Id: I77e406f109815aec52ff6c9fd931dd1e17746452
2021-08-18 15:38:48 +02:00
Bruno Martins
8dbce66838 sm8250-common: Update ODM features list from OSS 11.2.7.7
Change-Id: Ic9138245adc8819c7662e933f3bbe6df062801e5
2021-08-18 14:25:10 +02:00
Bruno Martins
a625cadbd5 sm8250-common: Sync ODM features list with OnePlus framework
Change-Id: I5ee53189cb0783d7d2acec584aef6cecc7d612de
2021-08-18 14:25:00 +02:00
LuK1337
a980329556 sm8250-common: Update blobs from OOS 11.0.8.8
Change-Id: I60f5d95c8aa1a478466c359ec15b4116bce0a569
2021-08-18 14:19:45 +02:00
LuK1337
7ec6643321 sm8250-common: Include device FCM from vendor/lineage
Sadly we aren't able to include it globally without breaking other
devices ;((((

Change-Id: Ia29d6fb047a09a2b4767312cb2a3252c87095723
2021-08-02 22:54:23 +02:00
LuK1337
cb0dd0b4d4 sm8250-common: Remove all lineage HALs from FCM
No longer needed since we added device framework matrix in
vendor/lineage, see 78870c2.

Change-Id: I00233e7588dcfcd4bb66c42c52edb34cdff4376e
2021-08-02 15:56:57 +02:00