Whitelist some of our own broadcast actions
* Starting with Oreo, all the apps that target O+ are always subject to background restrictions (android/platform_frameworks_base@42a386b771). The manifest-registered receivers of apps with a targetSdkVersion higher than 25 won't receive the broadcast. Instead, a message similar to the following will appear in LogCat: 10-07 14:13:49.594 719 736 W BroadcastQueue: Background execution not allowed: receiving Intent { act=lineageos.intent.action.LID_STATE_CHANGED flg=0x20000010 (has extras) } to org.lineageos.flipflap/.EventReceiver * Exempt some of our broadcast actions so that we can keep targetting the latest SDK. Change-Id: I075608e18994f64db5e89658757dca307f07c417
This commit is contained in:
committed by
Sam Mortimer
parent
c10885231f
commit
a1b47e3d10
@@ -50,6 +50,10 @@ PRODUCT_COPY_FILES += \
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/lineage/config/permissions/backup.xml:system/etc/sysconfig/backup.xml
|
||||
|
||||
# Lineage-specific broadcast actions whitelist
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/lineage/config/permissions/lineage-sysconfig.xml:system/etc/sysconfig/lineage-sysconfig.xml
|
||||
|
||||
# Signature compatibility validation
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/lineage/prebuilt/common/bin/otasigcheck.sh:install/bin/otasigcheck.sh
|
||||
|
24
config/permissions/lineage-sysconfig.xml
Normal file
24
config/permissions/lineage-sysconfig.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2017 The LineageOS Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<config>
|
||||
|
||||
<!-- Broadcast actions that are currently exempted from O+ background
|
||||
delivery restrictions. -->
|
||||
<allow-implicit-broadcast action="lineageos.intent.action.INITIALIZE_LINEAGE_HARDWARE" />
|
||||
<allow-implicit-broadcast action="lineageos.intent.action.LID_STATE_CHANGED" />
|
||||
|
||||
</config>
|
Reference in New Issue
Block a user