summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Jing Ji <jji@google.com> 2022-11-06 11:33:57 -0800
committer Jing Ji <jji@google.com> 2022-11-15 05:18:24 -0800
commit8e4ffc82c27214003150a1dc776086952d02a75a (patch)
treed48b6a18998231dda60a706a9aab2b017329eded /libs/androidfw/misc.cpp
parent69027e0b0e15f203a6eaa072f9006ce221dfcd55 (diff)
Introduce foreground service type enforcement
All foreground services are required to declare a type now, or it'll get a ForegroundServiceTypeNotAllowedException if the app's target SDK level is Android U or later. Upon starting the foreground service, the app is required to have been granted with the proper permissions which are required by the foreground service types it's starting with. Deprecated the type "none" and "dataSync", introduced new types: "heath", "remoteMessaging", "systemExempted" and "specialUse". The implementation of the enforcement will be in a follow up CL. Bug: 246792057 Bug: 254662338 Test: atest CtsAppFgsTestCases Change-Id: I54e60b443df8134653379a6ff13e00ed14d3f194
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions