Commit graph android_device_samsung_a20/universal7885-common/universal7885-common.mk
Author SHA1 Message Date
roynatech2544
07b209df81
universal7885: Major (de)commonize due to prev commit 2022-03-22 19:01:33 +09:00
Soo-Hwan Na
1f163c5496
universal7885: remove soundtrigger HAL
* since we don't have soundtrigger module (sound_trigger.primary.exynos7884B.so), this hal does nothing but crashing
2022-03-22 18:57:41 +09:00
Midas Chien
cbc34f8e37
universal7885: Uprev graphics.composer to 2.4
Move sunfish to composer 2.4 interface for the R api additions.

Bug: 148836379
Test:
1. $adb shell lshal | grep 'composer'
    android.hardware.graphics.composer@2.4::IComposer/default

2. $adb shell lshal --init-vintf
<hal format="hidl">
   <name>android.hardware.graphics.composer</name>
   <transport>hwbinder</transport>
   <fqname>@2.4::IComposer/default</fqname>
</hal>

3. adb shell ps | grep 'composer'
system ... android.hardware.graphics.composer@2.4-service-sm8150

4. vts-tf > run vts -m VtsHalGraphicsComposerV2_4Target
5. Check FOSS work

Change-Id: Ic3e78b7ff04802120765b04f782021b405d2494f
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2022-03-22 18:57:41 +09:00
Arvind Kumar
01f39bb63c
universal7885: Enable graphics mapper version 2.1
Enable graphics mapper version 2.1

Change-Id: Iad70754a980eadcfd68752c76e569b503d398fae
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2022-03-22 18:57:41 +09:00
roynatech2544
eaab77ceff
universal7885: Add other 7885 devices
* A10, A30, A40

Change-Id: I92829c4d3b11e2759f08ef04fe4d4d60ff352a0b
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:57:19 +09:00
roynatech2544
4584ec21f2
universal7885: CameraLightSensor: Set notification to low priority
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:57:19 +09:00
Andrew Thomas
fbee692135
universal7885: Add Notch Bar Killer overlay
* This overlay gets rid of the black bar in most apps/games
   and lets the screen fill past the notch.

Change-Id: Ic008ce5d569127d230dc44451929477e063c4471
Signed-off-by: Josh Fox (XlxFoXxlX) <joshfox87@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@gmail.com>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:56:52 +09:00
roynatech2544
b9bcd79dae
universal7885: Kang soundtrigger libs from Galaxy S10 (d1)
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:56:37 +09:00
Alexander Koskovich
58957661c3
universal7885: Remove vendor RenderScript implementation.
* RenderScript is deprecated on newer platforms and
   is being officially replaced.

 * On April 19, 2021, Google announced that RenderScript
   will be deprecated in Android 12, and recommended
   porting existing code to Vulkan.

   https://android-developers.googleblog.com/2021/04/android-gpu-compute-going-forward.html

Change-Id: I19460ef266a646b046f1e7d2f0b4eab7c48ae536
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:56:37 +09:00
SamarV-121
9b5a8c4f89
universal7885: Enable BPF offload by deleting rro
Change-Id: I60423f95030bb0f62cdf90c9a68d579f8e829a59
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:56:36 +09:00
roynatech2544
9bcaedf5a5
universal7885: revert bt hal changes 2022-03-22 18:56:36 +09:00
roynatech2544
58310cc9fd
universal7885: Remove unsupported HALs 2022-03-22 18:56:30 +09:00
roynatech2544
e85039c0b9
universal7885: bluetooth: HAL uprev to 1.1
* Additionally, more force enables

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:55:40 +09:00
Jens Lody
9102c52786
universal7885: manifest: add android.hardware.bluetooth{,.a2dp}@1.0
Switch to android.hardware.bluetooth.a2dp@1.0-impl.mock
mock HALs just register HAL lib. Nothing else.

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:55:39 +09:00
roynatech2544
893b39ef3e
Revert "[APTX] universal7885: remove a2dp hal"
This reverts commit d460d66609f1558f6b9d466359a9c47cfb1eb001.

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:55:39 +09:00
roynatech2544
1f8d0619cc
[APTX] universal7885: Add APTX support
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:55:39 +09:00
roynatech2544
036c61b3a4
universal7885: Add headset event keylayout file
Keylayout files map linux kernel event codes to android input listener. By default all input uses Generic.kl which can be wrong. Using custom keyout files solves this.
The linux kernel has all kernel-specific event codes listed on include/uapi/linux/input-event-codes.h. Remapped key VOLUME_DOWN, VOLUME_UP which is different from Generic.kl

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:55:10 +09:00
Ryan Mitchell
9d3092d1a8
universal7885: Use component-override to configure Bluetooth
Runtime Resource Overlays (RROs) can no longer change the value of
resources in manifest when read during PackagerParser.

This change uses component-override to enable the service by default.

Remove usages of profile_supported_* from overlays as they no
longer configure the enable state of Bluetooth components.

Bug: 135048762
Test: adb shell pm query-services \
      com.android.bluetooth/.avrcpcontroller.AvrcpControllerService
      adb shell pm query-services \
      com.android.bluetooth/.hfpclient.HeadsetClientService
      adb shell pm query-services \
      com.android.bluetooth/.sap.SapService
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:54:01 +09:00
roynatech2544
56881cba9b
universal7885: SamsungParts: Address 'variable shadowed' warning 2022-03-22 18:53:52 +09:00
roynatech2544
1e85da25a4
universal7885: copy more feature xml files (We have them)
* Nfc: Copy only needed files

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:53:43 +09:00
roynatech2544
98092a64c1
universal7885: Compile audio.a2dp.default
* The a2dp_audio_policy_configuration.xml is copied to /vendor, but it's not used due to missing audio.a2dp lib

* Test: Boots, Bluetooth Works

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:53:43 +09:00
roynatech2544
dac87c4a19
universal7885: SamsungParts: Address deprecation
* Of android.preference. Need to use Jetpack support lib

Change-Id: I21bbd31c766179fe51fec4b812a6daa1e223a664
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:52:43 +09:00
roynatech2544
c48a35ed9d
universal7885: Add remove_packages to nuke useless apps 2022-03-22 18:52:43 +09:00
Soo-Hwan Na
cbd2a71413
universal7885: Make only framework-res RRO 2022-03-22 18:52:43 +09:00
roynatech2544
66f75b75ab
universal7885: Copy more media codec xml files 2022-03-22 18:52:42 +09:00
roynatech2544
c78bdbd31f
universal7885: enable generating of framework-res__auto_generated_rro_vendor.apk
* Useful on OSS Vendor + GSI

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:52:42 +09:00
Tim Zimmermann
cadd533317
universal7885: Enable support for freeform windows and picture-in-picture
* Add some android.software.* features too

Change-Id: Ia15b498d1ac378d2be586855c32ccfe22cd216b4
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:52:21 +09:00
roynatech2544
342dfddf51
universal7885: Use PRODUCT_PACKAGES for gsi_skip_mount.cfg
Change-Id: Iaf74e3bbac79ee74b8c67d89cfa34bbffc02ba68
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:51:48 +09:00
roynatech2544
69e0a3118c
universal7885: Nuke SamsungDoze
* What does it do?

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:51:48 +09:00
roynatech2544
24a7ead3a9
universal7885: Stop copying light sensor permission file
* A20, A20e don't have light sensor hardware

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:51:48 +09:00
Tim Zimmermann
5fc20541b8
universal7885: Switch to AIDL libperfmgr power HAL
Change-Id: I56928037bf543accb3175ea50c674f80a3f60b99
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:51:23 +09:00
roynatech2544
3eeab18801
SamsungParts: add Dolby Atmos entry
* Basic ideas taken from https://github.com/SamarV-121/android_device_samsung_universal7885-common/tree/lineage-19.0/dap
2022-03-22 18:48:08 +09:00
LuK1337
3939a12b88
universal7885: Enable DAP effect on boot
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
Change-Id: I669fcd7d1e8ace82e6005df41e8c7c63ee26f248
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:47:35 +09:00
roynatech2544
b362f0a2e2
univesal7885-common: configs: organize files
Change-Id: Iaa8986a19fcc82ae664fc7a42d20306f9d00d04c
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:47:30 +09:00
roynatech2544
72ef5ad4ad
universal7885: audio: Use new audio policy xml file (7.0)
6ddcc44615
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:44:59 +09:00
roynatech2544
4be89c2de6
universal7885: compile sgdisk
Which is a useful tool to manage mmc disk
2022-03-22 18:39:26 +09:00
Gabriel2392
fda5db44cc
universal7885: disable apex compressing
Causes radnom bootloop
2022-03-22 18:39:11 +09:00
roynatech2544
93778fc639
universal7885: Fixup merge errors 2022-03-22 18:35:49 +09:00
roynatech2544
0fc8d0c629
a20: Address SELinux denials
* Additionally, try to save more battery on CameraLightSensor

Change-Id: I8a3a86a67eeefb0b023e4162f0a32c9ecca20ff4
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:35:27 +09:00
Gabriel2392
aa12d2a377
universal7885: CameraLightSensor: Finalize code 2022-03-22 18:35:01 +09:00
roynatech2544
6fb48f8f49
universal7885: Merge common thing and cleanup
Change-Id: I05c133732980792d49e0495c343e39f8a58b11f9
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:33:37 +09:00
roynatech2544
d195a1d848
universal7885: Add prebuilt GCam 2022-03-22 18:33:16 +09:00
roynatech2544
c7f80dea23
universal7885: Set correct board name
* It fixes sensor module not loading

Change-Id: I784c29465908f29e8eaa1cdb8f56b82a0c3cab4a
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:31:44 +09:00
roynatech2544
588ef40ab6
universal7885: Set extra vndk version to 30
Change-Id: I736e8877ddb3bc6ae9083c89945ec833cd23dbe9
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:29:37 +09:00
roynatech2544
c1a9d9f071
universal7885: SamsungParts: add gpu, selinux and update related sepolicy 2022-03-22 18:29:22 +09:00
roynatech2544
1bcf57f719
universal7885: SamsungParts: Add new HIDL
* Related to flashlight
* Also, build it
2022-03-22 18:26:48 +09:00
roynatech2544
cd89f5aef2
universal7885: Add seccomp policy from stock vendor
Change-Id: I41acebdfc6de95cbe2cb97462870427a472094e7
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:22:28 +09:00
Gabriel2392
af95ebdf2b
universal7885: Import debugging script
* https://github.com/SamarV-121/android_vendor_extra/blob/android-12.0/prebuilt/init/debugging.rc
2022-03-22 18:18:36 +09:00
roynatech2544
c8719f9b92
universa7885: commonize build fingerprint
* Sperate it to a sperate makefile
2022-03-22 18:17:01 +09:00
roynatech2544
651386dfff
universal7885: add Samsungparts
* It is based on XiaomiParts usually found on Xiaomi device trees

Change-Id: If34ba79bba05ede0ce98bbedf14a1c318bee8fc4
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:16:05 +09:00