Commit graph

139 commits

Author SHA1 Message Date
derfelot
0563511e54 universal7885: Create vulkan/opencl symlinks to libGLES_mali.so
Change-Id: Ie26232f9599e1a3f97ccc3e3ee6d8600ce03ba64
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
08066a8201 m20lte: Cleanup vendor and compile it
Change-Id: Ie8d82f9587d94495fdca6e00196797e0dcf98ff8
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
224816f49e m20lte: Initial list of proprietary blobs
Change-Id: I9a0d9793dd93914ba10dd672b63a91b013a3ca97
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Kyle Harrison
b8c8ac9fa3 universal7885: sepolicy: Fix exported_camera_prop denials
Change-Id: Ib3abf88a4c71fcd1510a9b1a3cd496b85379c8b2
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
092f199f32 universal7885: Nuke all SEC audio effects
Change-Id: I9bb70f4859c1b4dba96a2e6f76f16bb8e473cf3b
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
ab05712ab8 universal7885: Add source of proprietary blobs
Change-Id: Ib815154d228bdcefe52147507236fe260f4ad6d2
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
b7bffdcb40 universal7885: Fix missing dependencies of soundfx libraries
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: I67029bd579c8591205083437c4d65b2bc04715d5
2021-10-21 22:12:08 +09:00
SamarV-121
38d4aa0bbc universal7885: sepolicy: Silence sec_system_init_shell denials spam
Change-Id: Ic8d22b933e730672379624f268e5ecf9362b93f7
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Kyle Harrison
3251d8d3f6 universal7885: sepolicy: Fix userspace_reboot prop denials
- userspace_reboot_exported_prop
- userspace_reboot_config_prop

Change-Id: Ibec834df41345d1268b1eea4ae88b2fd5d37dd55
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
8f61f55a41 universal7885: sepolicy: Allow init to write watchdog_device
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: I0ef79c41e3afd59742d0fcaed456bbdcd4dbc797
2021-10-21 22:12:08 +09:00
JJ Lee
d1c45bdd1a universal7885: sepolicy: Allow hal audio to use wakelock
Allow audio hal service to take wakelock.
This is needed to ensure Hotword sessions

Following denied pattern:
avc:  denied  { find } for
interface=android.system.suspend::ISystemSuspend
sid=u:r:hal_audio_default:s0 pid=7678
scontext=u:r:hal_audio_default:s0
tcontext=u:object_r:system_suspend_hwservice:s0
tclass=hwservice_manager permissive=0

Bug: 149454068
Test: build pass, "avc denied" cleared

Change-Id: I11b9f72e48241dc5b7d942ad3b519c6e19910579
Signed-off-by: JJ Lee <leejj@google.com>
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
d3f562dea9 universal7885: sepolicy: Allow health HAL to read otg and muic-manager node
* also remove write access

Change-Id: Ib89b2a0c4b8e31a12c1f5262d8fd172c1a947b47
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
f4e90239e8 universal7885: Compile sensor HAL and audio_policy_config to vendor_overlay/30 as well
Change-Id: I9322e8d396c7c76efd4ee64cc1aeba1acab94c06
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Andreas Schneider
bdecaabbd0 universal7885: permission: Give cameraserver access to more sensors
This fixes:

ActivityManager: No such permission: com.samsung.permission.HRM_EXT
ActivityManager: android.content.pm.PackageManager$NameNotFoundException: com.samsung.permission.HRM_EXT
ActivityManager: at android.app.ApplicationPackageManager.getPermissionInfo(ApplicationPackageManager.java:327)
ActivityManager: at com.android.server.am.ActivityManagerService$PermissionController.isRuntimePermission(ActivityManagerService.java:5802)
ActivityManager: at android.os.IPermissionController$Stub.onTransact(IPermissionController.java:153)
ActivityManager: at android.os.Binder.execTransactInternal(Binder.java:1021)
ActivityManager: at android.os.Binder.execTransact(Binder.java:994)
ActivityManager: at com.android.server.SystemServer.startSensorService(Native Method)
ActivityManager: at com.android.server.SystemServer.lambda$startBootstrapServices$0(SystemServer.java:832)
ActivityManager: at com.android.server.-$$Lambda$SystemServer$UyrPns7R814g-ZEylCbDKhe8It4.run(Unknown Source:0)
ActivityManager: at com.android.server.SystemServerInitThreadPool.lambda$submit$0$SystemServerInitThreadPool(SystemServerInitThreadPool.java:72)
ActivityManager: at com.android.server.-$$Lambda$SystemServerInitThreadPool$jLyL3DFmbjsFesU5SGktD3NoWSc.run(Unknown Source:6)
ActivityManager: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
ActivityManager: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
ActivityManager: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
ActivityManager: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
ActivityManager: at com.android.internal.util.ConcurrentUtils$1$1.run(ConcurrentUtils.java:62)

Change-Id: I02f072ea074004a95c13fab6c8cbb4380971824f
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
509cba566f universal7885: Import some system properties from stock
Change-Id: Idf55ef6a0a249f741d058239cd96dc8f3285a810
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
c8b12e895a universal7885: Split system and product props
Change-Id: I8f4fe7db8262ecae5e7ea9acbe320b293515152e
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
0d5e511946 universal7885: Use TARGET_COPY_OUT_SYSTEM and TARGET_COPY_OUT_SYSTEM_EXT
Change-Id: Ic9e754e59857629b035a1fe5b1e70d23a6cf6a58
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
420bf8d221 universal7885: Change eSCO Transport Unit Size to 16
* Fixes bluetooth calls
 * depends on https://review.lineageos.org/c/LineageOS/android_system_bt/+/312698

Change-Id: Ia380fabeb4f890891b46acd9bf13f4a5b0c95eff
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
69841f6659 universal7885: sepolicy: Allow power HAL to write /sys/devices/system/cpu
Change-Id: I7e263adfd51eb2e2680b4ae5214734c0d5c4805c
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
ѕαмαя νιѕρυтє
5117c1c32d universal7885: sepolicy: Use system_internal_prop macro for system props
* 19b99f18c8
 * Fixes -
neverallow check failed at out/target/product/m20lte/obj/ETC/plat_sepolicy.cil_intermediates/plat_sepolicy.cil:13204 from system/sepolicy/public/property.te:564
(neverallow base_typeattr_507 base_typeattr_508 (property_service (set)))
allow at out/target/product/m20lte/obj/ETC/system_ext_sepolicy.cil_intermediates/system_ext_sepolicy.cil:150
(allow hal_fastcharge_samsung sec_fastcharge_prop (property_service (set)))

Change-Id: Icc2bb1a51daad9c0b4ba9cda87a945effe780fdc
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
ѕαмαя νιѕρυтє
c71d20b900 universal7885: overlay: Set minimum brightness to 1 2021-10-21 22:12:08 +09:00
ѕαмαя νιѕρυтє
b9ba616486 universal7885: Compile kernel with clang 2021-10-21 22:12:08 +09:00
Lucas Dupin
9ae95e8817 universal7885: Disable blur by default
Change-Id: If28a2b702597a7bfc331ae77dcb2e3f4ec07d3fc
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Pierre-Hugues Husson
328eecea8d universal7885: rootdir: Disable secondary watchdog
* See, https://github.com/phhusson/treble_experimentations/issues/1730#issuecomment-784210632, https://github.com/phhusson/treble_experimentations/issues/1730#issuecomment-784222396

Change-Id: Ic8db676a1e4f42248aefaad5cf7057f427dc72a1
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
99477ee519 universal7885: Move TARGET_EXCLUDES_AUDIOFX to common product makefile
* https://review.lineageos.org/q/topic:%22eleven-audiofx-exclude%22+(status:open%20OR%20status:merged)

Change-Id: I584d506e5b65d9c161423ef303a40a450a2fbd8c
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
synt4x93
8656a64ffa universal7885: rootdir: Disable some more samsung stuff
Change-Id: I3e35b933b6fc164952a2062cde9adf0e73f06e14
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
891ca20fab universal7885: power: Convert to blueprint
* also rebrand to universal7885

Change-Id: Id2cddbef53eaecb2ee5df08ec635af55c104f97f
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
LuK1337
10b382e30e universal7885: sensors: Statically link {libbase,libutils}
* Fixes unresolved R symbols.
  _ZN7android4base9ShouldLogENS0_11LogSeverityEPKc
  _ZN7android23sp_report_stack_pointerEv

Change-Id: I1bb820eb7e8e1ae914298657c2ffc38999989109
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Willi Ye
048849fcdf universal7885: Use custom Samsung sensors implementation
* Get rid of com.samsung.permission.SSENSOR
* Map vendor proximity sensor type to generic

Signed-off-by: Jesse Chan <jc@lineageos.org>
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: I022d9061b144925b1291ba6294fe018faba07fed
2021-10-21 22:12:08 +09:00
Andreas Schneider
495763a954 universal7885: overlay: Update config_chargingFastThreshold position
* This has been moved to SettingsLib

Change-Id: I17a07db29fcbf9bfb0611a0d7215bb302e4a00c5
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Francescodario Cuzzocrea
c5a166f294 universal7885: Build fastcharge hidl
* https://review.lineageos.org/c/LineageOS/android_hardware_samsung/+/305684

Change-Id: Iec1a7faec24f0d5b4b1d2f1ef52b781368c5bd51
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Michael Bestas
f9b798ba2b universal7885: Remove Trust interface entry
This has been turned into a VINTF fragment.

Change-Id: Iaf53a2e1fbac75d53ec11d4c56c51230f4758daf
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
e36249331b universal7885: Enable proximity sensor
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Michael Bestas
83cea22677 universal7885: Adapt for new extraction script location
Change-Id: Ife50623a3d1b8733f5cc76995c982d8950d39ad4
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Bruno Martins
724f6c3fd8 universal7885: overlay: Pin standard SystemUI instead of Google's
Change-Id: If96bb13d6cc2c2156d8df111a1037247c96c6e0f
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
f41e0cbd26 universal7885: Kang Pinner Service configs from crosshatch
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
9dfefb7cfa universal7885: sepolicy: Allow power HAL to access touchpanel node
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
d48312f054 universal7885: Enable dt2w support
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: I94472cb028204aee3ff8379f4638848a90698234
2021-10-21 22:12:08 +09:00
SamarV-121
a13a3e7023 universal7885: Import power HAL code to DT
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
25cadfd8aa universal7885: Compile OSS exynos power hal
* https://github.com/LineageOS/android_hardware_samsung/tree/lineage-18.0/hidl/power

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
710e5f1073 universal7885: Set default network to LTE,LTE
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
88a8e570e0 universal7885: Use skip_mount.cfg to skip /product mounting
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Kilian von Pflugk
732905bb3b universal7885: Remove TARGET_USES_64_BIT_BINDER
* the TARGET_USES_64_BIT_BINDER option is deprecated and can be removed

Change-Id: I6b828da1fbcc8c054c5b35ff78c870a689f7ed9f
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Weilun Du
39d0711c3c universal7885: Add TetheringOverlay
BUG: 163800715
Signed-off-by: Weilun Du <wdu@google.com>
Change-Id: Ia0834f5215ff8c3b13effa591bd2f84d93419a06
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
LuK1337
ef04b3c207 universal7885: overlay: Disable BPF
* Such is life with 4.4 kernels.

Change-Id: I1c5e3fab63271b1e3fe6c814d96edbde782f27e8
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Roshan Pius
64eadfa865 universal7885: overlay: Change wifi tether regex
The wifi interface names for wifi can either be wlan0 or wlan1.
Change the "config_tether_wifi_regexs" appropriately.

Bug: 80375412
Test: Ensured we display "Hotspot on" in settings when softap is started
on either wlan0 or wlan1.

Change-Id: I0c456412f9b71ef2ee784f3bfa58b01b9287ca73
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
b3bf6dc14b universal7885: Override vndk*.libraries.29.txt and libstagefright_foundation.so
* Instead of editing it from recovery, https://github.com/SamarV-121/android_device_samsung_universal7885-common/commits/974a3c72d5ab7162214a031a8b722c369aa7b4b1/rootdir/bin/sys.sh

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: I2c51933bb0ee7e5d8db8b533d8ac329d44165f89
2021-10-21 22:12:08 +09:00
SamarV-121
ba2c97b3d7 universal7885: Enable device controls feature in power menu
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Kevin Chyn
dd4d2f0886 universal7885: Add fingerprint configuration to overlay
The framework was changed in Android R to require explicit authenticator registration.
This change allows apps to continue to use the fingerprint sensor.

Bug: 147445115

Test: Builds
Change-Id: Id3385edc784b2053c8b54ec3153728f4e6e22a45
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Wei Wang
3fc74a62de universal7885: Enable zram on boot_complete
This help to save ~50ms in boot time and bootanim shown time

Bug: 62957152
Test: Taimen boot and swap look normal after boot
Change-Id: Idda2cc2aafca2f98f3c1faf4d1a08c7ae3203483
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00