7926fe4632484ff73a136d83635c67b74eb5923f
Persistent apps are guaranteed to be running, are never frozen, and could get out of sync if broadcasts are deferred. Accordingly, never defer those broadcasts. Additionally, there was a case where both the persistent and instrumented flags could be incorrect: 1. App starts and hits attachApplicationLocked without ever being a broadcast target. 2. BroadcastQueueModernImpl.onApplicationAttachedLocked runs, but there is no queue for the app because nothing has enqueued a broadcast (which calls getOrCreateProcessQueue). Importantly, queue.setProcess(app) is not called. 3. Eventually, something enqueues a broadcast for the app. This calls getOrCreateProcessQueue as part of enqueueBroadcastLocked. 4. getOrCreateProcessQueue creates the queue and manually assigns app without calling setProcess. 5. mProcessInstrumented and mProcessPersistent are never assigned. The fix is to call setProcess(ProcessRecord) from getOrCreateProcessQueue when a ProcessRecord is available when a queue is created for an app. Test: atest FrameworksMockingServicesTests:BroadcastRecordTest Test: atest FrameworksMockingServicesTests:BroadcastQueueTest Test: atest FrameworksMockingServicesTests:BroadcastQueueModernImplTest Test: atest CtsWifiTestCases:android.net.wifi.cts.ConcurrencyTest#testRequestNetworkInfo Bug: 258718309 Change-Id: I3059cc602b8bc75d72fe3c15dd6674f91a37a0cd
Update boot image and system server profiles [M5C5P80S0], RESTRICT AUTOMERGE Since these are profiles for T release only. am:
9f9a36381c
Merge "Fix boot animation alpha multiplication computations" into tm-qpr-dev am:
b1b275b032 am: 03a7f370bc
Update boot image and system server profiles [M5C5P80S0], RESTRICT AUTOMERGE Since these are profiles for T release only. am:
9f9a36381c
…
…
…
…
…
…
…
Merge "Fix long screenshots actions for work profile." into tm-qpr-dev am:
a07000013b am: 1e5e9eeb8a
Merge "Letterbox Reacheability Multiplier Persistence" into tm-qpr-dev am:
a8117a579f am: 82a3d574a0
…
…
…
…
Merge "Override registerReceiver methods in test Context to accept flags" am:
57ff4b4589 am: ebd19a22d8 am: 3023e08134
…
Merge "Add lint api database files for module and system server sdks" am:
1291b83a2f am: 874a97ea01 am: fc3e0b2251
…
…
…
Description
No description provided
Languages
Java
73.7%
Kotlin
14%
PowerBuilder
5.8%
C++
5.2%
AIDL
1%