Commit graph android_device_samsung_a20/universal7904-common.mk
Author SHA1 Message Date
Tim Zimmermann
afb01a875c universal7885: Build libbt-vendor from source
Change-Id: I11ec72e93aff1d2c83cddbb7268c304e5e0beb46
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Andreas Schneider
ef5e0659ef universal7885: Add shim for sensorndkbridge used by camera HAL
Change-Id: I437f8ae2613b1e2f9bb7b3397507cd3297a55da3
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
6ec29a4cb1 universal7885: Compile some more blobs from source
Change-Id: I08d4ced13703c7ccd5f8a9d139afb2ea6603a46f
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
372e8671e8 universal7885: Cleanup unused blobs
Change-Id: I3f1db34785d9d47fa5bef0dcca26af5e7133ea64
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
4e518231b2 universal7885: Compile Vibrator HAL from source
Change-Id: Id0d48bcd00ef612872ca77b4706c0a2cb7828933
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
4ef67b7b44 universal7885: Compile fingerprint HAL from source
Change-Id: I0c0f3344c90acba572acd27138be8bd213ee21d2
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
b5296c3328 universal7885: Compile Light HAL from source
Change-Id: Ia2c6187ddbd8cf1b981786a3c8aceac931712d7f
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
9d7be4d265 universal7885: Compile Health HAL from source
Change-Id: I437e8a002fad3af59d7e410e94329a9bbb40afe5
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
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
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
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
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
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
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
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
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
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
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
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
Francescodario Cuzzocrea
c5a166f294 universal7885: Build fastcharge hidl
* https://review.lineageos.org/c/LineageOS/android_hardware_samsung/+/305684

Change-Id: Iec1a7faec24f0d5b4b1d2f1ef52b781368c5bd51
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
e36249331b universal7885: Enable proximity sensor
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
25cadfd8aa universal7885: Compile OSS exynos power hal
* https://github.com/LineageOS/android_hardware_samsung/tree/lineage-18.0/hidl/power

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
88a8e570e0 universal7885: Use skip_mount.cfg to skip /product mounting
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Weilun Du
39d0711c3c universal7885: Add TetheringOverlay
BUG: 163800715
Signed-off-by: Weilun Du <wdu@google.com>
Change-Id: Ia0834f5215ff8c3b13effa591bd2f84d93419a06
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
b3bf6dc14b universal7885: Override vndk*.libraries.29.txt and libstagefright_foundation.so
* Instead of editing it from recovery, https://github.com/SamarV-121/android_device_samsung_universal7885-common/commits/974a3c72d5ab7162214a031a8b722c369aa7b4b1/rootdir/bin/sys.sh

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: I2c51933bb0ee7e5d8db8b533d8ac329d44165f89
2021-10-21 22:12:08 +09:00
SamarV-121
ba2c97b3d7 universal7885: Enable device controls feature in power menu
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
62d8b28aa1 universal7885: Add Glove Mode support
* Ref: e8b16f2cc2

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
7b43d9eb6f universal7885: Fulfil dependencies of camera HAL [1/2]
* Expose libgui.so to all vendor modules
 * Import libcamera.client.so to prebuilt vndk-29

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: Ia30c8f7cb8b420f1b19b6c973f047aa55b06b930
2021-10-21 22:12:08 +09:00
SamarV-121
310550cca5 universal7885: Copy Q VNDK blobs
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
erfanoabdi
592e7a19ac universal7885: Initial recovery support
* Symlink partitions
 * Some flashable zips relies on this, such as opengapps

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: Ibf85283167dab825ad08bed3397923eed9278eca
2021-10-21 22:12:08 +09:00
SamarV-121
2780a49e70 universal7885: configs: Import nfcee_access.xml & nfc_key
* from M307FNXXU3BTG3

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Joey
1c4088af6d universal7885: Build Trust HAL
Change-Id: I92706987f8d3094cdfb82e71e5331b7efe69e5df
Signed-off-by: Joey <joey@lineageos.org>
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Jesse Chan
6d5b82b9ea universal7885: Enable NFC support
/system/etc/libnfc-nci.conf from M307FNXXU3BTG3

Signed-off-by: Jesse Chan <jc@lineageos.org>
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
luk1337
c29c6e5616 universal7885: Use vendor_overlay for audio_policy_configuration.xml
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: Ifaa42cb1547529085cb73e3a493e8064dae07215
2021-10-21 22:12:07 +09:00
Jesse Chan
f5af2d259a universal7885: rootdir: Import samsung init.usb.configfs.rc changes
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: I4ea3bafff8e5d48114dfe2c166fb8e268d3dc28f
2021-10-21 22:12:07 +09:00
Alessandro Astone
a01c5a4854 universal7885: Compile fastbootd
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:07 +09:00
SamarV-121
5c3e933e0a universal7885: Compile SamsungDoze
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:07 +09:00
SamarV-121
cb0a5bcccb universal7885: Enable ZRAM
Change-Id: Icd48749ad781ba48592fbcc2dc7c3ad88c659a57
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:07 +09:00
Bruno Martins
cf69a175e8 universal7885: Define Soong namespaces in the common product makefile
This is where it belongs.

Change-Id: Ibea0e8fe5dbc26d8953a9735f0b38cf087805b76
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:07 +09:00
SamarV-121
b0ccbed33a universal7885: Import stock audio policy config
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: I017e01d91f5404ef46258eb4d1b3604a28276bd7
2021-10-21 22:12:07 +09:00