Commit graph

415 commits

Author SHA1 Message Date
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
roynatech2544
3cd86ce33a
[APTX] universal7885: enable a2dp sink in bt include.
Additionally, force enable more bt components

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:55:40 +09:00
roynatech2544
ba72924e1d
universal7885: fixup build property
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
ac5d9b99f4
[APTX] universal7885: more customized audio settings
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:55:39 +09:00
Soo-Hwan Na
4bd32cf76d
universal7885: CameraLightSensor: Fix param
The param "Intent" can be null
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
2ba9a6ccbf
universal7885: Add samsung configstore HAL entry 2022-03-22 18:55:32 +09:00
roynatech2544
a6074c2603
Revert "universal7885: switch to using AOD DT2W"
Revert Reason: Not working for us
This reverts commit a9cca3f689375590f67aed35d9076b0a6ded2766.
2022-03-22 18:55:10 +09:00
roynatech2544
ece023aaed
universal7885: Organize configs, add shim for hwcomposer
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:55:10 +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
roynatech2544
fd7b7e1f5f
Revert "universal7885: Enable WIFI_HIDL_FEATURE_DUAL_INTERFACE"
This reverts commit 27149a28ca43676ca789eb09f4440cabe3f67e0e.

Revert Reason: Still need sperate kernel for this
2022-03-22 18:55:09 +09:00
roynatech2544
59ed1a0d66
vendor_detect: convert to python3 script
* Binaries are subject to os env
2022-03-22 18:55:04 +09:00
roynatech2544
da01e6dcbe
universal7885: SamsungParts: Specify common package name
* Crashing due to noclassdef

Change-Id: I5b898c8e02155a60dfcc153d4fa7a345cac5416c
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:54:35 +09:00
roynatech2544
75b2f9edbc
universal7885: SamsungParts: styles.xml: specify dialog theme
*  Need to set the theme for dialogs and alertDialogs. Without it the ListPreference crashes

https: //stackoverflow.com/questions/43784891/android-preferencefragmentcompat-crashing-on-listpreference-view
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
Change-Id: Ib02be040fd27238e6c10c587402dcf7aeaaec55b
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:54:28 +09:00
roynatech2544
eb9302c9a2
universal7885: Rename some files for convenince 2022-03-22 18:54:21 +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
1d0bc8b418
universal7885: configs: audio: Disable DRC
* DAC is audio policy to 'compress' volume table, which causes low max volume. Disable it for now

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:53:42 +09:00
Soo-Hwan Na
1d39eb76e8
universal7885: SamsungParts: Match latest source changes 2022-03-22 18:53:34 +09:00
roynatech2544
1206a2fb55
universal7885: light: Fix build errors
Change-Id: Iaf45e7885abf3c5b76255a212f3a11aa3e011690
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:53:15 +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
84b8328a01
universal7885: import light HAL from hardware/samsung
* Added .clang-format symlink
* Undefine non-existent nodes in header file

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
Simon Shields
e20d70740a
universal7885: switch to using AOD DT2W
Samsung touchscreens support using double-tap to wake to trigger
always on display. Implement support for the sysfs API used to
en/disable this. Note that this requires a kernel change to send
KEY_POWER on the dt2w event instead of KEY_BLACK_UI_GESTURE - e.g.
b783d5e0fd

[Linux4: This makes DT2W work on full screen instead of only lower half]

Change-Id: I80898c8810216a90cc11b4e8b0f12a1918cd17a3
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
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
b454e32239
universal7885: overlay: Fix AOD on exynos7884B devices
* Our devices does not support state doze
* Also, change doze brightness

Change-Id: I0a8d20854637cb7195c5edc91ccc1991fe664b0f
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:52:12 +09:00
roynatech2544
5ded25d1d1
SamsungParts: res: Same as 315229778b
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:52:12 +09:00
roynatech2544
f389248a2b
SamsungParts: Add common prefix (Package Name)
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:52:12 +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
roynatech2544
dd3ffdff56
universal7885: SamsungParts: Use activity name specified on AndroidManifest.xml
Change-Id: I98df41354e39e04cdcc06701d6663ad362795bdf
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:51:41 +09:00
roynatech2544
cecc5caa7b
universal7885: SEPolicy: Label new HAL(libpower-perfmgr)
* Since we merged Samsung slsi repo, it should be labeled here

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:51:41 +09:00
roynatech2544
ebb7ed53cb
vendorsetup: Track NUKED_ALL branch
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:51:41 +09:00
roynatech2544
0518bb3630
universal7885: CameraLightSensor: Fix thread endless loop
* If auto brightness is turned off

Change-Id: I654dd6c4db8d8910779fa256c70efcdb51fac49c
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:51:23 +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
0522bd9d3d
universal7885: CameraLightSensor: Allow user to mute the app's notification
android.app.NotificationChannel
public void setBlockable(boolean blockable)
Allows users to block notifications sent through this channel, if this channel belongs to a package that is signed with the system signature. If the channel does not belong to a package that is signed with the system signature, this method does nothing, since such channels are blockable by default and cannot be set to be unblockable.

Change-Id: Idfa7a672c0be585381239b879ce386e6e99d0619
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:51:06 +09:00
roynatech2544
c31f2b7c87
universal7885: overlays: Enable Night Light / Extra Dim
* By setting config_setColorTransformAccelerated config to true

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:51:06 +09:00
roynatech2544
32f38f0651
universal7885: SamsungParts: This param can be NULL too
Change-Id: I5f69895b5f7c0c56d84ccea674ee8429c3600419
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:51:00 +09:00
roynatech2544
7f2d2c5b3c
universal7885: CameraLightSensor: Convert to Kotlin
Change-Id: I8162d1f88583143a333b282ad59e45085ec66023
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:50:50 +09:00
roynatech2544
e3848cdb11
unversal7885: SamsungParts: Convert to Kotlin 2022-03-22 18:50:26 +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