Commit graph

740 commits

Author SHA1 Message Date
roynatech2544
6c0bc75905
universal7885: Uprev graphic composer HAL from 2.1 to 2.4
Change-Id: I73cc611c1856bc57e2377e3baa7f8e56d9d878f9
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-31 19:46:41 +09:00
Palakurthi Sreekanth
9d9c76d40c
universal7885: vintf: Add 3.0, 4.0 IMapper entry
* Stops hwservicemanager spamming log with 'Cannot find entry android.hardware.graphics.mapper@3.0::IMapper/default in either framework or device manifest.
Cannot find entry android.hardware.graphics.mapper@4.0::IMapper/default in either framework or device manifest.

Change-Id: I04e355ef86628431f614db060984fe2063d88dc1
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-31 19:33:48 +09:00
AdarshGrewal
07e6c17d48
universal7885: overlay: Enable front-facing camera protection
* Prevents halo ring/effect on front camera

Change-Id: Idc5134655f4434dc7505a208a43e381eb22604f0
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-31 19:02:56 +09:00
roynatech2544
0a4ea0743d
universal7885: Cleanup root of the tree
Change-Id: Icfd402be9a8c4c161260597e764a048902866831
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-31 19:01:05 +09:00
Soo-Hwan Na
06b0274c44
universal7885: sepolicy: Allow logger to execute sh 2022-03-31 17:46:00 +09:00
Soo-Hwan Na
94e518e04d
universal7885: vendor.prop: Update AUX camera prop
* Some ROMs are enforcing AUX camera access props, so it needs to be explictly set.
2022-03-29 20:33:06 +09:00
Soo-Hwan Na
fd54476fc1
universal7885: sepolicy: Address more denials
* Allow power hal to connect to init's unix socket
2022-03-29 20:29:40 +09:00
roynatech2544
c9244bbf69
universal7885: sepolicy: Allow libperfmgr to set vendor.power prop
03-29 12:27:04.015  3630  3630 W auditd  : type=1327 audit(0.0:673): proctitle=/vendor/bin/hw/android.hardware.power-service.samsung-libperfmgr
03-29 12:27:04.015  3630  3630 W auditd  : type=1320 audit(0.0:673):
03-29 12:27:04.015  3779  3779 W NodeLooperThrea: type=1400 audit(0.0:674): avc: denied { write } for name=property_service dev=tmpfs ino=2814 scontext=u:r:hal_power_default:s0 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0
03-29 12:27:04.017  3779  5369 W libc    : Unable to set property vendor.powerhal.rendering to EXPENSIVE_RENDERING: connection failed; errno=13 (Permission denied)
03-29 12:27:04.017  3779  5369 W libperfmgr: Failed to set property to : vendor.powerhal.rendering with value: EXPENSIVE_RENDERING

Change-Id: I948bbfd80cc5efd0de246be5181b01027d2376f5
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-29 12:31:26 +09:00
Tim Zimmermann
a281ee2318
universal7885: Clamp DolbyCore.getProfile()'s returned value
Change-Id: I267a4ea4c6bf51347d2ba2c0f59e95d144b9c7d3
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-28 12:09:01 +09:00
Mahesh Palivela
7319be6f31
universal7885: Enable support for IEEE80211AC
* This is to allow supporting GO with 11AC support.

Change-Id: I4b724951b47485bf78735a1007ee8f310b90549b
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-27 21:53:52 +09:00
Kumar Anand
9d986dced8
universal7885: wpa_supplicat: Enable automatic channel selection
* Automatic Channel Selection algorithms and implementations
   are used to enable interfaces to automatically figure
   out which channel configuration to use for initiating
   communication, for any mode of operation which initiates
   radiation (AP, Mesh, IBSS, P2P).

   https://wireless.wiki.kernel.org/en/users/documentation/acs

Change-Id: Id108f427a1c5732f7ea173437dac9f681a1678f0
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-27 21:51:52 +09:00
Ecco Park
201a33cc31
universal7885: configs: wifi: Add parameters for Hotspot 2.0
Those parameters need to set for Hotspot 2.0 network

interworking=1 : Enable Interworking
hs20=1: Enable Hotspot 2.0
auto_interworking=0 : Do not automatically go through Interworking
                      network selection in wpa_supplicant
Bug: 118633353
Test: live test with Passpoint AP
Signed-off-by: Ecco Park <eccopark@google.com>

Signed-off-by: PainKiller3 <ninadpatil100@gmail.com>
Change-Id: I46db68eac42f00e873498a9e2a7f8745f8d12ae4
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-27 21:49:44 +09:00
roynatech2544
01d6f13145
universal7885: rootdir: Convert to blueprint
* Also, set rule of copying ueventd rc in one Makefile

Change-Id: I0c4ba12d1d579a61cd52d473e24febf91a5e3380
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-27 21:38:54 +09:00
roynatech2544
e112b2fb59
universal7885: debug_daemon: Move to /system
* Vendor processes can no longer execute system processes...
2022-03-27 20:45:25 +09:00
roynatech2544
83adcf0d9c
universal7885: build fp: Update to SP2A.220305.012 redfin
Change-Id: I0de5cdc9c736ed79160b0a45e314c064114f3367
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-27 20:44:38 +09:00
roynatech2544
db41cdbe70
universal7885: Build FM Radio app for A40 too
* FM audio issue on A40 was fixed in vendor repo 'A40: kang audio libs from A30' commit
See: 5c30ac7da5

Change-Id: I3270a050e57660d115ca3558ee55eb0e249672de
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-27 19:54:56 +09:00
kevios12
f9dbfdeb20 universal7885: drop universal7904-common-vendor
drop $(call inherit-product,...universal7904-common-vendor. a40 uses now a single vendor folder...
see here: cfefff0430
2022-03-26 18:57:02 +01:00
roynatech2544
bda0713fdb
universal7885: Change apns xml copy location
* It is copied as LOCAL_PRODUCT_MODULE, as seen on Lineage and Derpfest and Ancient and probably other ROMs too

See: https://github.com/LineageOS/android_vendor_lineage/blob/lineage-19.1/prebuilt/common/Android.mk
Change-Id: I610de723679a7e7dc663867b415b6fd94ae3b000
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-26 21:03:43 +09:00
roynatech2544
054dd717d5
universal7885: Drop unused flags
* PRODUCT_COMPRESSED_APEX: Only effective if including updateable_apex.mk
* TARGET_EXCLUDES_AUDIOFX: Cannot find this on Android src root
* Also, add if guard with derp maintainer overlay

Change-Id: I8eb36822dfe6d6d0d59cc58637d8b1fab6c1dc71
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-26 20:57:24 +09:00
roynatech2544
648aeb9509
universal7885: Drop sperate vintf for A40
* No longer needed as commit of vendor repo 'A40: update gnss vendor blob to 2.1' commit
See: bd1ce235e9

Change-Id: Ib4b11611d97f1ccbb75df1f0f22c794628553be0
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-26 20:29:32 +09:00
Alexander Koskovich
ecbd687920
universal7885: Set the default IMS RCS package to com.android.service.ims
Change-Id: I7f12affe6f449caad39c1f998a73945ae512f76f
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-26 11:16:07 +09:00
Omkar Chandorkar
876ce079a5
universal7885: props: enable persist.rcs.supported
* RCS apparently needs this

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: I04cd9dc40b3c8b900a83a4ee587f447ceb2b1391
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-26 10:59:58 +09:00
Ethan Chen
af728d1aed
universal7885: Add AOSP RCS packages
[roynatech2544: Verified that those targets still exist on Android 12]

Change-Id: I5b82e6a09a90b6d334073de2090171db578ae5c6
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-26 10:50:29 +09:00
Wei Wang
459bac7e0c
universal7885: rootdir: Tune zram performance
- Switch to LZ4 for better overall performance
- Set max_comp_streams to num of cores since upstream also moves this to
percpu.
- Set page-cluster to 0 as the incremental cost of reading 1 page at a
time is negligible for zram

[roynatech2544: Adjust swappiness too]

Bug: 38249616
Test: boot and run zram-perf showing better performance
Change-Id: I0b92b246d773db85aa03d033b2cecee54347cbd1
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Change-Id: Ia40c30978b0805988b80b41b7c43007e339b1fbd
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-26 10:30:07 +09:00
roynatech2544
df3bc53dbe
universal7885: rootdir: Decrease zram size
* More zram size -> less performance. The device doesn't use all of zram even on 3GB device, so decrease it

Change-Id: I5b4bea809c507fa0a62a6b6d3e928cff9685d34c
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-26 10:30:07 +09:00
Adithya R
3935a846ff
universal7885: parts: Update clear speaker audio from MIUI 12
Change-Id: I022442fd4a7f0bdf04d1e2d7aecf47695a52fd3b
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-26 10:30:00 +09:00
Rick Yiu
ec51afb989
universal7885: Remove some camera-daemon commands
Those commands have moved to init.rc.

 Bug: 170507876
 Bug: 171740453
 Test: build pass
 Change-Id: Ib7acc0fd83adca37e247cd9f3113c1f117e5196e

Signed-off-by: madmax7896 <madmax78968@gmail.com>
Signed-off-by: Fiqri Ardyansyah <fiqri15072019@gmail.com>
Change-Id: I03679e7c4daf5893b2838b426541d1166f6727c3
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-26 09:37:14 +09:00
Sebastiano Barezzi
37fe35f526
universal7885: Use only full qualified name for manifest entries
* As recommended by Google for multiple different versions of the same HAL in VINTF manifests
* https://android.googlesource.com/platform/hardware/interfaces/+/master/drm/1.1/README.md#devices-launching-with-android-pie
Signed-off-by: YadavMohit19 <mohityadav050575@gmail.com>
Change-Id: I56c926847e2a575cb698b51517be395a8cc3e21c
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-26 07:38:03 +09:00
Nick C
532c951e56
universal7885: props: Enable zygote preforking
* Faster app launching

Change-Id: I8bd048bd6936b296763ea3776fab61debbfff0fa
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-26 07:20:04 +09:00
roynatech2544
a3b9bda6ae
universal7885: BoardConfig: Drop useless flag
* A simple test on Android src root:
$ grep -Ril TARGET_LMKD_STATS_LOG
device/google/coral/device.mk
device/google/bonito/device.mk
device/google/sunfish/device.mk
device/google/redbull/device-common.mk
build/make/target/board/BoardConfigMainlineCommon.mk
$ echo "Therefore useless"

* Also, drop warning flag while building derp, it was only for testing and should be removed. How building a ROM is a warning ?

Change-Id: I24680995dc5ce5285a22b4cf90e6c84884e032bd
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-26 07:20:04 +09:00
kubersharma001
0131e98508
universal7885: Don't inherit updatable_apex.mk
This is because of the following reasons:
- Many build scripts force disable it anyways by settings OVERRIDE_TARGET_FLATTEN_APEX env flag so why bother rendering differences in official and local builds [1][2].
- Compressed apex causes issues with OTA on A only devices [3].
- Compressed apex may cause issues on devices which do not meet kernel requirements [4].
- Highly anticipated mainline modules update aka Play System updates is limited to OEMs/Pixels only [5], we don't do such things on AOSP; shipping Pixel prebuilt apex components feels somewhat unethical.

Ref:
[1]: 8e435ce7ff/android/build.sh (L9)
[2]: https://github.com/LineageOS/android_build/blob/lineage-18.1/target/product/updatable_apex.mk#L19
[3]: RecoverySystemService: Failed to reserve space for compressed apex
[4]: https://source.android.com/devices/tech/ota/apex#kernel-requirements
[5]: "pushed to end-user devices, either by Google (using the Google Play Store infrastructure) or by the Android partner (using a partner-provided OTA mechanism)." as stated in https://source.android.com/devices/architecture/modular-system#architecture

test: m, boots and ota.
Signed-off-by: YadavMohit19 <mohityadav050575@gmail.com>
Change-Id: Ib15f59ccfaaab43eea8d0a7a1671529da5bc0365
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-24 18:50:53 +09:00
roynatech2544
1ae135e877
universal7885: parts: Address some errors after merging
Change-Id: I4db5d687a832e47d35398130e6c13cbc8a41bf97
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-23 22:37:04 +09:00
Soo-Hwan Na
0fde9697c9
universal7885: Drop non existing copy files 2022-03-23 07:22:06 +09:00
roynatech2544
ad27f7c8f6
universal7885: Merge LineageOS SamsungDAP
Change-Id: Ic8faa1b8b2c23ca1cd1add256c2229efef36cfd1
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 22:05:28 +09:00
roynatech2544
56f4ac2059
universal7885: props: Adjust LMK daemon props
* ro.lmk.use_psi : Leave it there, because PSI was not ported to Linux 4.4 kernel
* ro.lmk.use_minfree_levels : Set it to true, because we don't have PSI
* ro.lmk.critical_upgrade : Remove and set to default, because no need to be agressive on killing processes on low ram device
* ro.lmk.upgrade_pressure : Deprecated
* ro.lmk.downgrade_pressure : Deprecated
* ro.lmk.kill_heaviest_task : Remove, Because lmkd should kill the best available target, else even foreground apps may force close.
* ro.lmk.log_stats : Remove, it is not documented on Android docs, and even if it works, no need to spam log

Change-Id: I5af7fa63158fb3cb5f3240104f4a923553e6d7d6
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:32 +09:00
Soo-Hwan Na
4316787756
universal7885: parts: Declare missing entry on manifest 2022-03-22 19:05:32 +09:00
Luca Stefani
98e3af220b
universal7885: Make Android.mk search recursive
Change-Id: I3a05344f949eae581f1f17cc33b1df475d3e6760
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2022-03-22 19:05:32 +09:00
Chatur27
1bbbc011be
universal7885: parts: Use audio hw parameter for dolby effect 2022-03-22 19:05:32 +09:00
Chatur27
112cc401c5
universal7885: Address ROM-specific aux cam prop 2022-03-22 19:05:32 +09:00
roynatech2544
4178d53bc3
universal7885: vendorsetup: Apply routing fix
* The original AudioFlinger src blocks routing keys if caller's uid is not audioserver uid, need to bypass and allow it for system app too

Change-Id: Iab16ac2327d93d1371cda05be30553cea7c54aa2
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:31 +09:00
roynatech2544
9443bdc315
universal7885: FMRadio: Futher improve code
* Using enum classes for various statuses for good readability
* Implement favorite channel saving which was missing
* Use Kotlin coroutines again for refreshing channel list button, for faster UI response
* Added javadoc for better functions description
* Also, code native audio routing system on jni (fm_route.cpp)

Change-Id: I993c88fdb580248d8a55efd8e9b6fed0e36d9b24
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:31 +09:00
roynatech2544
2648c647fc
universal7885: Add missing dependency, fix some code for AOSP 2022-03-22 19:05:31 +09:00
Soo-Hwan Na
bfe69c8347
universal7885: FMRadio: Switch to lastest material lib 2022-03-22 19:05:31 +09:00
roynatech2544
86b9b97e75
universal7885: Camera.md: Fix wrong words 2022-03-22 19:05:31 +09:00
roynatech2544
0803fadf47
universal7885: FMRadio: Use kotlinx.cororutines library
* Background thread handle system
2022-03-22 19:05:31 +09:00
roynatech2544
308a5d49c8
universal7885: Add Material you reworked FM app
* UI and function improvements

Change-Id: Ia1ea7aa0caf0ac3838e285952e9be7e79b946e80
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:30 +09:00
Gabriel2392
b8e119aaf8
universal7885: add messaging to build list
* Fixes messaging not being built in some roms such as aex, syberia
2022-03-22 19:05:30 +09:00
Gabriel2392
c2d2f3b4f1
universal7885: don't build fingerprint hal for a10 2022-03-22 19:05:30 +09:00
roynatech2544
73cfd8f781
universal7885: Don't add new member to struct
* Because 2 structs are different, causing issues

Change-Id: Iafacbea214611631447764cc27bc3b4e533b2a76
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:30 +09:00
roynatech2544
e1227a4089
universal7885: libshims: overlay on CameraDevice::open()
Change-Id: Ie8dd056e74a620316e3bd9e97244aac1493b7e76
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:30 +09:00