20241107给荣品PRO-RK3566开发板刷Rockchip原厂的Android13并配置永不休眠

Y:\repo_rk356x_android13\device\rockchip\rk356x\rk3566_t\BoardConfig.mk

Copyright 2014 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.

include device/rockchip/rk356x/BoardConfig.mk

BUILD_WITH_GO_OPT := false

PRODUCT_UBOOT_CONFIG := rk3566
#PRODUCT_KERNEL_DTS := rk3566-evb2-lp4x-v10
PRODUCT_KERNEL_DTS := pro-rk3566

BOARD_GSENSOR_MXC6655XA_SUPPORT := true

BOARD_CAMERA_SUPPORT_EXT := true

BOARD_HS_ETHERNET := true

AB image definition

BOARD_USES_AB_IMAGE := false

BOARD_ROCKCHIP_VIRTUAL_AB_ENABLE := false

BOARD_ROCKCHIP_VIRTUAL_AB_COMPRESSION_WITH_GKI_ENABLE := false

ifeq ((strip (BOARD_USES_AB_IMAGE)), true)

include device/rockchip/common/BoardConfig_AB.mk

TARGET_RECOVERY_FSTAB := device/rockchip/rk356x/rk3566_t/recovery.fstab_AB

endif

20241107给荣品PRO-RK3566开发板刷Rockchip原厂的Android13并配置永不休眠

2024/11/7 9:15

1、

Y:\repo_rk356x_android13\device\rockchip\common\device.mk

ifeq ((strip (TARGET_BOARD_PLATFORM_PRODUCT)), box)

#include device/rockchip/common/samba/rk31_samba.mk

PRODUCT_COPY_FILES += \

(LOCAL_PATH)/init.box.samba.rc:(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.box.samba.rc \

device/rockchip/common/cifsmanager.sh:system/bin/cifsmanager.sh

PRODUCT_PROPERTY_OVERRIDES += \

ro.rk.screenoff_time=2147483647
else
PRODUCT_PROPERTY_OVERRIDES += \
ro.rk.screenoff_time=60000
endif

修改为:
ifeq ((strip (TARGET_BOARD_PLATFORM_PRODUCT)), box)
#include device/rockchip/common/samba/rk31_samba.mk
PRODUCT_COPY_FILES += \
(LOCAL_PATH)/init.box.samba.rc:(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.box.samba.rc \
device/rockchip/common/cifsmanager.sh:system/bin/cifsmanager.sh

PRODUCT_PROPERTY_OVERRIDES += \
ro.rk.screenoff_time=2147483647
else
PRODUCT_PROPERTY_OVERRIDES += \
ro.rk.screenoff_time=2147483647
endif

2、Y:\repo_rk356x_android13\device\rockchip\rk356x\overlay\frameworks\base\packages\SettingsProvider\res\values\defaults.xml

<?xml version="1.0" encoding="utf-8"?>

<!--

/**

* Copyright (c) 2009, 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>
<integer name="def_screen_off_timeout">60000</integer>

<!-- Initial value for the Settings.Secure.IMMERSIVE_MODE_CONFIRMATIONS setting,

which is a comma separated list of packages that no longer need confirmation

for immersive mode.

Override to disable immersive mode confirmation for certain packages. -->

<string name="def_immersive_mode_confirmations" translatable="false">confirmed</string>

<bool name="def_bluetooth_on">false</bool>

<bool name="def_accelerometer_rotation">false</bool>

<!-- 0 == Always sleep

1 == Do not sleep when plugged in

2 == Never sleep

When the screen is off, it will enter the sleep policy.

You can configure persist.wifi.sleep.delay.ms to delay closing wifi.

The default is 15 minutes, 0 means that the wifi is turned off

immediately after the screen is off. -->

<integer name="def_wifi_sleep_policy">2</integer>

<!-- Decrease animation duration. -->

<fraction name="def_window_animation_scale">50%</fraction>

<fraction name="def_window_transition_scale">50%</fraction>

</resources>

修改为:

<?xml version="1.0" encoding="utf-8"?>

<!--

/**

* Copyright (c) 2009, 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>
<integer name="def_screen_off_timeout">2147483647</integer>

<!-- Initial value for the Settings.Secure.IMMERSIVE_MODE_CONFIRMATIONS setting,

which is a comma separated list of packages that no longer need confirmation

for immersive mode.

Override to disable immersive mode confirmation for certain packages. -->

<string name="def_immersive_mode_confirmations" translatable="false">confirmed</string>

<bool name="def_bluetooth_on">false</bool>

<bool name="def_accelerometer_rotation">false</bool>

<!-- 0 == Always sleep

1 == Do not sleep when plugged in

2 == Never sleep

When the screen is off, it will enter the sleep policy.

You can configure persist.wifi.sleep.delay.ms to delay closing wifi.

The default is 15 minutes, 0 means that the wifi is turned off

immediately after the screen is off. -->

<integer name="def_wifi_sleep_policy">2</integer>

<!-- Decrease animation duration. -->

<fraction name="def_window_animation_scale">50%</fraction>

<fraction name="def_window_transition_scale">50%</fraction>

</resources>

3、

Y:\repo_rk356x_android13\frameworks\base\packages\SettingsProvider\res\values\defaults.xml

<resources>

<bool name="def_dim_screen">true</bool>
<integer name="def_screen_off_timeout">60000</integer>

<integer name="def_sleep_timeout">-1</integer>

<bool name="def_airplane_mode_on">false</bool>

<bool name="def_theater_mode_on">false</bool>

修改为:

<resources>

<bool name="def_dim_screen">true</bool>
<integer name="def_screen_off_timeout">2147483647</integer>

<integer name="def_sleep_timeout">-1</integer>

<bool name="def_airplane_mode_on">false</bool>

<bool name="def_theater_mode_on">false</bool>

<bool name="def_lockscreen_disabled">false</bool>

<bool name="def_device_provisioned">false</bool>

<integer name="def_dock_audio_media_enabled">1</integer>

修改为:
<bool name="def_lockscreen_disabled">true</bool>

<bool name="def_device_provisioned">false</bool>

<integer name="def_dock_audio_media_enabled">1</integer>

4、【可选】

Y:\repo_rk356x_android13\packages\apps\Settings\res\values\arrays.xml

<!-- Display settings. The delay in inactivity before the screen is turned off. These are shown in a list dialog. -->

<string-array name="screen_timeout_entries">

<item>15 seconds</item>

<item>30 seconds</item>

<item>1 minute</item>

<item>2 minutes</item>

<item>5 minutes</item>

<item>10 minutes</item>

<item>30 minutes</item>

</string-array>

<!-- Do not translate. -->

<string-array name="screen_timeout_values" translatable="false">

<!-- Do not translate. -->

<item>15000</item>

<!-- Do not translate. -->

<item>30000</item>

<!-- Do not translate. -->

<item>60000</item>

<!-- Do not translate. -->

<item>120000</item>

<!-- Do not translate. -->

<item>300000</item>

<!-- Do not translate. -->

<item>600000</item>

<!-- Do not translate. -->

<item>1800000</item>

</string-array>

修改为:

<!-- Display settings. The delay in inactivity before the screen is turned off. These are shown in a list dialog. -->

<string-array name="screen_timeout_entries">

<item>15 seconds</item>

<item>30 seconds</item>

<item>1 minute</item>

<item>2 minutes</item>

<item>5 minutes</item>

<item>10 minutes</item>

<item>30 minutes</item>
<item>Never</item>

</string-array>

<!-- Do not translate. -->

<string-array name="screen_timeout_values" translatable="false">

<!-- Do not translate. -->

<item>15000</item>

<!-- Do not translate. -->

<item>30000</item>

<!-- Do not translate. -->

<item>60000</item>

<!-- Do not translate. -->

<item>120000</item>

<!-- Do not translate. -->

<item>300000</item>

<!-- Do not translate. -->

<item>600000</item>

<!-- Do not translate. -->

<item>1800000</item>
<!-- Do not translate. -->
<item>2147483647</item>

</string-array>

相关推荐
南棱笑笑生5 小时前
20250609在荣品的PRO-RK3566开发板的Android13下解决串口可以执行命令但是脚本执行命令异常的问题
杂质
南棱笑笑生19 小时前
20250607在荣品的PRO-RK3566开发板的Android13系统下实现长按开机之后出现插入适配器不会自动启动的问题的解决
杂质
南棱笑笑生6 天前
20250603在荣品的PRO-RK3566开发板的Android13下的命令行查看RK3566的温度
杂质
南棱笑笑生7 天前
20250602在荣品的PRO-RK3566开发板的Android13下的uboot启动阶段配置BOOTDELAY为10s
杂质
南棱笑笑生7 天前
20250602在Ubuntu20.04.6下修改压缩包的日期和时间
杂质
南棱笑笑生14 天前
20250526给荣品PRO-RK3566的Android13单独编译boot.img
杂质
南棱笑笑生20 天前
20250520在全志H3平台的Nano Pi NEO CORE开发板上运行Ubuntu Core16.04.3时跑通4G模块EC20
杂质
南棱笑笑生25 天前
20250515配置联想笔记本电脑IdeaPad总是使用独立显卡的步骤
杂质
南棱笑笑生1 个月前
20250513给NanoPi NEO core开发板的Ubuntu core20.04系统重新编译内核boot.img【正式版本】
杂质
南棱笑笑生1 个月前
20250508在WIN10下使用移远的4G模块EC200A-CN直接上网
杂质