Commit graph

342 commits

Author SHA1 Message Date
roynatech2544
8e19cb0439
a20: overlay: update AOD configs from old dt 2022-03-22 18:39:26 +09:00
roynatech2544
4be89c2de6
universal7885: compile sgdisk
Which is a useful tool to manage mmc disk
2022-03-22 18:39:26 +09:00
roynatech2544
c7b6d4e7b5
universal7885: rootdir: Hide Magisk Better
* Some banking apps read the file /proc/net/unix to
find out whether things like Magisk are installed/running.

To prevent that, chmod it 440.
This file isn't needed by any other process when boot is finished.

I've tested this and banking apps that did not work before
and recognized Magisk being installed now don't recognize
that and work just fine.

226e285aa6
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:39:26 +09:00
roynatech2544
0629318372
universal7885: sepolicy: Address dual sim model's denials
Change-Id: Ib9482de562b74964738968320c869c96e22bd704
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:39:11 +09:00
Gabriel2392
fda5db44cc
universal7885: disable apex compressing
Causes radnom bootloop
2022-03-22 18:39:11 +09:00
roynatech2544
e96c97cad8
universal7885: CameraLightSensor: Fix some issues on cam
* It was non-usable even when CameraLightSensor service is off
2022-03-22 18:38:55 +09:00
Soo-Hwan Na
ef7fb5151b
universal7885: overlay: Bring back auto brightness
* Since we have CameraLightSensor App

Change-Id: I21bbd62e0ee753a198a0b73bb1392ee13d9375e6
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:37:25 +09:00
Soo-Hwan Na
4a67fe0167
universal7885: vendor.prop: Fix duplicate prop
Change-Id: I70f737d646dbe97e1752fb3bc3c31a224e5f3432
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:37:19 +09:00
Soo-Hwan Na
c5ec118a76
universal7885: CameraLightSensor: Fix misc mistakes
Change-Id: Ie549fc3ae747fc6601adb2677365e0039bcd2fd4
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:37:05 +09:00
roynatech2544
83eec48ea9
universal7885: sepolicy: Address build error
* ERROR 'unknown type system_suspend' at token ';' on line 37636

Change-Id: I701844d4ca372c7bfa031fc03e0b56d94fd08c01
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:36:40 +09:00
roynatech2544
4f2af28177
universal7885: CameraLightSensor: Fix the service running even if I turn auto-brightness off
Change-Id: I795aef4cbd9d2d5676c8d4ccae11ce5fef828907
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:36:29 +09:00
roynatech2544
7d795b7fe3
universal7885: sepolicy: Support for A20's poll_delay file 2022-03-22 18:36:18 +09:00
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