Skip to content
Commit d3de0b9f authored by Hui Yu's avatar Hui Yu
Browse files

Debug missing foregrounsServiceType does not need procstate to be

foreground service.

This CL is a continuation of ag/10556520, If manifest missing foregrounsServiceType
 camera/microphone in manifest file and the process is asking for camera/microphone ops,
generate a WTF log.

Do this also for targetSdkVersion lower than R so we know they need it
if targetSdkVersion is R.

The process state does not need to be strictly foreground service state,
it can be any other foreground state, the process just have a foreground
service running.

Also change the WTF log frequency to up to one per 10 minutes because
we only see about 80 WTF logs per day. The server can handle more.

Bug: 150892326
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerProcessStateTest.java
atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java

Change-Id: I35bf3768d0dc6ed6aa6011189f6b6d92b51029b5
parent 00a77668
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment