roynatech2544
a87aa48ec4
universal7885: fm-aidl: Remove next_freq/before_freq helpers
...
This code is working, but it will query the H/W next channel everytime resulting in different freq than the list
2022-10-20 17:44:17 +09:00
roynatech2544
d05c95ce7f
universal7885: fm-aidl: Add a new settype
...
- Will save freqs list on HAL
2022-10-20 17:42:32 +09:00
roynatech2544
6e880ecd28
universal7885: fm-aidl: Export channel spacing
2022-10-20 14:46:49 +09:00
roynatech2544
6fedd9490f
universal7885: fm-aidl: libfm-impl: Use int32_t for all stuff
2022-10-20 14:44:10 +09:00
roynatech2544
ffad88e852
universal7885: parts: smartcharge: Nuke apply button
2022-10-18 19:42:38 +09:00
roynatech2544
820eeff595
universal7885: parts-aidl: No need to set the bool every 5s
2022-10-18 13:27:41 +09:00
roynatech2544
aa216cb327
universal7885: parts-aidl: Use lambda
2022-10-18 13:16:43 +09:00
roynatech2544
e29ee0a60e
universal7885: parts-aidl: Charging is enabled on 0 disabled on 1
2022-10-18 13:09:57 +09:00
roynatech2544
5b75120653
universal7885: parts: smartcharge: Fix derps
...
* Turn on charging back after smartcharge off.
* Correct onclick listener on smartcharge settings
* Only write to charge sysfs once
2022-10-18 12:50:28 +09:00
FPSensor
e92f502522
universal7885: parts: Add translation to ES ( #3 )
2022-10-18 07:45:46 +09:00
roynatech2544
a296d6e27e
universal7885: parts: Fix error after SmartCharge
2022-10-18 00:52:09 +09:00
roynatech2544
30f8177b3d
universal7885: fm-aidl: Use std::timed_mutex to provide thread safe operation
...
- Also sort out common macro to new header
2022-10-18 00:48:46 +09:00
roynatech2544
d9adb63d29
universal7885: parts-aidl: Move smartcharge code to one file
2022-10-17 18:38:47 +09:00
roynatech2544
c08e8f7fdc
universal7885: parts: Support apply on boot for smartcharge
2022-10-17 18:05:33 +09:00
roynatech2544
1845c09098
[SQUASH] universal7885: Revert health related commits
...
Revert "universal7885: sepolicy: Address charger_vendor denial"
This reverts commit f35e7ce2a6 .
Revert "universal7885: Switch to health AIDL HAL"
This reverts commit d80918f7b5 .
Revert "universal7885: health: remove unused namespace"
This reverts commit 19139783b3 .
Revert "universal7885: Remove unused deps from health impl"
This reverts commit 478b6f760c .
Revert "universal7885: Implement health 2.1 hal"
This reverts commit f90a9a09cf .
2022-10-17 18:01:00 +09:00
roynatech2544
38dfae1352
universal7885: parts: Avoid both options checked at the same time
2022-10-17 17:57:43 +09:00
roynatech2544
9a2f223571
universal7885: aidl-support: Address avc denials
2022-10-17 17:57:43 +09:00
roynatech2544
41a3c2f0b1
universal7885: aidl-support: Fixup build errors
2022-10-17 17:57:43 +09:00
roynatech2544
5dd7c38c2c
universal7885: rootdir: Remove chowning of fm radio device
...
FM HAL is root daemon, it causes dac_override
2022-10-17 17:57:43 +09:00
roynatech2544
4ef818a802
universal7885: aidl-support: Add audio route hal to fake audioserver uid
2022-10-17 17:57:43 +09:00
roynatech2544
0834ccd364
universal7885: parts: smartcharge: this -> requirecontext
...
this, aka SmartChargeFragment doesnt extend Context
2022-10-16 12:10:04 +09:00
roynatech2544
1ae356f310
universal7885: sepolicy: use binder_call macro
2022-10-16 11:03:00 +09:00
roynatech2544
fde9ae1b2a
universal7885: parts: Poll sizes instead of update after operation
2022-10-16 10:52:03 +09:00
roynatech2544
e44d93750c
universal7885: parts: Make smartcharge settings compile
2022-10-16 10:35:22 +09:00
Bruno Martins
fc51a00551
universal7885: Drop component overrides
...
This is no longer needed as of Android 13.
Change-Id: I38435c47c8781678f82014decbbae40dcab0a07b
2022-10-15 18:33:23 +09:00
roynatech2544
bbf23a20cd
universal7885: dlopener: Mark as vendor avaliable and build it
2022-10-14 22:57:33 +09:00
roynatech2544
06c69bfd89
universal7885: parts-aidl: Just use new operator
...
Using std::unique_ptr may result in deleted pointer
2022-10-14 22:52:56 +09:00
roynatech2544
7f099b9e43
universal7885: parts: Fix UI of smartcharge and show seekbar values
2022-10-14 22:52:42 +09:00
roynatech2544
f35e7ce2a6
universal7885: sepolicy: Address charger_vendor denial
2022-10-14 14:19:55 +09:00
roynatech2544
95e42984fb
universal7885: sepolicy: Label back clearkey label
2022-10-14 11:22:16 +09:00
roynatech2544
550036fed1
universal7885: parts: Move directbootaware manifest to receiver
2022-10-14 11:20:49 +09:00
roynatech2544
895ca921b8
universal7885: parts: Declare in manufest
2022-10-14 11:20:49 +09:00
roynatech2544
8d1811d574
universal7885: parts: Implement SmartCharge settings
...
Using the interface vendor.eureka.hardware.parts.ISmartCharge, this intends to add simple implementation of smart charge. If the battery percent is above set limit percent, it will stop charging, else if the battery percents goes under the set restart percent, it will start charging again.
While I'm on this parts, I refactored kotlin srcs using ktlint, formatted xml manually.
2022-10-13 20:50:16 +09:00
roynatech2544
ef97fdeb77
universal7885: parts-aidl: Just send callback through setSwapOn()
...
- Set callback on JNI, since Java class cant be sent through, use the ndk backend to implement callback and send to swapon()
2022-10-12 22:31:27 +09:00
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
Tim Zimmermann
740b27bccf
universal7885: Support changing readonly filesystem type with a flag
...
[roynatech2544: Rename flag to TARGET_FS_TYPE]
Change-Id: Ie9c749a37b3d42844b1824ab1cdb7a2fa51a186b
2022-10-11 14:25:26 +09:00
Tim Zimmermann
d80918f7b5
universal7885: Switch to health AIDL HAL
...
Change-Id: Icbb7194943388679abd25b2dbd105424c34496a1
2022-10-11 13:50:02 +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
b3cd2cf207
Revert "universal7885: Enable AIDL DRM HALs"
...
This reverts commit 380475026d .
- Clearkey init fails
- Also address DRM widevine denial
2022-10-10 22:15:45 +09:00
roynatech2544
1c6d1f2678
universal7885: sepolicy: (Finally) Adapt for AIDL
2022-10-09 22:23:10 +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