mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 19:55:33 -04:00
universal7885: CameraLightSensor: Add privapp permissions
* Logcat: Privileged permission android.permission.WRITE_SECURE_SETTINGS for package com.eurekateam.cameralightsensor (/system/priv-app/CameraLightSensor) not in privapp-permissions allowlist * Turn off debug bool too Change-Id: Ieae2542852568ceb40017db6a559ded185d582e3 Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
parent
76cf55b6b9
commit
e6d0c326c9
4 changed files with 27 additions and 3 deletions
|
|
@ -7,4 +7,12 @@ android_app {
|
|||
privileged: true,
|
||||
certificate: "platform",
|
||||
static_libs: [ "androidx.core_core" ],
|
||||
required: ["privapp_whitelist_com.eurekateam.cameralightsensor.xml"],
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "privapp_whitelist_com.eurekateam.cameralightsensor.xml",
|
||||
src: "privapp_whitelist_com.eurekateam.cameralightsensor.xml",
|
||||
sub_dir: "permissions",
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,12 +5,10 @@
|
|||
<uses-permission android:name="android.permission.WRITE_SETTINGS"/>
|
||||
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/>
|
||||
<uses-permission android:name="android.permission.CAMERA" />
|
||||
<uses-permission android:name="android.permission.RECORD_AUDIO" />
|
||||
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
||||
<uses-permission android:name="android.permission.CAMERA_OPEN_CLOSE_LISTENER"/>
|
||||
<uses-feature android:name="android.hardware.microphone" />
|
||||
<uses-feature android:name="android.hardware.camera" />
|
||||
<uses-feature android:name="android.hardware.camera2.full"/>
|
||||
<uses-feature android:name="android.hardware.camera.autofocus" />
|
||||
|
|
|
|||
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2021 Eureka Team
|
||||
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.eurekateam.cameralightsensor">
|
||||
<permission name="android.permission.WRITE_SECURE_SETTINGS"/>
|
||||
</privapp-permissions>
|
||||
</permissions>
|
||||
|
|
@ -43,7 +43,7 @@ import java.util.Collections;
|
|||
|
||||
public class CameraLightSensorService extends Service {
|
||||
protected static final String TAG = CameraLightSensorService.class.getSimpleName();
|
||||
static final boolean DEBUG = true;
|
||||
static final boolean DEBUG = false;
|
||||
IntentFilter screenStateFilter;
|
||||
private Context mContext;
|
||||
public ContentResolver contentResolver;
|
||||
|
|
|
|||
Loading…
Reference in a new issue