Commit graph

330 commits

Author SHA1 Message Date
roynatech2544
93778fc639
universal7885: Fixup merge errors 2022-03-22 18:35:49 +09:00
roynatech2544
c1c9d3eda1
universal7885: SamsungParts: Fix odd black SELinux icon
Change-Id: Ic179568a10cb064797e2e17e25620c9a287e62eb
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:35:33 +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
5649875a43
universal7885: rootdir: Add back missing init rcs 2022-03-22 18:34:35 +09:00
roynatech2544
e17ee16b93
universal7885: CameraLightSensor: Inital Test
Change-Id: I74b97bec8b5e173acda1939896835ac807b83c71
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:34:01 +09:00
roynatech2544
35976c4d3e
universal7885: Set debug.sf.latch_unsignaled to 0
* ref: https://github.com/phhusson/treble_experimentations/releases/tag/v400.a

Change-Id: If2c76d606f9026c8b5a23c3548bff422a0c80521
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:33:46 +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
56c3102c14
universal7885: Inital cameraLightSensor impl
Change-Id: I75791c6b28700d71c990c15b9798fde9713d2e24
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:33:25 +09:00
roynatech2544
d195a1d848
universal7885: Add prebuilt GCam 2022-03-22 18:33:16 +09:00
Gabriel2392
7329c87196
universal7885: Address SELinux denials
* Now boots with enforcing kernel
2022-03-22 18:32:07 +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
860693ece4
universal7885: Import A20e ueventd.rc
* Previous one was 7904's

Change-Id: I5dbbdf6a049624bc0933a505cf7792a60509b6e9
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:31:31 +09:00
roynatech2544
d6d101b5b2
universal7885: SamsungParts-JNI: Add missing breaks 2022-03-22 18:31:23 +09:00
roynatech2544
e04e91f54f
universal7885: SamsungParts: Inital HAL test 2022-03-22 18:30:57 +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
2e9cb523ae
universal7885: product.prop: don't write binary XML files
Android 12 now writes XML files in binary format by default. This can
cause incompatibility with TWRP which can hang when attempting to read
XML files e.g. /data/system/storage.xml

This commit sets the persist.sys.binary_xml property to false so that
XML files are written in text format.

https: //github.com/roberto-sartori-gl/vendor_rs/commit/fbbcddc943b9dcf28bc194b8b06da966f74cd043
Change-Id: I8e0f909ba7ec40c8089077a444b636640aff96d8
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:29:28 +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
703c0edf61
universal7885: Fix another merge issue
* /vendor/firmware/
2022-03-22 18:26:13 +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
Soo-Hwan Na
f8862d9c4d
universal7885: Update redfin fingerprint to latest
Change-Id: I85660de82de6713d3f804575126bf98bbbd1f181
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:22:20 +09:00
roynatech2544
f6da6e72c2
universal7885: sepolicy: Completely merge samsung_slsi repo 2022-03-22 18:22:11 +09:00
roynatech2544
00fb011c7c
universal7885: Add custom HAL for SamsungParts
* No need to chown system sysfs nodes, HIDL can run as root
2022-03-22 18:19:39 +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
f5cec63d36
universal7885: sepolicy: Fix syntax error
Change-Id: I0b98f8e2ec733e9dee29912e176fe927a68eebf0
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:17:22 +09:00
roynatech2544
9f2cdeb5b4
universal7885: SamsungParts: Update relevant SEPolicy
Change-Id: I13eb7abd5d0651a52a8a14211c00b5e74798976f
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:17:15 +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
Chatur27
71ff7a7017
vendor_detect: run clang-tidy
$ clang-tidy main.cpp -extra-arg=-std=c++17
Running without flags.
$
2022-03-22 18:16:05 +09:00
roynatech2544
b231e3bd21
universal7885: Add my makefile Generator script
Change-Id: I2ec7e72a67d73e5b9b6dd4f57557ede1651ebe03
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:15:53 +09:00
Soo-Hwan Na
70476a701f
universal7885: Update deprecated sepolicy makefile flag
Change-Id: I7e7ddf8d4fd35f55b2bba375e748181a20546c0f
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:15:37 +09:00
Chatur27
b6f0f3e1bb
universal7885: Allow copying of APKs
Change-Id: Ic1a66da7861370feb34a59faa03fb9c6e499ec42
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:15:26 +09:00
Chatur27
d586942a1c
universal7885: Restore power btn longpress function
Change-Id: Iffbdc2c82601c8d15480af0a8a6730de92a14e2c
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:15:12 +09:00
SamarV-121
579c5401a7
universal7885: overlay: Disable night light/extra dim
* causing screen flicker

Change-Id: I38b59e353b2fb4e04d7e23070464520b06d9b973
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2022-03-22 18:15:11 +09:00
Edwin Wong
c0753280c8
universal7885: Update clearkey plugin to drm HAL v1.4
Test: atest
  atest CtsMediaTestCases:android.media.cts.MediaDrmClearkeyTest#testGetPlaybackComponent

Bug: 182525516
Change-Id: I3adf55199301768bacb38103c3ef4ba24807df2f
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2022-03-22 18:15:11 +09:00
SamarV-121
0a0b654afa
universal7885: Uprev audio HAL to 7.0
Change-Id: Ib62f81c407d1e140d5501878d025deb2ee47a73b
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2022-03-22 18:15:11 +09:00
Kevin Jeon
2994f52644
universal7885: Update SurfaceFlinger pin
This change replaces the '/system/lib64/libsurfaceflinger.so' pin, as
the file was removed in ag/12524602. The updated pin relies on
go/aog/1552085, as system_service needs read access to SurfaceFlinger.

Bug: 176197656
Test: adb shell dumpsys pinner (coral)
      - shows that /system/bin/surfaceflinger is successfully pinned
      adb logcat | grep PinnerService (coral)
      - no longer shows a file-not-found error in PinnerService
Change-Id: Iae2a96c5fe4b1f5698d21de9970140321d11c460
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2022-03-22 18:15:11 +09:00
Nicolas Geoffray
d78202c260
universal7885: Remove odex/oat files from pinner list.
The pinner now asks the runtime for these files.

Test: adb shell dumpsys pinner
Bug: 144773394
Change-Id: Ifead4354d29b3ce658b2f5771b778a050b0579b5
Merged-In: I6627afc390f8dcacc197680dcc4917e2ac5bc090
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2022-03-22 18:15:11 +09:00
SamarV-121
5d11751e99
universal7885: Disable blur
* causing screen flicker

Change-Id: I7700fda330ec56dfd519e0f0c1b34279b1cdcd83
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2022-03-22 18:15:10 +09:00
SamarV-121
f2941dde63
universal7885: Import USB typec HAL from lineage
* https://github.com/LineageOS/android_hardware_lineage_interfaces/tree/lineage-18.1/usb/1.1-typec

Change-Id: I784aa37b58deca8d12df030be103cad5b72d7e3b
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:15:10 +09:00
SamarV-121
3e189833f6
universal7885: Build needed vendor interface libraries
Change-Id: I212841eca5cdcea5fb3199fb7e821f29c492e1f1
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2022-03-22 18:15:10 +09:00
SamarV-121
a3d483b03a
universal7885: manifest: Bump target-level to 3
* legacy/O/O-MR1 matrices has been removed
* https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1465685

Change-Id: I2b00fa82b1e5c9875259960a61e0be9a19c1cdd6
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2022-03-22 18:15:10 +09:00
SamarV-121
38a7f2e6e0
universal7885: libshim_sensorndkbridge: Add liblog dependency
`error: undefined symbol: __android_log_buf_print`

Change-Id: I6fe5890420817e154df4be2c807ef20e85fe55c2
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2022-03-22 18:15:10 +09:00
SamarV-121
6a41db6f5d
universal7885: Do not enforce sysprop owner
* https://android.googlesource.com/platform/system/sepolicy/+/afc09932f6fa07c5f6beffbcdc2bb4691e527321%5E%21

Signed-off-by: SamarV-121 <samarvispute121@pm.me>
Change-Id: I59746fb999381167973b7a652906cfd0d0d0b31e
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2022-03-22 18:15:10 +09:00
SamarV-121
080b70fe65
universal7885: Allow copying broken elf prebuilts
Change-Id: I2cf32d52c4c08a1d730f2d1575d31f7ec6d5ad98
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2022-03-22 18:15:10 +09:00
roynatech2544
c486edc2fe
universal7885: power: fix build on android S enviroment
* Remove dependency on hardware/samsung

Change-Id: I803f9e04995d2b1e3a05407ceebe21aa8428abf8
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:14:48 +09:00
Harshit Jain
8503d0a458
universal7885: Fix build on android S environment
Change-Id: I7180195ed613f91beaac667391aad32472c2cd1e
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:14:48 +09:00
SamarV-121
5f9f65082c
universal7885: Move PRODUCT_CFI_INCLUDE_PATHS definition to product makefile
`error: cannot assign to readonly variable: PRODUCT_CFI_INCLUDE_PATHS`

Change-Id: I11db13fef959c1bbe5f44ffe04cd581f907b1104
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2022-03-22 18:14:48 +09:00
SamarV-121
ae36727519
universal7885: Delineageify
Change-Id: I0e2f60bb4ff6c5e095f5e5a57cf4bee9ed0ac2b6
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:14:48 +09:00