Skip to content

Commit

Permalink
Merge pull request #114 from ryenyuku/pie
Browse files Browse the repository at this point in the history
Declare config_is_powerbutton_fps for Infinix Note 30
  • Loading branch information
phhusson authored Jun 12, 2024
2 parents 3a2764c + b4b21cf commit 24b4042
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 9 deletions.
38 changes: 34 additions & 4 deletions Infinix/Note30-SystemUI/res/values/dimens.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (c) 2006, 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.
*/
-->
<resources>
<dimen name="physical_fingerprint_sensor_center_screen_location_x">1080.0px</dimen>
<dimen name="physical_fingerprint_sensor_center_screen_location_y">1130.0px</dimen>
<dimen name="physical_power_button_center_screen_location_y">1130.0px</dimen>
<!-- Location on the screen of the center of the fingerprint sensor. For devices with under
display fingerprint sensors, this directly corresponds to the fingerprint sensor's location.
For devices with sensors on the back of the device, this corresponds to the location on the
screen directly in front of the sensor.
By default, this is set to @null to use the horizontal center of the screen. -->
<dimen name="physical_fingerprint_sensor_center_screen_location_x">1080px</dimen>

<!-- Location on the screen of the center of the fingerprint sensor. For devices with under
display fingerprint sensors, this directly corresponds to the fingerprint sensor's location.
For devices with sensors on the back of the device, this corresponds to the location on the
screen directly in front of the sensor. -->
<dimen name="physical_fingerprint_sensor_center_screen_location_y">1130px</dimen>

<!-- Location on the screen of the center of the physical power button. This is a reasonable
default that should be overridden by device-specific overlays. -->
<dimen name="physical_power_button_center_screen_location_y">@dimen/physical_fingerprint_sensor_center_screen_location_y</dimen>

<dimen name="rounded_corner_content_padding">55px</dimen>
<dimen name="status_bar_padding_start">0px</dimen>
<dimen name="status_bar_padding_end">0px</dimen>
<dimen name="status_bar_padding_start">0px</dimen>
</resources>
1 change: 1 addition & 0 deletions Infinix/Note30/res/values/bools.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="skip_restoring_network_selection">true</bool>
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
<bool name="config_is_powerbutton_fps">true</bool>
</resources>
38 changes: 34 additions & 4 deletions Infinix/Note30Pro-SystemUI/res/values/dimens.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (c) 2006, 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.
*/
-->
<resources>
<dimen name="physical_fingerprint_sensor_center_screen_location_x">1080.0px</dimen>
<dimen name="physical_fingerprint_sensor_center_screen_location_y">1140.0px</dimen>
<dimen name="physical_power_button_center_screen_location_y">1140.0px</dimen>
<!-- Location on the screen of the center of the fingerprint sensor. For devices with under
display fingerprint sensors, this directly corresponds to the fingerprint sensor's location.
For devices with sensors on the back of the device, this corresponds to the location on the
screen directly in front of the sensor.
By default, this is set to @null to use the horizontal center of the screen. -->
<dimen name="physical_fingerprint_sensor_center_screen_location_x">1080px</dimen>

<!-- Location on the screen of the center of the fingerprint sensor. For devices with under
display fingerprint sensors, this directly corresponds to the fingerprint sensor's location.
For devices with sensors on the back of the device, this corresponds to the location on the
screen directly in front of the sensor. -->
<dimen name="physical_fingerprint_sensor_center_screen_location_y">1140px</dimen>

<!-- Location on the screen of the center of the physical power button. This is a reasonable
default that should be overridden by device-specific overlays. -->
<dimen name="physical_power_button_center_screen_location_y">@dimen/physical_fingerprint_sensor_center_screen_location_y</dimen>

<dimen name="rounded_corner_content_padding">55px</dimen>
<dimen name="status_bar_padding_start">0px</dimen>
<dimen name="status_bar_padding_end">0px</dimen>
<dimen name="status_bar_padding_start">0px</dimen>
</resources>
2 changes: 1 addition & 1 deletion Infinix/Note30Pro/res/values/bools.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<bool name="config_switch_phone_on_voice_reg_state_change">false</bool>
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="skip_restoring_network_selection">true</bool>
<bool name="config_is_powerbutton_fps">true</bool>
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
<bool name="config_is_powerbutton_fps">true</bool>
</resources>

0 comments on commit 24b4042

Please sign in to comment.