Commit graph

771 commits

Author SHA1 Message Date
roynatech2544
006243af7c
universal7885: parts: Don't code every possible values
* Use static_cast<Enum class>(Value) instead
2022-04-12 18:19:01 +09:00
roynatech2544
cb072badd5
universal7885: format code using clang-format-15 2022-04-12 17:37:51 +09:00
roynatech2544
bfcbd0d355
universal7885: parts: Disable display settings on non-supported models
* Also, update copyright header
2022-04-12 17:09:57 +09:00
roynatech2544
15f84d5a7b
universal7885: parts: implement display controls
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-04-12 16:45:48 +09:00
roynatech2544
7bd40b3a4e universal7885: interfaces: Move to /vendor/bin
* Is not Android core hal, so moving it from /vendor/bin/hw
2022-04-12 13:06:57 +09:00
roynatech2544
7156ddca8f universal7885: parts: hidl: Make some changes
* Drop useless selinux and gpu
* Instead put display configs (DT2W, Glove mode)

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-04-12 13:06:28 +09:00
kevios12
0164a22774
universal7885: vendorsetup: remove FMRadio
remove FMRadio. We have our own FMRadio and it will give u an error: "Multiple definiton"
2022-04-11 10:40:18 +02:00
kevios12
c90bfd800a
universal7885: don't build FMRadio for A40 and add universal7904-vendor back
due to vendor (audio) problems, the universal7904 vendor was included again and fm radio is not built for the a40 for this reason (routing, low quality problems)
2022-04-08 16:40:55 +02:00
Soo-Hwan Na
e065edd19b
universal7885: debugger: Use -b all
* More verbose logging
2022-04-07 16:57:09 +09:00
roynaetch2544
4e9fa53063
universal7885: vintf: Put empty compability matrix file 2022-04-07 16:42:20 +09:00
roynaetch2544
8e46e80dc7
universal7885: Drop custom pixel sysconfig
Already exists on many ROMs
2022-04-07 07:03:16 +09:00
roynaetch2544
55a45d1c9c
universa7885: Force override compability matrix
* Fixes 'Internal problem, please contact OEM' warning message on every boot
2022-04-07 06:58:56 +09:00
Soo-Hwan Na
3459f34b34
universal7885: vintf: Remove unused entry 2022-04-06 23:37:05 +09:00
Soo-Hwan Na
69206da15f
universal7885: parts: Address deprecation
* androidx.preference.PreferenceFragment -> androidx.preference.PreferenceFragmentCompat
2022-04-06 17:30:25 +09:00
kevios12
1972345bcc
universal7885: fp: Update to SP2A.220405.004 raven 2022-04-05 10:21:56 +02:00
Jyotiraditya
d003e2801b
universal7885: Enable config_avoidGfxAccel
- This flag turns off GPU/CPU intensive UI effects and
  reduces the RAM footprint.

- Using this is a better compromise than the 'low_ram' flag
  as this does not disable features in the rom but still
  reduces RAM usage and gives better smoothness in the UI.

[ roynatech2544 : RAM usage decreased by 15% with this prop on 3GB RAM
device ]

Signed-off-by: Chuck439 <firmankediri123@gmail.com>
Signed-off-by: AkaruiAikara <vall@aikara.me>
2022-04-04 18:43:16 +09:00
Soo-Hwan Na
838beb5738
universal7885: keyhandler: Move to java_sdk_lib 2022-04-03 22:58:19 +09:00
Jan Altensen
c604e3fb9f
universal7885: hidl: Uprev usb HAl to 1.3
* From LineageOS hardware/samsung
2022-04-03 03:19:52 +09:00
Tim Zimmermann
b3c318ead7
universal7885: aidl: vibrator: properly implement effects 2022-04-03 03:09:42 +09:00
roynaetch2544
1a5ab61e97
universal7885: overlay: Fix xml format
Also fix build error on KeyHandler
2022-04-03 02:21:36 +09:00
Ramii ahmed
8582551795
universal7885: Import KeyLogger
This lib helps to log input keycodes
2022-04-03 02:21:36 +09:00
Alexander Winkowski
8b275247f9
universal7885: Import a shim to silence logcat spam on vendor blobs
Co-authored-by: Jan Engelmohr <jan.engelmohr@mailbox.tu-dresden.de>
2022-04-03 02:21:36 +09:00
Henrique Silva
d25fc0d03c
universal7885: Don't warn user about FC in Google TTS
* This happens on almost all FDE devices, I don't see any workaround other than hiding these dialogs
2022-04-03 02:21:36 +09:00
kdrag0n
a1c75db165
universal7885: overlay: Enable support for Bluetooth hearing Aids
This device is fully capable of streaming audio to Bluetooth hearing
aids using the ASHA GATT protocol built on top of L2CAP, similar to
A2DP.

Enable the config option for the system to handle pairs of hearing aids
properly and expose the option in Settings.

More info at https://source.android.com/devices/bluetooth/asha

Test: user reported successful audio streaming
Change-Id: Ibdece6513a822ce7e221067dd0fa40da10b5b44d
2022-04-03 02:21:31 +09:00
Michael W
d1ad3bfeb1
universal7885: Disable gms components for better WiFi speeds
* Also should improve battery backup a little bit
2022-04-03 02:21:30 +09:00
johnmart19
2b14bbeb0a
universal7885: Set max frame buffer to 3 2022-04-03 02:21:30 +09:00
johnmart19
91efb224ad
universal7885: Enable skia reduce ops task splitting 2022-04-03 02:21:30 +09:00
johnmart19
88c6ca9570
universal7885: Use skiaglthreaded for Renderengine backend
[ roynatech2544: While we are at it, remove not found props on system,
product property file. Also, move product props to system prop ]
2022-04-02 23:59:13 +09:00
roynaetch2544
b75cc0ced3
universal7885: Address some denials
* app_domain: Allow untrusted apps to get vendor.camera props such as vendor.camera.skip_unconfigure.packagelist
* debug_daemon: Allow more perms to properly execute logcat, sepolicy neverallow passes still
* Move vendor_camera_prop to vendor_public_prop, to resolve neverallow
2022-04-02 15:20:24 +09:00
roynatech2544
8cc7aca046
universal7885: Move folders to subfolders
Change-Id: I109b02201607d12209180c7cf3356b4e2e3d7ce6
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-31 21:58:33 +09:00
roynatech2544
abd58dad16
universal7885: Cleanup unused files
Change-Id: Iafcdd7be2966ca54663fdd3b2cf925300d2999c9
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-31 20:07:02 +09:00
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