Commit graph android_device_samsung_a20/universal7885-common/apps/SamsungParts
Author SHA1 Message Date
roynatech2544
3c7ca85990
universal7885: Format Kotlin code using ktlint
* Also, refactor CameraLightSensor

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-04-13 17:21:17 +09:00
roynatech2544
95d062a8b1
universal7885: parts: Use contains()
ro.product.device has e.g. derp_a20e
2022-04-12 20:20:08 +09:00
roynatech2544
d134ddaab3
universal7885: parts: Make SharedPreference instance lateinit
* Else crashes
2022-04-12 20:00:02 +09:00
roynatech2544
cd97190144
universal7885: parts: Load jni lib on apply on boot 2022-04-12 19:24:48 +09:00
roynatech2544
4a9ca4730c
universal7885: parts: Refactor
* Convert null properties to lateinit
* Implement apply on boot again
* Cleanup unused file
2022-04-12 19:18:01 +09:00
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
Soo-Hwan Na
69206da15f
universal7885: parts: Address deprecation
* androidx.preference.PreferenceFragment -> androidx.preference.PreferenceFragmentCompat
2022-04-06 17:30:25 +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
Adithya R
3935a846ff
universal7885: parts: Update clear speaker audio from MIUI 12
Change-Id: I022442fd4a7f0bdf04d1e2d7aecf47695a52fd3b
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-26 10:30:00 +09:00
roynatech2544
1ae135e877
universal7885: parts: Address some errors after merging
Change-Id: I4db5d687a832e47d35398130e6c13cbc8a41bf97
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-23 22:37:04 +09:00
roynatech2544
ad27f7c8f6
universal7885: Merge LineageOS SamsungDAP
Change-Id: Ic8faa1b8b2c23ca1cd1add256c2229efef36cfd1
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 22:05:28 +09:00
Soo-Hwan Na
4316787756
universal7885: parts: Declare missing entry on manifest 2022-03-22 19:05:32 +09:00
Chatur27
1bbbc011be
universal7885: parts: Use audio hw parameter for dolby effect 2022-03-22 19:05:32 +09:00
roynatech2544
9443bdc315
universal7885: FMRadio: Futher improve code
* Using enum classes for various statuses for good readability
* Implement favorite channel saving which was missing
* Use Kotlin coroutines again for refreshing channel list button, for faster UI response
* Added javadoc for better functions description
* Also, code native audio routing system on jni (fm_route.cpp)

Change-Id: I993c88fdb580248d8a55efd8e9b6fed0e36d9b24
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:31 +09:00
roynatech2544
0885f01f81
universal7885: interfaces: Forgot to rename package name
* Also, fix errors

Change-Id: Iafa0a6f6c34c9b13aff464765ef00cffbc6330dd
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 19:05:26 +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
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
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
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
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
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
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
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
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
d195a1d848
universal7885: Add prebuilt GCam 2022-03-22 18:33:16 +09:00