1# Copyright (C) 2020 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15module: "android.sysprop.PowerProperties" 16owner: Platform 17 18# Returns the scale factor to be used when verifying the FIXED_PERFORMANCE 19# power mode as described in the Power HAL AIDL description 20prop { 21 api_name: "fixed_performance_scale_factor" 22 type: Integer 23 scope: Public 24 access: Readonly 25 prop_name: "ro.power.fixed_performance_scale_factor" 26} 27 28# Suspends charge input into the battery. When this property is set, 29# the device will drain battery even when connected to a power source. 30prop { 31 api_name: "battery_input_suspended" 32 type: Boolean 33 scope: Internal 34 access: ReadWrite 35 prop_name: "power.battery_input.suspended" 36} 37 38# Allows apps to turn the screen on with android.os.PowerManager#ACQUIRE_CAUSES_WAKEUP 39# without being granted android.app.AppOpsManager#OP_TURN_SCREEN_ON. 40prop { 41 api_name: "permissionless_turn_screen_on" 42 type: Boolean 43 scope: Internal 44 access: ReadWrite 45 prop_name: "debug.power.permissionless_turn_screen_on" 46} 47 48# Waives the minimum target-sdk check for android.os.PowerManager#ACQUIRE_CAUSES_WAKEUP 49# and only allows the flag for apps holding android.permission.TURN_SCREEN_ON 50prop { 51 api_name: "waive_target_sdk_check_for_turn_screen_on" 52 type: Boolean 53 scope: Internal 54 access: Readonly 55 prop_name: "ro.power.waive_target_sdk_check_for_turn_screen_on" 56}