android_device_samsung_a20/configs/permissions/platform-samsung.xml
Andreas Schneider bdecaabbd0 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>
2021-10-21 22:12:08 +09:00

23 lines
1.1 KiB
XML

<?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>