Merge "battery: disable wireless for pts battery test" into rvc-d1-dev

Change-Id: I4121069c41ca0e87fa06bf99909751320485d41b
Change-Id: I5d2a0b4bef6e02e5e0646b00e4428fd1851ba0c8
Change-Id: I4a6f17d4e5964e9a985a9f39940ea67e89dcb39b
Change-Id: Id1909ecd8e9a9ae3d52caff7513575fd3898c7c7
Change-Id: Idb5288c116016520b31abcb382629be661df4a48
This commit is contained in:
TreeHugger Robot 2020-05-19 06:01:10 +00:00 committed by Cyan_Hsieh
commit a2d0b79cfb
2 changed files with 26 additions and 0 deletions

View File

@ -178,6 +178,8 @@ PRODUCT_COPY_FILES += \
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.hardware.chamber.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_HARDWARE).chamber.rc
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.hardware.wlc.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_PLATFORM).wlc.rc
endif
# Audio effects

View File

@ -0,0 +1,24 @@
#
# Copyright (C) 2018 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.
#
on property:sys.boot_completed=1 && property:persist.vendor.limit.wlc.current=1
write /sys/class/power_supply/dc/current_max 75000
on property:sys.boot_completed=1 && property:persist.vendor.limit.wlc.current=0
write /sys/class/power_supply/dc/current_max 1100000
on property:vendor.disable.wlc=1
write /sys/class/power_supply/wireless/online 0