Commit graph

4803 commits

Author SHA1 Message Date
pix106
2075a54b27 Revert "sdm660-common: DeviceSettings: Nuke thermal settings"
This reverts commit c455b70f97.
2024-01-14 17:19:23 +01:00
Sabar
964f9afff1 sdm660-common: sepolicy: Adjust sepolicy for qti thermal
Co-Authored-By: Clarence K <clarencekuiek@proton.me>
2024-01-14 17:19:23 +01:00
Sabar
cc7186d635 sdm660-common: Switch to QTI Thermal HAL 2024-01-14 17:19:23 +01:00
LuK1337
119e127a3e sdm660-common: sepolicy: isolated_app -> isolated_app_all
Change-Id: I10b09afe41b927875d1f7c37d6fc18b75ae1250a
    Signed-off-by: Immanuel Raj <iamimmanuelraj@gmail.com>
2024-01-14 17:19:23 +01:00
Sabar
eb568ef5cf sdm660-common: folio_daemon: update from wahoo android11-release
Co-Authored-By: Albert Xu <19632674+1582130940@users.noreply.github.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:19:23 +01:00
Danny Lin
ad3553044c sdm660-common: Increase 5 GHz network signal tolerance
On devices with cellular data available, I've been experiencing Wi-Fi
dropouts on 5 GHz networks where it disconnects and falls back to
cellular data around a RSSI of -77 dBm. While the Wi-Fi quality may not
be ideal at this signal level, it is still better to stay on it than
switch to cellular data because switching networks can be very
disruptive to the user.

To make matters worse, the signal tends to oscillate around -77 dBm in
my case, which causes it to oscillate between Wi-Fi and cellular data
every few seconds. This causes far more disruptions than staying on weak
Wi-Fi would.

These signal levels were measured empirically on a Pixel 5, but they
should apply to most devices. 2.4 GHz values were found to be more or
less accurate, but 5 GHz networks continued to work past the AOSP
thresholds. The iPhone 6s was also content with these signal levels and
still displayed 2 of 3 signal levels at -77 dBm.

Change-Id: I377be8374955530a5f6c084620460cac87e6a126
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:19:23 +01:00
Alcatraz323
c7ebb79d32 sdm660-common: properties: set ro.boot.wificountrycode to enable the 5g hotspot toggle
* In settings, it called "extends capatibility"
* packages/apps/Settings/src/com/android/settings/wifi/tether/WifiTetherMaximizeCompatibilityPreferenceController.java#L76 private boolean is5GhzBandSupported();

Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:19:23 +01:00
Alcatraz323
bee7b028c0 sdm660-common: follow kernel ap max count
* gSoftApMaxPeers is not set in WCNSS_qcom-cfg.ini
* As kernel define it default 32 in drivers/staging/qcacld-3.0/components/mlme/dispatcher/inc/cfg_mlme_sap.h, make system settings same

Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:19:23 +01:00
Nolen Johnson
25563901ca sdm660-common: Stop building neuralnetworks
* We never should have, slipped in with 13 bringup.

Change-Id: I7940f5144f5a082837cff359a0e9f0e558b73a61
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:19:23 +01:00
pix106
32c332215a sdm660-common: props: Set persist.vendor.qcom.bluetooth.scram.enabled=true
This reverts commit eb07a27752af9daf0b80d7b04ce4cb38d9af832c.
2024-01-14 17:19:23 +01:00
me-cafebabe
44409754f3 sdm660-common: props: Disable Bluetooth APCF Extended features
* Yet another disablement we need, to have bluetooth working properly on A13 (QPR2)

Change-Id: Id3889d6310bac6d417ff2871d5e4a8c513e77354
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:19:23 +01:00
Nolen Johnson
319eec3cee sdm660-common: Drop unecessary Bluetooth flags
* BOARD_HAVE_BLUETOOTH is uneeded.
* BOARD_HAVE_BLUETOOTH_QCOM is only important if
  you build libbt-vendor which we don't.

Change-Id: Ib0465b3c0d5138a70cee6a3c3d5f08dd7ce9aa57
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:19:23 +01:00
pix106
44626d367c Revert "sdm660-common: Ship older libhidlbase.so for fingerprint blobs"
This reverts commit 4ea2d831af3f85911055937cc837540552d6a5c8.
2024-01-14 17:19:23 +01:00
Chenyang Zhong
d19ed7ad06 sdm660-common: sepolicy: allow rild to call qtidataservices_app
avc: denied { call } for comm="DataModule-Loop" scontext=u:r:rild:s0 tcontext=u:r:qtidataservices_app:s0:c221,c256,c512,c768 tclass=binder permissive=0
Change-Id: Ibec0d6e78a823f3a90ec7e166f58dd6b2797db65
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:19:21 +01:00
Adithya R
f907d9c71f sdm660-common: Switch to full IWLAN mode
[basamaryan: This is needed for Android U to fix RIL]

Signed-off-by: basamaryan <basam.aryan@gmail.com>
Change-Id: Ie3fa610f71077b4ee2af1b4d57bd0c30b34f30fa
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:54 +01:00
Lucchetto
6a3b5a8c5c sdm660-common: Ship older libhidlbase.so for fingerprint blobs
_ZN7android8hardware7details17gBnConstructorMapE symbol have been removed on Android 13

Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:54 +01:00
pix106
fbb62f1208 sdm660-common: build libprotobuf-cpp-lite-3.9.1-vendorcompat 2024-01-14 17:18:54 +01:00
pix106
03e68bd566 sdm660-common: build libstdc++_vendor
A14 dropped libstdc++.vendor
2024-01-14 17:18:54 +01:00
adi8900
bb1d6af52a sdm660-common: Switch to Wifi service AIDL
Change-Id: I5a2864b4159b7815eff4dd2f0de02a3dabbacfa5

Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:54 +01:00
pix106
48d5c1cc61 sdm660-common: folio_daemon: adapt to Android 14
replace ALooper_pollAll with ALooper_pollOnce :

 * Removed in API 34 as ALooper_pollAll can swallow ALooper_wake calls.
 * Use ALooper_pollOnce instead.
2024-01-14 17:18:54 +01:00
pix106
f5a6784000 sdm660-common: fstab_A.qcom: mount system as /system 2024-01-14 17:18:54 +01:00
pix106
ad6391df93 sdm660-common: sepolicy: Drop iorapd_data_file type 2024-01-14 17:18:54 +01:00
pix106
30debb8651 Revert "sdm660-common: sepolicy: Allow system_server to set tethering properties"
This reverts commit 6a0750c77e.
2024-01-14 17:18:54 +01:00
Alcatraz323
c6e458cf31 sdm660-common: sepolicy: don't do anything on untrusted_app
Add untrusted_app_32
2024-01-14 17:18:54 +01:00
Prateek Sood
4ce96ccaa9 sdm660-common: init.qcom.rc: Add support for tracefs when !CONFIG_DEBUG_FS
Mount of tracefs in /sys/kernel/debug/tracing will fail when DEBUG_FS
is disabled. So, mount tracefs in /sys/kernel/tracing to still use all the
tracing abilities when CONFIG_DEBUG_FS is disabled

Change-Id: Ib37332c3f1108d7c4798717f0f009c891db72850
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
pix106
bbe91ca79d sdm660-common: drop TARGET_USES_GRALLOC1 2024-01-14 17:18:17 +01:00
pix106
a0f52469bd Revert "sdm660-common: Disable APEX compression"
This reverts commit f2cb1e7374.
2024-01-14 17:18:17 +01:00
pix106
e7e2b335c0 sdm660-common: sepolicy: drop some dontaudit 2024-01-14 17:18:17 +01:00
Alcatraz323
e3afa61429 sdm660-common: sepolicy: don't do anything on untrusted_app 2024-01-14 17:18:17 +01:00
AmeChanRain
d4034097ab sdm660-common: gps: Fix misleading indentation
* That makes clang17 happy
* Fix:
  device/xiaomi/violet/gps/android/utils/battery_listener.cpp:191:13: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
            auto r = mHealth->unlinkToDeath(this);
            ^
device/xiaomi/violet/gps/android/utils/battery_listener.cpp:189:9: note: previous statement is here
        if (mHealth != NULL)
        ^
1 warning and 1 error generated.

Change-Id: I3be1e3de45ce184c9d3dbcede57a312375a91498
Signed-off-by: Nanhumly <admin@warbler.cc>
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
basamaryan
425e2083a3 sdm660-common: gps: Fix unqualified call to std::move
Change-Id: I0568ff861b20de8c00102c7b9abe83e105f17c19
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
pix106
9ab513c6d8 sdm660-common: manifest: uprev vendor.qti.data.factory to 2.3 2024-01-14 17:18:17 +01:00
pix106
2eb7082c4b sdm660-common: manifest: uprev vendor.qti.ims.factory to 1.1 2024-01-14 17:18:17 +01:00
Sabar
6323db47b1 sdm660-common: update ant+ from from LA.QSSI.13.0.r1-10000.02-qssi.0
Co-Authored-By: Albert Xu <19632674+1582130940@users.noreply.github.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
Sabar
a039a40742 sdm660-common: update asdp, audio, csdp, listen and media from from LA.QSSI.13.0.r1-10000.02-qssi.0
Co-Authored-By: Albert Xu <19632674+1582130940@users.noreply.github.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
Sabar
41e739ce8e sdm660-common: proprietary: update CNE, DPM, IMS, QMI, RIL blobs from from LA.QSSI.13.0.r1-10000.02-qssi.0
Co-Authored-By: Albert Xu <19632674+1582130940@users.noreply.github.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
pix106
03087d82fc Revert "sdm660-common: Use garbage collector"
This reverts commit c3a7a64be5.
2024-01-14 17:18:17 +01:00
Alcatraz323
0726c25be8 sdm660-common: correct fs inlinecrypt & label metadata context
* As https://source.android.com/docs/security/features/encryption/file-based said emmc_optimized is a inlinecrypt flavor and can only be applied on emmc 5.2 device which has not been released yet
* Apparently Xiaomi 660 is launched with emmc 5.1 5 years ago and never met the 5.2 spec
* Now really enables inlinecrypt hardware by adding it in mnt_flags
* Use AOSP recommended inlinecrypt_optimized
* Use lazytime for reducing meaningless io
* Label metadata partition

(pix106) i use logdump partition for metadata, not cust

Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
Alcatraz323
7011aa62a9 sdm660-common: fstab: add formattable flag for userdata f2fs entry
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
Edwin Moquete
5c094cad89 sdm660-common: Switch to FBEv2 emmc optimised encryption
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
Daniel Rosenberg
6cf2314019 sdm660-common: Use emulated storage
Sdcardfs in deprecated

Enable Project ID Quota support on userdata.
 * These features enable wide inodes on userdata, which
   is required for project ID quotas. Wide inodes can
   only be set at MKFS time.

 * This also enables casefolding, which is required for the
   removal of SDCardFS.

Bug: 138321217
Test: Examine filesystem features for project quota and wide inodes.
Change-Id: I9c17cda2af34c6fbd73c2d90eb6b465f4939df67
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
Alcatraz323
a26b3a3dfe sdm660-common: enable auto rotation by default
* as c999a1a2b9d975610ffa359ba34cb27d016165cc has unlocked setupwizard rotation, auto rotation default as "on" is not meaningless now

Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
Alcatraz323
552671d365 sdm660-common: vendor_init: make ro.setupwizard.rotation_locked always false
* as rom with vendor_gms repo will set this as true and locks the orientation for setup
* that is not so good for tablet type device
* override this prop in vendor_init to make it always landscape available

Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
Alcatraz323
14aa292b1a sdm660-common: sepolicy: don't do anything on untrusted_app
* allowing any extra permission for "untrustred_app" domain is DANGER
* the "untrustred_app" domain rule should ONLY be defined by aosp
* kill all don't audit except getopt for untrusted_app. it's a tool to show which app are evil, let it show in audit logs

Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
pix106
bfa61a3f25 sdm660-common: Cleanup duplicated build recipe & sepolicy 2024-01-14 17:18:17 +01:00
Alcatraz323
f6eb32a92c sdm660-common: clear properties, clear BoardConfig, update surface api properties
* kill not exist debug.media.codec2
* replace NUM_FRAMEBUFFER_SURFACE_BUFFERS with properties

Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
chrisw444
aa804009da sdm660-common: configs: remove useless qti-perf configs
* we are using power-libperfmgr

Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
Jaegeuk Kim
1d9c6314b2 sdm660-common: sepolicy: Allow ioctl to zram_swap for performance
This fixes permission denied when setting F2FS_PIN_FILE.

[   46.726131] init: [libfs_mgr]Failed to set pin_file for f2fs: /data/per_boot/zram_swap: Permission denied
[   46.726151] init: [libfs_mgr]Failure of zram backing device file for '/dev/block/zram0'
[   46.726341] type=1400 audit(1601025878.312:17): avc: denied { ioctl } for comm="init" path="/data/per_boot/zram_swap" dev="dm-9" ino=4868 ioctlcmd=0xf50d scontext=u:r:init:s0 tcontext=u:object_r:per_boot_file:s0 tclass=file permissive=0

Bug: 169311165
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I982f70556284ac55d659bae6aff93b84d71e67f0
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
Mimi Wu
29909175c0 sdm660-common: sepolicy: Allow toolbox to rm -rf /data/per_boot
Bug: 147469156
Test: flash full build and find avc errors gone
Change-Id: I22706c63fb13ea2aae0cd9fe8b92edc578fd459e
Signed-off-by: Mimi Wu <mimiwu@google.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
Mimi Wu
d593cf85dd sdm660-common: sepolicy: Allow kernel to access /data/per_boot/zram_swap
type=1400 audit(1581485243.256:88): avc: denied { read } for comm="loop29" path="/data/per_boot/zram_swap" dev="dm-9" ino=9820 scontext=u:r:kernel:s0 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0

Bug: 147469156
Test: flash full build and find avc errors gone
Change-Id: I48d7684ce3b4ca1ada81011b1cab21007c758ba5
Signed-off-by: Mimi Wu <mimiwu@google.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00