Commit ad6abb5
am: Block MEDIA_MOUNTED broadcast for restricted apps
This blocks ACTION_MEDIA_MOUNTED for victims of "strict standby" and
"force background freezer". Some apps e.g. MobileQQ are using this for
boot completed notification, which could block the process of serialized
broadcast for quite a while.
Also move `=` to `.equals()` because the latter one is the proper way
for comparing strings, although the former one is just working fine
statically within system server context.
Change-Id: I46a85e7d9f386b10e6001697cf98f77ff058c3e7
Signed-off-by: LibXZR <i@xzr.moe>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: Dmitrii <bankersenator@gmail.com>
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>1 parent 068dd4b commit ad6abb5
1 file changed
Lines changed: 4 additions & 3 deletions
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1147 | 1147 | | |
1148 | 1148 | | |
1149 | 1149 | | |
1150 | | - | |
1151 | | - | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
1152 | 1153 | | |
1153 | 1154 | | |
1154 | 1155 | | |
| |||
1530 | 1531 | | |
1531 | 1532 | | |
1532 | 1533 | | |
1533 | | - | |
| 1534 | + | |
1534 | 1535 | | |
1535 | 1536 | | |
1536 | 1537 | | |
| |||
0 commit comments