Skip to content

Commit

Permalink
raphael: overlay: Set fast charging indicator threshold to 10.8W
Browse files Browse the repository at this point in the history
We no longer call 7.5W charging "fast charging" nowadays
  • Loading branch information
jesec authored and kondors1995 committed Dec 31, 2023
1 parent 09b1e05 commit f605fb3
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
11 changes: 11 additions & 0 deletions rro_overlays/SettingsLibRaphael/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//
// Copyright (C) 2021 The LineageOS Project
// Copyright (C) 2022 Evolution X
// SPDX-License-Identifier: Apache-2.0
//

runtime_resource_overlay {
name: "SettingsLibRaphael",
theme: "SettingsLibRaphael",
product_specific: true,
}
15 changes: 15 additions & 0 deletions rro_overlays/SettingsLibRaphael/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2021 The LineageOS Project
Copyright (C) 2022 Evolution X
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.settingslib.overlay.raphael">

<application android:allowBackup="false"/>
<overlay
android:isStatic="true"
android:priority="750"
android:targetPackage="com.android.settingslib" />
</manifest>
21 changes: 21 additions & 0 deletions rro_overlays/SettingsLibRaphael/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2019 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.
-->
<!-- These resources are around just to allow their values to be customized -->
<resources>
<!-- Threshold in micro watts above which a charger is rated as "fast"; 2.16A @ 5V -->
<integer name="config_chargingFastThreshold">10800000</integer>
</resources>

0 comments on commit f605fb3

Please sign in to comment.