Commit 23d50a3
core: Avoid DeadSystemException recursion when dropbox is unavailable
During early boot, framework callers can ask for DropBoxManager before the
`dropbox` binder has been published. Using getServiceOrThrow() sends that path
through onServiceNotFound(), which emits another WTF from a core process and can
cascade into recursive error handling while system_server is already failing.
Switch DROPBOX_SERVICE to ServiceManager.getService(), return null while the
binder is still absent, and treat dropbox as an allowed transiently-unavailable
service in getSystemService(). This keeps the early-boot path null-safe without
spamming an extra WTF that can amplify DeadSystemException-style failures.
Signed-off-by: Quince <quinceroms@gmail.com>1 parent b5f4dab commit 23d50a3
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
583 | | - | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
584 | 587 | | |
585 | 588 | | |
586 | 589 | | |
| |||
2109 | 2112 | | |
2110 | 2113 | | |
2111 | 2114 | | |
| 2115 | + | |
2112 | 2116 | | |
2113 | 2117 | | |
2114 | 2118 | | |
| |||
0 commit comments