Fork from pix106's tree
Find a file
Rick Yiu 5183d7fb36 sdm660-common: sepolicy: Add permission to access proc_energy_aware file node
Energy aware feature control is previously done through debugfs,
which will be deprecated, so move the control to sysctl. Added
permisson for it, and removed the one unused.

[    1.460128] audit: type=1400 audit(2753763.033:8): avc:  denied  { write } for  pid=537 comm="init" name="energy_aware" dev="proc" ino=21663 scontext=u:r:vendor_init:s0 tcontext=u:object_r:proc:s0 tclass=file permissive=0

10-05 16:49:18.933   820   820 W NodeLooperThrea: type=1400 audit(0.0:1097): avc: denied { write } for name="energy_aware" dev="proc" ino=66567 scontext=u:r:hal_power_default:s0 tcontext=u:object_r:proc:s0 tclass=file permissive=0

10-05 17:00:15.726   822   822 W NodeLooperThrea: type=1400 audit(0.0:262): avc: denied { open } for path="/proc/sys/kernel/energy_aware" dev="proc" ino=51228 scontext=u:r:hal_power_default:s0 tcontext=u:object_r:proc:s0 tclass=file permissive=0

Bug: 141333728
Test: function works as expected
Change-Id: I2b4eda73bfa34824244e21d804b48eee49a71eae
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
biometrics Revert "sdm660-common: Replace writepid with task_profiles command for cgroup migration" 2021-12-31 07:51:33 +01:00
bluetooth sdm660-common: Aosp-ify bluetooth 2021-12-31 07:51:33 +01:00
configs sdm660-common: configs: Update config.fs from LA.UM.9.2.1.r1-08700-sdm660.0 2021-12-31 07:51:33 +01:00
data-ipa-cfg-mgr sdm660-common: data-ipa-cfg-mgr: Address ipacm start failure 2021-12-31 07:51:33 +01:00
DeviceDoze sdm660-common: DeviceDoze: Adapt to S style 2021-12-31 07:51:33 +01:00
DeviceSettings sdm660-common: DeviceSettings: Adapt to S style 2021-12-31 07:51:33 +01:00
gps sdm660-common: gps: Localise NTP to improve GPS TTFF 2021-05-18 05:04:04 +06:00
init Revert "sdm660-common: Add back fingerprint overrides into init" 2021-12-31 07:51:33 +01:00
ir sdm660-common: ir: Wire up lirc/spi logic 2021-11-13 11:31:51 +01:00
libhidl sdm660-common: libhidl: Move to Android.bp 2021-11-13 11:31:51 +01:00
libqti-perfd-client sdm660-common: libqti-perfd-client: Move to C 2021-11-13 11:32:12 +01:00
libshims sdm660-common: Move to SPDX license identifier 2021-11-13 11:31:51 +01:00
light sdm660-common: light: Specify version for aidl_interface explicitly 2021-12-31 07:51:33 +01:00
org.ifaa.android.manager extras: Make IFAAManager compile again 2021-12-31 07:51:33 +01:00
overlay sdm660-common: overlay: Show 4G icon for all carriers 2021-12-31 07:51:33 +01:00
overlay-lineage sdm660-common: overlay-lineage: Enable call recording 2020-12-30 22:06:56 +06:00
power-libperfmgr sdm660-common: Fix TASchedtuneBoost at 1 2021-12-31 07:51:33 +01:00
powerstats sdm660-common: powerstats: Use only full qualified name for manifest entries 2021-12-31 07:51:33 +01:00
properties sdm660-common: properties: remove duplicated properties 2021-12-31 07:51:33 +01:00
rootdir sdm660-common: Fix TASchedtuneBoost at 1 2021-12-31 07:51:33 +01:00
rro_overlays/WifiOverlay sdm660-common: Drop TetheringOverlay 2021-12-31 07:51:33 +01:00
seccomp sdm660-common: Update RIL from curtana V12.0.1.7.RJWMIXM 2021-06-11 08:33:27 +06:00
sepolicy sdm660-common: sepolicy: Add permission to access proc_energy_aware file node 2021-12-31 07:51:33 +01:00
usb sdm660-common: Move to SPDX license identifier 2021-12-31 07:51:33 +01:00
.clang-format sdm660-common: Improve lights HAL 2020-08-12 02:02:37 +06:00
Android.bp sdm660-common: Include hardware/google/interfaces and hardware/google/pixel 2021-03-10 12:37:38 +06:00
Android.mk sdm660-common: Create CneApp symlinks 2021-12-31 07:51:33 +01:00
BoardConfigCommon.mk sdm660-common: Temporary build permissive 2021-12-31 07:51:33 +01:00
compatibility_matrix.xml sdm660-common: Add netutils-wrapper to device compatibility matrix 2021-06-30 05:50:02 +06:00
extract-files.sh sdm660-common: Import IR HALs 2021-11-13 11:31:51 +01:00
framework_manifest.xml sdm660-common: Add diag hal interface 2021-12-31 07:51:33 +01:00
manifest.xml sdm660-common: Update LPA interface version 2021-12-31 07:51:33 +01:00
proprietary-files-ir.txt sdm660-common: Import IR HALs 2021-11-13 11:31:51 +01:00
proprietary-files.txt sdm660-common: Import datastatusnotification from coral SP1A.210812.015 2021-12-31 07:51:33 +01:00
README.md sdm660-common: Update common tree and adapt changes 2021-03-21 23:27:59 +06:00
sdm660.mk sdm660-common: Add qti-telephony-hidl-wrapper-prd 2021-12-31 07:51:33 +01:00
setup-makefiles.sh sdm660-common: Import IR HALs 2021-11-13 11:31:51 +01:00
update-sha1sums.py sdm660-common: update-sha1sums: handle FileNotFound exception 2021-11-13 11:31:51 +01:00

This repository contains device configuration for Xiaomi-SDM660 devices

Basic Spec Sheet
CPU Quad-core 1.84 GHz Qualcomm Kryo 260 LP
CPU Quad-core 2.20 GHz Qualcomm Kryo 260 HP
Chipset Qualcomm Snapdragon 660, SDM660
GPU Adreno 512
ROM 32/64/128GB
RAM 3/4/6GB
Android 8.1.0

Notes:

  • Depends on: android_packages_resources_devicesettings from LineageOS
  • Depends on: LA.QSSI.11.0.r1-09100-qssi.0 tag for vendor_codeaurora_telephony
  • Depends on: LA.UM.9.6.2.r1-03600-89xx.0 tag for GPS and WFD

Currently Supported Devices:

  • clover (MI PAD 4 /4 Plus)
  • jason (Redmi Note 3)
  • jasmine_sprout (MI A2)
  • lavender (Redmi Note 7)
  • platina (Mi 8 Lite)
  • tulip (Redmi Note 6 Pro)
  • wayne (MI 6X)
  • whyred (Redmi Note 5)
#
# Copyright (C) 2018 The LineageOS Project
# Copyright (C) 2018-2021 Xiaomi-SDM660 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.
#