Commit graph

718 commits

Author SHA1 Message Date
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
Soo-Hwan Na
33c877f914
universal7885: Camera: Update readme with more info 2022-03-22 19:05:30 +09:00
Gabriel2392
cc847a4262
universal7885: include apns-conf.xml
* Taken from lineage-19.0
2022-03-22 19:05:30 +09:00
roynatech2544
27f29fab24
universal7885: Add help markdown about camera changes
Change-Id: I51076518369d55f990ed214836d751e82e6d4704
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:29 +09:00
roynatech2544
874efff89c
Revert "universal7885: camera.provider: drop front camera hacks"
Change-Id: I3946a41bdde83388205d4ebcc39bc9f63e88d9d8
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:29 +09:00
roynatech2544
a61a974d0e
universal7885: libshims: libcorrectcamera: overlay more func
Change-Id: Ifd20fdff717b677b33bcd7865ec92962e3877da9
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:29 +09:00
roynatech2544
e9d83bf897
universal7885: Add libcorrectcamera shim
* Supposed to map camera ID 2's info to camera ID 1

Change-Id: I154b0a3357ac689530f53dbf4d251aa7f60c6a2f
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:29 +09:00
roynatech2544
aa3a35f830
universal7885: libshims: Remove useless camera shims
* It is same as android.hardware.camera.common@1.0-helper

Change-Id: I7aa14667989a10663b6d7ea290e205f9e6b1bd93
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:29 +09:00
Chenyang Zhong
130e2d9b57
universal7885: sepolicy: Address init denial
Change-Id: Id0d0c88bbedde6b6586e3a6f04704457d910d8a0
2022-03-22 19:05:29 +09:00
roynatech2544
ef017261e1
universal7885: interfaces: Rename service names
Change-Id: I32ab0e77a74a478f277d3ee5d30ce3acebb8eb3b
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:29 +09:00
roynatech2544
6235756b90
universal7885: FMRadio: jni: fix build errors
* Fix errors on FM HAL too

Change-Id: I95885939d55efa0b400fe55d0a444f64d1f65a51
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:28 +09:00
roynatech2544
a51ae4d035
NUKE BUILD.SH
Change-Id: I3cdb4cc248f4947d8b2f115170dd8ae37819a088
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:28 +09:00
roynatech2544
cb9599acdb
universal7885: FMRadio: Build our own implementation of FM
Change-Id: I913ed9e5791d067e606c5e094d4fca5a40dbb70a
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:28 +09:00
roynatech2544
e07865c670
universal7885: interfaces: Implement FMRadio HAL V1.2
* Also, track our fork of OneUI theme lib

* Implement read from sysfs interface which can fix channel searching on some cases

* Commit link: fead45ba0e

Change-Id: I81532b7f8169637fdcad0f678790a2b1f1888ecc
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:28 +09:00
roynatech2544
02eded67c8
universal7885: sepolicy: Label FM Radio HAL 2022-03-22 19:05:28 +09:00
roynatech2544
81a87b312f
universal7885: interfaces: Implement FMRadio HAL v1.1
Change-Id: Ifff4f14171e1774723a1ffa40f74eabd99a28e97
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:28 +09:00
roynatech2544
ebd1dbe38a
universal7885: interfaces: Add FM Radio HAL
Change-Id: Iae728e0cb37477c563c7d0b632bf894fb4219444
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:27 +09:00
Soo-Hwan Na
982db08f83
universal7885: vendorsetup: Update kernel branch 2022-03-22 19:05:27 +09:00
Soo-Hwan Na
ffaf807401
universal7885: FMRadio: Make volume delay to 4s
* 1.5s -> 4s
* Also, remove undeclared dependency

Change-Id: Ieff232fd776e52abfbc617495298ab27afd021d1
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:27 +09:00
roynatech2544
908dc5339b
universal7885: FMRadio: Use android SDK LinearLayout
Change-Id: Ibd176357da2c84c5fb0c5654aaed9413139412c3
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:27 +09:00
roynatech2544
315e8a18d4
universal7885: FMRadio: Don't run r8 on theme library classes
Change-Id: I7ff7065de56e77b7ba24a98ada600e8eda006a6e
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:27 +09:00
roynatech2544
1f58a51868
universal7885: FMRadio: Migrate to android SDK seekbar
Change-Id: Iced28087d879062401c4f36359a16fa3455e75db
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:27 +09:00
roynatech2544
96e7b1bcd7
universal7885: interfaces: Rename to vendor.samsungparts-hal
* <11>[   15.082330]  [0:           init:    1] init: /vendor/etc/init/vendor.eureka.hardware.parts@1.0-service.rc: 1: ignored duplicate definition of service 'vendor.parts-hal'

Change-Id: If6d32761d0df419981d3023f11669e59e2c28724
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:27 +09:00