Open
Conversation
Ref: 0329145 Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Test: 1. Create a virtual display from your launcher app. 2. Turn display off by pressing the power button. 3. Run: `adb shell dumpsys power | grep -i mHalAutoSuspendModeEnabled` 4. You should see mHalAutoSuspendModeEnabled=true Change-Id: I773ba8db10973bc3ea3442f5922ba5672a74fbad Signed-off-by: mukesh22584 <mks22584@gmail.com>
* dynamic refresh rate devices keep switching display configuration for changing refresh rate and ends up spamming log way too much [ghostrider-reborn] - DisplayManagerService -> DisplayDeviceRepository in android 12 Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com> Change-Id: I57c19a0042083a86e86f2c210288904f6dc87e2c
If DDS is currently not set or invalid, fallback to the first active sub ID if available. This is inline with mobile data QS tile behaviour and can avoid some scenarios where mobile data toggle disappears from the internet dialog. Change-Id: If402feebe2ce01d2f6296acc4bd69594287c0c8e Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Large screen header is used on landscape mode and without this in landscape the status icons don't reappear even after the privacy chip goes away. Change-Id: I206a5d829584f872fbef1739244912d9b5b37813 Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
crash: 10-16 14:49:40.890 1663 1663 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main 10-16 14:49:40.890 1663 1663 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke interface method 'android.content.SharedPreferences$Editor android.content.SharedPreferences.edit()' on a null object reference 10-16 14:49:40.890 1663 1663 E AndroidRuntime: at com.android.server.display.AutoAODService$SettingsObserver.onChange(AutoAODService.java:220) 10-16 14:49:40.890 1663 1663 E AndroidRuntime: at android.database.ContentObserver.onChange(ContentObserver.java:184) 10-16 14:49:40.890 1663 1663 E AndroidRuntime: at android.database.ContentObserver.onChange(ContentObserver.java:202) 10-16 14:49:40.890 1663 1663 E AndroidRuntime: at android.database.ContentObserver.onChange(ContentObserver.java:224) 10-16 14:49:40.890 1663 1663 E AndroidRuntime: at android.database.ContentObserver.onChange(ContentObserver.java:236) 10-16 14:49:40.890 1663 1663 E AndroidRuntime: at android.database.ContentObserver.lambda$dispatchChange$1(ContentObserver.java:332) 10-16 14:49:40.890 1663 1663 E AndroidRuntime: at android.database.ContentObserver.$r8$lambda$_30FqRqKC3pUku8T3BsVPQAFotM(Unknown Source:0) 10-16 14:49:40.890 1663 1663 E AndroidRuntime: at android.database.ContentObserver$$ExternalSyntheticLambda1.run(D8$$SyntheticClass:0) 10-16 14:49:40.890 1663 1663 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:959) 10-16 14:49:40.890 1663 1663 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:100) 10-16 14:49:40.890 1663 1663 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:232) 10-16 14:49:40.890 1663 1663 E AndroidRuntime: at android.os.Looper.loop(Looper.java:317) 10-16 14:49:40.890 1663 1663 E AndroidRuntime: at com.android.server.SystemServer.run(SystemServer.java:981) 10-16 14:49:40.890 1663 1663 E AndroidRuntime: at com.android.server.SystemServer.main(SystemServer.java:665) 10-16 14:49:40.890 1663 1663 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 10-16 14:49:40.890 1663 1663 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580) 10-16 14:49:40.890 1663 1663 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:864) Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Other (system) apps can use this to perform specific tasks, such as for DOZE state.
Change-Id: I2c62767a60db58e3999de65fbf506e5cc137e28e
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* instead of trigerring errnoexception, check if the file or directory exists first , otherwise perform a early return so we can skip the following exception below 12-16 13:05:46.592 1438 1438 E BootReceiver: Could not open /sys/kernel/tracing/instances/bootreceiver/trace_pipe 12-16 13:05:46.592 1438 1438 E BootReceiver: android.system.ErrnoException: open failed: ENOENT (No such file or directory) 12-16 13:05:46.592 1438 1438 E BootReceiver: at libcore.io.Linux.open(Native Method) 12-16 13:05:46.592 1438 1438 E BootReceiver: at libcore.io.ForwardingOs.open(ForwardingOs.java:563) 12-16 13:05:46.592 1438 1438 E BootReceiver: at libcore.io.BlockGuardOs.open(BlockGuardOs.java:274) 12-16 13:05:46.592 1438 1438 E BootReceiver: at android.system.Os.open(Os.java:494) 12-16 13:05:46.592 1438 1438 E BootReceiver: at com.android.server.BootReceiver.onReceive(BootReceiver.java:162) 12-16 13:05:46.592 1438 1438 E BootReceiver: at android.app.ActivityThread.handleReceiver(ActivityThread.java:4336) 12-16 13:05:46.592 1438 1438 E BootReceiver: at android.app.ActivityThread.-$$Nest$mhandleReceiver(Unknown Source:0) 12-16 13:05:46.592 1438 1438 E BootReceiver: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2154) 12-16 13:05:46.592 1438 1438 E BootReceiver: at android.os.Handler.dispatchMessage(Handler.java:106) 12-16 13:05:46.592 1438 1438 E BootReceiver: at android.os.Looper.loopOnce(Looper.java:201) 12-16 13:05:46.592 1438 1438 E BootReceiver: at android.os.Looper.loop(Looper.java:288) 12-16 13:05:46.592 1438 1438 E BootReceiver: at com.android.server.SystemServer.run(SystemServer.java:982) 12-16 13:05:46.592 1438 1438 E BootReceiver: at com.android.server.SystemServer.main(SystemServer.java:667) 12-16 13:05:46.592 1438 1438 E BootReceiver: at java.lang.reflect.Method.invoke(Native Method) 12-16 13:05:46.592 1438 1438 E BootReceiver: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:553) 12-16 13:05:46.592 1438 1438 E BootReceiver: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924) Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: Ia9864a45551e969abaccd351e8b6d65e21d99165 Signed-off-by: Pulkit077 <pulkitagarwal2k1@gmail.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
some UI stress (or sleep on UI thread) causes a crash from DESTROY_TIMEOUT_MSG. The steps that crash the app are: 1. build two activities ,such as A and B; 2. A start B; 3. B(oncreate) start A use FLAG_ACTIVITY_CLEAR_TOP; 4. B(oncreate) stall UI thread (Thread.sleep, heavy task) 5. crash tring to handleLaunchActivity or handleResumeActivity Bug: 128469605 Test: manual - write an app to jump between two activities, then Thread.sleep(); Change-Id: I4027dfc0cf3878c12964cabee54ad82bc108d79c Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: Ic19fe142be51fad4bbf7e29168c6e33c9ab1809b Signed-off-by: rmp22 <195054967+rmp22@users.noreply.github.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Fixes notch hide overlay on some devices
commit 5481d59996b34cda1cb6b680af7510fee7b53b42
Author: daniml3 <danimoral1001@gmail.com>
Date: Tue Mar 9 08:11:13 2021 +0100
SystemUI: check if the cutout views array is null before using it
Signed-off-by: daniml3 <danimoral1001@gmail.com>
Change-Id: I1316c61280dadc30a86f2ae72559437a61dd4616
Co-authored-by: daniml3 <danimoral1001@gmail.com>
Change-Id: I5a049099ab375833f1e5ebbda49dc36c3c0b0a68
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Based on: ezio84/abc_frameworks_base@62537d0 [neobuddy89] * Code clean up, optimization and disabled by default. * Adapted for Android 11 [jhenrique09] * Remove check for keyguard if advanced restart is enabled Change-Id: I668b36669905bbc664e3a3a4244f5235dde11881 Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Bug: 303823820 Test:adb shell device_config put activity_manager max_cached_processes 2147483647;adb reboot Change-Id: I3f18b56386cd9cf597a574d61d28be4049bbf646 Signed-off-by: huyuxin <huyuxin@xiaomi.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* No QCOM devices has value above 128. Let's prevent devices misusing device config or overlay to modify no. of cached processes. * Shorter time to kill empty app processes. Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* Pulled from CAF Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Persistent app compaction broken, fix by only do oom adj throttle check for APP compact type CRs-Fixed: 3453069 Change-Id: I2dc0ea5aca0b36fd09e71942fdd0f3eafdac2eec Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
CRs-Fixed: 3858822 Change-Id: I6f06176d8e5e40a5fd2afb53b9417005f2e26b2a Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
During system compaction, mark File pages as MADVISE_PAGEOUT instead of MADVISE_COLD. This will drop clean pages and swap-out file pages mapped as private. This improves the bootup free memory. CRs-Fixed: 3365547 Change-Id: I1311126d8fd551c48599e160360122c05cc8ea02 Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
[neobuddy89: Drop experimental stuff.] Change-Id: I67d917630fbbba8c72bb94d0cd96ee2de1d71165 Signed-off-by: rmp22 <195054967+rmp22@users.noreply.github.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: I27277ae924f3563ee56a323804ba41e64e317731 Signed-off-by: rmp22 <195054967+rmp22@users.noreply.github.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: If1ed8a9a02c190ba9fb056c093c21b8b91c85161 Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* Make it safer with proc lock block. * Exclude important foreground states. * Compact all non-zygote processes while at it. Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* Reduced from 10 min to 5 min. This functionality provides better UX. * Add log. Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* Reduced from 10 minutes to 2 minutes. Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: I4f77325c14d1bc78ed12c965537b8a1e1c9aae6d Signed-off-by: rmp22 <195054967+rmp22@users.noreply.github.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* Do not run this on screen-on path - as it is bit CPU intensive. Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
The default behaviour is toggling the flashlight since we use secondaryClick as default onClick behaviour on small tiles.
Squashed:
From: NurKeinNeid <nurkeinneid@derpfest.org>
Date: Fri, 19 Sep 2025 01:42:17 +0200
Subject: SystemUI: Fix flashlight strength control detection
Change detection logic from 'mMaxLevel > mDefaultLevel' to 'mMaxLevel > 1'
to properly detect devices where max and default levels are equal.
Fixes flashlight strength control not working on some devices.
Signed-off-by: NurKeinNeid <nurkeinneid@derpfest.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
From: Abhay Singh Gill <abhaygill017@gmail.com>
Date: Fri, 19 Sep 2025 18:26:10 +0530
Subject: SystemUI: Extend flashlight strength logic to flashlight controller
Previously the flashlight strength was only applied when toggling it from the QS tile, now it works from other SystemUI components as well.
Signed-off-by: Abhay Singh Gill <abhaygill017@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
From: Abhay Singh Gill <abhaygill017@gmail.com>
Date: Fri, 19 Sep 2025 22:22:13 +0530
Subject: SystemUI: Allow long click on flashlight tile
Would be useful for adjusting flashlight strength when the tile is small/ icon only.
Signed-off-by: Abhay Singh Gill <abhaygill017@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
From: ShevT <evgeny.shishkov@gmail.com>
Date: Tue, 23 Sep 2025 14:10:54 +0300
Subject: SystemUI: Changing the logic of the flashlight tile
Single tap - on/off
Long tap - flashlight strength dialog
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
From: John Galt <johngaltfirstrun@gmail.com>
Date: Mon, 29 Dec 2025 14:02:57 -0500
Subject: SystemUI: make flashlight tile use real levels
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
From: John Galt <johngaltfirstrun@gmail.com>
Date: Tue, 30 Dec 2025 09:51:15 -0500
Subject: SystemUI: make flashlight slider use primitive haptics if supported
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: I8da1d9c80cd2209a60cde524aa58bd251610244b
Signed-off-by: Abhay Singh Gill <abhaygill017@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: I9227b6b5512d813eb7b2ceab5dee7e54e6b95f92 Signed-off-by: Ghosuto <clash.raja10@gmail.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.