Commit graph

1067 commits

Author SHA1 Message Date
Vinay Verma
02cd632de5
sdm710-common: props: Disable Async MTE on System Server
Async mode MTE is enabled by default on System Server process.
Add property arm64.memtag.process.system_server=off
This property is read during system server forking process and
accordingly Heap Tagging level is set.

Change-Id: Ie6f6c4f553e2540ac7da9995cb4a3f7b45a910c7
2023-06-28 19:57:33 +03:00
Albert I
e5f687028e
sdm710-common: device: Inherit several Android Go configurations
Beneficial for everyone, even on non-Go devices.
2023-06-28 19:56:49 +03:00
Mathieu Chartier
5c2172df63
sdm710-common: device: Speed profile services and wifi-service to reduce RAM and storage 2023-06-28 19:56:14 +03:00
Alex Hong
f51c745845
sdm710-common: device: Replace the HIDL with AIDL for android.hardware.memtrack
The HIDL interface of "android.hardware.memtrack" is no longer supported
for Android S.

Test: atest VtsHalMemtrackTargetTest pass
Bug: 186539435
Change-Id: Iaafd526fc5a601f7e8189ec764399d99c660beb0
2023-06-28 19:51:42 +03:00
LuK1337
d67dc679ca
sdm710-common: overlay: Restore default config_proximityCheckTimeout
Apparently we can no longer expect proximity sensor to reply within
100ms...

Change-Id: Ifdeda8b9a310da9bd19b7d000b6ac7aa060ae742
2023-06-28 19:42:50 +03:00
Michael Bestas
ea6af5c061
sdm710-common: overlay: Remove deprecated config_waitForMpctlOnBoot
Change-Id: Ieddfee4d6cba4e8c909d8117a23901baa9e33ead
2023-06-28 19:40:03 +03:00
AndroidHQ254
5c7cc6d9d9
sdm710-common: sepolicy: Label more graphics nodes
E WiredAccessoryManager: file
/sys/devices/platform/soc/soc:qcom,msm-ext-disp/extcon/extcon3/name not
found

E WiredAccessoryManager: file
/sys/devices/platform/soc/soc:qcom,msm-ext-disp/extcon/extcon2/name not
found
2023-06-26 23:38:00 +03:00
iusmac
ca32a5f18f
sdm710-common: sepolicy: Adress IORap usap_pool denial
W FinalizerDaemon: type=1400 audit(0.0:532): avc: denied { getopt } for
path="/dev/socket/usap_pool_primary" scontext=u:rradios0
tcontext=u:r:zygote:s0 tclass=unix_stream_socket permissive=0
2023-06-26 23:37:59 +03:00
lupesoltec
d8f8c9232b
sdm710-common: sepolicy: Fix avc denials related to linkerconfig
avc: denied { kill } for comm="linkerconfig" capability=5
scontext=u:r:linkerconfig:s0 tcontext=u:r:linkerconfig:s0
tclass=capability permissive=0
2023-06-26 22:57:36 +03:00
Murat Kozan
ef80583f34
sdm710-common: sepolicy: Allow network_stack to read net psched
[   16.649254] type=1400 audit(1664029505.494:14): avc: granted { read } for comm=rkstack.process name=psched dev=proc ino=4026532010 scontext=u:r:network_stack:s0 tcontext=u:object_r:proc_net:s0 tclass=file
[   16.649335] type=1400 audit(1664029505.494:15): avc: granted { read open } for comm=rkstack.process path=/proc/2172/net/psched dev=proc ino=4026532010 scontext=u:r:network_stack:s0 tcontext=u:object_r:proc_net:s0 tclass=file
[   16.649367] type=1400 audit(1664029505.494:16): avc: granted { getattr } for comm=rkstack.process path=/proc/2172/net/psched dev=proc ino=4026532010 scontext=u:r:network_stack:s0 tcontext=u:object_r:proc_net:s0 tclass=file

Change-Id: Iee08bc43122ca6aedce39fd2a27980c90a6b42f1
2023-06-26 22:56:30 +03:00
llololo
e1d1fd9a55
sdm710-common: audio: Add new flag name to compress offload case
Add AUDIO_OUTPUT_FLAG_GAPLESS_OFFLOAD to compress offload case.

Bug: 188113788
Test: Play compress offload music and check app type from logcat
Change-Id: If31a50ffafb43cb350c84fcc60774af116f30ff8
2023-06-26 22:51:37 +03:00
1582130940
1a846944f4
sdm710-common: configs: Update from LA.QSSI.13.0.r1-09700-qssi.0 2023-06-26 22:42:10 +03:00
DennySPB
a9aec84a56
sdm710-common: configs: Decrease launch boost to 3sec
* 5s is just too much long plus battery drainer

Signed-off-by: DennySPB <dennyspb@gmail.com>
Change-Id: I7e037c45cd2296a8bbd67d6bd63c212c0ef2a805
2023-06-26 22:37:04 +03:00
Park Ju Hyung
3288dc6ded
sdm710-common: wifi: Disable firmware log
Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
2023-06-26 22:30:52 +03:00
Pasha
91e826f8ca sdm710-common: Uprev health impl and service to 2.1 2023-06-26 00:20:01 +03:00
bf630c3a23 sdm710-common: Drop android.hardware.power.stats@1.0-service.lenovo 2023-06-26 00:20:01 +03:00
kubersharma001
4d64ab1798 sdm710-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>
2023-06-26 00:20:01 +03:00
Pig
d803152ec2 sdm710-common: Drop no longer existed BluetoothQti
Change-Id: I6bf3e1dda6fe5dc66f6fafdb32a1daecb9616c84
2023-06-26 00:20:01 +03:00
Palakurthi Sreekanth
9fdd9304b1 sdm710-common: grant permissions for carrier settings
java.lang.IllegalStateException: Signature|privileged permissions not in privapp-permissions whitelist: {com.google.android.carrier (/product/priv-app/CarrierSettings): android.permission.WRITE_APN_SETTINGS, com.google.android.carrier (/product/priv-app/CarrierSettings): android.permission.CHANGE_COMPONENT_ENABLED_STATE, com.google.android.carrier (/product/priv-app/CarrierSettings): android.permission.INTERACT_ACROSS_USERS, com.google.android.carrier (/product/priv-app/CarrierSettings): android.permission.MODIFY_PHONE_STATE, com.google.android.carrier (/product/priv-app/CarrierSettings): android.permission.READ_PRIVILEGED_PHONE_STATE, com.google.android.carrier (/product/priv-app/CarrierSettings): com.android.permission.INSTALL_EXISTING_PACKAGES}
2023-06-26 00:20:01 +03:00
GuaiYiHu
bdce4cb943 sdm710-common: libhidl: Remove android.hidl.manager
* Also move android.hidl.base@1.0 to system

Change-Id: I06695669f988f28ebfc2016030033f419bb95191
Signed-off-by: PIPIPIG233666 <2212848813@qq.com>
2023-06-26 00:20:01 +03:00
Alexander Koskovich
dc74a2a5f6 sdm710-common: Drop vendor com.qualcomm.qti.bluetooth_audio@1.0
* Nothing references it.

Change-Id: I35703759dc7d3cf711a84ff2c5d2abc14bd156cf
2023-06-26 00:20:01 +03:00
pjgowtham
e2b0462e29 sdm710-common: Use qti vibrator aidl hal 2023-06-26 00:20:01 +03:00
Chenyang Zhong
1d65c45429 sdm710-common: update script to handle added and deleted blobs
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: snnbyyds <snnbyyds@gmail.com>
2023-06-25 23:53:54 +03:00
Chenyang Zhong
39a599c948 sdm710-common: update script to reflect vendor dir separations
Now vendor/xiaomi is no longer a repo and vendor/xiaomi/sdm845-common has been
separated from it.

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: snnbyyds <snnbyyds@gmail.com>
2023-06-25 23:53:54 +03:00
Chenyang Zhong
b4e8d2162f sdm710-common: add a script to update sha1sum from vendor commit
USAGE:
device/lenovo/sdm710-common/generate_sha1_from_commit.sh 1a2b3c4d

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: snnbyyds <snnbyyds@gmail.com>
2023-06-25 23:53:54 +03:00
Richard Raya
03b97fa20e sdm710-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: Pascoato <viniciuspascoato@gmail.com>
Change-Id: I5d8822f5f5d1840fbfcd1884545de427c0e0b298
Signed-off-by: DarkJoker360 <simoespo159@gmail.com>
Signed-off-by: snnbyyds <snnbyyds@gmail.com>
2023-06-25 23:53:54 +03:00
Dobsgw
47ab580534 sdm710-common: audio: fixup audio io policy voip_rx flags
Flags for VOIP were mixed up as we move to CAF policy configuration. Amend the flags to get things working again.

https://gitlab.com/LineageOS/issues/android/-/issues/4285

Change-Id: I2a2b202e2a58db9a26f571c091b1fa0b8f2949f6
Co-authored-by: Ramii Ahmed <ramy@ahmedramy.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2023-06-25 23:53:54 +03:00
Edwin Moquete
90893a90f4 sdm710-common: rootdir: Kang runtime cpuset from crosshatch
Change-Id: Icb4c39fb1f316effde856e1e10e6c19e391fab7d
2023-06-25 23:53:54 +03:00
Arian
23ce77d849 sdm710-common: rootdir: Kang governor settings from crosshatch
Change-Id: Ie6534dcb14bec74105841b2289e29728ee50a3a5
2023-06-25 23:53:54 +03:00
Suren Baghdasaryan
48171eb52c sdm710-common: rootdir: Replace writepid with task_profiles
- writepid command usage to join a cgroup has been deprecated in favor
   of a more flexible approach using task_profiles. This way cgroup path
   is not hardcoded and cgroup changes can be easily made. Replace
   writepid with task_profiles command to migrate between cgroups.

Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: Karan Parashar <whyredfire@gmail.com>
Change-Id: I0cdf63daa4eb043488a6d0eceb492af36df8882d
2023-06-24 15:13:20 +03:00
Sebastiano Barezzi
0258bb0a50 sm710-common: Remove TARGET_ENABLE_MEDIADRM_64
* It's only used when building drm@1.0 HIDL

Change-Id: I06412e2dd2bb48d798be4ef6e9a26a17b65277a7
2023-06-24 15:13:20 +03:00
Pasha
29232afe34 sdm710-common: Sort kernel cmdline and additional flags as a list
* This allows better readability and eases tracking further changes.
2023-06-24 15:13:20 +03:00
Tim Lin
a370998eac sdm710-common: qcril: fix MT SMS sent during power off
qcril will block any further MT SMS if previous one is not ACKed.
For this bug, IMS service is not ready and resulted in qcril stuck in blocking state.
This solution will add 30s timer to reset blocking state if there is no ACK from Telephony.

Bug: 169549852
Test: MT SMS during power off
Change-Id: I6f52170654925143aeb55f8bc0cf4c379717e718
Signed-off-by: muti605 <mustafa.sahin605@yandex.com>
Signed-off-by: Mohammad Hasan Keramat J <ikeramat@protonmail.com>
2023-06-24 15:13:20 +03:00
Chenyang Zhong
51f0bbdfa6 sdm710-common: Copy cgroups and task_profiles directly from system/core
This ensures that the most up-to-date JSON files are shipped.

Change-Id: Ic9fae188784825ae6dc607c13b403e37290b7067
Signed-off-by: Mohammad Hasan Keramat J <ikeramat@protonmail.com>

sdm710-common: Ship cgroups.json and task_profiles.json in vendor

Google's prebuilt cgroups.json and task_profiles.json for products
launched with previous API levels only covers
ro.product.first_api_level >= 28. [1]

These devices were launched with N MR1 (API level 26), so schedtune
and task groups are completely broken. Since the system also checks
/vendor/etc for vendor profiles, make a copy of cgroups_28.json
and task_profiles_28.json and ship them to /vendor/etc. Profiles
for previous API levels are all the same anyway.

Test: boot and check /dev/stune/

[1] system/core/libprocessgroup/profiles/

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Change-Id: I33c0540ef50054fad839886f9f014cc275659e77
Signed-off-by: Mohammad Hasan Keramat J <ikeramat@protonmail.com>
2023-06-24 15:13:20 +03:00
Ultra119
baa19dc45f sdm710-common: rootdir: Try vendor.hwcomposer 2.3 too
[    4.526015] init: Command 'start vendor.hwcomposer-2-1' action=post-fs (/vendor/etc/init/hw/init.qcom.rc:85) took 0ms and failed: service vendor.hwcomposer-2-1 not found
2023-06-24 15:13:20 +03:00
Ultra119
bc4a87e62a sdm710-common: rootdir: Cleanup 2023-06-24 15:13:20 +03:00
boedhack99
a54676415e sdm710-common: rootdir: Remove useless nqnfcinfo service
- non-existing

- init: Could not start service 'nqnfcinfo' as part of class
'late_start': Cannot find '/system/vendor/bin/nqnfcinfo': No such file
or directory

Change-Id: I2ded3327ba721f629b7f5ea31d6861fed0e7c6c4
2023-06-24 15:13:20 +03:00
UtsavBalar1231
4da2677223 sdm710-common: rootdir: Add vendor prefix to rmt_storage
* As per the init.qcom.rc service defination has vendor prefix
* This Fixes:
I init    : Command 'start rmt_storage' action=boot (/vendor/etc/init/hw/init.target.rc:161) took 0ms and failed: service rmt_storage not found

Signed-off-by: pri0818 <priyanshusinghal0818@gmail.com>
2023-06-24 15:13:20 +03:00
lupesoltec
7171800754 sdm710-common: rootdir: Remove command 'rm /data/vendor/perfd/default_values'
We don't have this file on the device

* init: Command 'rm /data/vendor/perfd/default_values'
action=post-fs-data (/vendor/etc/init/hw/init.qcom.rc:303) took 1ms and
failed: unlink() failed: No such file or directory

Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
2023-06-24 15:13:20 +03:00
Arturo
83d7e13934 sdm710-common: rootdir: Remove non-existant shmbus
Fixes:
init: Command 'rm /data/vendor/radio/shmbus' action=post-fs-data
(/vendor/etc/init/hw/init.qcom.rc:278) took 0ms and failed: unlink()
failed: No such file or directory

Signed-off-by: Arturo <rtsanonynousperson@gmail.com>
2023-06-24 15:13:20 +03:00
Dede Dindin Qudsy
3e9f3507ee sdm710-common: rootdir: Rename /persist to /mnt/vendor/persist
* Since /persist is just link to /mnt/vendor/persist

* It fixes:
init: Command 'chown root system /persist' action=post-fs-data (/vendor/etc/init/hw/init.qcom.rc:285) took 0ms and failed: lchown() failed: Read-only file system
init: Command 'chmod 0771 /persist' action=post-fs-data (/vendor/etc/init/hw/init.qcom.rc:286) took 0ms and failed: fchmodat() failed: Read-only file system

Signed-off-by: Dede Dindin Qudsy <xtrymind@gmail.com>
2023-06-24 15:13:20 +03:00
pbteja100
9dab9da13d sdm710-common: rootdir: Mount cgroup
init: Command 'mkdir /acct/uid' action=early-init (/system/etc/init/hw/init.rc:30) took 1ms and failed: mkdir() failed on /acct/uid: Read-only file system
2023-06-24 15:13:20 +03:00
Ultra119
74e35f760a sdm710-common: Rootdir: Remove unexported property triggers
[    1.807676] init: /vendor/etc/init/hw/init.qcom.rc: 562: ParseTriggers() failed: unexported property trigger found: init.svc.wpa_supplicant
[    1.807736] init: /vendor/etc/init/hw/init.qcom.rc: 571: ParseTriggers() failed: unexported property trigger found: ro.bluetooth.ftm_enabled
[    1.807826] init: /vendor/etc/init/hw/init.qcom.rc: 598: ParseTriggers() failed: unexported property trigger found: persist.env.fastdorm.enabled
[    1.807940] init: /vendor/etc/init/hw/init.qcom.rc: 663: ParseTriggers() failed: unexported property trigger found: ro.data.large_tcp_window_size
[    1.808160] init: /vendor/etc/init/hw/init.qcom.rc: 809: ParseTriggers() failed: unexported property trigger found: crypto.driver.load
[    1.808191] init: /vendor/etc/init/hw/init.qcom.rc: 819: ParseTriggers() failed: unexported property trigger found: drmdiag.load
[    1.808209] init: /vendor/etc/init/hw/init.qcom.rc: 822: ParseTriggers() failed: unexported property trigger found: drmdiag.load
[    1.808357] init: /vendor/etc/init/hw/init.qcom.rc: 906: ParseTriggers() failed: unexported property trigger found: persist.ims.regmanager.mode
[    1.808381] init: /vendor/etc/init/hw/init.qcom.rc: 909: ParseTriggers() failed: unexported property trigger found: ro.data.large_tcp_window_size
[    1.808484] init: /vendor/etc/init/hw/init.qcom.rc: 956: ParseTriggers() failed: unexported property trigger found: persist.usb.hvdcp.detect
[    1.808504] init: /vendor/etc/init/hw/init.qcom.rc: 959: ParseTriggers() failed: unexported property trigger found: persist.usb.hvdcp.detect
[    1.808693] init: /vendor/etc/init/hw/init.qcom.rc: 1072: ParseTriggers() failed: unexported property trigger found: ro.logdumpd.enabled
2023-06-24 15:13:20 +03:00
Ultra119
2365925483 sdm710-common: sepolicy: Allow untrusted_app_27 to getopt zygote
avc: denied { getopt } for path="/dev/socket/usap_pool_primary" scontext=u:r:untrusted_app_27:s0:c143,c256,c512,c768 tcontext=u:r:zygote:s0 tclass=unix_stream_socket permissive=0 app=com.pluscubed.matlog
2023-06-24 15:13:20 +03:00
Nolen Johnson
df8fc5c923 sdm710-common: Simplify AVB flag logic
* AVB's `--flags 3` argument builds a disabled VBMeta with
  disabled hashtree, so no need to set both flags individually.

Change-Id: Ibe9ee322a5af58f13e76d53e18dee49451fe8838
Signed-off-by: adi8900 <adrianszymanski242@gmail.com>
2023-06-24 15:13:20 +03:00
Ultra119
954ce897e9 sdm710-common: sepolicy: Allow zygote to access unix_stream_socket
*W FinalizerDaemon: type=1400 audit(0.0:232): avc: denied { getopt } for path="/dev/socket/usap_pool_primary" scontext=u:r:system_app:s0 tcontext=u:r:zygote:s0 tclass=unix_stream_socket permissive=0
*W FinalizerDaemon: type=1400 audit(0.0:355): avc: denied { getopt } for path="/dev/socket/usap_pool_primary" scontext=u:r:platform_app:s0:c512,c768 tcontext=u:r:zygote:s0 tclass=unix_stream_socket permissive=0 app=com.motorola.dolby.dolbyui
*W FinalizerDaemon: type=1400 audit(0.0:438): avc: denied { getopt } for path="/dev/socket/usap_pool_primary" scontext=u:r:priv_app:s0:c512,c768 tcontext=u:r:zygote:s0 tclass=unix_stream_socket permissive=0 app=com.android.wallpaper
2023-06-24 15:13:20 +03:00
Ultra119
a0708391da sdm710-common: Build libtinyxml.so
F linker  : CANNOT LINK EXECUTABLE /vendor/bin/mm-pp-dpps: library libtinyxml.so not found
2023-06-24 15:13:20 +03:00
Ultra119
80eccb3178 sdm710-common: sepolicy: Allow recovery to access pstore 2023-06-24 15:13:20 +03:00
Ultra119
e6170b67a5 sdm710-common: sepolicy: Fix avc denial related to hal_graphics_composer_default
ERROR:
avc: denied { read } for name="u:object_r:bootanim_system_prop:s0" dev="tmpfs" ino=18555 scontext=u:r:hal_graphics_composer_default:s0 tcontext=u:object_r:bootanim_system_prop:s0 tclass=file
2023-06-24 15:13:20 +03:00
Ultra119
5faad4e0b1 sdm710-common: cmdline: Disable kpti
* It can also help increase performance by a lot in some scenarios.
2023-06-24 15:13:20 +03:00