Commit graph android_device_samsung_a20/universal7885-common/apps
Author SHA1 Message Date
roynatech2544
becd136bbb
universal7885: FMRadio: jni: remove unused function
* device/samsung/universal7885/apps/FMRadio/jni/fm_ioctl.cpp:65:12: error: unused function 'fm_radio_get_control' [-Werror,-Wunused-funct
ion]
static int fm_radio_get_control(int fd, unsigned int id, long *val)
           ^
1 error generated.
06:47:41 ninja failed with: exit status 1

* Also, fix wrong native lib name (fmradioioctl_jni -> fmioctl_jni)
2022-03-22 19:05:25 +09:00
roynatech2544
0519231d7b
universal7885: Add FMRadio app
* Created from scratch by me (Royna) with help of LineageOS repo [1], Sony Xperia Dev repo [2]
* Basic input/output, channel selection is working

[1]: https://github.com/LineageOS/android_hardware_samsung_slsi_fm
[2]: https://github.com/sonyxperiadev/vendor-qcom-opensource-fm

Change-Id: I922bbeb9f86e6a4c7bc993d27d2f9eeb2a712186
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:25 +09:00
roynatech2544
4b0238fe98
universal7885: parts: jni: Adapt for interface unify
* Also, Mark parts HAL is required for SamsungParts
2022-03-22 19:05:22 +09:00
roynatech2544
fd23b4ab79
apps: footej: override 'Camera' too 2022-03-22 19:03:23 +09:00
roynatech2544
99f4af4c4d
universal7885: use footej camera 2022-03-22 19:03:20 +09:00
roynatech2544
846b03764e
universal7885: CamLightSensor: resolve a typo
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:02:51 +09:00
roynatech2544
cab7cfd593
universal7885: CamLightSensor: use ACTION_USER_PRESENT
...instead of ACTION_SCREEN_ON

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:02:51 +09:00
roynatech2544
098179eabb
universal7885: run clang-format based on system-clang-format
* On every *.cpp *.h files

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:02:50 +09:00
Murat Kozan
2793fa9155
universal7885: Enable vibration multiple intensities
* Activates some options on Settings>accessibility>vibration

Change-Id: Id31094e2c0212020fe53a92a04bc754ebf3e368e
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:02:49 +09:00
roynatech2544
86c53bd578
universal7885: parts: add Indonesian translation
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:02:19 +09:00
roynatech2544
3d42e54162
universal7885: parts: add es,ro,ru translation
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:02:18 +09:00
roynatech2544
38da56064d
universal7885: parts: add pt-BR translation
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:02:18 +09:00
roynatech2544
235ef07826
universal7885: parts: add German translation
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:02:18 +09:00
roynatech2544
ee9fca37fd
universal7885: parts: try fixing nullptr
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:02:15 +09:00
roynatech2544
eefeec3768
universal7885: parts: adapt to S style
* Inspired by 3cc1a02bf5
2022-03-22 19:02:15 +09:00
Soo-Hwan Na
58ffb744ae
universal7885: parts: jni: fix flashlight stats reading
Change-Id: I3d5cb83db0c7afe5b33f0788a1c08557bc3670f6
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:01:49 +09:00
Soo-Hwan Na
b65bfd3ba3
universal7885: parts: fix NullPointerException
* "this" to get current context needs to be done on overriding method
2022-03-22 18:57:41 +09:00
roynatech2544
4584ec21f2
universal7885: CameraLightSensor: Set notification to low priority
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:57:19 +09:00
roynatech2544
de4c5c6d8e
universal7885: parts: fix fps overlay on quicksettings
* mRunning should be static (in companion object) to correctly get it

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:57:19 +09:00
Soo-Hwan Na
4bd32cf76d
universal7885: CameraLightSensor: Fix param
The param "Intent" can be null
2022-03-22 18:55:39 +09:00
roynatech2544
da01e6dcbe
universal7885: SamsungParts: Specify common package name
* Crashing due to noclassdef

Change-Id: I5b898c8e02155a60dfcc153d4fa7a345cac5416c
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:54:35 +09:00
roynatech2544
75b2f9edbc
universal7885: SamsungParts: styles.xml: specify dialog theme
*  Need to set the theme for dialogs and alertDialogs. Without it the ListPreference crashes

https: //stackoverflow.com/questions/43784891/android-preferencefragmentcompat-crashing-on-listpreference-view
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
Change-Id: Ib02be040fd27238e6c10c587402dcf7aeaaec55b
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:54:28 +09:00
roynatech2544
56881cba9b
universal7885: SamsungParts: Address 'variable shadowed' warning 2022-03-22 18:53:52 +09:00
Soo-Hwan Na
1d39eb76e8
universal7885: SamsungParts: Match latest source changes 2022-03-22 18:53:34 +09:00
roynatech2544
dac87c4a19
universal7885: SamsungParts: Address deprecation
* Of android.preference. Need to use Jetpack support lib

Change-Id: I21bbd31c766179fe51fec4b812a6daa1e223a664
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:52:43 +09:00
roynatech2544
5ded25d1d1
SamsungParts: res: Same as 315229778b
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:52:12 +09:00
roynatech2544
f389248a2b
SamsungParts: Add common prefix (Package Name)
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:52:12 +09:00
roynatech2544
dd3ffdff56
universal7885: SamsungParts: Use activity name specified on AndroidManifest.xml
Change-Id: I98df41354e39e04cdcc06701d6663ad362795bdf
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:51:41 +09:00
roynatech2544
0518bb3630
universal7885: CameraLightSensor: Fix thread endless loop
* If auto brightness is turned off

Change-Id: I654dd6c4db8d8910779fa256c70efcdb51fac49c
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:51:23 +09:00
roynatech2544
0522bd9d3d
universal7885: CameraLightSensor: Allow user to mute the app's notification
android.app.NotificationChannel
public void setBlockable(boolean blockable)
Allows users to block notifications sent through this channel, if this channel belongs to a package that is signed with the system signature. If the channel does not belong to a package that is signed with the system signature, this method does nothing, since such channels are blockable by default and cannot be set to be unblockable.

Change-Id: Idfa7a672c0be585381239b879ce386e6e99d0619
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:51:06 +09:00
roynatech2544
32f38f0651
universal7885: SamsungParts: This param can be NULL too
Change-Id: I5f69895b5f7c0c56d84ccea674ee8429c3600419
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:51:00 +09:00
roynatech2544
7f2d2c5b3c
universal7885: CameraLightSensor: Convert to Kotlin
Change-Id: I8162d1f88583143a333b282ad59e45085ec66023
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:50:50 +09:00
roynatech2544
e3848cdb11
unversal7885: SamsungParts: Convert to Kotlin 2022-03-22 18:50:26 +09:00
roynatech2544
3eeab18801
SamsungParts: add Dolby Atmos entry
* Basic ideas taken from https://github.com/SamarV-121/android_device_samsung_universal7885-common/tree/lineage-19.0/dap
2022-03-22 18:48:08 +09:00
LuK1337
3939a12b88
universal7885: Enable DAP effect on boot
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
Change-Id: I669fcd7d1e8ace82e6005df41e8c7c63ee26f248
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:47:35 +09:00
roynatech2544
e6d0c326c9
universal7885: CameraLightSensor: Add privapp permissions
* Logcat: Privileged permission android.permission.WRITE_SECURE_SETTINGS for package com.eurekateam.cameralightsensor (/system/priv-app/CameraLightSensor) not in privapp-permissions allowlist

* Turn off debug bool too

Change-Id: Ieae2542852568ceb40017db6a559ded185d582e3
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:47:19 +09:00
roynatech2544
e4569f7c82
universal7885: CameraLightSensor: Use correct code to start service
* W ActivityManager: Unable to start service Intent { cmp=com.eurekateam.cameralightsensor/.CameraLightSensorService } U=0: not found

* Ref: https://stackoverflow.com/questions/19105587/unable-to-start-service-intent-not-found

* Makes BootReceiver unable to start service
2022-03-22 18:45:59 +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
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
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
roynatech2544
0d81c5b97d
universal7885: CameraLightSensor: Correctly monitor brightness settings
* Added an observer
2022-03-22 18:39:42 +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
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
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
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
e17ee16b93
universal7885: CameraLightSensor: Inital Test
Change-Id: I74b97bec8b5e173acda1939896835ac807b83c71
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:34:01 +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