Starting from Android 15 QPR2, the following error may occur on boot:
05-07 08:30:39.558 1587 1587 D AudioSystem: getService: checking for service media.audio_policy: 0x0
05-07 08:30:39.558 1587 1587 E AudioProductStrategies-JNI: AudioSystem::listAudioProductStrategies error -32
05-07 08:30:39.558 1587 1587 W AudioProductStrategy: : initializeAudioProductStrategies failed
It results in SystemUI crash when playing voice messages and some other media content:
05-07 08:31:28.497 2035 2035 E AndroidRuntime: FATAL EXCEPTION: main
05-07 08:31:28.497 2035 2035 E AndroidRuntime: Process: com.android.systemui, PID: 2035
05-07 08:31:28.497 2035 2035 E AndroidRuntime: java.lang.RuntimeException: Null or empty currentSystemRoutes. Something is wrong.
05-07 08:31:28.497 2035 2035 E AndroidRuntime: at android.media.MediaRouter2.loadSystemRoutes(MediaRouter2.java:664)
05-07 08:31:28.497 2035 2035 E AndroidRuntime: at android.media.MediaRouter2.<init>(MediaRouter2.java:643)
05-07 08:31:28.497 2035 2035 E AndroidRuntime: at android.media.MediaRouter2.findOrCreateProxyInstanceForCallingUser(MediaRouter2.java:436)
05-07 08:31:28.497 2035 2035 E AndroidRuntime: at android.media.MediaRouter2.getInstance(MediaRouter2.java:393)
05-07 08:31:28.497 2035 2035 E AndroidRuntime: at com.android.settingslib.media.RouterInfoMediaManager.<init>(go/retraceme 98c1d6b541fb48b642632a57fb1abda3fa1bc8c0067c3f3b805d743ecdfb8ef1:39)
05-07 08:31:28.497 2035 2035 E AndroidRuntime: at com.android.settingslib.media.InfoMediaManager.createInstance(go/retraceme 98c1d6b541fb48b642632a57fb1abda3fa1bc8c0067c3f3b805d743ecdfb8ef1:34)
05-07 08:31:28.497 2035 2035 E AndroidRuntime: at com.android.systemui.media.controls.domain.pipeline.MediaDeviceManager.onMediaDataLoaded(go/retraceme 98c1d6b541fb48b642632a57fb1abda3fa1bc8c0067c3f3b805d743ecdfb8ef1:120)
05-07 08:31:28.497 2035 2035 E AndroidRuntime: at com.android.systemui.media.controls.domain.pipeline.MediaDataManager$Listener.onMediaDataLoaded$default(go/retraceme 98c1d6b541fb48b642632a57fb1abda3fa1bc8c0067c3f3b805d743ecdfb8ef1:30)
05-07 08:31:28.497 2035 2035 E AndroidRuntime: at com.android.systemui.media.controls.domain.pipeline.MediaSessionBasedFilter$onMediaDataLoaded$1.run(go/retraceme 98c1d6b541fb48b642632a57fb1abda3fa1bc8c0067c3f3b805d743ecdfb8ef1:45)
05-07 08:31:28.497 2035 2035 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:991)
05-07 08:31:28.497 2035 2035 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
05-07 08:31:28.497 2035 2035 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:232)
05-07 08:31:28.497 2035 2035 E AndroidRuntime: at android.os.Looper.loop(Looper.java:317)
05-07 08:31:28.497 2035 2035 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8934)
05-07 08:31:28.497 2035 2035 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-07 08:31:28.497 2035 2035 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:591)
05-07 08:31:28.497 2035 2035 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)
Increasing the timeout a bit fixes this issue.
Change-Id: I096895c5deca3984d9a1b30cc5e15d690e4844a8
It can also help increase performance by a lot in some scenarios.
Change-Id: Ica465f586a44129047c266597316045fab762550
Signed-off-by: Kuba Wojciechowski <nullbytepl@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
When blur is enabled,
There is severe lag in; Launcher3 while scrolling apps in App drawer, Scrolling through recents and occasionally on QS pull down.
Enabling or completely removing the prop here d6233e0e7c doesn't seem to make an effect.
Explicitly disabling the "Enable GL comp backpressure" prop seems to slove the issue.
Lag & janks are gone now, even with blur.
Change-Id: Ia82d84d6ee867caa52ae93b72fbff132070bf808
Signed-off-by: helliscloser <mrumais@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Turns on `debug.sf.enable_adpf_cpu_hint` to allow SurfaceFlinger to utilize Android Dynamic Performance Framework CPU hints, improving overall UI responsiveness and frame pacing on Snapdragon devices.
Change-Id: Ia715ab89ffc8a18130904e5588f9e4b487a20faa
- All latest soc use it by default. with this cache can improve performance by reusing composition, This can result in smoother UI performance and potentially lower power consumption
- cons: It does increase memory usage because the system needs to store these results, but its not a big issue cause most devices are 12gb ver. and fine for 8gb also
Signed-off-by: Ghosuto <clash.raja10@gmail.com>
Enable comprehensive ART optimizations including VDEX and ODEX
generation for all system components to improve first-boot
performance and reduce application startup latency.
Configuration:
- WITH_DEXPREOPT := true # Global dexpreopt enable
- DEX_PREOPT_DEFAULT := generate-vdex-and-image # VDEX+ODEX gen
- WITH_DEXPREOPT_DEBUG_INFO := false # Exclude debug symbols
Results:
- Verified generation of .odex files (optimized dex)
- Verified generation of .vdex files (verification dex)
- ART images created for core system components
- First boot time significantly reduced
- Application startup latency improved
Test procedure:
1. Full system build with 'm evolution' command
2. Verified artifacts in:
- system/framework/oat/arm64/*.odex
- system/framework/oat/arm64/*.vdex
- system/app/*/oat/arm64/*.odex
- system/priv-app/*/oat/arm64/*.vdex
3. Confirmed valid ART runtime loading during boot
Signed-off-by: johnmart19 <johnivan19999@gmail.com>
Signed-off-by: Quince <quinceroms@gmail.com>
Changed “ro.ril.disable.power.collapse” value to zero.
Seems to be a debate on what value is more effective but after more reading and testing found that a value of “0” shows more improvement.
Have also added “ro.mot.eri.losalert.delay=1000 “ that helps smooth out disconnects and reconnects, saving battery.
Signed-off-by: Onelots <onelots@onelots.fr>
kernel msg:
servicemanager: Caller(pid=19920,uid=10371,sid=u:r:untrusted_app:s0:c115,c257,c512,c768) Could not find android.hardware.graphics.allocator.IAllocator/default in the VINTF manifest. No alternative instances declared in VINTF.
The following HALs in device manifest are not declared in FCM <= level 6:
android.hardware.ir.IConsumerIr/default (@1)
android.hardware.light.ILights/default (@2)
android.hardware.usb.gadget.IUsbGadget/default (@1)
vendor.lineage.health.IChargingControl/default (@2)
vendor.lineage.health.IFastCharge/default (@2)
DeviceAsWebcam is using USAGE_VIDEO_ENCODE [1] for buffers and
this results in combined usage: (VIDEO_ENCODER | CAMERA_OUTPUT).
On Qcom devices DeviceAsWebcam has red & blue colors swapped.
Originally we tried swapping HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS
with HAL_PIXEL_FORMAT_YCrCb_420_SP_VENUS in libgrallocutils,
however that inverted regular camera recording colors in some cases.
[1] d079a82ba4
Change-Id: I6c5f03fe7016f687855351c7ba15270050ea02e2
Test results from land:
* mjpeg 720P: Has a green border on top
Test results from ugglite:
* YUYV: Works for only some seconds, then get stuck
* mjpeg 720P: No video and leads to the following SMMU error
* mjpeg 1080P: Works for only some seconds, then get stuck
Test results from pine:
* YUYV: The left and right parts of image are not synced
* mjpeg 720P: No video and leads to the following SMMU error
Let's keep mjpeg 1080P... as it doesn't have serious issue and looks clear
[ 102.676956] CAM-SMMU cam_smmu_check_vaddr_in_range:319 Cannot find vaddr:0000000000000000 in SMMU. cpp uses invalid virtual address
[ 102.687715] MSM-CPP msm_cpp_iommu_fault_handler:790 Fault on identity=0x10002, frame_id=003
[ 102.687734] MSM-CPP msm_cpp_dump_addr:716 stripe 0: in 77623a00, out1 77e00000 out2 77e00000, out3 77e00000, out4 77e00000
[ 102.687741] MSM-CPP msm_cpp_dump_addr:716 stripe 1: in 77623b26, out1 77e00140 out2 77e00140, out3 77e00140, out4 77e00140
[ 102.687748] MSM-CPP msm_cpp_dump_addr:716 stripe 2: in 77623c66, out1 77e00280 out2 77e00280, out3 77e00280, out4 77e00280
[ 102.687755] MSM-CPP msm_cpp_dump_addr:716 stripe 3: in 77623da6, out1 77e003c0 out2 77e003c0, out3 77e003c0, out4 77e003c0
[ 102.687761] MSM-CPP msm_cpp_dump_addr:716 stripe 4: in 7773a100, out1 77ef0000 out2 77ef0000, out3 77ef0000, out4 77ef0000
[ 102.687768] MSM-CPP msm_cpp_dump_addr:716 stripe 5: in 7773a354, out1 77ef0280 out2 77ef0280, out3 77ef0280, out4 77ef0280
[ 102.687829] CAM-SMMU cam_smmu_check_vaddr_in_range:319 Cannot find vaddr:0000000000000000 in SMMU. cpp uses invalid virtual address
[ 102.694793] MSM-CPP msm_cpp_iommu_fault_handler:779 msm_cpp_iommu_fault_handler:779: Invalid queuelen
Change-Id: I75708c1e6372bbaffb85d0b0a7ae64f3075aa53e
* Crashing on Veux, Alioth and some other devices
* Crash:
* Earlier versions:
- E android.hardware.thermal@2.0-service.qti: ThermalHAL not initialized properly.
- E ThermalHalWrapper: Couldn't get temperatures because of HAL error: ThermalHAL not initialized properly.
* Current one:
- E ThermalManagerService$ThermalHalWrapper: Couldn't getCurrentCoolingDevices due to invalid status
- E ThermalManagerService$ThermalHalWrapper: java.lang.IllegalArgumentException: ThermalHAL not initialized properly.
When there is no client listens to some DataItemId, we will remove
the map entry. Can't access the deleted entry's iterator anymore.
Change-Id: Id64aadebf7362667fbcf0fd5191f888ed9241727
CRs-Fixed: 3886536
(cherry picked from commit 0049d459cc1772f328e29a4c6b6d129af132e7b8)
02-09 23:48:41.292 1618 2197 W ActivityManager: Unable to start service Intent { cmp=com.google.android.turboadapter/.GoogleBatteryService } U=0: not found
02-09 23:48:41.293 1618 13122 W ActivityManager: Unable to start service Intent { cmp=com.google.android.turboadapter/.GoogleBatteryService } U=0: not found
02-09 23:48:41.308 15351 15351 E ActivityThread: Service com.google.android.apps.turbo.deadline.library.BatteryFlagService has leaked ServiceConnection axe@16c727f that was originally bound here
Signed-off-by: sayann70 <sayansarkarda2@gmail.com>
01-04 20:38:40.022 3663 12914 W FileUtils: No such file /sys/class/thermal/thermal_message/sconfig for writing
01-04 20:38:40.022 3663 12914 W FileUtils: java.io.FileNotFoundException: /sys/class/thermal/thermal_message/sconfig: open failed: EACCES (Permission denied)
--
05-26 13:15:30.474 2332 3692 W FileUtils: No such file /sys/class/thermal/thermal_message/sconfig for writing
05-26 13:15:30.474 2332 3692 W FileUtils: java.io.FileNotFoundException: /sys/class/thermal/thermal_message/sconfig: open failed: ENOENT (No such file or directory)
Change-Id: Ia1e96e641dc2cedf1b6ab50dc23e703f2dd880af
Co-authored-by: bittencourtjulival <julival.bitencourt@gmail.com>