Commit graph

444 commits

Author SHA1 Message Date
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
Tim Zimmermann
3507a192d3
universal7885: Enable dolby audio effect
Change-Id: I46b547f01b8d52cb6fc867bcc9389b979cc19fa6
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:47:35 +09:00
Tim Zimmermann
0c5553edbb
universal7885: Enable preprocessing library and it's effects
Change-Id: I0b780efdc4aaf176c3b82946da2ff12e553d842c
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
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
e6d0c326c9
universal7885: CameraLightSensor: Add privapp permissions
* Logcat: Privileged permission android.permission.WRITE_SECURE_SETTINGS for package com.eurekateam.cameralightsensor (/system/priv-app/CameraLightSensor) not in privapp-permissions allowlist

* Turn off debug bool too

Change-Id: Ieae2542852568ceb40017db6a559ded185d582e3
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:47:19 +09:00
TH779
76cf55b6b9
universal7885: Disable settings provider model
* When it is enabled, if we have multiple SIM cards, the networks
   settings UX will only show the first SIM card.
 * Thanks to Telegram@CyberPhantom52 for the fix patch.

Signed-off-by: TH779 <i@779.moe>
Change-Id: I2690e6dcd69f8e0fe814ea3c92c85d7c6f894166
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:47:19 +09:00
roynatech2544
eb55252ccd
universal7885: Add necessary selinux policy for previous commit
* type=1400 audit(0.0:410): avc: denied { setuid } for capability=7 scontext=u:r:hal_battery_default:s0 tcontext=u:r:hal_battery_default:s0 tclass=capability permissive=0

Change-Id: Iaf23adf8c27758b4856f4c3ab2f55b16f57e646e
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:46:49 +09:00
roynatech2544
4549ce06a0
universal7885: interfaces: use seteuid() to set fastcharge sysfs value
* SELinux denials
type=1400 audit(0.0:731): avc: denied { dac_override } for capability=1 scontext=u:r:hal_battery_default:s0 tcontext=u:r:hal_battery_default:s0 tclass=capability permissive=0

Change-Id: I500682520503e14594eb8661a97ebc0d199c77ff
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:46:34 +09:00
roynatech2544
e4569f7c82
universal7885: CameraLightSensor: Use correct code to start service
* W ActivityManager: Unable to start service Intent { cmp=com.eurekateam.cameralightsensor/.CameraLightSensorService } U=0: not found

* Ref: https://stackoverflow.com/questions/19105587/unable-to-start-service-intent-not-found

* Makes BootReceiver unable to start service
2022-03-22 18:45:59 +09:00
roynatech2544
b867da60fc
universal7885: Make tree neater and cleanup not-needed scripts
Change-Id: I3436854c1adfad1b88c2388dfecd50b4b41fc716
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:45:07 +09:00
roynatech2544
e9fae61c3d
setup.sh: go back to source 2022-03-22 18:45:07 +09:00
roynatech2544
e7bc0692b8
universal7885: TetheringOverlay: Add config_tether_wifi_regexs config
* Used for commit 27149a28ca

* E android.hardware.wifi@1.0-service: Failed to add interface: wlan1 NOT_SUPPORTED

Change-Id: Ic4040c2757f47220a112d7cd2b4a7eb6493428ff
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:44:59 +09:00
roynatech2544
8efc24ae63
universal7885: audio: Use new audio policy xml file (7.0) [2]
Extending commit 31fce137b0

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:44:59 +09:00
GuaiYiHu
1a0407b231
universal7885: Enable WIFI_HIDL_FEATURE_DUAL_INTERFACE
See https://source.android.com/devices/tech/connect/wifi-sta-ap-concurrency

Working after renaming AP interface from swlan0 to wlan1 in kernel

Change-Id: I64f9e7b76e6dffaf59cd78eae4ba3e75f3b13808
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2022-03-22 18:44:59 +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
7b85d287b0
universal7885: Validate audio policy config
hardware/interfaces/audio/7.0/config/update_audio_p
olicy_config.sh device/samsung/universal7885/configs/audio/audio_policy_configuration.xml 6.0
Validating the source against the 6.0 schema
/home/debian/aospk/frameworks/av/services/audiopolicy/config/audio_policy_config
uration.xml:50: element devicePort: Schemas validity error...

Taken from: f17dbb46c1

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:44:58 +09:00
roynatech2544
9d3976a986
universal7885: CameraLightSensor: return START_STICKY
* Both codes are only relevant when the phone runs out of memory and kills the service before it finishes executing. START_STICKY tells the OS to recreate the service after it has enough memory and call onStartCommand() again with a null intent. START_NOT_STICKY tells the OS to not bother recreating the service again. There is also a third code START_REDELIVER_INTENT that tells the OS to recreate the service and redeliver the same intent to onStartCommand().

https: //stackoverflow.com/questions/9093271/start-sticky-and-start-not-sticky
Change-Id: I3d5e8d8ee4e6c7270e0a7c8ccc881ec520563801
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:44:19 +09:00
Soo-Hwan Na
2c3de84078
universal7885: sepolicy: typo
* add ; back

Change-Id: Ied8348babdf09daa4768b9a9cd4c2b405290d6b2
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:44:10 +09:00
roynatech2544
ae86b3fdcb
universal7885: CameraLightSensor: Merge codes to 2 files and fix bugs
* Add proguard rules too

* Auto-Brightness still working even if the settings is turned off
2022-03-22 18:43:50 +09:00
Soo-Hwan Na
0546c8f6fe
universal7885: fingerprint: Update to raven SD1A.210817.036
Change-Id: Ic63875eb4264ebbf9fae77d32c272290587c8c90
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:41:34 +09:00
roynatech2544
0631cfad71
universal7885: sepolicy: Address A20 and DS denials
Change-Id: I5838c1cd88f4479169651b8a66f70d52242c2e4e
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:41:13 +09:00
Soo-Hwan Na
91cae9cc95
universal7885: SamsungParts: Set min silder value to 1
* Our custom brightness driver divides the sysfs value by 21. Value 0 means nothing. So nothing changes

Change-Id: I672579fb146036c0baf2d643da8e34e5d96671ee
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:39:51 +09:00