Commit graph

1,207 commits

Author SHA1 Message Date
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
Gabriel2392
18b1dbd893
setup.sh: default to aosp vendor 2022-03-22 18:39:51 +09:00
roynatech2544
0d81c5b97d
universal7885: CameraLightSensor: Correctly monitor brightness settings
* Added an observer
2022-03-22 18:39:42 +09:00
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