Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 21056512 authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Set foreground service type to SIM contact import

Bug: 257270313
Test: Manual test, importing a sim contact

SIM contact can be created with:
$ adb shell content insert --uri content://icc/adn --bind 'tag:s:SimContact'-$RANDOM --bind number:s:1555555555

Make sure the following logs were printed:
I ActivityManager: Short FGS started: ServiceRecord{5d3dc75 u0 com.android.contacts/.vcard.VCardService}
I ActivityManager: Stop short FGS timeout: ServiceRecord{5d3dc75 u0 com.android.contacts/.vcard.VCardService}

Note they show up because ActiveServices.DEBUG_SHORT_SERVICE is true.

Then wait for two minutes and make sure the app wouldn't get ANRed.

Change-Id: I111760ca57e7b02ccc29c6a1081e704d8f610aec
parent 189e4b80
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