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