mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 11:55:31 -04:00
universal7885: permission: Give cameraserver access to more sensors
This fixes: ActivityManager: No such permission: com.samsung.permission.HRM_EXT ActivityManager: android.content.pm.PackageManager$NameNotFoundException: com.samsung.permission.HRM_EXT ActivityManager: at android.app.ApplicationPackageManager.getPermissionInfo(ApplicationPackageManager.java:327) ActivityManager: at com.android.server.am.ActivityManagerService$PermissionController.isRuntimePermission(ActivityManagerService.java:5802) ActivityManager: at android.os.IPermissionController$Stub.onTransact(IPermissionController.java:153) ActivityManager: at android.os.Binder.execTransactInternal(Binder.java:1021) ActivityManager: at android.os.Binder.execTransact(Binder.java:994) ActivityManager: at com.android.server.SystemServer.startSensorService(Native Method) ActivityManager: at com.android.server.SystemServer.lambda$startBootstrapServices$0(SystemServer.java:832) ActivityManager: at com.android.server.-$$Lambda$SystemServer$UyrPns7R814g-ZEylCbDKhe8It4.run(Unknown Source:0) ActivityManager: at com.android.server.SystemServerInitThreadPool.lambda$submit$0$SystemServerInitThreadPool(SystemServerInitThreadPool.java:72) ActivityManager: at com.android.server.-$$Lambda$SystemServerInitThreadPool$jLyL3DFmbjsFesU5SGktD3NoWSc.run(Unknown Source:6) ActivityManager: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462) ActivityManager: at java.util.concurrent.FutureTask.run(FutureTask.java:266) ActivityManager: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) ActivityManager: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) ActivityManager: at com.android.internal.util.ConcurrentUtils$1$1.run(ConcurrentUtils.java:62) Change-Id: I02f072ea074004a95c13fab6c8cbb4380971824f Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
This commit is contained in:
parent
509cba566f
commit
bdecaabbd0
2 changed files with 25 additions and 1 deletions
23
configs/permissions/platform-samsung.xml
Normal file
23
configs/permissions/platform-samsung.xml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2008 The Android Open Source 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.
|
||||
-->
|
||||
|
||||
<!-- This file is used to define the mappings between lower-level system
|
||||
user and group IDs and the higher-level permission names managed
|
||||
by the platform.
|
||||
Be VERY careful when editing this file! Mistakes made here can open
|
||||
big security holes.
|
||||
-->
|
||||
<permissions>
|
||||
<assign-permission name="com.samsung.permission.HRM_EXT" uid="cameraserver" />
|
||||
<assign-permission name="com.samsung.permission.SSENSOR" uid="cameraserver" />
|
||||
</permissions>
|
||||
|
|
@ -54,7 +54,8 @@ PRODUCT_COPY_FILES += \
|
|||
frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.ethernet.xml \
|
||||
frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.fingerprint.xml \
|
||||
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.sensor.proximity.xml \
|
||||
frameworks/native/data/etc/android.software.controls.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.software.controls.xml
|
||||
frameworks/native/data/etc/android.software.controls.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.software.controls.xml \
|
||||
$(LOCAL_PATH)/configs/permissions/platform-samsung.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/platform-samsung.xml \
|
||||
|
||||
# Power
|
||||
PRODUCT_PACKAGES += \
|
||||
|
|
|
|||
Loading…
Reference in a new issue