Commit graph android_device_samsung_a20/universal7885-common/apps
Author SHA1 Message Date
roynatech2544
72f2eb6800 universal7885: parts-aidl: Unlock mutex if try_lock() returned true
try_lock() returns instantly, but it does acquires mutex lock if it is avaliable. If we just return try_lock() result, mutex is still locked by the thread. So it results in forever false with try_lock(). If the try_lock() returns true, unlock and return true for fix
2022-10-11 21:21:57 +09:00
AnierinB
e9913cc821 universal7885: parts: Use directBootAware
- This way settings can be restored prior to unlocking after reboot.

Signed-off-by: AnierinB <anierin@evolution-x.org>
2022-10-11 15:19:45 +09:00
roynatech2544
cb312ac843 universal7885: parts: Init and hold only one Swap class instance 2022-10-11 04:18:09 +00:00
roynatech2544
b882728b9c universal7885: fm-aidl: Set max threads to 3
1. support instance
2. default instance
3. binder transaction
2022-10-11 04:07:03 +00:00
roynatech2544
b9b9d7edcf universal7885: parts-aidl: Don't call ->detach()
According to cppreference.com, detach allows the thread to operate independently of thread handle, which is not our intent since we need it completely under control
https://en.cppreference.com/w/cpp/thread/thread/detach
2022-10-11 12:38:03 +09:00
roynatech2544
c12209095a universal7885: parts: Use isMutexLocked() to disable switch if needed 2022-10-11 12:33:05 +09:00
roynatech2544
b226436fc7 universal7885: aidl-support: Fork subprocess to setuid 2022-10-11 03:00:44 +09:00
roynatech2544
50f3bfa31a universal7885: parts-aidl: Refactor swap impl 2022-10-11 03:00:38 +09:00
roynatech2544
531ad80afa universal7885: aidl-support: Allow platform API on java backend
To use vintf stability, we need to call android.os.Binder.markVintfStability() which is marked as SystemAPI and thus hidden to non-platform API module
2022-10-09 09:37:54 +00:00
roynatech2544
0f7eea2bbe universal7885: aidl-support: Update hashes
system/tools/aidl/build/hash_gen.sh device/samsung/universal7885-common/apps/aidl-support/fm/aidl_api/ 1 device/samsung/universal7885-common/apps/aidl-support/fm/aidl_api/vendor.eureka.hardware.fmradio/1/.hash
2022-10-09 05:39:36 +00:00
roynatech2544
65fa2766f4 universal7885: aidl-support: Make a stable version 2022-10-09 05:23:21 +00:00
roynatech2544
61d1efb082 universal7885: fm-aidl: Fix undeclared variable 2022-10-08 13:37:57 +09:00
roynatech2544
946f4768e9 universal7885: FMRadio: Remove source edit
If the AIDL hal which can be allowed to change uid calls audioflinger API to change route, we don't need to change source for it. seteuid(audioserver_uid) will work fine
2022-10-08 01:12:37 +09:00
roynatech2544
4296d27bea rootdir: Drop chown fastcharge sysfs to system
Also fix errors of aidl
2022-10-08 00:04:59 +09:00
roynatech2544
497fa53db9 universal7885: parts-aidl: Swap changes
* Remove join() call for std::thread which blocks the current context, halting the HAL thread also
* access returns 0 on successful, so we should make file if return value isnt 0
* Set parts AIDL thread to 3, for SwapThread, other interactions, Binder transaction
2022-10-07 14:34:50 +09:00
roynatech2544
76ac588516 universal7885: Export channel buffer size as cc_default 2022-10-07 13:42:24 +09:00
roynatech2544
b6537a107b universal7885: Unify IFMSysfsSupport to IFMDevControl
Also update sepolicy svc ctx
2022-10-07 13:39:07 +09:00
roynatech2544
d3adcd6380 universal7885: Fixup remaining mistakes converting to AIDL
sepolicy: Rename service_contexts for AIDL
parts-aidl: vintf: Fix hal name
2022-10-07 11:00:14 +09:00
roynatech2544
e2254ff189 universal7885: libFileIO: Log write data too 2022-10-07 10:58:48 +09:00
roynatech2544
9030e2eb7b universal7885: SamsungParts: Move to AIDL 2022-10-06 15:47:32 +00:00
roynatech2544
453f0f5f48 universal7885: fm-aidl: Fix a derp
Should join threadpool here
2022-10-06 14:25:43 +00:00
roynatech2544
365fa56736 universal7885: FMRadio: Adapt to AIDL 2022-10-06 14:11:09 +00:00
roynatech2544
6fdc377216 universal7885: fm-aidl: Rename interfaces and fix errors 2022-10-06 14:10:42 +00:00
roynatech2544
839dc3ae4c universal7885: fm-aidl: Move ioctl code to hal 2022-10-06 10:21:42 +00:00
roynatech2544
7d0a8dc3d0 universal7885: apps: Update dependency names 2022-10-05 09:59:38 +00:00
roynatech2544
ba51d9197f universal7885: Move parts HAL to AIDL impl 2022-10-05 09:59:37 +00:00
roynatech2544
7beedaa4e4 universal7885: Move FM HAL to AIDL impl 2022-10-05 09:59:36 +00:00
roynatech2544
efc9f1063b universal7885: aidl-support: Mark unstable and fix errors 2022-10-05 09:59:34 +00:00
roynatech2544
53b5d14b3c universal7885: parts-jni: Adapt to hidl changes 2022-10-05 09:59:33 +00:00
roynatech2544
1603054a6e universal7885: parts-hidl -> parts-aidl 2022-10-05 09:59:32 +00:00
roynatech2544
a8eed8f2aa universal7885: fm-hidl -> fm-aidl 2022-10-05 09:59:31 +00:00
GhostMaster69-dev
8570af7669 universal7885: GrapheneCam: Ship latest GrapheneOS Camera v47
Signed-off-by: GhostMaster69-dev <rathore6375@gmail.com>
2022-09-08 14:33:32 +00:00
Gabriel2392
c69aed4a54 FMRadio: comment this line 2022-07-31 07:43:16 -03:00
Gabriel2392
e56cc36194 FMRadio: fixup build error 2022-07-30 11:06:07 -03:00
AlexandruSemina(semialex16)
0e91fcc133
Universal7885: SamsungParts: move under system.
Due to roms now having customizations for the Settings app, will be better to move the SamsungParts app under the System category to not disturb the looks of the ui.
2022-07-22 21:54:51 +03:00
roynatech2544
988595370b universal7885: Fix clang-tidy issue again 2022-05-22 05:16:57 +00:00
roynatech2544
b3ec9c4371 universal7885: Fix errors according to clang-tidy 2022-05-21 01:07:44 +00:00
roynatech2544
5394c3b11f universal7885: Add extra compiler defaults 2022-05-21 00:37:58 +00:00
roynatech2544
be82ebd1fe
universal7885: bpfmt 2022-05-20 18:37:24 +09:00
roynatech2544
082cd1ac46
universal7885: AARs: Update to 1.6.0 release
Link: https://mvnrepository.com/artifact/com.google.android.material/material/1.6.0
2022-05-10 21:44:20 +09:00
roynatech2544
f23f81e96f
universal7885: CameraLightSensor: Correct class name
Need to be full class name, including packagename
Also rename AIDL file to camera app's, so it will be unified
2022-05-03 21:21:17 +09:00
roynatech2544
df3f4dea62
universal7885: Add aidl for interacting with EKCamera
Also address deprecation
2022-05-01 10:12:35 +09:00
roynatech2544
a7ef8f2b7e
universal7885: Format xml again
* No tabs this time, 3-space intent
2022-04-29 22:24:09 +09:00
roynatech2544
88d149ae33
universal7885: parts: jni: Link statically against libc++fs
* Shared lib version is not available now
2022-04-29 22:11:56 +09:00
roynatech2544
1898abbb62 universal7885: Allow glove settings on A20e
Exists on /sys/class/sec/tsp/cmd_list
2022-04-20 15:23:43 +09:00
roynatech2544
4a8c870b6b universal7885: parts: swap: Round down
The free space on /data
Also fix some issues with it
2022-04-20 12:58:55 +09:00
roynatech2544
0faf51929d universal7885: parts: jni: Link against libc++ fs
Also fix Kotlin src issues
Also clang-format the cpp src
2022-04-20 11:51:25 +09:00
roynatech2544
0a612ac913 universal7885: parts: Show free space and swapfile size 2022-04-20 11:31:13 +09:00
Soo-Hwan Na
053aa4fa1c
universal7885: parts: Put persistent true
* For Dolby settings
2022-04-19 21:26:48 +09:00
Soo-Hwan Na
b3ffeda816 universal7885: parts: res: Add missing attr
* Fix on darkmode
2022-04-19 11:51:24 +09:00