818 Commits

Author SHA1 Message Date
Sayali Lokhande
865b49ea93 a71-common: init: limit discard size to 128MB
This change limits discard size for UFS(sda)
to 128MB in order to avoid long IO latency.

Change-Id: Iccf6f7561abaac13bc8c35b03f696cdf56c184ee
2025-01-13 20:24:44 +01:00
Raghavendra Rao Ananta
26190e05e4 a71-common: init: Decrease the console log level
Decrease the log level to '3', which would only log KERN_ERR
and lower, onto the console. This is to avoid false-positives
in the test cases that may emit excessive logs, ultimately
leading to a watchdog bark.

Change-Id: I7967272de8e425e93035cd937982bfb3aee19597
2025-01-13 20:24:42 +01:00
Wilson Sung
3209c0d2d4 a71-common: init: ueventd: Set permissions for KGSL sysfs node
Bug: 193434313
Change-Id: I4f2f1774735303ef16f2d625d1b8015c9f69ab0f
2025-01-13 20:24:38 +01:00
Jaegeuk Kim
68f0c0334c a71-common: init: get back to default from long-standing VM tweaks
This patch removed the old writeout policy tune which was never touched since
2009. In the meantime, most of Android devices are equipped with over 4GB DRAM
and very fast flash storages like UFS, which becomes more like desktop or
servers in 2009. So, it'd be worth to go back to use the default kernel configs.

Bug: 136483670
Bug: 137190999
Bug: 152936751
Test: check value output
Change-Id: I1ebbf9f1f27a921103db51e96a50aadd6ec0dde8
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Signed-off-by: Martin Liu <liumartin@google.com>
2025-01-13 20:24:35 +01:00
Jaegeuk Kim
fa4d69c287 a71-common: init: set readahead_size_kb=128 to system and data
This can avoid memory pressure.

Bug: 181567573
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I654c4d3bf24fa741c3fb0255431a26d8dcf5f153
2025-01-13 20:24:23 +01:00
Martin Liu
780cd2e425 a71-common: init: Set readahead_size_kb=128 to vendor, product and system_ext
To avoid memory pressure

Bug: 181567573
Test: check readahead size
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I0ef6456a96ef923fe681112560d2f49c514ff529
2025-01-13 20:16:53 +01:00
Randall Huang
7328b5a24b a71-common: init: Remove IO read_ahead_kb tune
If we set 2048KB ra value in the beginning of the
boot process, services initialized at this time would
keep 2048KB ra value even though we adjust the ra value
to 128KB after boot completion.

This may cause memory pressure.

Bug: 174700194
Signed-off-by: Randall Huang <huangrandall@google.com>
Change-Id: I97ee0ee9511eaada011f2634afd68d68cdca4570
2025-01-13 20:16:50 +01:00
Rick Yiu
8cb137e9d4 a71-common: init: boost performance by skipping EAS
Previously we found that the effect of using sched_boost is very
similar to skipping EAS. Since sched_boost is not used because of
CONFIG_SCHED_WALT not enabled, we can boost performance this way.

Bug: 119932121
Test: launch time and app launch time are better than EAS
Change-Id: Idf8026c258b6c36417c9be9b5c87f7b4bfa3f50d
2025-01-13 20:16:48 +01:00
Alexander Koskovich
394b478dfd a71-common: init: Don't mount TraceFS twice
* AOSP already mounts TraceFS in system init, so mounting it twice
   causes SEPolicy denials. See the comments in this change.

   https://android-review.googlesource.com/c/platform/system/sepolicy/+/1294195

Change-Id: Ic5d9ac2dbd36e404a93a8d48aa0ea933fd7fa701
2025-01-13 20:16:45 +01:00
Roberto Sartori
308d941efd a71-common: init: Set default Wi-Fi country code to '00'
* By default, AOSP uses the 'US' country code for wifi.
* When a SIM is present, Android can check the correct country
(using information from the SIM itself) and it can set the correct
country code.
* However, if no SIM is present or if the phone is in airplane mode,
Android will just use 'US' as country code and it will disable access to
a lot of frequencies.

To bypass this issue, set the default country code to '00': this
is the "world regulatory domain" and it contains generic settings.
When a SIM is inserted, Android will overwrite the default setting with
the correct country code.

Copy from Google:
12b500667e/init.hardware.rc (524)

Change-Id: If7537357f282c51549f754cd385bc1ab9a9a109c
Signed-off-by: Roberto Sartori <roberto.sartori.android@gmail.com>
Signed-off-by: dogpoopy <dogpoopy.dev@proton.me>
Signed-off-by: bagaskara815 <bagaskara815@gmail.com>
2025-01-13 20:16:39 +01:00
Haky86
41f3966479 a71-common: overlay: Set status bar height values from stock
Change-Id: I535f59b62d87bc30d6f42320e00a1cc628f90382
2025-01-13 20:07:19 +01:00
Yohei Yukawa
57c58fb4a6 a71-common: overlay: Migrate "rounded_corner_content_padding"
With my previous CL [1], we can override

   rounded_corner_content_padding

at the Framework resource layer rather than the SysUI resource layer.

No matter whether

  persist.sys.ime.can_render_gestural_nav_buttons

is enabled or not, there should be no observable behavior change in
this CL.

 [1]: I0c3717c0bdfc928167c6eba06247b37caabf33b9
      24d6b891f572f7be419d3acc9793ca68d062cf35

Bug: 215554582
Test: Manually verified as follows.
  1. Build aosp_coral-userdebug and flash it
  2. adb shell cmd overlay lookup android \
       android:dimen/rounded_corner_content_padding
     -> 70.0px
  3. adb shell cmd overlay lookup com.android.systemui \
       com.android.systemui:dimen/rounded_corner_content_padding
     -> 70.0px
Change-Id: I391a504482f25c17f9b67f7eb8f56f362da71ae0
2025-01-13 20:07:12 +01:00
DarkJoker360
47d2d34983 a71-common: overlay: Disable alpha transformation in animations
* Fixes animations junks and shutters.

Change-Id: I3eeb388cf6c31ac6adaa8b23080135807d1730fc
2025-01-13 20:04:57 +01:00
Adithya R
7f462361c5 a71-common: overlay: Improve pinner configuration
Change-Id: I16fa97be861882439197a8215139643340fdae6b
2025-01-13 20:04:29 +01:00
Haky86
a2d8a8401d a71-common: overlay: Refactor configs from samsung_sm8250
* Import missing configs from samsung_sm8250 [From 928aa40708].
* Sort configs alphabetically.

Change-Id: I2a63d87022c01e0cb90ebacec009231483ba35b5
2025-01-13 20:00:41 +01:00
Michael Bestas
046ccf4799 a71-common: Update display flags & packages
Required after display HAL blueprint conversion

Change-Id: Ifc4e10703d3424607b9dc8bcc8e417d1c88cc2f3
2025-01-07 01:53:48 +00:00
Haky86
be25424707 a71-common: Drop WLANMDSP_SYMLINK symlinks
* There's no /vendor/firmware/wlan/qca_cld/wlan_mac.bin on stock.

Change-Id: I41572e64ff9f5606bd17737e69d03309ae3226d7
2025-01-06 23:31:20 +01:00
Haky86
3ada88d5e7 a71-common: Do not build IMS packages
Change-Id: I770a58abcf7b4738a50335484913dde12060ad88
2025-01-06 23:13:26 +01:00
Haky86
110e75dce7 a71-common: rro_overlays: Completely drop ConnectivityOverlay and SoftapOverlay
Change-Id: I4f9553a111ec41e855796a450ca1d2dee50c1727
2025-01-06 23:11:59 +01:00
Sourajit Karmakar
635a498cd4 a71-common: rro_overlays: Completely drop aptxals framework and related blobs
* This constantly crashes potentially because of the major BT stack
  changes introduced in QRP1. We need to wait for QCOM to pick and
  adapt this changes internally.

E AndroidRuntime: java.lang.NoSuchMethodError: No virtual method isBroadcastActive()Z in class Landroid/bluetooth/BluetoothAdapter;
or its super classes (declaration of 'android.bluetooth.BluetoothAdapter' appears in /apex/com.android.btservices/javalib/framework-bluetooth.jar)

Change-Id: I8a5537122f5487a17af4ddbb6f1febd91ba20245
2025-01-06 23:11:54 +01:00
Kilian von Pflugk
c210a14364 a71-common: overlay: Enable bluetooth le peripheral mode
Change-Id: I0aceb050c1c7acb4ec4f391b08efa620725f3b9a
2025-01-06 23:11:34 +01:00
Willi Ye
5675994f5c a71-common: overlay: Remove IMS and VoLTE related configs
* Samsung's VoLTE is not working AOSP anyways.

Change-Id: I4a8cb3d9da376ae9437fd7c16078db7bacde9e62
2025-01-06 22:41:22 +01:00
Beverly
563a8f6e1a a71-common: overlay: Update lock icon padding
It should not change based on density changes.

Test: visual inspection
Bug: 264738021
Change-Id: I98f948b4a1bd7e6cc560f14e2e1b14a0bde76f01
2025-01-06 20:26:46 +01:00
kocolin
a81c3a08cb a71-common: overlay: Add some libraries to pinner list for camera
* This will help to reduce camera launch time in I/O
   busy cases.

Change-Id: I817751155e5a137ba6895049e59526bb8484e433
2025-01-06 20:23:20 +01:00
Ataberk Özen
cec4721b4e a71-common: overlay: set minimum screen brightness value to 1
* For some reason setting minimum brightness value to 0 prevents system from setting anything lower than 128, which
set via "config_screenBrightnessSettingDefault" overlay.

Change-Id: I246a1537c6d0d84f583f6d823c0a6b32bb77f6e8
2025-01-06 20:21:27 +01:00
Willi Ye
9310ee4ea1 a71-common: overlay: Disable fingerprint wakeup
Change-Id: I73cfbd99a6c2b8283523d8e01c2defe59dcc0dc2
2025-01-06 20:18:39 +01:00
TheScarastic
c37c7ee810 a71-common: overlay: Enable camera double tap power gesture
Change-Id: I3478ed41afcbd300346f1e0a91789eaf2d5b9680
2025-01-06 19:06:43 +01:00
Alexander Koskovich
354e7453b0 a71-common: Remove virtual framebuffer
* It's largely for testing purposes and it consumes
   a large amount of memory. If your hardware doesn't
   have graphics then it can be useful, which isn't the
   case for shipped devices.

Change-Id: I2348718ad3afba846498572161fa7e83dd8b7ce9
2025-01-04 23:41:16 +00:00
Alexander Koskovich
17840411d5 a71-common: Sort kernel cmdline and additional flags as a list
* This allows better readability and eases tracking further changes.

Change-Id: I3a23f7ccb238b5f0e18dfa18080f1ae8ff51109f
2025-01-05 00:35:50 +01:00
Bruno Martins
23e88c35d6 a71-common: Drop unused Adreno firmware
Change-Id: I8b5b312bf62814480081350aab84f5ed313a1200
2025-01-04 23:28:47 +01:00
Haky86
ed303fcb78 a71-common: Drop unneeded audioflacapp
Change-Id: I0d0b0900a7ba19cec9fb5231cac8cae3fea8cd37
2025-01-04 23:10:36 +01:00
Bruno Martins
1aeca47abb a71-common: Remove software OMX blobs
Default to C2 codecs from swcodec apex.

Change-Id: I32f0b0abe680c1f350268115a3cc5488a2a57ec3
2025-01-04 20:57:43 +01:00
Michael Bestas
01c6a3547b a71-common: Use AOSP default Codec2/OMX ranks
debug.stagefright.omx_default_rank=0
was used to rank OMX SW codecs lower than OMX HW codecs
but we have removed all OMX SW codecs now.

Change-Id: Idf55ec02c2c0f4d2fa73f949cffef0d820a54570
2025-01-04 20:51:19 +01:00
Michael Bestas
5154b6b1d1 a71-common: Remove media_codecs_google_c2*
AOSP codecs can be used by default and it is not necessary to include
them device side.

Change-Id: I8227b06f0466b614f12fa9008402b92461ea3dd0
2025-01-04 20:50:39 +01:00
Atakan
55667f3137 a71-common: touch: Add HighTouchPollingRate
Change-Id: I3a9629660baa874ab958ba5640951d4f62d669d7
2025-01-04 20:46:23 +01:00
Atakan
f6438bc9ce a71-common: livedisplay: Add DisplayModes
Change-Id: Ic8288ad9f4de5f7f7615ced8ac855feeac5dbfce
2025-01-04 20:17:19 +01:00
Haky86
46e8b693d7 a71-common: Switch to use.voice.path.for.pcm.voip
* Fixes routing on VoIP apps.

Change-Id: I1a8bbb858f112c45e3fbc63a550c862162836816
2025-01-04 19:49:15 +01:00
Haky86
2994d285d8 a71-common: audio: Restore stock configs
* CAF one have issues with routing on normal and VoIP calls.

Change-Id: I532edc135b9fcc97637a39720344542f9d0da2a2
2025-01-04 18:26:10 +01:00
Haky86
1eb5c0e25a a71-common: Drop additional qcom effects libs
* They are built by base_vendor.mk.

Change-Id: Ibbb6bf47c7639f4ef266e2563f2757bb699f7b4d
2024-12-30 01:57:17 +00:00
Bruno Martins
68c96b1965 a71-common: Prefer 'cache' backing storage
* Android 14 allows using /cache as scratch partition. This applies only
to non-A/B devices and provides much faster overlayfs setup.

Change-Id: I2fd13fbe3dbd9c36e569f59022a59bc9068ffa79
2024-12-30 00:49:38 +01:00
Alexander Koskovich
4db24e5030 a71-common: Drop PRODUCT_BUILD_SUPER_PARTITION
* Super image is not generated by a default 'm' build,
   but we at least want it for dist builds.

Change-Id: Ia12a5314632509fcd309d51ddf757efdc37499c3
2024-12-30 00:49:01 +01:00
Bruno Martins
3179517e7f a71-common: Drop legacy effects configuration
Change-Id: Ie29c42f54281ec9df2760612716e72ddd456b1f8
2024-12-30 00:48:41 +01:00
Bruno Martins
6eeceb2a40 a71-common: Add board requirements
Change-Id: Ia1416e3370ed250254027063bc86128411872cc5
2024-12-30 00:48:24 +01:00
Haky86
8c3fca70dd a71-common: Set persist.bluetooth.bqr.event_mask to 0
* As per stock.

Change-Id: I4014bd33e8b64b23408894e6a62fe3a6d2cd33a7
2024-12-30 00:35:20 +01:00
Alexander Martinz
2930c75276 a71-common: Try mmap path and fall back to legacy if needed
Test: CTS-V, Audio Loopback
Change-Id: Ibe60906717648de3f3859fc72001864032984039
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
2024-12-30 00:34:50 +01:00
Haky86
4b2b785e06 a71-common: Set enable_gl_backpressure to 1
* As per stock.

Change-Id: I097b1523bf02a03fc442c710ccbe348a7b96d6e3
2024-12-30 00:34:16 +01:00
Yichi Chen
8b74dece43 a71-common: Disable SDM rotator downscaler
Rotator down scaler is causing additional delays that are better
handled by SDE/GL composition.

Bug: b/73168288
Test: Launch the application from homescreen by tapping its coin, and
      measure the frame miss ratio within the maximizing window
      animation.
Result: Frame misses 11.5% -> 6.5% (full record in b/78773861)
Change-Id: If41987f64d6db8e7cad2fb2c87f25432ed4ea3db
---
2024-12-30 00:33:46 +01:00
Alessio Balsini
9ab22ecbf1 a71-common: Use FUSE passthrough by default
Enable the persist.sys.fuse.passthrough.enable flag for the device
configuration to enable the FUSE passthrough feature.
This feature has been enabled on Cuttlefish, Wembley and Redbull devices for
months and no issues have been detected yet.

Bug: 168023149
Test: 'adb shell getprop | grep persist.sys.fuse.passthrough.enable',
    ScopedStorageTest
Signed-off-by: Alessio Balsini <balsini@google.com>
Change-Id: I3f39b02af436f7e508bb70efc702565a667a051c
2024-12-30 00:33:14 +01:00
Vivekachooz
3cf46eb67e a71-common: Enable perf hint large composition cycle
Change-Id: I258fbed42de936bb059ed45839a5bb39aa4794fe
2024-12-30 00:31:09 +01:00
Haky86
b00b075527 a71-common: Drop set_touch_timer_ms prop
* It's not present on stock.

Change-Id: I8358c5bef26c5156d41ccb2bc3e640d136ae961b
2024-12-30 00:30:46 +01:00