Commit graph

159 commits

Author SHA1 Message Date
Tim Zimmermann
d1019bb7ce universal7885: Switch to OSS camera provider HAL
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: Ic0a43b4cd2d7891a1b2122bc409fd179f8805802
2021-10-21 22:12:08 +09:00
SamarV-121
42fff278ba universal7885: Drop all prebuilt vendor hax
* also Compile all HALs to vendor
 * Remove stuffs actually from vendor which we were disabling in system

Change-Id: I15f5a12a2c36238adf99ca9bbbd0c97475b72fc6
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
ѕαмαя νιѕρυтє
77a771e2d8 universal7885: Remove libcamera_client and libgui deps from libexynoscamera*.so
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: Ibbdaee7f91e02361c4c972a41a54058a6ef21fe7
2021-10-21 22:12:08 +09:00
SamarV-121
25c771fe6c universal7885: Compile libgui_vendor and patch camera HAL to load it instead of libgui
Change-Id: I14ea34cf40555d9d22a1d092aca382df3d01b87f
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
67a7b402ef universal7885: libshims: Add CameraParameters class
Change-Id: Iea8db9533d4c5852341710a8363df3831fc361a5
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Erfan Abdi
986be0160f universal7885: Introduce libcamera_metadata_helper
* For supporting VNDK and Treble rules.

Issue: In accordance to treble rules libcamera_client.so cannot be
       used or included. For Camera HAL needed support for values of
       CameraMetadata

Solution: Included CameraMetadata.h and .cpp files to this helper lib for camera hal and replaced with libcamera_client.so.
Change-Id: I33fced3cf5dffc721bf613456f5c85de6d57f71c
Signed-off-by: Erfan Abdi <erfangplus@gmail.com>
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
45a6b5b156 universal7885: Use blob_fixup function
* also Switch to patchelf from tools-lineage

Change-Id: I332a3d6e03b1d414ac4e7079c5e1991e0ba76277
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Robert Shih
536db2aecf universal7885: Enable v1.3 clearkey drm plugin
Bug: 139134043
Test: MediaDrmTest
Change-Id: Ie34e59947577988f75fae52d22e3f573f4b92420
Signed-off-by: Arian <arian.kulmer@web.de>
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
LuK1337
f31767c3de universal7885: Use libcutils-v29.so for libsec-ril*.so
* v30 one doesn't have `strdup8to16` symbol in it.

Change-Id: Id2b4bb3017bc24c817dbe4b03834960aa1a4b444
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Kshitij Gupta
b2293e8634 unversal7904: Require libunwindstack for libhifills
- Fixes missing symbol __cxa_demangle

Change-Id: Ie8e67ead638d8756a680ceae205ae57520afc4b9
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
60da3cd566 universal7885: Switch to more open source blobs
Change-Id: I9c56d013e4b38bb4ec84d3f613df16458fbe1bed
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
3a33701c97 universal7885: Import device manifest
Change-Id: I9fd00ffa26ca39d63cea1bbec3987fb4a739b4e2
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
85fbc6e788 universal7885: libshims: Address all missing media mimetypes
`_ZN7android25MEDIA_MIMETYPE_AUDIO_EVRCE`
`_ZN7android25MEDIA_MIMETYPE_AUDIO_APE`
`_ZN7android25MEDIA_MIMETYPE_VIDEO_MP43`
`_ZN7android25MEDIA_MIMETYPE_VIDEO_WMV1`
`_ZN7android25MEDIA_MIMETYPE_VIDEO_WMV2`
`_ZN7android25MEDIA_MIMETYPE_VIDEO_WMV3`
`_ZN7android25MEDIA_MIMETYPE_VIDEO_WVC1`

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: Ia7d82c6f8995d4c463ca3ffdd55d15690ae87f4e
2021-10-21 22:12:08 +09:00
DAndreas Schneider
5c90c9c663 universal7885: Shim libstagefright_omx_utils.so
* F linker  : CANNOT LINK EXECUTABLE "/vendor/bin/hw/android.hardware.media.omx@1.0-service": cannot locate symbol "_ZN7android24MEDIA_MIMETYPE_AUDIO_IMAE" referenced by "/vendor/lib/libstagefright_omx_utils.so"

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: I446fc75abf371cc220e40a173e000415a33dd7db
2021-10-21 22:12:08 +09:00
SamarV-121
503142bbbd universal7885: Copy prebuilt v29 libkeymaster_portable.so, libpuresoftkeymasterdevice.so
* vndksupport: Could not load /vendor/lib64/hw/android.hardware.keymaster@3.0-impl.so from default namespace: dlopen failed: cannot locate symbol "_ZNK9keymaster21EcdsaOperationFactory15CreateOperationEONS_3KeyERKNS_16AuthorizationSetEP17keymaster_error_t" referenced by "/vendor/lib64/libkeymaster3device.so"
 * vndksupport: Could not load /vendor/lib64/hw/android.hardware.keymaster@3.0-impl.so from default namespace: dlopen failed: cannot locate symbol "_ZN9keymaster24PureSoftKeymasterContextC1Ev" referenced by "/vendor/lib64/libkeymaster3device.so"

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
ix5
c03935be3a universal7885-common: Add protobuf vendorcompat lib
Our blobs are compiled against libprotobuf-full-cpp.so, but
starting in R, Android is using a versioned naming approach,
e.g. libprotobuf-cpp-full-3.9.1.so.

See https://r.android.com/1109518

The entry in public.libraries.txt is needed to allow the
linker to find and use the lib outside the VNDK.

See https://source.android.com/devices/tech/config/namespaces_libraries

[wight554: added libprotobuf-cpp-lite as well]

Signed-off-by: Volodymyr Zhdanov <wight554@gmail.com>
Change-Id: If505d93576a72c5ad3b39c499bd3a7160d1a1c35
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
c7ac200878 universal7885: Import public libraries config
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
LuK1337
d99080b100 universal7885: Build libhidltransport/libhwbinder
* Needed for old blobs

Change-Id: I43fc0e46547dfc126a4b2ac9dcc82c7c4f2ee172
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
197c2b9518 universal7885: rootdir: Fix init.exynos7904.rc compilation
`host_init_verifier: Command 'mkdir /mnt/vendor/efs/pfw_data 0760 vendor_spay vendor_spay' (vendor/samsung/universal7885-common/proprietary/vendor/etc/init/init.exynos7904.rc:219) failed: Unable to decode UID for 'vendor_spay': getpwnam failed: No such file or directory`
`host_init_verifier: Command 'chown vendor_spay system /dev/mst_ctrl' (vendor/samsung/universal7885-common/proprietary/vendor/etc/init/init.exynos7904.rc:222) failed: Unable to decode UID for 'vendor_spay': getpwnam failed: No such file or directory`
`host_init_verifier: Failed to parse init script 'vendor/samsung/universal7885-common/proprietary/vendor/etc/init/init.exynos7904.rc' with 2 errors`

Change-Id: I379c4c26e7d9ea8b6adbc4426dea24f22c555c10
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
db4562d5e6 universal7885: Import init.exynos7904.rc to device tree
Change-Id: I6f6abb20e60efeb71d5e541483187986e4a5f840
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
derfelot
0563511e54 universal7885: Create vulkan/opencl symlinks to libGLES_mali.so
Change-Id: Ie26232f9599e1a3f97ccc3e3ee6d8600ce03ba64
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
08066a8201 m20lte: Cleanup vendor and compile it
Change-Id: Ie8d82f9587d94495fdca6e00196797e0dcf98ff8
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
224816f49e m20lte: Initial list of proprietary blobs
Change-Id: I9a0d9793dd93914ba10dd672b63a91b013a3ca97
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Kyle Harrison
b8c8ac9fa3 universal7885: sepolicy: Fix exported_camera_prop denials
Change-Id: Ib3abf88a4c71fcd1510a9b1a3cd496b85379c8b2
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
092f199f32 universal7885: Nuke all SEC audio effects
Change-Id: I9bb70f4859c1b4dba96a2e6f76f16bb8e473cf3b
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
ab05712ab8 universal7885: Add source of proprietary blobs
Change-Id: Ib815154d228bdcefe52147507236fe260f4ad6d2
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
b7bffdcb40 universal7885: Fix missing dependencies of soundfx libraries
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: I67029bd579c8591205083437c4d65b2bc04715d5
2021-10-21 22:12:08 +09:00
SamarV-121
38d4aa0bbc universal7885: sepolicy: Silence sec_system_init_shell denials spam
Change-Id: Ic8d22b933e730672379624f268e5ecf9362b93f7
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Kyle Harrison
3251d8d3f6 universal7885: sepolicy: Fix userspace_reboot prop denials
- userspace_reboot_exported_prop
- userspace_reboot_config_prop

Change-Id: Ibec834df41345d1268b1eea4ae88b2fd5d37dd55
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
8f61f55a41 universal7885: sepolicy: Allow init to write watchdog_device
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: I0ef79c41e3afd59742d0fcaed456bbdcd4dbc797
2021-10-21 22:12:08 +09:00
JJ Lee
d1c45bdd1a universal7885: sepolicy: Allow hal audio to use wakelock
Allow audio hal service to take wakelock.
This is needed to ensure Hotword sessions

Following denied pattern:
avc:  denied  { find } for
interface=android.system.suspend::ISystemSuspend
sid=u:r:hal_audio_default:s0 pid=7678
scontext=u:r:hal_audio_default:s0
tcontext=u:object_r:system_suspend_hwservice:s0
tclass=hwservice_manager permissive=0

Bug: 149454068
Test: build pass, "avc denied" cleared

Change-Id: I11b9f72e48241dc5b7d942ad3b519c6e19910579
Signed-off-by: JJ Lee <leejj@google.com>
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
d3f562dea9 universal7885: sepolicy: Allow health HAL to read otg and muic-manager node
* also remove write access

Change-Id: Ib89b2a0c4b8e31a12c1f5262d8fd172c1a947b47
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
f4e90239e8 universal7885: Compile sensor HAL and audio_policy_config to vendor_overlay/30 as well
Change-Id: I9322e8d396c7c76efd4ee64cc1aeba1acab94c06
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Andreas Schneider
bdecaabbd0 universal7885: permission: Give cameraserver access to more sensors
This fixes:

ActivityManager: No such permission: com.samsung.permission.HRM_EXT
ActivityManager: android.content.pm.PackageManager$NameNotFoundException: com.samsung.permission.HRM_EXT
ActivityManager: at android.app.ApplicationPackageManager.getPermissionInfo(ApplicationPackageManager.java:327)
ActivityManager: at com.android.server.am.ActivityManagerService$PermissionController.isRuntimePermission(ActivityManagerService.java:5802)
ActivityManager: at android.os.IPermissionController$Stub.onTransact(IPermissionController.java:153)
ActivityManager: at android.os.Binder.execTransactInternal(Binder.java:1021)
ActivityManager: at android.os.Binder.execTransact(Binder.java:994)
ActivityManager: at com.android.server.SystemServer.startSensorService(Native Method)
ActivityManager: at com.android.server.SystemServer.lambda$startBootstrapServices$0(SystemServer.java:832)
ActivityManager: at com.android.server.-$$Lambda$SystemServer$UyrPns7R814g-ZEylCbDKhe8It4.run(Unknown Source:0)
ActivityManager: at com.android.server.SystemServerInitThreadPool.lambda$submit$0$SystemServerInitThreadPool(SystemServerInitThreadPool.java:72)
ActivityManager: at com.android.server.-$$Lambda$SystemServerInitThreadPool$jLyL3DFmbjsFesU5SGktD3NoWSc.run(Unknown Source:6)
ActivityManager: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
ActivityManager: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
ActivityManager: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
ActivityManager: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
ActivityManager: at com.android.internal.util.ConcurrentUtils$1$1.run(ConcurrentUtils.java:62)

Change-Id: I02f072ea074004a95c13fab6c8cbb4380971824f
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
509cba566f universal7885: Import some system properties from stock
Change-Id: Idf55ef6a0a249f741d058239cd96dc8f3285a810
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
c8b12e895a universal7885: Split system and product props
Change-Id: I8f4fe7db8262ecae5e7ea9acbe320b293515152e
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
0d5e511946 universal7885: Use TARGET_COPY_OUT_SYSTEM and TARGET_COPY_OUT_SYSTEM_EXT
Change-Id: Ic9e754e59857629b035a1fe5b1e70d23a6cf6a58
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
420bf8d221 universal7885: Change eSCO Transport Unit Size to 16
* Fixes bluetooth calls
 * depends on https://review.lineageos.org/c/LineageOS/android_system_bt/+/312698

Change-Id: Ia380fabeb4f890891b46acd9bf13f4a5b0c95eff
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
69841f6659 universal7885: sepolicy: Allow power HAL to write /sys/devices/system/cpu
Change-Id: I7e263adfd51eb2e2680b4ae5214734c0d5c4805c
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
ѕαмαя νιѕρυтє
5117c1c32d universal7885: sepolicy: Use system_internal_prop macro for system props
* 19b99f18c8
 * Fixes -
neverallow check failed at out/target/product/m20lte/obj/ETC/plat_sepolicy.cil_intermediates/plat_sepolicy.cil:13204 from system/sepolicy/public/property.te:564
(neverallow base_typeattr_507 base_typeattr_508 (property_service (set)))
allow at out/target/product/m20lte/obj/ETC/system_ext_sepolicy.cil_intermediates/system_ext_sepolicy.cil:150
(allow hal_fastcharge_samsung sec_fastcharge_prop (property_service (set)))

Change-Id: Icc2bb1a51daad9c0b4ba9cda87a945effe780fdc
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
ѕαмαя νιѕρυтє
c71d20b900 universal7885: overlay: Set minimum brightness to 1 2021-10-21 22:12:08 +09:00
ѕαмαя νιѕρυтє
b9ba616486 universal7885: Compile kernel with clang 2021-10-21 22:12:08 +09:00
Lucas Dupin
9ae95e8817 universal7885: Disable blur by default
Change-Id: If28a2b702597a7bfc331ae77dcb2e3f4ec07d3fc
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Pierre-Hugues Husson
328eecea8d universal7885: rootdir: Disable secondary watchdog
* See, https://github.com/phhusson/treble_experimentations/issues/1730#issuecomment-784210632, https://github.com/phhusson/treble_experimentations/issues/1730#issuecomment-784222396

Change-Id: Ic8db676a1e4f42248aefaad5cf7057f427dc72a1
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
99477ee519 universal7885: Move TARGET_EXCLUDES_AUDIOFX to common product makefile
* https://review.lineageos.org/q/topic:%22eleven-audiofx-exclude%22+(status:open%20OR%20status:merged)

Change-Id: I584d506e5b65d9c161423ef303a40a450a2fbd8c
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
synt4x93
8656a64ffa universal7885: rootdir: Disable some more samsung stuff
Change-Id: I3e35b933b6fc164952a2062cde9adf0e73f06e14
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
891ca20fab universal7885: power: Convert to blueprint
* also rebrand to universal7885

Change-Id: Id2cddbef53eaecb2ee5df08ec635af55c104f97f
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
LuK1337
10b382e30e universal7885: sensors: Statically link {libbase,libutils}
* Fixes unresolved R symbols.
  _ZN7android4base9ShouldLogENS0_11LogSeverityEPKc
  _ZN7android23sp_report_stack_pointerEv

Change-Id: I1bb820eb7e8e1ae914298657c2ffc38999989109
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Willi Ye
048849fcdf universal7885: Use custom Samsung sensors implementation
* Get rid of com.samsung.permission.SSENSOR
* Map vendor proximity sensor type to generic

Signed-off-by: Jesse Chan <jc@lineageos.org>
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: I022d9061b144925b1291ba6294fe018faba07fed
2021-10-21 22:12:08 +09:00
Andreas Schneider
495763a954 universal7885: overlay: Update config_chargingFastThreshold position
* This has been moved to SettingsLib

Change-Id: I17a07db29fcbf9bfb0611a0d7215bb302e4a00c5
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00