omni: add OmniOta to bg-restriction-exemption

so it wont show up in FGS with stop button to
cancel update or download - they have dedicated
stop buttons anyway too

system update_engine wont stop anyway so it would
continue in bg without the app knowing

Change-Id: I8ce608887762195dbc30a327e43a11e1e12dff55
diff --git a/config/common.mk b/config/common.mk
index cf5c005..ae7d5fc 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -65,6 +65,10 @@
 PRODUCT_COPY_FILES += \
     vendor/omni/prebuilt/etc/sysconfig/backup.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/backup.xml
 
+# bg excemption whitelist
+PRODUCT_COPY_FILES += \
+    vendor/omni/prebuilt/etc/sysconfig/omniota.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/sysconfig/omniota.xml
+
 # Init script file with omni extras
 PRODUCT_COPY_FILES += \
     vendor/omni/prebuilt/etc/init.local.rc:$(TARGET_COPY_OUT_SYSTEM)/etc/init/init.omni.rc
diff --git a/prebuilt/etc/sysconfig/omniota.xml b/prebuilt/etc/sysconfig/omniota.xml
new file mode 100644
index 0000000..9d0b938
--- /dev/null
+++ b/prebuilt/etc/sysconfig/omniota.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2016 The CyanogenMod 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>
+    <bg-restriction-exemption
+        package="org.omnirom.omniota" />
+</config>
+