Merge "vendor: Add missing permissions for omadm" into arcadia
diff --git a/config/common.mk b/config/common.mk
index 2f08fb1..ebe07e5 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -135,6 +135,10 @@
PRODUCT_COPY_FILES += \
vendor/bliss/prebuilt/common/etc/permissions/privapp-permissions-lineagehw.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/privapp-permissions-lineagehw.xml
+# Omadm
+PRODUCT_COPY_FILES += \
+ vendor/bliss/config/permissions/privapp-permissions-omadm.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-omadm.xml
+
# Bliss Bootanimation
-include vendor/bliss/config/bootanimation.mk
diff --git a/config/permissions/privapp-permissions-omadm.xml b/config/permissions/privapp-permissions-omadm.xml
new file mode 100644
index 0000000..08f8fdb
--- /dev/null
+++ b/config/permissions/privapp-permissions-omadm.xml
@@ -0,0 +1,26 @@
+<!-- Copyright (C) 2021 PixelBlaster-OS
+ 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.
+-->
+<permissions>
+ <privapp-permissions package="com.android.omadm.service">
+ <permission name="android.permission.CHANGE_CONFIGURATION"/>
+ <permission name="android.permission.CONNECTIVITY_INTERNAL"/>
+ <permission name="android.permission.MODIFY_PHONE_STATE"/>
+ <permission name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
+ <permission name="android.permission.WRITE_APN_SETTINGS"/>
+ <permission name="android.permission.WRITE_SECURE_SETTINGS"/>
+ <permission name="android.permission.CONNECTIVITY_INTERNAL"/>
+ <permission name="android.permission.CONNECTIVITY_USE_RESTRICTED_NETWORKS"/>
+ <permission name="android.permission.START_ACTIVITIES_FROM_BACKGROUND"/>
+ </privapp-permissions>
+</permissions>
\ No newline at end of file