Commit graph

990 commits

Author SHA1 Message Date
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
Ultra119
73c7062eed sdm710-common: overlay: Disable Adaptive Connectivity preference
* We neither ship CTPM and nor have 5G
2023-06-24 15:13:20 +03:00
Ultra119
5491ffacd3 sdm710-common: init: Reset default schedtune boost value on boot 2023-06-24 15:13:20 +03:00
Ultra119
ebdfcc0f22 sdm710-common: rootdir: Boost performance during bootup
* inspired from google pixels
 * speeds up boot by ~1-2s
2023-06-24 15:13:20 +03:00
Ultra119
4d875c79a2 sdm710-common: sepolicy: Extend untrusted_app access to battery/power supply sysfs
W/changed_service(7624): type=1400 audit(0.0:2724): avc: denied { search } for name="battery" dev="sysfs" ino=48984 scontext=u:r:untrusted_app:s0:c206,c256,c512,c768 tcontext=u:object_r:sysfs_battery_supply:s0
2023-06-24 15:13:20 +03:00
9c7b234791
Revert "sdm710-common: Add 3.0 and 4.0 IAllocator entries toandroid.hardware.graphics.allocator I hwservicemanager: getTransport: Cannot find entry android.hardware.graphics.allocator@4.0::IAllocator/default in either framework or device VINTF manifest. I hwservicemanager: getTransport: Cannot find entry android.hardware.graphics.allocator@3.0::IAllocator/default in either framework or device VINTF manifest."
This reverts commit 3a8ed3b3f9244c876bc3db82e7137fa96f420969.
2023-06-21 14:24:46 +03:00
Volodymyr Zhdanov
5de0a2a331
sdm660-common: device: Disable configstore usage
* it's finally deprecated in R
* ship disable_configstore because we have API level less than 29
2023-06-21 14:24:46 +03:00
Danny Trunk
084ba656ad
sdm710-common: Move ueventd.qcom.rc to /vendor/etc.
This is the preferred location as of Android 12.

Change-Id: Ia7f2b995b870e3c857638c3149ebd18f144b5a95
2023-06-21 14:24:45 +03:00
Cyber Knight
f8e389999a
sdm710-common: Build KProfiles
- Inherit KProfiles.
- Address sepolicy.
- Define sysfs_kprofiles as a domain.
- Fix permission of nodes relevant to KProfiles at boot.

Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
2023-06-21 14:24:45 +03:00
Alice Kuo
fc8d340024
sdm710-common: Disable LE audio related profiles for sdm710
Bug: 231671426
Test: build
Change-Id: I85b7f023c03a7a2e603af94e88196c10a16fe4ec
Merged-In: I85b7f023c03a7a2e603af94e88196c10a16fe4ec
(cherry picked from commit 9b57be4d7f57e1d117c65fac1e2dc60dbc59cb4b)
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2023-06-17 17:04:04 +03:00
Sal Savage
a68d521487
sdm710-common: Use the ?= operator so BT properties can be overridden
System properties set with the "=" operator cannot be overriden. This
device is used elsewhere in the system and some of the properties need
to be overridden. The "?=" operator will use the assigned value if no
other values are assigned elsewhere, allowing for overrides.

Bug: 230638462
Test: adb shell getprop | grep bluetooth
Change-Id: I12dfdf4830e041b2c4e50eb8136ac0fb7146cc8e
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2023-06-17 17:04:04 +03:00
Sal Savage
c7b191de6f
sdm710-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: Chenyang Zhong <zhongcy95@gmail.com>
2023-06-17 17:04:03 +03:00
Etienne Ruffieux
9513de19a9
sdm710-common: Added new vendors for Bluetooth config migration
* Modify bluetooth.profile.asha.central to
  bluetooth.profile.asha.central.enabled
* Enable bluetooth profiles with product.prop

Tag: #feature
Test: manual
Bug: 211570675
Change-Id: Id74ec5e1b30f21c534c35b212a2fb297e9d591fb
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2023-06-17 17:04:03 +03:00
Ultra119
54c7973c6f
sdm710-common: Update compatibility matrix to support imsFactory v2.0
Add entry for vendor.qti.ims.factory@2.0
2023-06-17 17:04:03 +03:00
Jun Wang
e27dcec0c3
sdm710-common: perf: Enable the pre-rendering feature
* Pre-rendering feature can improve FPS and reduce the janks
   in scrolling cases.

Change-Id: I2152d0a1a8f9e337cb0355c8874e72f0f3c2cb46
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: PainKiller3 <ninadpatil100@gmail.com>
2023-06-17 17:04:03 +03:00
LuK1337
d017491c15
sdm710-common: wifi: Enable DFS channel scanning in P2P search
* Fixes P2P when connected to 5GHz access point.

Change-Id: Ie94aa06e9b6be9345688a1e10caa9a62b180eb30
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: PainKiller3 <ninadpatil100@gmail.com>
2023-06-17 17:04:02 +03:00
Ultra119
3b1af7dad7
sdm710-common: Remove prebuilt kernel support completely 2023-06-17 17:04:02 +03:00
Victor
2cd0c221fb
sdm710-common: overlay: disable touch-sensibility 2023-06-17 17:04:02 +03:00
Michael W
149920e6f6
sdm710-common: overlay: Disable DiscoveryService & NearbyMessagingService
* Affects wifi speed

Change-Id: I12fcd4972d6b8ddb0cf9d5e0a54fb72af24947e2
2023-06-17 17:04:01 +03:00
ghostrider-reborn
c9521c1f15
sdm710-common: overlay: Enable display color control 2023-06-17 17:04:01 +03:00
Jesse Chan
afc6743f5d
sdm710-common: overlay: Set fast charging indicator threshold to 10.8W
We no longer call 7.5W charging "fast charging" nowadays

Change-Id: I3a11f50f89933bd44b70d9f30a6e74a3d77abb25
2023-06-17 17:04:01 +03:00
anirudhgupta109
7add6d3662
sdm710-common: overlay: Enable status bar burn in protection 2023-06-17 17:04:01 +03:00
Stealth1226
c8b284e030
sdm710-common: adapt status bar height overlay for 12L 2023-06-17 17:04:00 +03:00
jhonboy121
db33aba52e
sdm710-common: overlay: Add system app whitelist for applock
Signed-off-by: anandhan07 <anandhasayanan007jb@gmail.com>
2023-06-17 17:04:00 +03:00
Ultra119
3413c2072e
sdm710-common: overlay: Decrease time in milliseconds for accepting a new brightness level.
This is used for debouncing the light sensor.  Different constants are used to debounce the light sensor when adapting to brighter or darker environments.  This parameter controls how quickly brightness changes occur in response to an observed change in light level that exceeds thehysteresis threshold.
2023-06-17 17:04:00 +03:00
emufan4568
1f9b588765
sdm710-common: Allow wcnss_service to run shell
* avc: denied { execute_no_trans } for path="/vendor/bin/sh" dev="sda16" ino=247 scontext=u:r:wcnss_service:s0 tcontext=u:object_r:vendor_shell_exec:s0 tclass=file permissive=1
2023-06-17 17:04:00 +03:00
LuK1337
ccc55945a0
sdm710-common: Add script to update sha1sums of kanged blobs
Change-Id: Id2e8cfb8d3b6f65f69c91a89bacd615fdcc45753
2023-06-17 17:03:59 +03:00
srfarias
a82e5132bb
sdm710-common: add nodes to hide Magisk in banking apps
Some banking apps read the file /proc/net/unix to
find out whether things like Magisk are installed/running.

To prevent that, chmod it 440.
This file isn't needed by any other process when boot is finished.

I've tested this and banking apps that did not work before
and recognized Magisk being installed now don't recognize
that and work just fine.

Signed-off-by: aswin7469 <aswinas@pixysos.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
Signed-off-by: Master <mhmdeveloperofficial@gmail.com>
Change-Id: I8f4c3ce55fe206786018ffba5e3301c52158a844
2023-06-17 17:03:59 +03:00