Commit graph

4341 commits

Author SHA1 Message Date
Michael W
51c2dee3da sdm660-common: Disable DiscoveryService
* Detrimental to Wi-Fi speeds.

Change-Id: I12fcd4972d6b8ddb0cf9d5e0a54fb72af24947e2
Signed-off-by: wHo-EM-i <ehteshammalik18998@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-13 06:56:46 +02:00
Kevin F. Haggerty
5df53b728d sdm660-common: sepolicy: Allow system_app to read /proc/pagetypeinfo
avc: denied { read } for name="pagetypeinfo" dev="proc" ino=4026543033
scontext=u:r:system_app:s0 tcontext=u:object_r:proc_pagetypeinfo:s0
tclass=file permissive=0

Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-13 06:56:46 +02:00
mracar07
ad7852eeff sdm660-common: Kickout clang version
Signed-off-by: mracar07 <umutcan@umutcanacar.me>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-13 06:56:46 +02:00
pix106
225e4c510a sdm660-common: build scudo-free 32-bit libc variant
* https://review.arrowos.net/c/ArrowOS/android_build/+/18089
2022-09-13 06:56:46 +02:00
Carter Hsu
91b4dfdc88 sdm660-common: Update Audio HIDL to 7.1
Bug: 205235270
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Ic54e2787ef27022556430c6c1db346b1e1348e39
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-13 06:56:45 +02:00
Kujou Yuko
1f817aa300 sdm660-common: Enable Audio Support for Hearing Aids central support
Signed-off-by: Kujou Yuko <i@779.moe>
Change-Id: I792a9715f17c1f17fb8b9a524cabed901d3e6f4a
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-13 06:56:45 +02:00
Alice Kuo
96ce85cb66 sdm660-common: Disable LE audio related profiles
Bug: 231671426
Test: build
Change-Id: I85b7f023c03a7a2e603af94e88196c10a16fe4ec
Merged-In: I85b7f023c03a7a2e603af94e88196c10a16fe4ec
(cherry picked from commit 9b57be4d7f57e1d117c65fac1e2dc60dbc59cb4b)
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-13 06:56:45 +02:00
Sal Savage
a701218c5a sdm660-common: Update LE Audio profile properties to match spec and implementation
Bug: 217448211
Test: atest BluetoothInstrumentationTests
Change-Id: I1260e95d357bd86099f75b910e0d744f97513fbc
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-13 06:56:45 +02:00
Sal Savage
c92fef338a sdm660-common: Enable bluetooth profiles with system_ext.prop
Bug: 217448211
Test: make -j
Change-Id: I0d06b46910e42346653bea3484636f4129592ce3
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-13 06:56:45 +02:00
weichinweng
8206a80a69 sdm660-common: Align ASHA prop with BluetoothProperties
* Modify bluetooth.profile.asha.central to
  bluetooth.profile.asha.central.enabled

Tag: #feature
Test: manual
Bug: 211570675
Bug: 218454632
Change-Id: I8e1f49034e5a675b29fba747e634c9f7c6c29c50
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-13 06:56:45 +02:00
Etienne Ruffieux
822bea80b0 sdm660-common: Added new vendors for Bluetooth config migration
Tag: #feature
Test: manual
Bug: 211570675
Change-Id: Id74ec5e1b30f21c534c35b212a2fb297e9d591fb
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-13 06:56:45 +02:00
Sal Savage
9657fed228 sdm660-common: Set default the Bluetooth class of device
The class of device is a string with a list of uint8t values:
90,2,12

The meaning is as follows:
{Service Field, Major class, Minor class}

Service Field: 0x5A -> 90
    Bit 17: Networking
    Bit 19: Capturing
    Bit 20: Object Transfer
    Bit 22: Telephony
MAJOR_CLASS: 0x02 -> 2 (Phone)
MINOR_CLASS: 0x0C -> 12 (Smart Phone)

Bug: 217452259
Test: make -j; -- check that bluetooth.device.class_of_device is
correct

Change-Id: I07e83ca352ff969be0e53a0f63b6c940b6c34dfb
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-13 06:56:45 +02:00
Josh Wu
ecb242f663 sdm660-common: Switch BtAudio to AIDL
Test: m
Bug: 203490261
Change-Id: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
Merged-In: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7

Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-13 06:56:45 +02:00
Etienne Ruffieux
2a03463018 sdm660-common: Removed audio A2dp and Hearing Aid from sdm660.mk
Bug: 220306859
Test: atest
Tag: #feature
Change-Id: Ia1d4fbe0e406e895d295936c524c5dbba6c269cd
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-13 06:56:45 +02:00
karthik1896
b7e06b2a16 sdm660-common: gps: Fix error: use of bitwise '|' with boolean operands
* fixes

device/asus/sdm660-common/gps/android/2.1/location_api/GnssAPIClient.cpp:651:35: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
    if (gnssCbIface != nullptr || gnssCbIface_2_0 != nullptr| gnssCbIface_2_1 != nullptr) {

Signed-off-by: karthik1896 <karthik1896@outlook.com>
Signed-off-by: wHo-EM-i <ehteshammalik18998@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-13 06:56:45 +02:00
Jiyong Park
993729bb9b sdm660-common: Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

Bug: 161456198
Test: m
Merged-In: I14a1c57bd06f1f2aa52491f779c7030d4de03547
Change-Id: I14a1c57bd06f1f2aa52491f779c7030d4de03547
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-13 06:56:45 +02:00
pix106
9188e83cbd sdm660-common: sepolicy: drop and dontaudit kill and sys_admin permissions. 2022-09-12 22:41:46 +02:00
pix106
077a21d15e sdm660-common: sepolicy: move system_app.te 2022-09-11 10:58:54 +02:00
Tim Zimmermann
eb323c917c sdm660-common: Specify Encryption Format For Adoptable Storage
Signed-off-by: Vitorgl2003 <vitorgl.2003@gmail.com>
Signed-off-by: Aaradhay Vijay <inferno964.github@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-11 10:38:55 +02:00
Omkar Chandorkar
9356bf1391 sdm660-common: PRODUCT_PROPERTY_OVERRIDES -> PRODUCT_VENDOR_PROPERTIES
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: I0a8607e286be257aff5872a016a801b129931476
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-11 10:38:55 +02:00
wHo-EM-i
d2d165c870 sdm660-common: fix fp wakeup issue
* temporary fix for wake-up issue on GDX sensor
* disabled vendor.fps_hal after finishing boot(still usable since it was started already on boot-up, fingerprint option still available on Settings > Security > Figerprint)
* also guarded it for GDX sensor only so it won't stop for devices with FPC sensor

Signed-off-by: wHo-EM-i <ehteshammalik18998@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-04 09:21:04 +02:00
pix106
467daca424 sdm660-common: sepolicy: label init.goodix.sh and fingerprint datafile
Could not start service 'vendor.goodix_script' as part of class 'late_start': File /vendor/bin/init.goodix.sh (labeled u:object_r:vendor_file:s0) has incorrect label or no domain transition from u:r:init:s0 to another SELinux domain defined.

Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-04 09:20:37 +02:00
kubersharma001
6c4b53be4d sdm660-common: Makefile: Build required interfaces to vendor
With android-12.0 these need to be explicitly installed to /vendor since they are not included in VNDK anymore.

Ref:
d610435ac4

Change-Id: I4a526208351f3c18c0315803f394a5e77ee80f38
Signed-off-by: wHo-EM-i <ehteshammalik18998@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-04 09:16:33 +02:00
Quallenauge
3ba089b453 sdm660-common: libshims: Respect non-static member function calls.
As stated in
https://www.learncpp.com/cpp-tutorial/8-8-the-hidden-this-pointer/
member functions contains a hidden parameter (a pointer of the current
reference of teh object, aka "this"). This way the code knows in which
context the member function is called. We have to resprect that behavior
into our shims which otherwise crashes or lead to memory corruption.

Change-Id: I68197ebafde8773fd73d7dafb9b2f1bae92ee170
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-03 23:21:48 +02:00
rdxzv
73a489db3f sdm660-common: Disable client composition cache
* Disabling client composition cache improves system smoothness and fix issues like lags when media output is showed on qs panel

Signed-off-by: Vitorgl2003 <vitorgl.2003@gmail.com>
Signed-off-by: ImPrashantt <prashant33968@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-03 23:21:48 +02:00
Bruno Martins
e9158b0df3 sdm660-common: rootdir: Keep powersaving disabled during boottime
Sleep modes are then turned on once boot is completed
or during off-mode charger mode.

Signed-off-by: ImPrashantt <prashant33968@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-03 11:59:00 +02:00
ImPrashantt
099d3e8461 Revert "sdm660-common: Build all extra VNDK versions"
This reverts commit 88bc9466073908cb2ad34f99a29b16e1b478d046.

Signed-off-by: ImPrashantt <prashant33968@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-03 11:51:57 +02:00
Nolen Johnson
fb7286f854 sdm660-common: Remove deprecated TARGET_USES_QTI_CAMERA_DEVICE
* Dead as of https://review.lineageos.org/c/LineageOS/android_vendor_lineage/+/331507.
* We already build vendor.qti.hardware.camera.device@1.0
  so we have what we need.

Change-Id: I8ec420d6264fee70a1602eecdbb4f34f2e5db3dc
Signed-off-by: wHo-EM-i <ehteshammalik18998@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-03 11:46:02 +02:00
pix106
922735f672 sdm660-common: sepolicy: label sys.camera.miui.apk prop
audit(0.0:4): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { read } for property=sys.camera.miui.apk pid=0 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:hal_camera_prop:s0 tclass=file permissive=0'

vendor_init already has permissions on vendor_camera_prop, so set sys.camera.miui.apk as vendor_camera_prop

Signed-off-by: pix106 <sbordenave@gmail.com>
2022-08-30 20:00:11 +02:00
pix106
ff77e8fbfb Revert "sdm660-common: Define TARGET_USES_UM_4_19"
This reverts commit e91aeae1ef.
2022-08-30 07:53:01 +02:00
TH779
2ea8c588d0 sdm660-common: overlay: Drop deprecated SystemUI overlays
Signed-off-by: TH779 <i@779.moe>
Change-Id: Ic66ffa74e6745db4c252a1fbef67d094ff7c9c90
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-08-25 10:08:34 +02:00
Santiago Seifert
da2beab7f6 sdm660-common: overlay: Unpin updatable-media from memory
Bug: 214499288
Change-Id: I83757ae6a053ec6b10b08322c4e76d988f1a4a48
Test: Presubmit
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-08-25 10:08:30 +02:00
pix106
bc6e6568c2 sdm660-common: update sound_trigger blobs from S62Pro 2022-08-25 10:08:30 +02:00
Sujin Panicker
423318f85e sdm660-common: enable soundtrigger hidl hal 2.3
Enable soundtrigger hidl hal 2.3 for SP with
kernel version 4.19.

Signed-off-by: raiyanbinmohsin <raiyanbinmohsinshishir@gmail.com>
Signed-off-by: wHo-EM-i <ehteshammalik18998@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-08-25 10:08:30 +02:00
pix106
8324656fc1 Revert "sdm660-common: Drop non-functional soundtrigger"
This reverts commit 0ae0e2d50a.
2022-08-25 10:08:30 +02:00
boedhack99
641996465a sdm660-common: sepolicy: Allow zygote to search adsprpdc file
Fixes:
avc: denied { search } for comm="main" name="/" dev="sde48" ino=2 scontext=u:r:zygote:s0 tcontext=u:object_r:adsprpcd_file:s0 tclass=dir permissive=0
avc: denied { search } for comm="usap64" name="/" dev="sde48" ino=2 scontext=u:r:zygote:s0 tcontext=u:object_r:adsprpcd_file:s0 tclass=dir permissive=0

Change-Id: Idd3df6ec46049d5691e298ac1d0851d7ab0bead3
Signed-off-by: Khusika Dhamar Gusti <mail@khusika.dev>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-08-25 10:04:35 +02:00
pix106
985430ecd7 sdm660-common: audio: FIX "Switch audio HAL to V7 Updated audio policy manager configuration files to comply with the changes in the XML schema." 2022-08-25 10:04:35 +02:00
pix106
c4f9a89b6e Revert "sdm660-common: displayconfig: Add brightness ramp rate"
This reverts commit 77fa9fca99.
2022-08-25 10:04:35 +02:00
pix106
3d6eaf7c46 Revert "Revert "sdm660-common: Add display config file""
This reverts commit d1f590b76c.
2022-08-25 10:04:35 +02:00
pix106
bb671d5144 sdm660-common: Switch back to FBE v1 for fstab.qcom
This reverts commit 67ad9e979f.
2022-08-21 18:05:00 +02:00
clarencelol
765f74515a sdm660-common: Aosp-ify bluetooth
* Remove some props

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-08-19 09:56:01 +02:00
pix106
8d0e7a2606 Revert "sdm660-common: Add atrace-hal build rule"
This reverts commit 114f2a0905.
2022-08-18 08:52:27 +02:00
Bruno Martins
e7adad986a sdm660-common: Drop No Longer Necessary libbase Include Dir
It seems that soong is now solving exported headers for all modules
in shared_libs.

Signed-off-by: Aaradhay Vijay <inferno964.github@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-08-18 08:52:27 +02:00
pix106
644fe3ad5f sdm660-common: build vendor.display.config@1.0
* needed for updated liboemcrypto
2022-08-18 08:52:27 +02:00
pix106
3a56beef55 sdm660-common: sepolicy: Label ro.audio.usb.period_us
Co-authored-by: Omar Hamad <etahamad@icloud.com>
2022-08-18 08:52:27 +02:00
clarencelol
b188dee008 sdm660-common: light: Adapt some changes to AIDL Light HAL for 4.19
* It fixes notification light
* Those were deleted in 4.19 LED changes

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-08-18 08:52:27 +02:00
wHo-EM-i
e8bfa410e9 sdm660-common: Update Surfaceflinger pin
* It fixed the typo in this commit d8149416e1f530ccb2155dad7be4a296e0de651b,
  checked in the system as matter of fact it was surfaceflinger instead of libsurfaceflinger

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-08-18 08:52:27 +02:00
kubersharma001
6afabf7a75 sdm660-common: Remove non-existent libldacBT_{bco,dec} build rules
- These seem to be long gone/not available to be source compiled?
- Anyways, these seem to have no actual function and are not needed other than to avoid logspams

unknown target 'libldacBT_dec'
unknown target 'libldacBT_bco'

Change-Id: Ia65d4e72128352132a7ad1a00c61d9596ece714a
Signed-off-by: SparXFusion <s2234nadar@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-08-08 23:12:46 +02:00
dianlujitao
a19a75f8e3 sdm660-common: Disable unsupported LDAC HW offload
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-08-08 23:05:33 +02:00
pix106
998d8a03be sdm660-common: sepolicy: address hal_bluetooth_qti diag_device chr_file denial 2022-08-08 22:52:29 +02:00