Skip to content

Conversation

@Jcfunk
Copy link

@Jcfunk Jcfunk commented Jan 25, 2017

If a cdma phone has LTE it should not report the LTE as GSM if LteOnCdma
is set. This solves an issue with CDMA devices which bounce between GSM
and CDMA phone state when on LTE.

Change-Id: I13e14fe69a6a04452f95f937ed5c9f69f46ef8d6

Signed-off-by: Jcfunk [email protected]

If a cdma phone has LTE it should not report the LTE as GSM if LteOnCdma
is set. This solves an issue with CDMA devices which bounce between GSM
and CDMA phone state when on LTE.

Change-Id: I13e14fe69a6a04452f95f937ed5c9f69f46ef8d6

Signed-off-by: Jcfunk <[email protected]>
@ciwrl
Copy link

ciwrl commented Feb 4, 2017

@ciwrl ciwrl closed this Feb 4, 2017
Rashed97 pushed a commit to Rashed97/android_frameworks_base that referenced this pull request Dec 24, 2017
AKA the pixel navbar

This is a combination of 8 commits.
This is the 1st commit message:
Pixel Navbar, reverse engineered from smali.

Notes:
- This is forcing the Pixel Home button on people,
  and it looks ugly with the other nav buttons being hollow

- There MAY still be a few fixes yet to be found in this code
  because it WAS a big file to RE from smali. I have yet to find
  any, but time is the best tester.

- Shoutout to @bigrushdog for providing a decompiled form used
  to verify the smali and as a guideline for the more obsure
  smali sections. It was a big help.

- Tagging myself here to see adoption rate. @USA-RedDragon

PureNexus Edits: By: @BeansTown106
*squashed with the landscape fix
*cleaned up some of the if statements and removed the unused constants
*removed the renamed icons, this was unnecessary as we will vectorize pixel icons

Change-Id: Ia45fc89e4f1518fcabc379c4790d1955a026daee

This is the commit message LineageOS#2:

Vectorize all navbar icons (pixel theme) fix landscape bug
*the only thing navbar related that is not vectorized is the lightsout/carmode/menu icons

This is the commit message LineageOS#3:

Pixel navbar: allow disabling based on config

Create new config_allowOpaLayout bool to allow themers to disable the Pixel Navbar

Fixes the dreaded "yellow" home button

Change-Id: I69ad9a0d87317c9d9732b08b33ceabd096afee77

This is the commit message LineageOS#4:

Pixel Navbar animation toggle [1/2]

*made to work with the exposure for themers to disable navbar animation

Change-Id: Icb057edaf0c49933d6a882df3af627a076a14561

This is the commit message LineageOS#5:

Pixel navbar: remove this. and OpaLayout references, cleanup

Since it's all on the same file, I don't think they are needed (?)
Replace some hardcoded int values with meaningful variables, like MotionEvent

Change-Id: I4d7b2fe57d3e1bf2fa034bf81efb11d37a5ebfba

This is the commit message LineageOS#6:

Pixel navbar: Fix Home button FC

Change-Id: I7c463999a76ee02f1f5af615ddcff3c05ca4e4f2

This is the commit message LineageOS#7:

Reload Pixel Home Animation without reboot

Change-Id: I4d7b2fe57d3e1bf2fa034bf81efb11d37a5ebfba
Rashed97 pushed a commit to Rashed97/android_frameworks_base that referenced this pull request Jan 5, 2018
AKA the pixel navbar

This is a combination of 8 commits.
This is the 1st commit message:
Pixel Navbar, reverse engineered from smali.

Notes:
- This is forcing the Pixel Home button on people,
  and it looks ugly with the other nav buttons being hollow

- There MAY still be a few fixes yet to be found in this code
  because it WAS a big file to RE from smali. I have yet to find
  any, but time is the best tester.

- Shoutout to @bigrushdog for providing a decompiled form used
  to verify the smali and as a guideline for the more obsure
  smali sections. It was a big help.

- Tagging myself here to see adoption rate. @USA-RedDragon

PureNexus Edits: By: @BeansTown106
*squashed with the landscape fix
*cleaned up some of the if statements and removed the unused constants
*removed the renamed icons, this was unnecessary as we will vectorize pixel icons

Change-Id: Ia45fc89e4f1518fcabc379c4790d1955a026daee

This is the commit message LineageOS#2:

Vectorize all navbar icons (pixel theme) fix landscape bug
*the only thing navbar related that is not vectorized is the lightsout/carmode/menu icons

This is the commit message LineageOS#3:

Pixel navbar: allow disabling based on config

Create new config_allowOpaLayout bool to allow themers to disable the Pixel Navbar

Fixes the dreaded "yellow" home button

Change-Id: I69ad9a0d87317c9d9732b08b33ceabd096afee77

This is the commit message LineageOS#4:

Pixel Navbar animation toggle [1/2]

*made to work with the exposure for themers to disable navbar animation

Change-Id: Icb057edaf0c49933d6a882df3af627a076a14561

This is the commit message LineageOS#5:

Pixel navbar: remove this. and OpaLayout references, cleanup

Since it's all on the same file, I don't think they are needed (?)
Replace some hardcoded int values with meaningful variables, like MotionEvent

Change-Id: I4d7b2fe57d3e1bf2fa034bf81efb11d37a5ebfba

This is the commit message LineageOS#6:

Pixel navbar: Fix Home button FC

Change-Id: I7c463999a76ee02f1f5af615ddcff3c05ca4e4f2

This is the commit message LineageOS#7:

Reload Pixel Home Animation without reboot

Change-Id: I4d7b2fe57d3e1bf2fa034bf81efb11d37a5ebfba
Rashed97 pushed a commit to Rashed97/android_frameworks_base that referenced this pull request Mar 30, 2018
AKA the pixel navbar

This is a combination of 8 commits.
This is the 1st commit message:
Pixel Navbar, reverse engineered from smali.

Notes:
- This is forcing the Pixel Home button on people,
  and it looks ugly with the other nav buttons being hollow

- There MAY still be a few fixes yet to be found in this code
  because it WAS a big file to RE from smali. I have yet to find
  any, but time is the best tester.

- Shoutout to @bigrushdog for providing a decompiled form used
  to verify the smali and as a guideline for the more obsure
  smali sections. It was a big help.

- Tagging myself here to see adoption rate. @USA-RedDragon

PureNexus Edits: By: @BeansTown106
*squashed with the landscape fix
*cleaned up some of the if statements and removed the unused constants
*removed the renamed icons, this was unnecessary as we will vectorize pixel icons

Change-Id: Ia45fc89e4f1518fcabc379c4790d1955a026daee

This is the commit message LineageOS#2:

Vectorize all navbar icons (pixel theme) fix landscape bug
*the only thing navbar related that is not vectorized is the lightsout/carmode/menu icons

This is the commit message LineageOS#3:

Pixel navbar: allow disabling based on config

Create new config_allowOpaLayout bool to allow themers to disable the Pixel Navbar

Fixes the dreaded "yellow" home button

Change-Id: I69ad9a0d87317c9d9732b08b33ceabd096afee77

This is the commit message LineageOS#4:

Pixel Navbar animation toggle [1/2]

*made to work with the exposure for themers to disable navbar animation

Change-Id: Icb057edaf0c49933d6a882df3af627a076a14561

This is the commit message LineageOS#5:

Pixel navbar: remove this. and OpaLayout references, cleanup

Since it's all on the same file, I don't think they are needed (?)
Replace some hardcoded int values with meaningful variables, like MotionEvent

Change-Id: I4d7b2fe57d3e1bf2fa034bf81efb11d37a5ebfba

This is the commit message LineageOS#6:

Pixel navbar: Fix Home button FC

Change-Id: I7c463999a76ee02f1f5af615ddcff3c05ca4e4f2

This is the commit message LineageOS#7:

Reload Pixel Home Animation without reboot

Change-Id: I4d7b2fe57d3e1bf2fa034bf81efb11d37a5ebfba
Koloses pushed a commit to GalaxyFork/android_frameworks_base that referenced this pull request May 29, 2018
If mSurface has already been released in another thread,
this would result in a null-pointer dereference in
SurfaceSession contructor i.e. in nativeCreateScoped().

7757  7757 F DEBUG   : pid: 1402, tid: 1583, name: android.anim  >>> system_server <<<
7757  7757 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xd0
7757  7757 F DEBUG   : Cause: null pointer dereference
... <trimmed>
7757  7757 F DEBUG   : backtrace:
7757  7757 F DEBUG   :     #00 pc 000000000007fe58  /system/lib64/libgui.so (android::Surface::getIGraphicBufferProducer() const)
7757  7757 F DEBUG   :     LineageOS#1 pc 00000000000ff000  /system/lib64/libandroid_runtime.so (android::nativeCreateScoped(_JNIEnv*, _jclass*, long)+52)
7757  7757 F DEBUG   :     LineageOS#2 pc 0000000000ac8968  /system/framework/arm64/boot-framework.oat (offset 0x614000) (android.content.res.XmlBlock.nativeCreateParseState [DEDUPED]+152)
7757  7757 F DEBUG   :     LineageOS#3 pc 0000000001327d24  /system/framework/arm64/boot-framework.oat (offset 0x614000) (android.view.SurfaceSession.<init>+52)
7757  7757 F DEBUG   :     LineageOS#4 pc 00000000014b7320  /system/framework/oat/arm64/services.odex (offset 0x5be000) (com.android.server.wm.TaskSnapshotSurface.drawSizeMismatchSnapshot+128)
7757  7757 F DEBUG   :     LineageOS#5 pc 00000000014b784c  /system/framework/oat/arm64/services.odex (offset 0x5be000) (com.android.server.wm.TaskSnapshotSurface.drawSnapshot+188)
7757  7757 F DEBUG   :     LineageOS#6 pc 00000000014b6f2c  /system/framework/oat/arm64/services.odex (offset 0x5be000) (com.android.server.wm.TaskSnapshotSurface.create+2684)
7757  7757 F DEBUG   :     LineageOS#7 pc 00000000014b0158  /system/framework/oat/arm64/services.odex (offset 0x5be000) (com.android.server.wm.TaskSnapshotController.createStartingSurface+72)
7757  7757 F DEBUG   :     LineageOS#8 pc 00000000014a5ca0  /system/framework/oat/arm64/services.odex (offset 0x5be000) (com.android.server.wm.SnapshotStartingData.createStartingSurface+96)
7757  7757 F DEBUG   :     LineageOS#9 pc 000000000144b030  /system/framework/oat/arm64/services.odex (offset 0x5be000) (com.android.server.wm.AppWindowContainerController.lambda$-com_android_server_wm_AppWindowContainerController_4735+496)
... <trimmed>

Change-Id: I41268c7680d3885c85fc3b682d0eba7415674062

Signed-off-by: Adesh15 <[email protected]>
i81u812 pushed a commit to i81u812/android_frameworks_base that referenced this pull request Jul 30, 2018
If mSurface has already been released in another thread,
this would result in a null-pointer dereference in
SurfaceSession contructor i.e. in nativeCreateScoped().

7757  7757 F DEBUG   : pid: 1402, tid: 1583, name: android.anim  >>> system_server <<<
7757  7757 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xd0
7757  7757 F DEBUG   : Cause: null pointer dereference
... <trimmed>
7757  7757 F DEBUG   : backtrace:
7757  7757 F DEBUG   :     #00 pc 000000000007fe58  /system/lib64/libgui.so (android::Surface::getIGraphicBufferProducer() const)
7757  7757 F DEBUG   :     LineageOS#1 pc 00000000000ff000  /system/lib64/libandroid_runtime.so (android::nativeCreateScoped(_JNIEnv*, _jclass*, long)+52)
7757  7757 F DEBUG   :     LineageOS#2 pc 0000000000ac8968  /system/framework/arm64/boot-framework.oat (offset 0x614000) (android.content.res.XmlBlock.nativeCreateParseState [DEDUPED]+152)
7757  7757 F DEBUG   :     LineageOS#3 pc 0000000001327d24  /system/framework/arm64/boot-framework.oat (offset 0x614000) (android.view.SurfaceSession.<init>+52)
7757  7757 F DEBUG   :     LineageOS#4 pc 00000000014b7320  /system/framework/oat/arm64/services.odex (offset 0x5be000) (com.android.server.wm.TaskSnapshotSurface.drawSizeMismatchSnapshot+128)
7757  7757 F DEBUG   :     LineageOS#5 pc 00000000014b784c  /system/framework/oat/arm64/services.odex (offset 0x5be000) (com.android.server.wm.TaskSnapshotSurface.drawSnapshot+188)
7757  7757 F DEBUG   :     LineageOS#6 pc 00000000014b6f2c  /system/framework/oat/arm64/services.odex (offset 0x5be000) (com.android.server.wm.TaskSnapshotSurface.create+2684)
7757  7757 F DEBUG   :     LineageOS#7 pc 00000000014b0158  /system/framework/oat/arm64/services.odex (offset 0x5be000) (com.android.server.wm.TaskSnapshotController.createStartingSurface+72)
7757  7757 F DEBUG   :     LineageOS#8 pc 00000000014a5ca0  /system/framework/oat/arm64/services.odex (offset 0x5be000) (com.android.server.wm.SnapshotStartingData.createStartingSurface+96)
7757  7757 F DEBUG   :     LineageOS#9 pc 000000000144b030  /system/framework/oat/arm64/services.odex (offset 0x5be000) (com.android.server.wm.AppWindowContainerController.lambda$-com_android_server_wm_AppWindowContainerController_4735+496)
... <trimmed>

Change-Id: I41268c7680d3885c85fc3b682d0eba7415674062

Signed-off-by: Pranav Vashi <[email protected]>
i81u812 pushed a commit to i81u812/android_frameworks_base that referenced this pull request Jul 30, 2018
AKA the pixel navbar

This is a combination of 8 commits.
This is the 1st commit message:
Pixel Navbar, reverse engineered from smali.

Notes:
- This is forcing the Pixel Home button on people,
  and it looks ugly with the other nav buttons being hollow

- There MAY still be a few fixes yet to be found in this code
  because it WAS a big file to RE from smali. I have yet to find
  any, but time is the best tester.

- Shoutout to @bigrushdog for providing a decompiled form used
  to verify the smali and as a guideline for the more obsure
  smali sections. It was a big help.

- Tagging myself here to see adoption rate. @USA-RedDragon

PureNexus Edits: By: @BeansTown106
*squashed with the landscape fix
*cleaned up some of the if statements and removed the unused constants
*removed the renamed icons, this was unnecessary as we will vectorize pixel icons

Change-Id: Ia45fc89e4f1518fcabc379c4790d1955a026daee

This is the commit message LineageOS#2:

Vectorize all navbar icons (pixel theme) fix landscape bug
*the only thing navbar related that is not vectorized is the lightsout/carmode/menu icons

This is the commit message LineageOS#3:

Pixel navbar: allow disabling based on config

Create new config_allowOpaLayout bool to allow themers to disable the Pixel Navbar

Fixes the dreaded "yellow" home button

Change-Id: I69ad9a0d87317c9d9732b08b33ceabd096afee77

This is the commit message LineageOS#4:

Pixel Navbar animation toggle [1/2]

*made to work with the exposure for themers to disable navbar animation

Change-Id: Icb057edaf0c49933d6a882df3af627a076a14561

This is the commit message LineageOS#5:

Pixel navbar: remove this. and OpaLayout references, cleanup

Since it's all on the same file, I don't think they are needed (?)
Replace some hardcoded int values with meaningful variables, like MotionEvent

Change-Id: I4d7b2fe57d3e1bf2fa034bf81efb11d37a5ebfba

This is the commit message LineageOS#6:

Pixel navbar: Fix Home button FC

Change-Id: I7c463999a76ee02f1f5af615ddcff3c05ca4e4f2

This is the commit message LineageOS#7:

Reload Pixel Home Animation without reboot

Change-Id: I4d7b2fe57d3e1bf2fa034bf81efb11d37a5ebfba
Signed-off-by: Erfan Abdi <[email protected]>
Rashed97 pushed a commit to Rashed97/android_frameworks_base that referenced this pull request Aug 4, 2018
AKA the pixel navbar

This is a combination of 8 commits.
This is the 1st commit message:
Pixel Navbar, reverse engineered from smali.

Notes:
- This is forcing the Pixel Home button on people,
  and it looks ugly with the other nav buttons being hollow

- There MAY still be a few fixes yet to be found in this code
  because it WAS a big file to RE from smali. I have yet to find
  any, but time is the best tester.

- Shoutout to @bigrushdog for providing a decompiled form used
  to verify the smali and as a guideline for the more obsure
  smali sections. It was a big help.

- Tagging myself here to see adoption rate. @USA-RedDragon

PureNexus Edits: By: @BeansTown106
*squashed with the landscape fix
*cleaned up some of the if statements and removed the unused constants
*removed the renamed icons, this was unnecessary as we will vectorize pixel icons

Change-Id: Ia45fc89e4f1518fcabc379c4790d1955a026daee

This is the commit message LineageOS#2:

Vectorize all navbar icons (pixel theme) fix landscape bug
*the only thing navbar related that is not vectorized is the lightsout/carmode/menu icons

This is the commit message LineageOS#3:

Pixel navbar: allow disabling based on config

Create new config_allowOpaLayout bool to allow themers to disable the Pixel Navbar

Fixes the dreaded "yellow" home button

Change-Id: I69ad9a0d87317c9d9732b08b33ceabd096afee77

This is the commit message LineageOS#4:

Pixel Navbar animation toggle [1/2]

*made to work with the exposure for themers to disable navbar animation

Change-Id: Icb057edaf0c49933d6a882df3af627a076a14561

This is the commit message LineageOS#5:

Pixel navbar: remove this. and OpaLayout references, cleanup

Since it's all on the same file, I don't think they are needed (?)
Replace some hardcoded int values with meaningful variables, like MotionEvent

Change-Id: I4d7b2fe57d3e1bf2fa034bf81efb11d37a5ebfba

This is the commit message LineageOS#6:

Pixel navbar: Fix Home button FC

Change-Id: I7c463999a76ee02f1f5af615ddcff3c05ca4e4f2

This is the commit message LineageOS#7:

Reload Pixel Home Animation without reboot

Change-Id: I4d7b2fe57d3e1bf2fa034bf81efb11d37a5ebfba
ChronoMonochrome pushed a commit to CustomROMs/android_frameworks_base that referenced this pull request Sep 13, 2018
If mSurface has already been released in another thread,
this would result in a null-pointer dereference in
SurfaceSession contructor i.e. in nativeCreateScoped().

7757  7757 F DEBUG   : pid: 1402, tid: 1583, name: android.anim  >>> system_server <<<
7757  7757 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xd0
7757  7757 F DEBUG   : Cause: null pointer dereference
... <trimmed>
7757  7757 F DEBUG   : backtrace:
7757  7757 F DEBUG   :     #00 pc 000000000007fe58  /system/lib64/libgui.so (android::Surface::getIGraphicBufferProducer() const)
7757  7757 F DEBUG   :     LineageOS#1 pc 00000000000ff000  /system/lib64/libandroid_runtime.so (android::nativeCreateScoped(_JNIEnv*, _jclass*, long)+52)
7757  7757 F DEBUG   :     LineageOS#2 pc 0000000000ac8968  /system/framework/arm64/boot-framework.oat (offset 0x614000) (android.content.res.XmlBlock.nativeCreateParseState [DEDUPED]+152)
7757  7757 F DEBUG   :     LineageOS#3 pc 0000000001327d24  /system/framework/arm64/boot-framework.oat (offset 0x614000) (android.view.SurfaceSession.<init>+52)
7757  7757 F DEBUG   :     LineageOS#4 pc 00000000014b7320  /system/framework/oat/arm64/services.odex (offset 0x5be000) (com.android.server.wm.TaskSnapshotSurface.drawSizeMismatchSnapshot+128)
7757  7757 F DEBUG   :     LineageOS#5 pc 00000000014b784c  /system/framework/oat/arm64/services.odex (offset 0x5be000) (com.android.server.wm.TaskSnapshotSurface.drawSnapshot+188)
7757  7757 F DEBUG   :     LineageOS#6 pc 00000000014b6f2c  /system/framework/oat/arm64/services.odex (offset 0x5be000) (com.android.server.wm.TaskSnapshotSurface.create+2684)
7757  7757 F DEBUG   :     LineageOS#7 pc 00000000014b0158  /system/framework/oat/arm64/services.odex (offset 0x5be000) (com.android.server.wm.TaskSnapshotController.createStartingSurface+72)
7757  7757 F DEBUG   :     LineageOS#8 pc 00000000014a5ca0  /system/framework/oat/arm64/services.odex (offset 0x5be000) (com.android.server.wm.SnapshotStartingData.createStartingSurface+96)
7757  7757 F DEBUG   :     LineageOS#9 pc 000000000144b030  /system/framework/oat/arm64/services.odex (offset 0x5be000) (com.android.server.wm.AppWindowContainerController.lambda$-com_android_server_wm_AppWindowContainerController_4735+496)
... <trimmed>

Bug: 74129970

Change-Id: I41268c7680d3885c85fc3b682d0eba7415674062
villarleg pushed a commit to villarleg/android_frameworks_base that referenced this pull request Dec 18, 2018
11-13 20:00:00.527 10645 10645 I crash_dump64: performing dump of process 1467 (target tid = 10124)
11-13 20:00:00.538 10645 10645 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-13 20:00:00.539 10645 10645 F DEBUG   : Build fingerprint: 'HONOR/BKL-L09/HWBKL:8.0.0/HUAWEIBKL-L09S/172(C432):user/release-keys'
11-13 20:00:00.539 10645 10645 F DEBUG   : Revision: '0'
11-13 20:00:00.539 10645 10645 F DEBUG   : ABI: 'arm64'
11-13 20:00:00.539 10645 10645 F DEBUG   : pid: 1467, tid: 10124, name: Visualizer  >>> com.android.systemui <<<
11-13 20:00:00.539 10645 10645 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
11-13 20:00:00.539 10645 10645 F DEBUG   : Abort message: 'FORTIFY: pthread_mutex_lock called on a destroyed mutex (0x7c633df0f4)'
11-13 20:00:00.539 10645 10645 F DEBUG   :     x0  0000000000000000  x1  000000000000278c  x2  0000000000000006  x3  0000000000000008
11-13 20:00:00.539 10645 10645 F DEBUG   :     x4  0000000000008080  x5  0000000000008080  x6  0000000000008080  x7  0000000000000038
11-13 20:00:00.539 10645 10645 F DEBUG   :     x8  0000000000000083  x9  40ef6d32d31c854a  x10 0000000000000000  x11 fffffffc7ffffbdf
11-13 20:00:00.539 10645 10645 F DEBUG   :     x12 0000000000000001  x13 000000005beb1f30  x14 0005a1f49bc3a000  x15 0000112f9e154a12
11-13 20:00:00.539 10645 10645 F DEBUG   :     x16 0000007cffb6f2c8  x17 0000007cffaad0d0  x18 00000000fffbfffe  x19 00000000000005bb
11-13 20:00:00.539 10645 10645 F DEBUG   :     x20 000000000000278c  x21 0000007d000d96d0  x22 0000000000000001  x23 0000000000000035
11-13 20:00:00.539 10645 10645 F DEBUG   :     x24 0000007d000c6fc8  x25 0000007d000c7680  x26 0000007c52a14588  x27 0000000000000000
11-13 20:00:00.539 10645 10645 F DEBUG   :     x28 0000000000000005  x29 0000007c52a141a0
11-13 20:00:00.539 10645 10645 F DEBUG   :     sp  0000007c52a14160  lr  0000007cffaa1bfc  pc  0000007cffaa1c24
11-13 20:00:00.564 10645 10645 F DEBUG   :
11-13 20:00:00.564 10645 10645 F DEBUG   : backtrace:
11-13 20:00:00.564 10645 10645 F DEBUG   :     #00 pc 0000000000021c24  /system/lib64/libc.so (abort+116)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#1 pc 0000000000082f04  /system/lib64/libc.so (__fortify_fatal(char const*, ...)+120)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#2 pc 0000000000082600  /system/lib64/libc.so (HandleUsingDestroyedMutex(pthread_mutex_t*, char const*)+52)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#3 pc 00000000000824b4  /system/lib64/libc.so (pthread_mutex_lock+228)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#4 pc 00000000000a8c54  /system/lib64/libmedia.so (android::Visualizer::periodicCapture()+56)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#5 pc 00000000000a8aac  /system/lib64/libmedia.so (android::Visualizer::CaptureThread::threadLoop()+88)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#6 pc 000000000000f9d8  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+280)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#7 pc 00000000000b4980  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+140)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#8 pc 0000000000081938  /system/lib64/libc.so (__pthread_start(void*)+36)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#9 pc 0000000000023478  /system/lib64/libc.so (__start_thread+68)
Change-Id: Ic7f9788df8a38084c3b150eaa22d67f869085ca2

Signed-off-by: Pranav Vashi <[email protected]>
partcyborg pushed a commit to partcyborg/android_frameworks_base-lineage that referenced this pull request Jul 31, 2019
11-13 20:00:00.527 10645 10645 I crash_dump64: performing dump of process 1467 (target tid = 10124)
11-13 20:00:00.538 10645 10645 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-13 20:00:00.539 10645 10645 F DEBUG   : Build fingerprint: 'HONOR/BKL-L09/HWBKL:8.0.0/HUAWEIBKL-L09S/172(C432):user/release-keys'
11-13 20:00:00.539 10645 10645 F DEBUG   : Revision: '0'
11-13 20:00:00.539 10645 10645 F DEBUG   : ABI: 'arm64'
11-13 20:00:00.539 10645 10645 F DEBUG   : pid: 1467, tid: 10124, name: Visualizer  >>> com.android.systemui <<<
11-13 20:00:00.539 10645 10645 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
11-13 20:00:00.539 10645 10645 F DEBUG   : Abort message: 'FORTIFY: pthread_mutex_lock called on a destroyed mutex (0x7c633df0f4)'
11-13 20:00:00.539 10645 10645 F DEBUG   :     x0  0000000000000000  x1  000000000000278c  x2  0000000000000006  x3  0000000000000008
11-13 20:00:00.539 10645 10645 F DEBUG   :     x4  0000000000008080  x5  0000000000008080  x6  0000000000008080  x7  0000000000000038
11-13 20:00:00.539 10645 10645 F DEBUG   :     x8  0000000000000083  x9  40ef6d32d31c854a  x10 0000000000000000  x11 fffffffc7ffffbdf
11-13 20:00:00.539 10645 10645 F DEBUG   :     x12 0000000000000001  x13 000000005beb1f30  x14 0005a1f49bc3a000  x15 0000112f9e154a12
11-13 20:00:00.539 10645 10645 F DEBUG   :     x16 0000007cffb6f2c8  x17 0000007cffaad0d0  x18 00000000fffbfffe  x19 00000000000005bb
11-13 20:00:00.539 10645 10645 F DEBUG   :     x20 000000000000278c  x21 0000007d000d96d0  x22 0000000000000001  x23 0000000000000035
11-13 20:00:00.539 10645 10645 F DEBUG   :     x24 0000007d000c6fc8  x25 0000007d000c7680  x26 0000007c52a14588  x27 0000000000000000
11-13 20:00:00.539 10645 10645 F DEBUG   :     x28 0000000000000005  x29 0000007c52a141a0
11-13 20:00:00.539 10645 10645 F DEBUG   :     sp  0000007c52a14160  lr  0000007cffaa1bfc  pc  0000007cffaa1c24
11-13 20:00:00.564 10645 10645 F DEBUG   : 
11-13 20:00:00.564 10645 10645 F DEBUG   : backtrace:
11-13 20:00:00.564 10645 10645 F DEBUG   :     #00 pc 0000000000021c24  /system/lib64/libc.so (abort+116)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#1 pc 0000000000082f04  /system/lib64/libc.so (__fortify_fatal(char const*, ...)+120)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#2 pc 0000000000082600  /system/lib64/libc.so (HandleUsingDestroyedMutex(pthread_mutex_t*, char const*)+52)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#3 pc 00000000000824b4  /system/lib64/libc.so (pthread_mutex_lock+228)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#4 pc 00000000000a8c54  /system/lib64/libmedia.so (android::Visualizer::periodicCapture()+56)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#5 pc 00000000000a8aac  /system/lib64/libmedia.so (android::Visualizer::CaptureThread::threadLoop()+88)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#6 pc 000000000000f9d8  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+280)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#7 pc 00000000000b4980  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+140)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#8 pc 0000000000081938  /system/lib64/libc.so (__pthread_start(void*)+36)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#9 pc 0000000000023478  /system/lib64/libc.so (__start_thread+68)
Change-Id: Ic7f9788df8a38084c3b150eaa22d67f869085ca2
pengus77 pushed a commit to pengus77/frameworks_base that referenced this pull request Sep 30, 2019
11-13 20:00:00.527 10645 10645 I crash_dump64: performing dump of process 1467 (target tid = 10124)
11-13 20:00:00.538 10645 10645 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-13 20:00:00.539 10645 10645 F DEBUG   : Build fingerprint: 'HONOR/BKL-L09/HWBKL:8.0.0/HUAWEIBKL-L09S/172(C432):user/release-keys'
11-13 20:00:00.539 10645 10645 F DEBUG   : Revision: '0'
11-13 20:00:00.539 10645 10645 F DEBUG   : ABI: 'arm64'
11-13 20:00:00.539 10645 10645 F DEBUG   : pid: 1467, tid: 10124, name: Visualizer  >>> com.android.systemui <<<
11-13 20:00:00.539 10645 10645 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
11-13 20:00:00.539 10645 10645 F DEBUG   : Abort message: 'FORTIFY: pthread_mutex_lock called on a destroyed mutex (0x7c633df0f4)'
11-13 20:00:00.539 10645 10645 F DEBUG   :     x0  0000000000000000  x1  000000000000278c  x2  0000000000000006  x3  0000000000000008
11-13 20:00:00.539 10645 10645 F DEBUG   :     x4  0000000000008080  x5  0000000000008080  x6  0000000000008080  x7  0000000000000038
11-13 20:00:00.539 10645 10645 F DEBUG   :     x8  0000000000000083  x9  40ef6d32d31c854a  x10 0000000000000000  x11 fffffffc7ffffbdf
11-13 20:00:00.539 10645 10645 F DEBUG   :     x12 0000000000000001  x13 000000005beb1f30  x14 0005a1f49bc3a000  x15 0000112f9e154a12
11-13 20:00:00.539 10645 10645 F DEBUG   :     x16 0000007cffb6f2c8  x17 0000007cffaad0d0  x18 00000000fffbfffe  x19 00000000000005bb
11-13 20:00:00.539 10645 10645 F DEBUG   :     x20 000000000000278c  x21 0000007d000d96d0  x22 0000000000000001  x23 0000000000000035
11-13 20:00:00.539 10645 10645 F DEBUG   :     x24 0000007d000c6fc8  x25 0000007d000c7680  x26 0000007c52a14588  x27 0000000000000000
11-13 20:00:00.539 10645 10645 F DEBUG   :     x28 0000000000000005  x29 0000007c52a141a0
11-13 20:00:00.539 10645 10645 F DEBUG   :     sp  0000007c52a14160  lr  0000007cffaa1bfc  pc  0000007cffaa1c24
11-13 20:00:00.564 10645 10645 F DEBUG   : 
11-13 20:00:00.564 10645 10645 F DEBUG   : backtrace:
11-13 20:00:00.564 10645 10645 F DEBUG   :     #00 pc 0000000000021c24  /system/lib64/libc.so (abort+116)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#1 pc 0000000000082f04  /system/lib64/libc.so (__fortify_fatal(char const*, ...)+120)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#2 pc 0000000000082600  /system/lib64/libc.so (HandleUsingDestroyedMutex(pthread_mutex_t*, char const*)+52)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#3 pc 00000000000824b4  /system/lib64/libc.so (pthread_mutex_lock+228)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#4 pc 00000000000a8c54  /system/lib64/libmedia.so (android::Visualizer::periodicCapture()+56)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#5 pc 00000000000a8aac  /system/lib64/libmedia.so (android::Visualizer::CaptureThread::threadLoop()+88)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#6 pc 000000000000f9d8  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+280)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#7 pc 00000000000b4980  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+140)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#8 pc 0000000000081938  /system/lib64/libc.so (__pthread_start(void*)+36)
11-13 20:00:00.564 10645 10645 F DEBUG   :     LineageOS#9 pc 0000000000023478  /system/lib64/libc.so (__start_thread+68)
Change-Id: Ic7f9788df8a38084c3b150eaa22d67f869085ca2
krasCGQ pushed a commit to kud-workspace/android_frameworks_base that referenced this pull request Aug 20, 2020
FaN11X added a commit to FaN11X/android_frameworks_base that referenced this pull request May 12, 2021
althafvly pushed a commit to LOS-M8916/android_frameworks_base that referenced this pull request Jun 26, 2021
althafvly pushed a commit to LOS-M8916/android_frameworks_base that referenced this pull request Jun 26, 2021
BatteryMeterView: fix logcat warning spam
MJPollard pushed a commit to AltairROM/android_frameworks_base that referenced this pull request May 9, 2023
* i thought this was fixed by dropping HB and freetype modifications but a user reported a sysui crash without logcat nor context so im using my old copy

* addr2line was pointing the NPD [1] to a new instance of SkMemoryStream (if im not mistaken)
minaripenguin@minaripenguin:~/bugreport-oriole-TQ2A.230405.003.E1-2023-04-13-09-02-17/FS/data/tombstones$ addr2line -f -e '/mnt/xxxx/xxxxx/out/target/product/oriole/system/lib/libhwui.so' 000000000024a61c
_ZN14SkMemoryStreamC2E5sk_spI6SkDataE

* to temporarily aid the crash issue, until we find and fix the font that causes the crash, silently swallow the errors since the rom shouldn't booting at all if current font in use has invalid data.

[1]
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
RisingOS Version: '1.0-20230412-UNOFFICIAL-oriole'
Build fingerprint: 'google/oriole/oriole:13/TQ2A.230305.008.E1/9677224:user/release-keys'
Revision: 'MP1.0'
ABI: 'arm64'
Timestamp: 2023-04-13 00:41:15.026955853+0800
Process uptime: 216s
Cmdline: com.android.systemui
pid: 17576, tid: 17613, name: RenderThread  >>> com.android.systemui <<<
uid: 10403
tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000010
Cause: null pointer dereference
    x0  b4000074cc5b7e60  x1  00000072ca63fa20  x2  00000072ca63fa20  x3  0000000000000001
    x4  00000072ca63efa0  x5  000000747c59e4bc  x6  00005a120000edab  x7  0000906f00008280
    x8  0000000000000000  x9  56bd015d3f6fc8f6  x10 0000000000000000  x11 000000000000001a
    x12 0000000000000000  x13 b4000074ecbba980  x14 0000000000000033  x15 0000000000000019
    x16 00000075f74ae6a8  x17 00000075fdb0fec0  x18 00000072ca470000  x19 b4000074cc5b7e60
    x20 b4000074cc5b7e88  x21 b4000074cc5b7e60  x22 b40000737c76ae48  x23 b40000737c76ae30
    x24 7ffffffffffffff8  x25 1fffffffffffffff  x26 00000000ffffffff  x27 b4000073cc52f898
    x28 00000072ca547000  x29 00000072ca63f7e0
    lr  00000075eec487e0  sp  00000072ca63f7e0  pc  00000075eec4a61c  pst 0000000020001000

backtrace:
      #00 pc 000000000024a61c  /system/lib64/libhwui.so (android::uirenderer::AnimatorManager::pushStaging()+108) (BuildId: f37109e40765e94e2634e351e2ba0981)
      LineageOS#1 pc 00000000002487dc  /system/lib64/libhwui.so (android::uirenderer::AnimationContext::runRemainingAnimations(android::uirenderer::TreeInfo&)+44) (BuildId: f37109e40765e94e2634e351e2ba0981)
      LineageOS#2 pc 000000000025b2a4  /system/lib64/libhwui.so (android::uirenderer::AnimationContextBridge::runRemainingAnimations(android::uirenderer::TreeInfo&)+36) (BuildId: f37109e40765e94e2634e351e2ba0981)
      LineageOS#3 pc 000000000027fdcc  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::prepareTree(android::uirenderer::TreeInfo&, long*, long, android::uirenderer::RenderNode*)+348) (BuildId: f37109e40765e94e2634e351e2ba0981)
      LineageOS#4 pc 0000000000282bdc  /system/lib64/libhwui.so (std::__1::__function::__func<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0, std::__1::allocator<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0>, void ()>::operator()() (.c1671e787f244890c877724752face20)+364) (BuildId: f37109e40765e94e2634e351e2ba0981)
      LineageOS#5 pc 0000000000272c34  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+580) (BuildId: f37109e40765e94e2634e351e2ba0981)
      LineageOS#6 pc 0000000000292e9c  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+412) (BuildId: f37109e40765e94e2634e351e2ba0981)
      LineageOS#7 pc 0000000000013220  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+416) (BuildId: 536947a6fb111c99b28090cdd95ee772)
      LineageOS#8 pc 00000000000bc1cc  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204) (BuildId: 7c802f36645db769f96376c94049c9cf)
      LineageOS#9 pc 0000000000055020  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 7c802f36645db769f96376c94049c9cf)

Signed-off-by: minaripenguin <[email protected]>
Signed-off-by: Pranav Vashi <[email protected]>
MJPollard pushed a commit to AltairROM/android_frameworks_base that referenced this pull request May 9, 2023
There are two _different_ definitions of the NativeFamilyBuilder class,
one in jni/FontFamily.cpp and the other in jni/fonts/FontFamily.cpp,
violating the one-definition rule. Make them local by moving to an
anonymous namespace.

This is an issue in non-optimized builds where ~NativeFamilyBuilder
isn't inlined, so the wrong destructor ends up being called:
```
(gdb) bt
[...]
 LineageOS#3  0x0000007292c44a8c in std::__1::vector<minikin::FontVariation,
         std::__1::allocator<minikin::FontVariation> >::~vector ()
 LineageOS#4  0x0000007292c44a54 in android::NativeFamilyBuilder::~NativeFamilyBuilder ()
 LineageOS#8  0x0000007292c64cec in android::FontFamily_Builder_build ()
```
(note that the struct used by FontFamily_Builder_build() doesn't have
the vector<minikin::FontVariation> field)

Test: add "-O0" to hwui cflags and verify that system_server no longer
      hangs on startup
Signed-off-by: Tomislav Novak <[email protected]>
Change-Id: Ic071a7c00a9b2f632b6f56877f54c6a58eb38965
Signed-off-by: Pranav Vashi <[email protected]>
MJPollard pushed a commit to AltairROM/android_frameworks_base that referenced this pull request May 9, 2023
Fix NULL deref

```
Cmdline: com.android.systemui
pid: 2530, tid: 2589, name: RenderThread  >>> com.android.systemui <<<
uid: 10293
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000010
Cause: null pointer dereference
    x0  b400007cbe7b8ff0  x1  0000007bf78fb9f0  x2  b400007c8c184898  x3  0000000000000001
    x4  0000007bf78faf80  x5  00000000007f5687  x6  000000001991ade0  x7  0000000000000010
    x8  0000000000000000  x9  43490de4ff9b0700  x10 b400007cbe7b8c00  x11 0000000000000002
    x12 0000000000000000  x13 000000003f800000  x14 000000003f800000  x15 0000000000000000
    x16 0000007d71724720  x17 0000007d57ccdb00  x18 0000007bf7568000  x19 b400007cbe7b8ff0
    x20 b400007cbe7b9018  x21 b400007cbe7b8ff0  x22 b400007cbe280010  x23 b400007cbe280000
    x24 7ffffffffffffff8  x25 1fffffffffffffff  x26 00000000ffffffff  x27 b400007c7e1b0da8
    x28 0000007bf78fc000  x29 0000007bf78fb7a0
    lr  0000007d67aaf330  sp  0000007bf78fb7a0  pc  0000007d67ab1590  pst 0000000020001000

backtrace:
      #00 pc 0000000000253590  /system/lib64/libhwui.so (android::uirenderer::AnimatorManager::pushStaging()+112)
      LineageOS#1 pc 000000000025132c  /system/lib64/libhwui.so (android::uirenderer::AnimationContext::runRemainingAnimations(android::uirenderer::TreeInfo&)+44)
      LineageOS#2 pc 0000000000267664  /system/lib64/libhwui.so (android::uirenderer::AnimationContextBridge::runRemainingAnimations(android::uirenderer::TreeInfo&)+36)
      LineageOS#3 pc 0000000000292720  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::prepareTree(android::uirenderer::TreeInfo&, long*, long, android::uirenderer::RenderNode*)+352)
      LineageOS#4 pc 00000000002959c8  /system/lib64/libhwui.so (std::__1::__function::__func<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0, std::__1::allocator<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0>, void ()>::operator()() (.c1671e787f244890c877724752face20)+360)
      LineageOS#5 pc 0000000000282ce4  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+1108)
      LineageOS#6 pc 00000000002a808c  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+556)
      LineageOS#7 pc 0000000000013a14  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+436)
      LineageOS#8 pc 00000000000d07ac  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
      LineageOS#9 pc 00000000000567f0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
```

Signed-off-by: Pranav Vashi <[email protected]>
MJPollard pushed a commit to AltairROM/android_frameworks_base that referenced this pull request May 9, 2023
* i thought this was fixed by dropping HB and freetype modifications but a user reported a sysui crash without logcat nor context so im using my old copy

* addr2line was pointing the NPD [1] to a new instance of SkMemoryStream (if im not mistaken)
minaripenguin@minaripenguin:~/bugreport-oriole-TQ2A.230405.003.E1-2023-04-13-09-02-17/FS/data/tombstones$ addr2line -f -e '/mnt/xxxx/xxxxx/out/target/product/oriole/system/lib/libhwui.so' 000000000024a61c
_ZN14SkMemoryStreamC2E5sk_spI6SkDataE

* to temporarily aid the crash issue, until we find and fix the font that causes the crash, silently swallow the errors since the rom shouldn't booting at all if current font in use has invalid data.

[1]
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
RisingOS Version: '1.0-20230412-UNOFFICIAL-oriole'
Build fingerprint: 'google/oriole/oriole:13/TQ2A.230305.008.E1/9677224:user/release-keys'
Revision: 'MP1.0'
ABI: 'arm64'
Timestamp: 2023-04-13 00:41:15.026955853+0800
Process uptime: 216s
Cmdline: com.android.systemui
pid: 17576, tid: 17613, name: RenderThread  >>> com.android.systemui <<<
uid: 10403
tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000010
Cause: null pointer dereference
    x0  b4000074cc5b7e60  x1  00000072ca63fa20  x2  00000072ca63fa20  x3  0000000000000001
    x4  00000072ca63efa0  x5  000000747c59e4bc  x6  00005a120000edab  x7  0000906f00008280
    x8  0000000000000000  x9  56bd015d3f6fc8f6  x10 0000000000000000  x11 000000000000001a
    x12 0000000000000000  x13 b4000074ecbba980  x14 0000000000000033  x15 0000000000000019
    x16 00000075f74ae6a8  x17 00000075fdb0fec0  x18 00000072ca470000  x19 b4000074cc5b7e60
    x20 b4000074cc5b7e88  x21 b4000074cc5b7e60  x22 b40000737c76ae48  x23 b40000737c76ae30
    x24 7ffffffffffffff8  x25 1fffffffffffffff  x26 00000000ffffffff  x27 b4000073cc52f898
    x28 00000072ca547000  x29 00000072ca63f7e0
    lr  00000075eec487e0  sp  00000072ca63f7e0  pc  00000075eec4a61c  pst 0000000020001000

backtrace:
      #00 pc 000000000024a61c  /system/lib64/libhwui.so (android::uirenderer::AnimatorManager::pushStaging()+108) (BuildId: f37109e40765e94e2634e351e2ba0981)
      LineageOS#1 pc 00000000002487dc  /system/lib64/libhwui.so (android::uirenderer::AnimationContext::runRemainingAnimations(android::uirenderer::TreeInfo&)+44) (BuildId: f37109e40765e94e2634e351e2ba0981)
      LineageOS#2 pc 000000000025b2a4  /system/lib64/libhwui.so (android::uirenderer::AnimationContextBridge::runRemainingAnimations(android::uirenderer::TreeInfo&)+36) (BuildId: f37109e40765e94e2634e351e2ba0981)
      LineageOS#3 pc 000000000027fdcc  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::prepareTree(android::uirenderer::TreeInfo&, long*, long, android::uirenderer::RenderNode*)+348) (BuildId: f37109e40765e94e2634e351e2ba0981)
      LineageOS#4 pc 0000000000282bdc  /system/lib64/libhwui.so (std::__1::__function::__func<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0, std::__1::allocator<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0>, void ()>::operator()() (.c1671e787f244890c877724752face20)+364) (BuildId: f37109e40765e94e2634e351e2ba0981)
      LineageOS#5 pc 0000000000272c34  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+580) (BuildId: f37109e40765e94e2634e351e2ba0981)
      LineageOS#6 pc 0000000000292e9c  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+412) (BuildId: f37109e40765e94e2634e351e2ba0981)
      LineageOS#7 pc 0000000000013220  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+416) (BuildId: 536947a6fb111c99b28090cdd95ee772)
      LineageOS#8 pc 00000000000bc1cc  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204) (BuildId: 7c802f36645db769f96376c94049c9cf)
      LineageOS#9 pc 0000000000055020  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 7c802f36645db769f96376c94049c9cf)

Signed-off-by: minaripenguin <[email protected]>
Signed-off-by: Pranav Vashi <[email protected]>
MJPollard pushed a commit to AltairROM/android_frameworks_base that referenced this pull request May 9, 2023
There are two _different_ definitions of the NativeFamilyBuilder class,
one in jni/FontFamily.cpp and the other in jni/fonts/FontFamily.cpp,
violating the one-definition rule. Make them local by moving to an
anonymous namespace.

This is an issue in non-optimized builds where ~NativeFamilyBuilder
isn't inlined, so the wrong destructor ends up being called:
```
(gdb) bt
[...]
 LineageOS#3  0x0000007292c44a8c in std::__1::vector<minikin::FontVariation,
         std::__1::allocator<minikin::FontVariation> >::~vector ()
 LineageOS#4  0x0000007292c44a54 in android::NativeFamilyBuilder::~NativeFamilyBuilder ()
 LineageOS#8  0x0000007292c64cec in android::FontFamily_Builder_build ()
```
(note that the struct used by FontFamily_Builder_build() doesn't have
the vector<minikin::FontVariation> field)

Test: add "-O0" to hwui cflags and verify that system_server no longer
      hangs on startup
Signed-off-by: Tomislav Novak <[email protected]>
Change-Id: Ic071a7c00a9b2f632b6f56877f54c6a58eb38965
Signed-off-by: Pranav Vashi <[email protected]>
MJPollard pushed a commit to AltairROM/android_frameworks_base that referenced this pull request May 9, 2023
Fix NULL deref

```
Cmdline: com.android.systemui
pid: 2530, tid: 2589, name: RenderThread  >>> com.android.systemui <<<
uid: 10293
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000010
Cause: null pointer dereference
    x0  b400007cbe7b8ff0  x1  0000007bf78fb9f0  x2  b400007c8c184898  x3  0000000000000001
    x4  0000007bf78faf80  x5  00000000007f5687  x6  000000001991ade0  x7  0000000000000010
    x8  0000000000000000  x9  43490de4ff9b0700  x10 b400007cbe7b8c00  x11 0000000000000002
    x12 0000000000000000  x13 000000003f800000  x14 000000003f800000  x15 0000000000000000
    x16 0000007d71724720  x17 0000007d57ccdb00  x18 0000007bf7568000  x19 b400007cbe7b8ff0
    x20 b400007cbe7b9018  x21 b400007cbe7b8ff0  x22 b400007cbe280010  x23 b400007cbe280000
    x24 7ffffffffffffff8  x25 1fffffffffffffff  x26 00000000ffffffff  x27 b400007c7e1b0da8
    x28 0000007bf78fc000  x29 0000007bf78fb7a0
    lr  0000007d67aaf330  sp  0000007bf78fb7a0  pc  0000007d67ab1590  pst 0000000020001000

backtrace:
      #00 pc 0000000000253590  /system/lib64/libhwui.so (android::uirenderer::AnimatorManager::pushStaging()+112)
      LineageOS#1 pc 000000000025132c  /system/lib64/libhwui.so (android::uirenderer::AnimationContext::runRemainingAnimations(android::uirenderer::TreeInfo&)+44)
      LineageOS#2 pc 0000000000267664  /system/lib64/libhwui.so (android::uirenderer::AnimationContextBridge::runRemainingAnimations(android::uirenderer::TreeInfo&)+36)
      LineageOS#3 pc 0000000000292720  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::prepareTree(android::uirenderer::TreeInfo&, long*, long, android::uirenderer::RenderNode*)+352)
      LineageOS#4 pc 00000000002959c8  /system/lib64/libhwui.so (std::__1::__function::__func<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0, std::__1::allocator<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0>, void ()>::operator()() (.c1671e787f244890c877724752face20)+360)
      LineageOS#5 pc 0000000000282ce4  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+1108)
      LineageOS#6 pc 00000000002a808c  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+556)
      LineageOS#7 pc 0000000000013a14  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+436)
      LineageOS#8 pc 00000000000d07ac  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
      LineageOS#9 pc 00000000000567f0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
```

Signed-off-by: Pranav Vashi <[email protected]>
MJPollard pushed a commit to AltairROM/android_frameworks_base that referenced this pull request May 15, 2023
Fix NULL deref

```
Cmdline: com.android.systemui
pid: 2530, tid: 2589, name: RenderThread  >>> com.android.systemui <<<
uid: 10293
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000010
Cause: null pointer dereference
    x0  b400007cbe7b8ff0  x1  0000007bf78fb9f0  x2  b400007c8c184898  x3  0000000000000001
    x4  0000007bf78faf80  x5  00000000007f5687  x6  000000001991ade0  x7  0000000000000010
    x8  0000000000000000  x9  43490de4ff9b0700  x10 b400007cbe7b8c00  x11 0000000000000002
    x12 0000000000000000  x13 000000003f800000  x14 000000003f800000  x15 0000000000000000
    x16 0000007d71724720  x17 0000007d57ccdb00  x18 0000007bf7568000  x19 b400007cbe7b8ff0
    x20 b400007cbe7b9018  x21 b400007cbe7b8ff0  x22 b400007cbe280010  x23 b400007cbe280000
    x24 7ffffffffffffff8  x25 1fffffffffffffff  x26 00000000ffffffff  x27 b400007c7e1b0da8
    x28 0000007bf78fc000  x29 0000007bf78fb7a0
    lr  0000007d67aaf330  sp  0000007bf78fb7a0  pc  0000007d67ab1590  pst 0000000020001000

backtrace:
      #00 pc 0000000000253590  /system/lib64/libhwui.so (android::uirenderer::AnimatorManager::pushStaging()+112)
      LineageOS#1 pc 000000000025132c  /system/lib64/libhwui.so (android::uirenderer::AnimationContext::runRemainingAnimations(android::uirenderer::TreeInfo&)+44)
      LineageOS#2 pc 0000000000267664  /system/lib64/libhwui.so (android::uirenderer::AnimationContextBridge::runRemainingAnimations(android::uirenderer::TreeInfo&)+36)
      LineageOS#3 pc 0000000000292720  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::prepareTree(android::uirenderer::TreeInfo&, long*, long, android::uirenderer::RenderNode*)+352)
      LineageOS#4 pc 00000000002959c8  /system/lib64/libhwui.so (std::__1::__function::__func<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0, std::__1::allocator<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0>, void ()>::operator()() (.c1671e787f244890c877724752face20)+360)
      LineageOS#5 pc 0000000000282ce4  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+1108)
      LineageOS#6 pc 00000000002a808c  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+556)
      LineageOS#7 pc 0000000000013a14  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+436)
      LineageOS#8 pc 00000000000d07ac  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
      LineageOS#9 pc 00000000000567f0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
```

Signed-off-by: Pranav Vashi <[email protected]>
MJPollard pushed a commit to AltairROM/android_frameworks_base that referenced this pull request May 17, 2023
Fix NULL deref

```
Cmdline: com.android.systemui
pid: 2530, tid: 2589, name: RenderThread  >>> com.android.systemui <<<
uid: 10293
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000010
Cause: null pointer dereference
    x0  b400007cbe7b8ff0  x1  0000007bf78fb9f0  x2  b400007c8c184898  x3  0000000000000001
    x4  0000007bf78faf80  x5  00000000007f5687  x6  000000001991ade0  x7  0000000000000010
    x8  0000000000000000  x9  43490de4ff9b0700  x10 b400007cbe7b8c00  x11 0000000000000002
    x12 0000000000000000  x13 000000003f800000  x14 000000003f800000  x15 0000000000000000
    x16 0000007d71724720  x17 0000007d57ccdb00  x18 0000007bf7568000  x19 b400007cbe7b8ff0
    x20 b400007cbe7b9018  x21 b400007cbe7b8ff0  x22 b400007cbe280010  x23 b400007cbe280000
    x24 7ffffffffffffff8  x25 1fffffffffffffff  x26 00000000ffffffff  x27 b400007c7e1b0da8
    x28 0000007bf78fc000  x29 0000007bf78fb7a0
    lr  0000007d67aaf330  sp  0000007bf78fb7a0  pc  0000007d67ab1590  pst 0000000020001000

backtrace:
      #00 pc 0000000000253590  /system/lib64/libhwui.so (android::uirenderer::AnimatorManager::pushStaging()+112)
      LineageOS#1 pc 000000000025132c  /system/lib64/libhwui.so (android::uirenderer::AnimationContext::runRemainingAnimations(android::uirenderer::TreeInfo&)+44)
      LineageOS#2 pc 0000000000267664  /system/lib64/libhwui.so (android::uirenderer::AnimationContextBridge::runRemainingAnimations(android::uirenderer::TreeInfo&)+36)
      LineageOS#3 pc 0000000000292720  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::prepareTree(android::uirenderer::TreeInfo&, long*, long, android::uirenderer::RenderNode*)+352)
      LineageOS#4 pc 00000000002959c8  /system/lib64/libhwui.so (std::__1::__function::__func<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0, std::__1::allocator<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0>, void ()>::operator()() (.c1671e787f244890c877724752face20)+360)
      LineageOS#5 pc 0000000000282ce4  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+1108)
      LineageOS#6 pc 00000000002a808c  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+556)
      LineageOS#7 pc 0000000000013a14  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+436)
      LineageOS#8 pc 00000000000d07ac  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
      LineageOS#9 pc 00000000000567f0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
```

Signed-off-by: Pranav Vashi <[email protected]>
MJPollard pushed a commit to AltairROM/android_frameworks_base that referenced this pull request May 17, 2023
Fix NULL deref

```
Cmdline: com.android.systemui
pid: 2530, tid: 2589, name: RenderThread  >>> com.android.systemui <<<
uid: 10293
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000010
Cause: null pointer dereference
    x0  b400007cbe7b8ff0  x1  0000007bf78fb9f0  x2  b400007c8c184898  x3  0000000000000001
    x4  0000007bf78faf80  x5  00000000007f5687  x6  000000001991ade0  x7  0000000000000010
    x8  0000000000000000  x9  43490de4ff9b0700  x10 b400007cbe7b8c00  x11 0000000000000002
    x12 0000000000000000  x13 000000003f800000  x14 000000003f800000  x15 0000000000000000
    x16 0000007d71724720  x17 0000007d57ccdb00  x18 0000007bf7568000  x19 b400007cbe7b8ff0
    x20 b400007cbe7b9018  x21 b400007cbe7b8ff0  x22 b400007cbe280010  x23 b400007cbe280000
    x24 7ffffffffffffff8  x25 1fffffffffffffff  x26 00000000ffffffff  x27 b400007c7e1b0da8
    x28 0000007bf78fc000  x29 0000007bf78fb7a0
    lr  0000007d67aaf330  sp  0000007bf78fb7a0  pc  0000007d67ab1590  pst 0000000020001000

backtrace:
      #00 pc 0000000000253590  /system/lib64/libhwui.so (android::uirenderer::AnimatorManager::pushStaging()+112)
      LineageOS#1 pc 000000000025132c  /system/lib64/libhwui.so (android::uirenderer::AnimationContext::runRemainingAnimations(android::uirenderer::TreeInfo&)+44)
      LineageOS#2 pc 0000000000267664  /system/lib64/libhwui.so (android::uirenderer::AnimationContextBridge::runRemainingAnimations(android::uirenderer::TreeInfo&)+36)
      LineageOS#3 pc 0000000000292720  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::prepareTree(android::uirenderer::TreeInfo&, long*, long, android::uirenderer::RenderNode*)+352)
      LineageOS#4 pc 00000000002959c8  /system/lib64/libhwui.so (std::__1::__function::__func<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0, std::__1::allocator<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0>, void ()>::operator()() (.c1671e787f244890c877724752face20)+360)
      LineageOS#5 pc 0000000000282ce4  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+1108)
      LineageOS#6 pc 00000000002a808c  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+556)
      LineageOS#7 pc 0000000000013a14  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+436)
      LineageOS#8 pc 00000000000d07ac  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
      LineageOS#9 pc 00000000000567f0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
```

Signed-off-by: Pranav Vashi <[email protected]>
MJPollard pushed a commit to AltairROM/android_frameworks_base that referenced this pull request May 21, 2023
Fix NULL deref

```
Cmdline: com.android.systemui
pid: 2530, tid: 2589, name: RenderThread  >>> com.android.systemui <<<
uid: 10293
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000010
Cause: null pointer dereference
    x0  b400007cbe7b8ff0  x1  0000007bf78fb9f0  x2  b400007c8c184898  x3  0000000000000001
    x4  0000007bf78faf80  x5  00000000007f5687  x6  000000001991ade0  x7  0000000000000010
    x8  0000000000000000  x9  43490de4ff9b0700  x10 b400007cbe7b8c00  x11 0000000000000002
    x12 0000000000000000  x13 000000003f800000  x14 000000003f800000  x15 0000000000000000
    x16 0000007d71724720  x17 0000007d57ccdb00  x18 0000007bf7568000  x19 b400007cbe7b8ff0
    x20 b400007cbe7b9018  x21 b400007cbe7b8ff0  x22 b400007cbe280010  x23 b400007cbe280000
    x24 7ffffffffffffff8  x25 1fffffffffffffff  x26 00000000ffffffff  x27 b400007c7e1b0da8
    x28 0000007bf78fc000  x29 0000007bf78fb7a0
    lr  0000007d67aaf330  sp  0000007bf78fb7a0  pc  0000007d67ab1590  pst 0000000020001000

backtrace:
      #00 pc 0000000000253590  /system/lib64/libhwui.so (android::uirenderer::AnimatorManager::pushStaging()+112)
      LineageOS#1 pc 000000000025132c  /system/lib64/libhwui.so (android::uirenderer::AnimationContext::runRemainingAnimations(android::uirenderer::TreeInfo&)+44)
      LineageOS#2 pc 0000000000267664  /system/lib64/libhwui.so (android::uirenderer::AnimationContextBridge::runRemainingAnimations(android::uirenderer::TreeInfo&)+36)
      LineageOS#3 pc 0000000000292720  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::prepareTree(android::uirenderer::TreeInfo&, long*, long, android::uirenderer::RenderNode*)+352)
      LineageOS#4 pc 00000000002959c8  /system/lib64/libhwui.so (std::__1::__function::__func<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0, std::__1::allocator<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0>, void ()>::operator()() (.c1671e787f244890c877724752face20)+360)
      LineageOS#5 pc 0000000000282ce4  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+1108)
      LineageOS#6 pc 00000000002a808c  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+556)
      LineageOS#7 pc 0000000000013a14  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+436)
      LineageOS#8 pc 00000000000d07ac  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
      LineageOS#9 pc 00000000000567f0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
```

Signed-off-by: Pranav Vashi <[email protected]>
MJPollard pushed a commit to AltairROM/android_frameworks_base that referenced this pull request May 21, 2023
Fix NULL deref

```
Cmdline: com.android.systemui
pid: 2530, tid: 2589, name: RenderThread  >>> com.android.systemui <<<
uid: 10293
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000010
Cause: null pointer dereference
    x0  b400007cbe7b8ff0  x1  0000007bf78fb9f0  x2  b400007c8c184898  x3  0000000000000001
    x4  0000007bf78faf80  x5  00000000007f5687  x6  000000001991ade0  x7  0000000000000010
    x8  0000000000000000  x9  43490de4ff9b0700  x10 b400007cbe7b8c00  x11 0000000000000002
    x12 0000000000000000  x13 000000003f800000  x14 000000003f800000  x15 0000000000000000
    x16 0000007d71724720  x17 0000007d57ccdb00  x18 0000007bf7568000  x19 b400007cbe7b8ff0
    x20 b400007cbe7b9018  x21 b400007cbe7b8ff0  x22 b400007cbe280010  x23 b400007cbe280000
    x24 7ffffffffffffff8  x25 1fffffffffffffff  x26 00000000ffffffff  x27 b400007c7e1b0da8
    x28 0000007bf78fc000  x29 0000007bf78fb7a0
    lr  0000007d67aaf330  sp  0000007bf78fb7a0  pc  0000007d67ab1590  pst 0000000020001000

backtrace:
      #00 pc 0000000000253590  /system/lib64/libhwui.so (android::uirenderer::AnimatorManager::pushStaging()+112)
      LineageOS#1 pc 000000000025132c  /system/lib64/libhwui.so (android::uirenderer::AnimationContext::runRemainingAnimations(android::uirenderer::TreeInfo&)+44)
      LineageOS#2 pc 0000000000267664  /system/lib64/libhwui.so (android::uirenderer::AnimationContextBridge::runRemainingAnimations(android::uirenderer::TreeInfo&)+36)
      LineageOS#3 pc 0000000000292720  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::prepareTree(android::uirenderer::TreeInfo&, long*, long, android::uirenderer::RenderNode*)+352)
      LineageOS#4 pc 00000000002959c8  /system/lib64/libhwui.so (std::__1::__function::__func<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0, std::__1::allocator<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0>, void ()>::operator()() (.c1671e787f244890c877724752face20)+360)
      LineageOS#5 pc 0000000000282ce4  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+1108)
      LineageOS#6 pc 00000000002a808c  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+556)
      LineageOS#7 pc 0000000000013a14  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+436)
      LineageOS#8 pc 00000000000d07ac  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
      LineageOS#9 pc 00000000000567f0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
```

Signed-off-by: Pranav Vashi <[email protected]>
MJPollard pushed a commit to AltairROM/android_frameworks_base that referenced this pull request May 21, 2023
Fix NULL deref

```
Cmdline: com.android.systemui
pid: 2530, tid: 2589, name: RenderThread  >>> com.android.systemui <<<
uid: 10293
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000010
Cause: null pointer dereference
    x0  b400007cbe7b8ff0  x1  0000007bf78fb9f0  x2  b400007c8c184898  x3  0000000000000001
    x4  0000007bf78faf80  x5  00000000007f5687  x6  000000001991ade0  x7  0000000000000010
    x8  0000000000000000  x9  43490de4ff9b0700  x10 b400007cbe7b8c00  x11 0000000000000002
    x12 0000000000000000  x13 000000003f800000  x14 000000003f800000  x15 0000000000000000
    x16 0000007d71724720  x17 0000007d57ccdb00  x18 0000007bf7568000  x19 b400007cbe7b8ff0
    x20 b400007cbe7b9018  x21 b400007cbe7b8ff0  x22 b400007cbe280010  x23 b400007cbe280000
    x24 7ffffffffffffff8  x25 1fffffffffffffff  x26 00000000ffffffff  x27 b400007c7e1b0da8
    x28 0000007bf78fc000  x29 0000007bf78fb7a0
    lr  0000007d67aaf330  sp  0000007bf78fb7a0  pc  0000007d67ab1590  pst 0000000020001000

backtrace:
      #00 pc 0000000000253590  /system/lib64/libhwui.so (android::uirenderer::AnimatorManager::pushStaging()+112)
      LineageOS#1 pc 000000000025132c  /system/lib64/libhwui.so (android::uirenderer::AnimationContext::runRemainingAnimations(android::uirenderer::TreeInfo&)+44)
      LineageOS#2 pc 0000000000267664  /system/lib64/libhwui.so (android::uirenderer::AnimationContextBridge::runRemainingAnimations(android::uirenderer::TreeInfo&)+36)
      LineageOS#3 pc 0000000000292720  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::prepareTree(android::uirenderer::TreeInfo&, long*, long, android::uirenderer::RenderNode*)+352)
      LineageOS#4 pc 00000000002959c8  /system/lib64/libhwui.so (std::__1::__function::__func<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0, std::__1::allocator<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0>, void ()>::operator()() (.c1671e787f244890c877724752face20)+360)
      LineageOS#5 pc 0000000000282ce4  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+1108)
      LineageOS#6 pc 00000000002a808c  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+556)
      LineageOS#7 pc 0000000000013a14  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+436)
      LineageOS#8 pc 00000000000d07ac  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
      LineageOS#9 pc 00000000000567f0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
```

Signed-off-by: Pranav Vashi <[email protected]>
yehonatan5785 pushed a commit to Lineage-OS-Special-Project/android_frameworks_base that referenced this pull request Aug 15, 2025
@idoybh edits: Adapted to A11's settings backup
[jhonboy121]: adapt to A12 changes in DozeParameters. Also in the og commit DOZE_ALWAYS_ON was being read from System namespace instead of Secure, fixed it here. Make use of SettingsProxy utlity classes for settings / getting values

Change-Id: I831583fde68de15788e3d7ecab55d864726d140f

Commit message LineageOS#2:

base: check whether device is charging when alwaysOnChargingEnabled is called

* Using settings for this is quite redundant. And if you toggle aod on charge after plugging in then aod won't turn on unless you unplug and plug again (since DOZE_ON_CHARGE_NOW is set only if aod on charge is enabled and device is plugged in"

Signed-off-by: jhonboy121 <[email protected]>

Commit message LineageOS#3:

base: fix deadlock between activity manager and power manager

* Using the battery manager intent to query plugged in status was the root cause of deadlock,
  so inside power manager, user mIsPowered and setting value instead of using the intent based power status

Signed-off-by: jhonboy121 <[email protected]>

[jhonboy121]: adapted to A13

Co-authored-by: jhonboy121 <[email protected]>
Signed-off-by: jhonboy121 <[email protected]>
Signed-off-by: Pranav Vashi <[email protected]>
yehonatan5785 pushed a commit to Lineage-OS-Special-Project/android_frameworks_base that referenced this pull request Aug 15, 2025
@idoybh edits: Adapted to A11's settings backup
[jhonboy121]: adapt to A12 changes in DozeParameters. Also in the og commit DOZE_ALWAYS_ON was being read from System namespace instead of Secure, fixed it here. Make use of SettingsProxy utlity classes for settings / getting values

Change-Id: I831583fde68de15788e3d7ecab55d864726d140f

Commit message LineageOS#2:

base: check whether device is charging when alwaysOnChargingEnabled is called

* Using settings for this is quite redundant. And if you toggle aod on charge after plugging in then aod won't turn on unless you unplug and plug again (since DOZE_ON_CHARGE_NOW is set only if aod on charge is enabled and device is plugged in"

Signed-off-by: jhonboy121 <[email protected]>

Commit message LineageOS#3:

base: fix deadlock between activity manager and power manager

* Using the battery manager intent to query plugged in status was the root cause of deadlock,
  so inside power manager, user mIsPowered and setting value instead of using the intent based power status

Signed-off-by: jhonboy121 <[email protected]>

[jhonboy121]: adapted to A13

Co-authored-by: jhonboy121 <[email protected]>
Signed-off-by: jhonboy121 <[email protected]>
Signed-off-by: Pranav Vashi <[email protected]>
yusufnoor786 pushed a commit to Mist-OS-Staging/frameworks_base_los that referenced this pull request Aug 16, 2025
@idoybh edits: Adapted to A11's settings backup
[jhonboy121]: adapt to A12 changes in DozeParameters. Also in the og commit DOZE_ALWAYS_ON was being read from System namespace instead of Secure, fixed it here. Make use of SettingsProxy utlity classes for settings / getting values

Change-Id: I831583fde68de15788e3d7ecab55d864726d140f

Commit message LineageOS#2:

base: check whether device is charging when alwaysOnChargingEnabled is called

* Using settings for this is quite redundant. And if you toggle aod on charge after plugging in then aod won't turn on unless you unplug and plug again (since DOZE_ON_CHARGE_NOW is set only if aod on charge is enabled and device is plugged in"

Signed-off-by: jhonboy121 <[email protected]>

Commit message LineageOS#3:

base: fix deadlock between activity manager and power manager

* Using the battery manager intent to query plugged in status was the root cause of deadlock,
  so inside power manager, user mIsPowered and setting value instead of using the intent based power status

Signed-off-by: jhonboy121 <[email protected]>

[jhonboy121]: adapted to A13

Co-authored-by: jhonboy121 <[email protected]>
Signed-off-by: jhonboy121 <[email protected]>
Signed-off-by: Pranav Vashi <[email protected]>
toukashishigaya pushed a commit to youkai-b/los_fwb that referenced this pull request Aug 16, 2025
Fix NULL deref

```
Cmdline: com.android.systemui
pid: 2530, tid: 2589, name: RenderThread  >>> com.android.systemui <<<
uid: 10293
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000010
Cause: null pointer dereference
    x0  b400007cbe7b8ff0  x1  0000007bf78fb9f0  x2  b400007c8c184898  x3  0000000000000001
    x4  0000007bf78faf80  x5  00000000007f5687  x6  000000001991ade0  x7  0000000000000010
    x8  0000000000000000  x9  43490de4ff9b0700  x10 b400007cbe7b8c00  x11 0000000000000002
    x12 0000000000000000  x13 000000003f800000  x14 000000003f800000  x15 0000000000000000
    x16 0000007d71724720  x17 0000007d57ccdb00  x18 0000007bf7568000  x19 b400007cbe7b8ff0
    x20 b400007cbe7b9018  x21 b400007cbe7b8ff0  x22 b400007cbe280010  x23 b400007cbe280000
    x24 7ffffffffffffff8  x25 1fffffffffffffff  x26 00000000ffffffff  x27 b400007c7e1b0da8
    x28 0000007bf78fc000  x29 0000007bf78fb7a0
    lr  0000007d67aaf330  sp  0000007bf78fb7a0  pc  0000007d67ab1590  pst 0000000020001000

backtrace:
      #00 pc 0000000000253590  /system/lib64/libhwui.so (android::uirenderer::AnimatorManager::pushStaging()+112)
      LineageOS#1 pc 000000000025132c  /system/lib64/libhwui.so (android::uirenderer::AnimationContext::runRemainingAnimations(android::uirenderer::TreeInfo&)+44)
      LineageOS#2 pc 0000000000267664  /system/lib64/libhwui.so (android::uirenderer::AnimationContextBridge::runRemainingAnimations(android::uirenderer::TreeInfo&)+36)
      LineageOS#3 pc 0000000000292720  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::prepareTree(android::uirenderer::TreeInfo&, long*, long, android::uirenderer::RenderNode*)+352)
      LineageOS#4 pc 00000000002959c8  /system/lib64/libhwui.so (std::__1::__function::__func<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0, std::__1::allocator<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0>, void ()>::operator()() (.c1671e787f244890c877724752face20)+360)
      LineageOS#5 pc 0000000000282ce4  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+1108)
      LineageOS#6 pc 00000000002a808c  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+556)
      LineageOS#7 pc 0000000000013a14  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+436)
      LineageOS#8 pc 00000000000d07ac  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
      LineageOS#9 pc 00000000000567f0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
```

Signed-off-by: Pranav Vashi <[email protected]>
toukashishigaya pushed a commit to youkai-b/los_fwb that referenced this pull request Aug 16, 2025
derp: Update GMS Spoof FP from tokay_beta BP22.250103.008 release
yehonatan5785 pushed a commit to Lineage-OS-Special-Project/android_frameworks_base that referenced this pull request Aug 24, 2025
@idoybh edits: Adapted to A11's settings backup
[jhonboy121]: adapt to A12 changes in DozeParameters. Also in the og commit DOZE_ALWAYS_ON was being read from System namespace instead of Secure, fixed it here. Make use of SettingsProxy utlity classes for settings / getting values

Change-Id: I831583fde68de15788e3d7ecab55d864726d140f

Commit message LineageOS#2:

base: check whether device is charging when alwaysOnChargingEnabled is called

* Using settings for this is quite redundant. And if you toggle aod on charge after plugging in then aod won't turn on unless you unplug and plug again (since DOZE_ON_CHARGE_NOW is set only if aod on charge is enabled and device is plugged in"

Signed-off-by: jhonboy121 <[email protected]>

Commit message LineageOS#3:

base: fix deadlock between activity manager and power manager

* Using the battery manager intent to query plugged in status was the root cause of deadlock,
  so inside power manager, user mIsPowered and setting value instead of using the intent based power status

Signed-off-by: jhonboy121 <[email protected]>

[jhonboy121]: adapted to A13

Co-authored-by: jhonboy121 <[email protected]>
Signed-off-by: jhonboy121 <[email protected]>
Signed-off-by: Pranav Vashi <[email protected]>
toukashishigaya pushed a commit to youkai-b/los_fwb that referenced this pull request Sep 1, 2025
Fix NULL deref

```
Cmdline: com.android.systemui
pid: 2530, tid: 2589, name: RenderThread  >>> com.android.systemui <<<
uid: 10293
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000010
Cause: null pointer dereference
    x0  b400007cbe7b8ff0  x1  0000007bf78fb9f0  x2  b400007c8c184898  x3  0000000000000001
    x4  0000007bf78faf80  x5  00000000007f5687  x6  000000001991ade0  x7  0000000000000010
    x8  0000000000000000  x9  43490de4ff9b0700  x10 b400007cbe7b8c00  x11 0000000000000002
    x12 0000000000000000  x13 000000003f800000  x14 000000003f800000  x15 0000000000000000
    x16 0000007d71724720  x17 0000007d57ccdb00  x18 0000007bf7568000  x19 b400007cbe7b8ff0
    x20 b400007cbe7b9018  x21 b400007cbe7b8ff0  x22 b400007cbe280010  x23 b400007cbe280000
    x24 7ffffffffffffff8  x25 1fffffffffffffff  x26 00000000ffffffff  x27 b400007c7e1b0da8
    x28 0000007bf78fc000  x29 0000007bf78fb7a0
    lr  0000007d67aaf330  sp  0000007bf78fb7a0  pc  0000007d67ab1590  pst 0000000020001000

backtrace:
      #00 pc 0000000000253590  /system/lib64/libhwui.so (android::uirenderer::AnimatorManager::pushStaging()+112)
      LineageOS#1 pc 000000000025132c  /system/lib64/libhwui.so (android::uirenderer::AnimationContext::runRemainingAnimations(android::uirenderer::TreeInfo&)+44)
      LineageOS#2 pc 0000000000267664  /system/lib64/libhwui.so (android::uirenderer::AnimationContextBridge::runRemainingAnimations(android::uirenderer::TreeInfo&)+36)
      LineageOS#3 pc 0000000000292720  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::prepareTree(android::uirenderer::TreeInfo&, long*, long, android::uirenderer::RenderNode*)+352)
      LineageOS#4 pc 00000000002959c8  /system/lib64/libhwui.so (std::__1::__function::__func<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0, std::__1::allocator<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0>, void ()>::operator()() (.c1671e787f244890c877724752face20)+360)
      LineageOS#5 pc 0000000000282ce4  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+1108)
      LineageOS#6 pc 00000000002a808c  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+556)
      LineageOS#7 pc 0000000000013a14  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+436)
      LineageOS#8 pc 00000000000d07ac  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
      LineageOS#9 pc 00000000000567f0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
```

Signed-off-by: Pranav Vashi <[email protected]>
toukashishigaya pushed a commit to youkai-b/los_fwb that referenced this pull request Sep 1, 2025
Fix NULL deref

```
Cmdline: com.android.systemui
pid: 2530, tid: 2589, name: RenderThread  >>> com.android.systemui <<<
uid: 10293
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000010
Cause: null pointer dereference
    x0  b400007cbe7b8ff0  x1  0000007bf78fb9f0  x2  b400007c8c184898  x3  0000000000000001
    x4  0000007bf78faf80  x5  00000000007f5687  x6  000000001991ade0  x7  0000000000000010
    x8  0000000000000000  x9  43490de4ff9b0700  x10 b400007cbe7b8c00  x11 0000000000000002
    x12 0000000000000000  x13 000000003f800000  x14 000000003f800000  x15 0000000000000000
    x16 0000007d71724720  x17 0000007d57ccdb00  x18 0000007bf7568000  x19 b400007cbe7b8ff0
    x20 b400007cbe7b9018  x21 b400007cbe7b8ff0  x22 b400007cbe280010  x23 b400007cbe280000
    x24 7ffffffffffffff8  x25 1fffffffffffffff  x26 00000000ffffffff  x27 b400007c7e1b0da8
    x28 0000007bf78fc000  x29 0000007bf78fb7a0
    lr  0000007d67aaf330  sp  0000007bf78fb7a0  pc  0000007d67ab1590  pst 0000000020001000

backtrace:
      #00 pc 0000000000253590  /system/lib64/libhwui.so (android::uirenderer::AnimatorManager::pushStaging()+112)
      LineageOS#1 pc 000000000025132c  /system/lib64/libhwui.so (android::uirenderer::AnimationContext::runRemainingAnimations(android::uirenderer::TreeInfo&)+44)
      LineageOS#2 pc 0000000000267664  /system/lib64/libhwui.so (android::uirenderer::AnimationContextBridge::runRemainingAnimations(android::uirenderer::TreeInfo&)+36)
      LineageOS#3 pc 0000000000292720  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::prepareTree(android::uirenderer::TreeInfo&, long*, long, android::uirenderer::RenderNode*)+352)
      LineageOS#4 pc 00000000002959c8  /system/lib64/libhwui.so (std::__1::__function::__func<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0, std::__1::allocator<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0>, void ()>::operator()() (.c1671e787f244890c877724752face20)+360)
      LineageOS#5 pc 0000000000282ce4  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+1108)
      LineageOS#6 pc 00000000002a808c  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+556)
      LineageOS#7 pc 0000000000013a14  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+436)
      LineageOS#8 pc 00000000000d07ac  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
      LineageOS#9 pc 00000000000567f0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
```

Signed-off-by: Pranav Vashi <[email protected]>
ralf979 pushed a commit to Black-Iron-Project/frameworks_base that referenced this pull request Sep 2, 2025
@idoybh edits: Adapted to A11's settings backup
[jhonboy121]: adapt to A12 changes in DozeParameters. Also in the og commit DOZE_ALWAYS_ON was being read from System namespace instead of Secure, fixed it here. Make use of SettingsProxy utlity classes for settings / getting values

Change-Id: I831583fde68de15788e3d7ecab55d864726d140f

Commit message LineageOS#2:

base: check whether device is charging when alwaysOnChargingEnabled is called

* Using settings for this is quite redundant. And if you toggle aod on charge after plugging in then aod won't turn on unless you unplug and plug again (since DOZE_ON_CHARGE_NOW is set only if aod on charge is enabled and device is plugged in"

Signed-off-by: jhonboy121 <[email protected]>

Commit message LineageOS#3:

base: fix deadlock between activity manager and power manager

* Using the battery manager intent to query plugged in status was the root cause of deadlock,
  so inside power manager, user mIsPowered and setting value instead of using the intent based power status

Signed-off-by: jhonboy121 <[email protected]>

[jhonboy121]: adapted to A13

Co-authored-by: jhonboy121 <[email protected]>
Signed-off-by: jhonboy121 <[email protected]>
Signed-off-by: Pranav Vashi <[email protected]>
yehonatan5785 pushed a commit to Lineage-OS-Special-Project/android_frameworks_base that referenced this pull request Sep 3, 2025
@idoybh edits: Adapted to A11's settings backup
[jhonboy121]: adapt to A12 changes in DozeParameters. Also in the og commit DOZE_ALWAYS_ON was being read from System namespace instead of Secure, fixed it here. Make use of SettingsProxy utlity classes for settings / getting values

Change-Id: I831583fde68de15788e3d7ecab55d864726d140f

Commit message LineageOS#2:

base: check whether device is charging when alwaysOnChargingEnabled is called

* Using settings for this is quite redundant. And if you toggle aod on charge after plugging in then aod won't turn on unless you unplug and plug again (since DOZE_ON_CHARGE_NOW is set only if aod on charge is enabled and device is plugged in"

Signed-off-by: jhonboy121 <[email protected]>

Commit message LineageOS#3:

base: fix deadlock between activity manager and power manager

* Using the battery manager intent to query plugged in status was the root cause of deadlock,
  so inside power manager, user mIsPowered and setting value instead of using the intent based power status

Signed-off-by: jhonboy121 <[email protected]>

[jhonboy121]: adapted to A13

Co-authored-by: jhonboy121 <[email protected]>
Signed-off-by: jhonboy121 <[email protected]>
Signed-off-by: Pranav Vashi <[email protected]>
toukashishigaya pushed a commit to youkai-b/los_fwb that referenced this pull request Sep 4, 2025
Fix NULL deref

```
Cmdline: com.android.systemui
pid: 2530, tid: 2589, name: RenderThread  >>> com.android.systemui <<<
uid: 10293
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000010
Cause: null pointer dereference
    x0  b400007cbe7b8ff0  x1  0000007bf78fb9f0  x2  b400007c8c184898  x3  0000000000000001
    x4  0000007bf78faf80  x5  00000000007f5687  x6  000000001991ade0  x7  0000000000000010
    x8  0000000000000000  x9  43490de4ff9b0700  x10 b400007cbe7b8c00  x11 0000000000000002
    x12 0000000000000000  x13 000000003f800000  x14 000000003f800000  x15 0000000000000000
    x16 0000007d71724720  x17 0000007d57ccdb00  x18 0000007bf7568000  x19 b400007cbe7b8ff0
    x20 b400007cbe7b9018  x21 b400007cbe7b8ff0  x22 b400007cbe280010  x23 b400007cbe280000
    x24 7ffffffffffffff8  x25 1fffffffffffffff  x26 00000000ffffffff  x27 b400007c7e1b0da8
    x28 0000007bf78fc000  x29 0000007bf78fb7a0
    lr  0000007d67aaf330  sp  0000007bf78fb7a0  pc  0000007d67ab1590  pst 0000000020001000

backtrace:
      #00 pc 0000000000253590  /system/lib64/libhwui.so (android::uirenderer::AnimatorManager::pushStaging()+112)
      LineageOS#1 pc 000000000025132c  /system/lib64/libhwui.so (android::uirenderer::AnimationContext::runRemainingAnimations(android::uirenderer::TreeInfo&)+44)
      LineageOS#2 pc 0000000000267664  /system/lib64/libhwui.so (android::uirenderer::AnimationContextBridge::runRemainingAnimations(android::uirenderer::TreeInfo&)+36)
      LineageOS#3 pc 0000000000292720  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::prepareTree(android::uirenderer::TreeInfo&, long*, long, android::uirenderer::RenderNode*)+352)
      LineageOS#4 pc 00000000002959c8  /system/lib64/libhwui.so (std::__1::__function::__func<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0, std::__1::allocator<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0>, void ()>::operator()() (.c1671e787f244890c877724752face20)+360)
      LineageOS#5 pc 0000000000282ce4  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+1108)
      LineageOS#6 pc 00000000002a808c  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+556)
      LineageOS#7 pc 0000000000013a14  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+436)
      LineageOS#8 pc 00000000000d07ac  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
      LineageOS#9 pc 00000000000567f0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
```

Signed-off-by: Pranav Vashi <[email protected]>
toukashishigaya pushed a commit to youkai-b/los_fwb that referenced this pull request Sep 4, 2025
Fix NULL deref

```
Cmdline: com.android.systemui
pid: 2530, tid: 2589, name: RenderThread  >>> com.android.systemui <<<
uid: 10293
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000010
Cause: null pointer dereference
    x0  b400007cbe7b8ff0  x1  0000007bf78fb9f0  x2  b400007c8c184898  x3  0000000000000001
    x4  0000007bf78faf80  x5  00000000007f5687  x6  000000001991ade0  x7  0000000000000010
    x8  0000000000000000  x9  43490de4ff9b0700  x10 b400007cbe7b8c00  x11 0000000000000002
    x12 0000000000000000  x13 000000003f800000  x14 000000003f800000  x15 0000000000000000
    x16 0000007d71724720  x17 0000007d57ccdb00  x18 0000007bf7568000  x19 b400007cbe7b8ff0
    x20 b400007cbe7b9018  x21 b400007cbe7b8ff0  x22 b400007cbe280010  x23 b400007cbe280000
    x24 7ffffffffffffff8  x25 1fffffffffffffff  x26 00000000ffffffff  x27 b400007c7e1b0da8
    x28 0000007bf78fc000  x29 0000007bf78fb7a0
    lr  0000007d67aaf330  sp  0000007bf78fb7a0  pc  0000007d67ab1590  pst 0000000020001000

backtrace:
      #00 pc 0000000000253590  /system/lib64/libhwui.so (android::uirenderer::AnimatorManager::pushStaging()+112)
      LineageOS#1 pc 000000000025132c  /system/lib64/libhwui.so (android::uirenderer::AnimationContext::runRemainingAnimations(android::uirenderer::TreeInfo&)+44)
      LineageOS#2 pc 0000000000267664  /system/lib64/libhwui.so (android::uirenderer::AnimationContextBridge::runRemainingAnimations(android::uirenderer::TreeInfo&)+36)
      LineageOS#3 pc 0000000000292720  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::prepareTree(android::uirenderer::TreeInfo&, long*, long, android::uirenderer::RenderNode*)+352)
      LineageOS#4 pc 00000000002959c8  /system/lib64/libhwui.so (std::__1::__function::__func<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0, std::__1::allocator<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0>, void ()>::operator()() (.c1671e787f244890c877724752face20)+360)
      LineageOS#5 pc 0000000000282ce4  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+1108)
      LineageOS#6 pc 00000000002a808c  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+556)
      LineageOS#7 pc 0000000000013a14  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+436)
      LineageOS#8 pc 00000000000d07ac  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
      LineageOS#9 pc 00000000000567f0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
```

Signed-off-by: Pranav Vashi <[email protected]>
toukashishigaya pushed a commit to youkai-b/los_fwb that referenced this pull request Sep 5, 2025
Fix NULL deref

```
Cmdline: com.android.systemui
pid: 2530, tid: 2589, name: RenderThread  >>> com.android.systemui <<<
uid: 10293
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000010
Cause: null pointer dereference
    x0  b400007cbe7b8ff0  x1  0000007bf78fb9f0  x2  b400007c8c184898  x3  0000000000000001
    x4  0000007bf78faf80  x5  00000000007f5687  x6  000000001991ade0  x7  0000000000000010
    x8  0000000000000000  x9  43490de4ff9b0700  x10 b400007cbe7b8c00  x11 0000000000000002
    x12 0000000000000000  x13 000000003f800000  x14 000000003f800000  x15 0000000000000000
    x16 0000007d71724720  x17 0000007d57ccdb00  x18 0000007bf7568000  x19 b400007cbe7b8ff0
    x20 b400007cbe7b9018  x21 b400007cbe7b8ff0  x22 b400007cbe280010  x23 b400007cbe280000
    x24 7ffffffffffffff8  x25 1fffffffffffffff  x26 00000000ffffffff  x27 b400007c7e1b0da8
    x28 0000007bf78fc000  x29 0000007bf78fb7a0
    lr  0000007d67aaf330  sp  0000007bf78fb7a0  pc  0000007d67ab1590  pst 0000000020001000

backtrace:
      #00 pc 0000000000253590  /system/lib64/libhwui.so (android::uirenderer::AnimatorManager::pushStaging()+112)
      LineageOS#1 pc 000000000025132c  /system/lib64/libhwui.so (android::uirenderer::AnimationContext::runRemainingAnimations(android::uirenderer::TreeInfo&)+44)
      LineageOS#2 pc 0000000000267664  /system/lib64/libhwui.so (android::uirenderer::AnimationContextBridge::runRemainingAnimations(android::uirenderer::TreeInfo&)+36)
      LineageOS#3 pc 0000000000292720  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::prepareTree(android::uirenderer::TreeInfo&, long*, long, android::uirenderer::RenderNode*)+352)
      LineageOS#4 pc 00000000002959c8  /system/lib64/libhwui.so (std::__1::__function::__func<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0, std::__1::allocator<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0>, void ()>::operator()() (.c1671e787f244890c877724752face20)+360)
      LineageOS#5 pc 0000000000282ce4  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+1108)
      LineageOS#6 pc 00000000002a808c  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+556)
      LineageOS#7 pc 0000000000013a14  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+436)
      LineageOS#8 pc 00000000000d07ac  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
      LineageOS#9 pc 00000000000567f0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
```

Signed-off-by: Pranav Vashi <[email protected]>
toukashishigaya pushed a commit to youkai-b/los_fwb that referenced this pull request Sep 5, 2025
Fix NULL deref

```
Cmdline: com.android.systemui
pid: 2530, tid: 2589, name: RenderThread  >>> com.android.systemui <<<
uid: 10293
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000010
Cause: null pointer dereference
    x0  b400007cbe7b8ff0  x1  0000007bf78fb9f0  x2  b400007c8c184898  x3  0000000000000001
    x4  0000007bf78faf80  x5  00000000007f5687  x6  000000001991ade0  x7  0000000000000010
    x8  0000000000000000  x9  43490de4ff9b0700  x10 b400007cbe7b8c00  x11 0000000000000002
    x12 0000000000000000  x13 000000003f800000  x14 000000003f800000  x15 0000000000000000
    x16 0000007d71724720  x17 0000007d57ccdb00  x18 0000007bf7568000  x19 b400007cbe7b8ff0
    x20 b400007cbe7b9018  x21 b400007cbe7b8ff0  x22 b400007cbe280010  x23 b400007cbe280000
    x24 7ffffffffffffff8  x25 1fffffffffffffff  x26 00000000ffffffff  x27 b400007c7e1b0da8
    x28 0000007bf78fc000  x29 0000007bf78fb7a0
    lr  0000007d67aaf330  sp  0000007bf78fb7a0  pc  0000007d67ab1590  pst 0000000020001000

backtrace:
      #00 pc 0000000000253590  /system/lib64/libhwui.so (android::uirenderer::AnimatorManager::pushStaging()+112)
      LineageOS#1 pc 000000000025132c  /system/lib64/libhwui.so (android::uirenderer::AnimationContext::runRemainingAnimations(android::uirenderer::TreeInfo&)+44)
      LineageOS#2 pc 0000000000267664  /system/lib64/libhwui.so (android::uirenderer::AnimationContextBridge::runRemainingAnimations(android::uirenderer::TreeInfo&)+36)
      LineageOS#3 pc 0000000000292720  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::prepareTree(android::uirenderer::TreeInfo&, long*, long, android::uirenderer::RenderNode*)+352)
      LineageOS#4 pc 00000000002959c8  /system/lib64/libhwui.so (std::__1::__function::__func<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0, std::__1::allocator<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0>, void ()>::operator()() (.c1671e787f244890c877724752face20)+360)
      LineageOS#5 pc 0000000000282ce4  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+1108)
      LineageOS#6 pc 00000000002a808c  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+556)
      LineageOS#7 pc 0000000000013a14  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+436)
      LineageOS#8 pc 00000000000d07ac  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
      LineageOS#9 pc 00000000000567f0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
```

Signed-off-by: Pranav Vashi <[email protected]>
toukashishigaya pushed a commit to youkai-b/los_fwb that referenced this pull request Sep 7, 2025
Fix NULL deref

```
Cmdline: com.android.systemui
pid: 2530, tid: 2589, name: RenderThread  >>> com.android.systemui <<<
uid: 10293
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000010
Cause: null pointer dereference
    x0  b400007cbe7b8ff0  x1  0000007bf78fb9f0  x2  b400007c8c184898  x3  0000000000000001
    x4  0000007bf78faf80  x5  00000000007f5687  x6  000000001991ade0  x7  0000000000000010
    x8  0000000000000000  x9  43490de4ff9b0700  x10 b400007cbe7b8c00  x11 0000000000000002
    x12 0000000000000000  x13 000000003f800000  x14 000000003f800000  x15 0000000000000000
    x16 0000007d71724720  x17 0000007d57ccdb00  x18 0000007bf7568000  x19 b400007cbe7b8ff0
    x20 b400007cbe7b9018  x21 b400007cbe7b8ff0  x22 b400007cbe280010  x23 b400007cbe280000
    x24 7ffffffffffffff8  x25 1fffffffffffffff  x26 00000000ffffffff  x27 b400007c7e1b0da8
    x28 0000007bf78fc000  x29 0000007bf78fb7a0
    lr  0000007d67aaf330  sp  0000007bf78fb7a0  pc  0000007d67ab1590  pst 0000000020001000

backtrace:
      #00 pc 0000000000253590  /system/lib64/libhwui.so (android::uirenderer::AnimatorManager::pushStaging()+112)
      LineageOS#1 pc 000000000025132c  /system/lib64/libhwui.so (android::uirenderer::AnimationContext::runRemainingAnimations(android::uirenderer::TreeInfo&)+44)
      LineageOS#2 pc 0000000000267664  /system/lib64/libhwui.so (android::uirenderer::AnimationContextBridge::runRemainingAnimations(android::uirenderer::TreeInfo&)+36)
      LineageOS#3 pc 0000000000292720  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::prepareTree(android::uirenderer::TreeInfo&, long*, long, android::uirenderer::RenderNode*)+352)
      LineageOS#4 pc 00000000002959c8  /system/lib64/libhwui.so (std::__1::__function::__func<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0, std::__1::allocator<android::uirenderer::renderthread::DrawFrameTask::postAndWait()::$_0>, void ()>::operator()() (.c1671e787f244890c877724752face20)+360)
      LineageOS#5 pc 0000000000282ce4  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+1108)
      LineageOS#6 pc 00000000002a808c  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+556)
      LineageOS#7 pc 0000000000013a14  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+436)
      LineageOS#8 pc 00000000000d07ac  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
      LineageOS#9 pc 00000000000567f0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
```

Signed-off-by: Pranav Vashi <[email protected]>
yehonatan5785 pushed a commit to Lineage-OS-Special-Project/android_frameworks_base that referenced this pull request Sep 8, 2025
@idoybh edits: Adapted to A11's settings backup
[jhonboy121]: adapt to A12 changes in DozeParameters. Also in the og commit DOZE_ALWAYS_ON was being read from System namespace instead of Secure, fixed it here. Make use of SettingsProxy utlity classes for settings / getting values

Change-Id: I831583fde68de15788e3d7ecab55d864726d140f

Commit message LineageOS#2:

base: check whether device is charging when alwaysOnChargingEnabled is called

* Using settings for this is quite redundant. And if you toggle aod on charge after plugging in then aod won't turn on unless you unplug and plug again (since DOZE_ON_CHARGE_NOW is set only if aod on charge is enabled and device is plugged in"

Signed-off-by: jhonboy121 <[email protected]>

Commit message LineageOS#3:

base: fix deadlock between activity manager and power manager

* Using the battery manager intent to query plugged in status was the root cause of deadlock,
  so inside power manager, user mIsPowered and setting value instead of using the intent based power status

Signed-off-by: jhonboy121 <[email protected]>

[jhonboy121]: adapted to A13

Co-authored-by: jhonboy121 <[email protected]>
Signed-off-by: jhonboy121 <[email protected]>
Signed-off-by: Pranav Vashi <[email protected]>
yusufnoor786 pushed a commit to Mist-OS-Staging/frameworks_base_los that referenced this pull request Sep 16, 2025
@idoybh edits: Adapted to A11's settings backup
[jhonboy121]: adapt to A12 changes in DozeParameters. Also in the og commit DOZE_ALWAYS_ON was being read from System namespace instead of Secure, fixed it here. Make use of SettingsProxy utlity classes for settings / getting values

Change-Id: I831583fde68de15788e3d7ecab55d864726d140f

Commit message LineageOS#2:

base: check whether device is charging when alwaysOnChargingEnabled is called

* Using settings for this is quite redundant. And if you toggle aod on charge after plugging in then aod won't turn on unless you unplug and plug again (since DOZE_ON_CHARGE_NOW is set only if aod on charge is enabled and device is plugged in"

Signed-off-by: jhonboy121 <[email protected]>

Commit message LineageOS#3:

base: fix deadlock between activity manager and power manager

* Using the battery manager intent to query plugged in status was the root cause of deadlock,
  so inside power manager, user mIsPowered and setting value instead of using the intent based power status

Signed-off-by: jhonboy121 <[email protected]>

[jhonboy121]: adapted to A13

Co-authored-by: jhonboy121 <[email protected]>
Signed-off-by: jhonboy121 <[email protected]>
Signed-off-by: Pranav Vashi <[email protected]>
ralf979 pushed a commit to Black-Iron-Project/frameworks_base that referenced this pull request Sep 22, 2025
@idoybh edits: Adapted to A11's settings backup
[jhonboy121]: adapt to A12 changes in DozeParameters. Also in the og commit DOZE_ALWAYS_ON was being read from System namespace instead of Secure, fixed it here. Make use of SettingsProxy utlity classes for settings / getting values

Change-Id: I831583fde68de15788e3d7ecab55d864726d140f

Commit message LineageOS#2:

base: check whether device is charging when alwaysOnChargingEnabled is called

* Using settings for this is quite redundant. And if you toggle aod on charge after plugging in then aod won't turn on unless you unplug and plug again (since DOZE_ON_CHARGE_NOW is set only if aod on charge is enabled and device is plugged in"

Signed-off-by: jhonboy121 <[email protected]>

Commit message LineageOS#3:

base: fix deadlock between activity manager and power manager

* Using the battery manager intent to query plugged in status was the root cause of deadlock,
  so inside power manager, user mIsPowered and setting value instead of using the intent based power status

Signed-off-by: jhonboy121 <[email protected]>

[jhonboy121]: adapted to A13

Co-authored-by: jhonboy121 <[email protected]>
Signed-off-by: jhonboy121 <[email protected]>
Signed-off-by: Pranav Vashi <[email protected]>
yusufnoor786 pushed a commit to Mist-OS-Staging/frameworks_base_los that referenced this pull request Oct 1, 2025
@idoybh edits: Adapted to A11's settings backup
[jhonboy121]: adapt to A12 changes in DozeParameters. Also in the og commit DOZE_ALWAYS_ON was being read from System namespace instead of Secure, fixed it here. Make use of SettingsProxy utlity classes for settings / getting values

Change-Id: I831583fde68de15788e3d7ecab55d864726d140f

Commit message LineageOS#2:

base: check whether device is charging when alwaysOnChargingEnabled is called

* Using settings for this is quite redundant. And if you toggle aod on charge after plugging in then aod won't turn on unless you unplug and plug again (since DOZE_ON_CHARGE_NOW is set only if aod on charge is enabled and device is plugged in"

Signed-off-by: jhonboy121 <[email protected]>

Commit message LineageOS#3:

base: fix deadlock between activity manager and power manager

* Using the battery manager intent to query plugged in status was the root cause of deadlock,
  so inside power manager, user mIsPowered and setting value instead of using the intent based power status

Signed-off-by: jhonboy121 <[email protected]>

[jhonboy121]: adapted to A13

Co-authored-by: jhonboy121 <[email protected]>
Signed-off-by: jhonboy121 <[email protected]>
Signed-off-by: Pranav Vashi <[email protected]>
keosh1 pushed a commit to Project-NovaLine/android_frameworks_base that referenced this pull request Oct 21, 2025
@idoybh edits: Adapted to A11's settings backup
[jhonboy121]: adapt to A12 changes in DozeParameters. Also in the og commit DOZE_ALWAYS_ON was being read from System namespace instead of Secure, fixed it here. Make use of SettingsProxy utlity classes for settings / getting values

Change-Id: I831583fde68de15788e3d7ecab55d864726d140f

Commit message LineageOS#2:

base: check whether device is charging when alwaysOnChargingEnabled is called

* Using settings for this is quite redundant. And if you toggle aod on charge after plugging in then aod won't turn on unless you unplug and plug again (since DOZE_ON_CHARGE_NOW is set only if aod on charge is enabled and device is plugged in"

Signed-off-by: jhonboy121 <[email protected]>

Commit message LineageOS#3:

base: fix deadlock between activity manager and power manager

* Using the battery manager intent to query plugged in status was the root cause of deadlock,
  so inside power manager, user mIsPowered and setting value instead of using the intent based power status

Signed-off-by: jhonboy121 <[email protected]>

[jhonboy121]: adapted to A13

Co-authored-by: jhonboy121 <[email protected]>
Signed-off-by: jhonboy121 <[email protected]>
Signed-off-by: Pranav Vashi <[email protected]>
yusufnoor786 pushed a commit to Project-Mist-OS/frameworks_base_los that referenced this pull request Nov 3, 2025
@idoybh edits: Adapted to A11's settings backup
[jhonboy121]: adapt to A12 changes in DozeParameters. Also in the og commit DOZE_ALWAYS_ON was being read from System namespace instead of Secure, fixed it here. Make use of SettingsProxy utlity classes for settings / getting values

Change-Id: I831583fde68de15788e3d7ecab55d864726d140f

Commit message LineageOS#2:

base: check whether device is charging when alwaysOnChargingEnabled is called

* Using settings for this is quite redundant. And if you toggle aod on charge after plugging in then aod won't turn on unless you unplug and plug again (since DOZE_ON_CHARGE_NOW is set only if aod on charge is enabled and device is plugged in"

Signed-off-by: jhonboy121 <[email protected]>

Commit message LineageOS#3:

base: fix deadlock between activity manager and power manager

* Using the battery manager intent to query plugged in status was the root cause of deadlock,
  so inside power manager, user mIsPowered and setting value instead of using the intent based power status

Signed-off-by: jhonboy121 <[email protected]>

[jhonboy121]: adapted to A13

Co-authored-by: jhonboy121 <[email protected]>
Signed-off-by: jhonboy121 <[email protected]>
Signed-off-by: Pranav Vashi <[email protected]>
yusufnoor786 pushed a commit to Mist-OS-Staging/frameworks_base_new that referenced this pull request Nov 5, 2025
@idoybh edits: Adapted to A11's settings backup
[jhonboy121]: adapt to A12 changes in DozeParameters. Also in the og commit DOZE_ALWAYS_ON was being read from System namespace instead of Secure, fixed it here. Make use of SettingsProxy utlity classes for settings / getting values

Change-Id: I831583fde68de15788e3d7ecab55d864726d140f

Commit message LineageOS#2:

base: check whether device is charging when alwaysOnChargingEnabled is called

* Using settings for this is quite redundant. And if you toggle aod on charge after plugging in then aod won't turn on unless you unplug and plug again (since DOZE_ON_CHARGE_NOW is set only if aod on charge is enabled and device is plugged in"

Signed-off-by: jhonboy121 <[email protected]>

Commit message LineageOS#3:

base: fix deadlock between activity manager and power manager

* Using the battery manager intent to query plugged in status was the root cause of deadlock,
  so inside power manager, user mIsPowered and setting value instead of using the intent based power status

Signed-off-by: jhonboy121 <[email protected]>

[jhonboy121]: adapted to A13

Co-authored-by: jhonboy121 <[email protected]>
Signed-off-by: jhonboy121 <[email protected]>
Signed-off-by: Pranav Vashi <[email protected]>
momenabdulrazek pushed a commit to ProjectSakura/frameworks_base that referenced this pull request Nov 16, 2025
@idoybh edits: Adapted to A11's settings backup
[jhonboy121]: adapt to A12 changes in DozeParameters. Also in the og commit DOZE_ALWAYS_ON was being read from System namespace instead of Secure, fixed it here. Make use of SettingsProxy utlity classes for settings / getting values

Change-Id: I831583fde68de15788e3d7ecab55d864726d140f

Commit message #2:

base: check whether device is charging when alwaysOnChargingEnabled is called

* Using settings for this is quite redundant. And if you toggle aod on charge after plugging in then aod won't turn on unless you unplug and plug again (since DOZE_ON_CHARGE_NOW is set only if aod on charge is enabled and device is plugged in"

Signed-off-by: jhonboy121 <[email protected]>

Commit message LineageOS#3:

base: fix deadlock between activity manager and power manager

* Using the battery manager intent to query plugged in status was the root cause of deadlock,
  so inside power manager, user mIsPowered and setting value instead of using the intent based power status

Signed-off-by: jhonboy121 <[email protected]>

[jhonboy121]: adapted to A13

Co-authored-by: jhonboy121 <[email protected]>
Signed-off-by: jhonboy121 <[email protected]>
Signed-off-by: Pranav Vashi <[email protected]>
yehonatan5785 pushed a commit to Lineage-OS-Special-Project/android_frameworks_base that referenced this pull request Dec 8, 2025
@idoybh edits: Adapted to A11's settings backup
[jhonboy121]: adapt to A12 changes in DozeParameters. Also in the og commit DOZE_ALWAYS_ON was being read from System namespace instead of Secure, fixed it here. Make use of SettingsProxy utlity classes for settings / getting values

Change-Id: I831583fde68de15788e3d7ecab55d864726d140f

Commit message LineageOS#2:

base: check whether device is charging when alwaysOnChargingEnabled is called

* Using settings for this is quite redundant. And if you toggle aod on charge after plugging in then aod won't turn on unless you unplug and plug again (since DOZE_ON_CHARGE_NOW is set only if aod on charge is enabled and device is plugged in"

Signed-off-by: jhonboy121 <[email protected]>

Commit message LineageOS#3:

base: fix deadlock between activity manager and power manager

* Using the battery manager intent to query plugged in status was the root cause of deadlock,
  so inside power manager, user mIsPowered and setting value instead of using the intent based power status

Signed-off-by: jhonboy121 <[email protected]>

[jhonboy121]: adapted to A13

Co-authored-by: jhonboy121 <[email protected]>
Signed-off-by: jhonboy121 <[email protected]>
Signed-off-by: Pranav Vashi <[email protected]>
momenabdulrazek pushed a commit to ProjectSakura/frameworks_base that referenced this pull request Dec 8, 2025
@idoybh edits: Adapted to A11's settings backup
[jhonboy121]: adapt to A12 changes in DozeParameters. Also in the og commit DOZE_ALWAYS_ON was being read from System namespace instead of Secure, fixed it here. Make use of SettingsProxy utlity classes for settings / getting values

Change-Id: I831583fde68de15788e3d7ecab55d864726d140f

Commit message #2:

base: check whether device is charging when alwaysOnChargingEnabled is called

* Using settings for this is quite redundant. And if you toggle aod on charge after plugging in then aod won't turn on unless you unplug and plug again (since DOZE_ON_CHARGE_NOW is set only if aod on charge is enabled and device is plugged in"

Signed-off-by: jhonboy121 <[email protected]>

Commit message LineageOS#3:

base: fix deadlock between activity manager and power manager

* Using the battery manager intent to query plugged in status was the root cause of deadlock,
  so inside power manager, user mIsPowered and setting value instead of using the intent based power status

Signed-off-by: jhonboy121 <[email protected]>

[jhonboy121]: adapted to A13

Co-authored-by: jhonboy121 <[email protected]>
Signed-off-by: jhonboy121 <[email protected]>
Signed-off-by: Pranav Vashi <[email protected]>
momenabdulrazek pushed a commit to ProjectSakura/frameworks_base that referenced this pull request Dec 8, 2025
@idoybh edits: Adapted to A11's settings backup
[jhonboy121]: adapt to A12 changes in DozeParameters. Also in the og commit DOZE_ALWAYS_ON was being read from System namespace instead of Secure, fixed it here. Make use of SettingsProxy utlity classes for settings / getting values

Change-Id: I831583fde68de15788e3d7ecab55d864726d140f

Commit message #2:

base: check whether device is charging when alwaysOnChargingEnabled is called

* Using settings for this is quite redundant. And if you toggle aod on charge after plugging in then aod won't turn on unless you unplug and plug again (since DOZE_ON_CHARGE_NOW is set only if aod on charge is enabled and device is plugged in"

Signed-off-by: jhonboy121 <[email protected]>

Commit message LineageOS#3:

base: fix deadlock between activity manager and power manager

* Using the battery manager intent to query plugged in status was the root cause of deadlock,
  so inside power manager, user mIsPowered and setting value instead of using the intent based power status

Signed-off-by: jhonboy121 <[email protected]>

[jhonboy121]: adapted to A13

Co-authored-by: jhonboy121 <[email protected]>
Signed-off-by: jhonboy121 <[email protected]>
Signed-off-by: Pranav Vashi <[email protected]>
momenabdulrazek pushed a commit to ProjectSakura/frameworks_base that referenced this pull request Dec 9, 2025
@idoybh edits: Adapted to A11's settings backup
[jhonboy121]: adapt to A12 changes in DozeParameters. Also in the og commit DOZE_ALWAYS_ON was being read from System namespace instead of Secure, fixed it here. Make use of SettingsProxy utlity classes for settings / getting values

Change-Id: I831583fde68de15788e3d7ecab55d864726d140f

Commit message #2:

base: check whether device is charging when alwaysOnChargingEnabled is called

* Using settings for this is quite redundant. And if you toggle aod on charge after plugging in then aod won't turn on unless you unplug and plug again (since DOZE_ON_CHARGE_NOW is set only if aod on charge is enabled and device is plugged in"

Signed-off-by: jhonboy121 <[email protected]>

Commit message LineageOS#3:

base: fix deadlock between activity manager and power manager

* Using the battery manager intent to query plugged in status was the root cause of deadlock,
  so inside power manager, user mIsPowered and setting value instead of using the intent based power status

Signed-off-by: jhonboy121 <[email protected]>

[jhonboy121]: adapted to A13

Co-authored-by: jhonboy121 <[email protected]>
Signed-off-by: jhonboy121 <[email protected]>
Signed-off-by: Pranav Vashi <[email protected]>
momenabdulrazek pushed a commit to ProjectSakura/frameworks_base that referenced this pull request Dec 9, 2025
@idoybh edits: Adapted to A11's settings backup
[jhonboy121]: adapt to A12 changes in DozeParameters. Also in the og commit DOZE_ALWAYS_ON was being read from System namespace instead of Secure, fixed it here. Make use of SettingsProxy utlity classes for settings / getting values

Change-Id: I831583fde68de15788e3d7ecab55d864726d140f

Commit message #2:

base: check whether device is charging when alwaysOnChargingEnabled is called

* Using settings for this is quite redundant. And if you toggle aod on charge after plugging in then aod won't turn on unless you unplug and plug again (since DOZE_ON_CHARGE_NOW is set only if aod on charge is enabled and device is plugged in"

Signed-off-by: jhonboy121 <[email protected]>

Commit message LineageOS#3:

base: fix deadlock between activity manager and power manager

* Using the battery manager intent to query plugged in status was the root cause of deadlock,
  so inside power manager, user mIsPowered and setting value instead of using the intent based power status

Signed-off-by: jhonboy121 <[email protected]>

[jhonboy121]: adapted to A13

Co-authored-by: jhonboy121 <[email protected]>
Signed-off-by: jhonboy121 <[email protected]>
Signed-off-by: Pranav Vashi <[email protected]>
yusufnoor786 pushed a commit to Mist-OS-Staging/frameworks_base_new that referenced this pull request Dec 20, 2025
@idoybh edits: Adapted to A11's settings backup
[jhonboy121]: adapt to A12 changes in DozeParameters. Also in the og commit DOZE_ALWAYS_ON was being read from System namespace instead of Secure, fixed it here. Make use of SettingsProxy utlity classes for settings / getting values

Change-Id: I831583fde68de15788e3d7ecab55d864726d140f

Commit message LineageOS#2:

base: check whether device is charging when alwaysOnChargingEnabled is called

* Using settings for this is quite redundant. And if you toggle aod on charge after plugging in then aod won't turn on unless you unplug and plug again (since DOZE_ON_CHARGE_NOW is set only if aod on charge is enabled and device is plugged in"

Signed-off-by: jhonboy121 <[email protected]>

Commit message LineageOS#3:

base: fix deadlock between activity manager and power manager

* Using the battery manager intent to query plugged in status was the root cause of deadlock,
  so inside power manager, user mIsPowered and setting value instead of using the intent based power status

Signed-off-by: jhonboy121 <[email protected]>

[jhonboy121]: adapted to A13

Co-authored-by: jhonboy121 <[email protected]>
Signed-off-by: jhonboy121 <[email protected]>
Signed-off-by: Pranav Vashi <[email protected]>
yusufnoor786 pushed a commit to Mist-OS-Staging/frameworks_base_new that referenced this pull request Dec 24, 2025
@idoybh edits: Adapted to A11's settings backup
[jhonboy121]: adapt to A12 changes in DozeParameters. Also in the og commit DOZE_ALWAYS_ON was being read from System namespace instead of Secure, fixed it here. Make use of SettingsProxy utlity classes for settings / getting values

Change-Id: I831583fde68de15788e3d7ecab55d864726d140f

Commit message LineageOS#2:

base: check whether device is charging when alwaysOnChargingEnabled is called

* Using settings for this is quite redundant. And if you toggle aod on charge after plugging in then aod won't turn on unless you unplug and plug again (since DOZE_ON_CHARGE_NOW is set only if aod on charge is enabled and device is plugged in"

Signed-off-by: jhonboy121 <[email protected]>

Commit message LineageOS#3:

base: fix deadlock between activity manager and power manager

* Using the battery manager intent to query plugged in status was the root cause of deadlock,
  so inside power manager, user mIsPowered and setting value instead of using the intent based power status

Signed-off-by: jhonboy121 <[email protected]>

[jhonboy121]: adapted to A13

Co-authored-by: jhonboy121 <[email protected]>
Signed-off-by: jhonboy121 <[email protected]>
Signed-off-by: Pranav Vashi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants