20230123使AIO-3568J开发板在Android12下永不休眠

20230123使AIO-3568J开发板在Android12下永不休眠
2023/1/23 13:59


1、
Z:\android12-rk3568-new\device\rockchip\common\device.mk
# Bluetooth HAL
PRODUCT_PACKAGES += \
    libbt-vendor \
    android.hardware.bluetooth@1.0-impl \
    android.hardware.bluetooth@1.0-service \
    android.hardware.bluetooth@1.0-service.rc

ifeq ($(strip $(BOARD_HAVE_BLUETOOTH_RTK)), true)
include hardware/realtek/rtkbt/rtkbt.mk
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=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
    #ro.rk.screenoff_time=60000

endif


2、
Z:\android12-rk3568-new\device\rockchip\rk356x\overlay\frameworks\base\packages\SettingsProvider\res\values\defaults.xml
<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>
修改为:
<?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、
Z:\67android12-rk3568-new\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>
    <!-- Comma-separated list of bluetooth, wifi, and cell. -->
    <string name="def_airplane_mode_radios" translatable="false">cell,bluetooth,wifi,nfc,wimax</string>
    <string name="airplane_mode_toggleable_radios" translatable="false">bluetooth,wifi,nfc</string>
    <string name="def_bluetooth_disabled_profiles" translatable="false">0</string>
    <bool name="def_auto_time">true</bool>
    <bool name="def_auto_time_zone">true</bool>
    <bool name="def_accelerometer_rotation">false</bool>
    <!-- Default screen brightness, from 0 to 255.  102 is 40%. -->
    <integer name="def_screen_brightness">102</integer>
    <bool name="def_screen_brightness_automatic_mode">false</bool>
    <fraction name="def_window_animation_scale">100%</fraction>
    <fraction name="def_window_transition_scale">100%</fraction>
    <bool name="def_haptic_feedback">true</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>
    <!-- Comma-separated list of bluetooth, wifi, and cell. -->
    <string name="def_airplane_mode_radios" translatable="false">cell,bluetooth,wifi,nfc,wimax</string>
    <string name="airplane_mode_toggleable_radios" translatable="false">bluetooth,wifi,nfc</string>
    <string name="def_bluetooth_disabled_profiles" translatable="false">0</string>
    <bool name="def_auto_time">true</bool>
    <bool name="def_auto_time_zone">true</bool>
    <bool name="def_accelerometer_rotation">false</bool>
    <!-- Default screen brightness, from 0 to 255.  102 is 40%. -->
    <integer name="def_screen_brightness">102</integer>
    <bool name="def_screen_brightness_automatic_mode">false</bool>
    <fraction name="def_window_animation_scale">100%</fraction>
    <fraction name="def_window_transition_scale">100%</fraction>
    <bool name="def_haptic_feedback">true</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、
Z:\android12-rk3568-new\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>
    <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>


参考资料:
https://blog.csdn.net/ewin2012/article/details/128302913
RK3588-ANDROID12-永不息屏,不锁屏


https://blog.csdn.net/longmin96/article/details/122555882
RK3568-ANDROID11-不息屏
 

ootroot@rootroot-adol-ADOLBOOK-I421UAY-ADOL14UA:~/android12-rk3568-new$ 
rootroot@rootroot-adol-ADOLBOOK-I421UAY-ADOL14UA:~/android12-rk3568-new$ source build/envsetup.sh 
rootroot@rootroot-adol-ADOLBOOK-I421UAY-ADOL14UA:~/android12-rk3568-new$ lunch

You're building on Linux

Lunch menu... pick a combo:
     1. PX30_Android12-user
     2. PX30_Android12-userdebug
     3. aosp_arm-eng
     4. aosp_arm64-eng
     5. aosp_blueline-userdebug
     6. aosp_blueline_car-userdebug
     7. aosp_bonito-userdebug
     8. aosp_bonito_car-userdebug
     9. aosp_bramble_car-userdebug
     10. aosp_cf_arm64_auto-userdebug
     11. aosp_cf_arm64_phone-userdebug
     12. aosp_cf_x86_64_foldable-userdebug
     13. aosp_cf_x86_64_pc-userdebug
     14. aosp_cf_x86_64_phone-userdebug
     15. aosp_cf_x86_64_tv-userdebug
     16. aosp_cf_x86_auto-userdebug
     17. aosp_cf_x86_phone-userdebug
     18. aosp_cf_x86_tv-userdebug
     19. aosp_coral_car-userdebug
     20. aosp_crosshatch-userdebug
     21. aosp_crosshatch_car-userdebug
     22. aosp_crosshatch_vf-userdebug
     23. aosp_flame_car-userdebug
     24. aosp_oriole_car-userdebug
     25. aosp_raven_car-userdebug
     26. aosp_redfin_car-userdebug
     27. aosp_sargo-userdebug
     28. aosp_sargo_car-userdebug
     29. aosp_slider-userdebug
     30. aosp_sunfish_car-userdebug
     31. aosp_whitefin-userdebug
     32. aosp_x86-eng
     33. aosp_x86_64-eng
     34. arm_krait-eng
     35. arm_v7_v8-eng
     36. armv8-eng
     37. armv8_cortex_a55-eng
     38. armv8_kryo385-eng
     39. beagle_x15-userdebug
     40. beagle_x15_auto-userdebug
     41. fuchsia_arm64-eng
     42. fuchsia_x86_64-eng
     43. hikey-userdebug
     44. hikey64_only-userdebug
     45. hikey960-userdebug
     46. hikey960_tv-userdebug
     47. hikey_tv-userdebug
     48. qemu_trusty_arm64-userdebug
     49. rk3326_pie-user
     50. rk3326_pie-userdebug
     51. rk3326_q-user
     52. rk3326_q-userdebug
     53. rk3326_r-user
     54. rk3326_r-userdebug
     55. rk3326_s-user
     56. rk3326_s-userdebug
     57. rk3326_sgo-user
     58. rk3326_sgo-userdebug
     59. rk3368_Android12-user
     60. rk3368_Android12-userdebug
     61. rk3368_pie-user
     62. rk3368_pie-userdebug
     63. rk3399_Android10-user
     64. rk3399_Android10-userdebug
     65. rk3399_Android11-user
     66. rk3399_Android11-userdebug
     67. rk3399_Android12-user
     68. rk3399_Android12-userdebug
     69. rk3399_atv-user
     70. rk3399_atv-userdebug
     71. rk3399_mid-user
     72. rk3399_mid-userdebug
     73. rk3566_32bit-user
     74. rk3566_32bit-userdebug
     75. rk3566_eink-user
     76. rk3566_eink-userdebug
     77. rk3566_einkw6-user
     78. rk3566_einkw6-userdebug
     79. rk3566_r-user
     80. rk3566_r-userdebug
     81. rk3566_s-user
     82. rk3566_s-userdebug
     83. rk3566_sgo-user
     84. rk3566_sgo-userdebug
     85. rk3568_s-user
     86. rk3568_s-userdebug
     87. rk3588_box-user
     88. rk3588_box-userdebug
     89. rk3588_s-user
     90. rk3588_s-userdebug
     91. rk3588_xr-user
     92. rk3588_xr-userdebug
     93. rk3588s_s-user
     94. rk3588s_s-userdebug
     95. sdk_car_arm-userdebug
     96. sdk_car_arm64-userdebug
     97. sdk_car_portrait_x86_64-userdebug
     98. sdk_car_x86-userdebug
     99. sdk_car_x86_64-userdebug
     100. silvermont-eng
     101. uml-userdebug
     102. yukawa-userdebug
     103. yukawa_sei510-userdebug

Which would you like? [aosp_arm-eng] 86

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=12
TARGET_PRODUCT=rk3568_s
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a55
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-2a
TARGET_2ND_CPU_VARIANT=cortex-a55
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.15.0-58-generic-x86_64-Ubuntu-22.04.1-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=SP2A.220305.012
OUT_DIR=out
============================================
rootroot@rootroot-adol-ADOLBOOK-I421UAY-ADOL14UA:~/android12-rk3568-new$ make installclean


12:35:02 ************************************************************
12:35:02 You are building on a machine with 15GB of RAM
12:35:02 
12:35:02 The minimum required amount of free memory is around 16GB,
12:35:02 and even with that, some configurations may not work.
12:35:02 
12:35:02 If you run into segfaults or other errors, try reducing your
12:35:02 -j value.
12:35:02 ************************************************************
build/make/core/soong_config.mk:195: warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead.
build/make/core/soong_config.mk:196: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=12
TARGET_PRODUCT=rk3568_s
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a55
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-2a
TARGET_2ND_CPU_VARIANT=cortex-a55
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.15.0-58-generic-x86_64-Ubuntu-22.04.1-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=SP2A.220305.012
OUT_DIR=out
============================================
12:35:03 Entire data directory removed.
12:35:03 Deleted images and staging directories.

#### build completed successfully (1 seconds) ####

rootroot@rootroot-adol-ADOLBOOK-I421UAY-ADOL14UA:~/android12-rk3568-new$ ll
total 288
drwxr-xr-x  39 rootroot rootroot  4096  1月 23 11:37 ./
drwxr-x---  33 rootroot rootroot  4096  1月 23 12:21 ../
lrwxrwxrwx   1 rootroot rootroot    19  2月 22  2022 Android.bp -> build/soong/root.bp
drwxr-xr-x  35 rootroot rootroot  4096  2月 22  2022 art/
drwxr-xr-x  14 rootroot rootroot  4096  2月 22  2022 bionic/
drwxr-xr-x   4 rootroot rootroot  4096  2月 22  2022 bootable/
drwxr-xr-x   2 rootroot rootroot  4096  2月 23  2022 .bootstrap/
lrwxrwxrwx   1 rootroot rootroot    26  2月 22  2022 bootstrap.bash -> build/soong/bootstrap.bash*
drwxr-xr-x   7 rootroot rootroot  4096  2月 22  2022 build/
lrwxrwxrwx   1 rootroot rootroot    23  2月 22  2022 BUILD -> build/bazel/bazel.BUILD
-r-xr-xr-x   1 rootroot rootroot  9024  3月 28  2022 build.sh*
-r-xr-xr-x   1 rootroot rootroot 14109  2月 22  2022 .classpath*
drwxr-xr-x   3 rootroot rootroot  4096  2月 22  2022 compatibility/
drwxr-xr-x  13 rootroot rootroot  4096  3月 28  2022 cts/
drwxr-xr-x   7 rootroot rootroot  4096  2月 22  2022 dalvik/
-rwxr--r--   1 rootroot rootroot 54498 12月 29 17:31 delete_list.log*
drwxr-xr-x   5 rootroot rootroot  4096  2月 22  2022 developers/
drwxr-xr-x  19 rootroot rootroot  4096  3月 28  2022 development/
drwxr-xr-x  11 rootroot rootroot  4096  2月 22  2022 device/
drwxr-xr-x 357 rootroot rootroot 16384  3月 28  2022 external/
drwxr-xr-x  16 rootroot rootroot  4096  2月 22  2022 frameworks/
drwxr-xr-x  17 rootroot rootroot  4096  2月 22  2022 hardware/
-r--r--r--   1 rootroot rootroot   162  2月 22  2022 javaenv.sh
drwxr-xr-x   5 rootroot rootroot  4096  2月 22  2022 kernel/
drwxr-xr-x  27 rootroot rootroot  4096  1月 23 08:39 kernel-4.19/
drwxr-xr-x  26 rootroot rootroot  4096 12月 29 17:27 kernel-5.10/
drwxr-xr-x  19 rootroot rootroot  4096  2月 22  2022 libcore/
drwxr-xr-x   9 rootroot rootroot  4096  2月 22  2022 libnativehelper/
lrwxrwxrwx   1 rootroot rootroot    19  1月 23 08:45 libOpenCL.so -> egl/libGLES_mali.so
-r--r--r--   1 rootroot rootroot    92  2月 22  2022 Makefile
drwxr-xr-x  10 rootroot rootroot  4096  2月 22  2022 mkcombinedroot/
-r-xr-xr-x   1 rootroot rootroot 10151  2月 22  2022 mkimage_ab.sh*
-r-xr-xr-x   1 rootroot rootroot  8544  2月 22  2022 mkimage.sh*
drwxrwxr-x  11 rootroot rootroot  4096  1月 23 12:35 out/
drwxr-xr-x   9 rootroot rootroot  4096  2月 22  2022 packages/
drwxr-xr-x   5 rootroot rootroot  4096  2月 22  2022 pdk/
drwxr-xr-x   9 rootroot rootroot  4096  2月 22  2022 platform_testing/
drwxr-xr-x  34 rootroot rootroot  4096  3月 29  2022 prebuilts/
-r-xr-xr-x   1 rootroot rootroot   519  2月 22  2022 restore_patches.sh*
drwxr-xr-x   8 rootroot rootroot  4096  1月 23 08:21 rkbin/
drwxr-xr-x   4 rootroot rootroot  4096  2月 22  2022 RKDocs/
drwxr-xr-x   4 rootroot rootroot  4096  2月 22  2022 rkst/
drwxr-xr-x   4 rootroot rootroot  4096  2月 22  2022 RKTools/
drwxrwxr-x   3 rootroot rootroot  4096  1月 23 11:38 rockdev/
drwxr-xr-x  21 rootroot rootroot  4096  2月 22  2022 sdk/
drwxr-xr-x  45 rootroot rootroot  4096  2月 22  2022 system/
drwxr-xr-x  11 rootroot rootroot  4096  2月 22  2022 test/
drwxr-xr-x   4 rootroot rootroot  4096  2月 22  2022 toolchain/
drwxr-xr-x  23 rootroot rootroot  4096  2月 22  2022 tools/
drwxr-xr-x  27 rootroot rootroot  4096  1月 23 11:37 u-boot/
drwxr-xr-x   6 rootroot rootroot  4096  2月 22  2022 vendor/
lrwxrwxrwx   1 rootroot rootroot    27  2月 22  2022 WORKSPACE -> build/bazel/bazel.WORKSPACE
rootroot@rootroot-adol-ADOLBOOK-I421UAY-ADOL14UA:~/android12-rk3568-new$ 
rootroot@rootroot-adol-ADOLBOOK-I421UAY-ADOL14UA:~/android12-rk3568-new$ 
rootroot@rootroot-adol-ADOLBOOK-I421UAY-ADOL14UA:~/android12-rk3568-new$ make -j16


12:35:10 ************************************************************
12:35:10 You are building on a machine with 15GB of RAM
12:35:10 
12:35:10 The minimum required amount of free memory is around 16GB,
12:35:10 and even with that, some configurations may not work.
12:35:10 
12:35:10 If you run into segfaults or other errors, try reducing your
12:35:10 -j value.
12:35:10 ************************************************************
build/make/core/soong_config.mk:195: warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead.
build/make/core/soong_config.mk:196: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=12
TARGET_PRODUCT=rk3568_s
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a55
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-2a
TARGET_2ND_CPU_VARIANT=cortex-a55
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.15.0-58-generic-x86_64-Ubuntu-22.04.1-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=SP2A.220305.012
OUT_DIR=out
============================================
device/rockchip/common/device.mk was modified, regenerating...
device/rockchip/common/device.mk was modified, regenerating...
[100% 1025/1025] initializing build system ...
device/rockchip/common/prebuild.mk:2: warning: Generating manifest snapshot at out/commit_id.xml...
device/rockchip/common/prebuild.mk:3: warning: You can disable this by removing this and setting BOARD_RECORD_COMMIT_ID := false in BoardConfig.mk
[ 74% 1030/1377] including build/make/target/board/Android.mk ...
build fstab file with device/rockchip/common/scripts/fstab_tools/fstab.in....
rebuilding dtbo image with device/rockchip/rk356x/rk3568_s/dt-overlay.in....
build parameter.txt with device/rockchip/common/scripts/parameter_tools/parameter.in....
[ 81% 1123/1377] including external/rk_tee_user/v2/Android.mk ...
'building rk_tee_user v2'
[ 86% 1185/1377] including hardware/rockchip/camera_engine_rkisp/Android.mk ...
TARGET_BOARD_PLATFORM=rk356x
[ 86% 1192/1377] including hardware/rockchip/libhwjpeg/Android.mk ...
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
cat: /home/rootroot/.gitconfig: No such file or directory

[ 90% 1240/1377] including system/sepolicy/Android.mk ...
system/sepolicy/Android.mk:57: warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead.
system/sepolicy/Android.mk:62: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.
[ 99% 1376/1377] finishing build rules ...
packages/apps/Camera2/Android.mk: warning: "Camera2 (app:platform) should not link against libjni_jpegutil (native:ndk:libc++:static)" 
[ 75% 10309/13700] build out/target/product/rk3568_s/system/etc/event-log-tags
packages/apps/TvSettings/Settings/src/com/android/tv/settings/EventLogTags.logtags:6: warning: tag "lock_screen_type" (90200) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:6
packages/apps/TvSettings/Settings/src/com/android/tv/settings/EventLogTags.logtags:9: warning: tag "exp_det_device_admin_activated_by_user" (90201) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:9
packages/apps/TvSettings/Settings/src/com/android/tv/settings/EventLogTags.logtags:12: warning: tag "exp_det_device_admin_declined_by_user" (90202) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:12
packages/apps/TvSettings/Settings/src/com/android/tv/settings/EventLogTags.logtags:15: warning: tag "exp_det_device_admin_uninstalled_by_user" (90203) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:15
packages/apps/TvSettings/Settings/src/com/android/tv/settings/EventLogTags.logtags:18: warning: tag "settings_latency" (90204) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:18
[ 85% 11712/13700] Install: out/target/product/rk3568_s/vendor/lib/egl/libGLES_mali.so
/home/rootroot/android12-rk3568-new
/home/rootroot/android12-rk3568-new
[ 89% 12195/13700] Install: out/target/product/rk3568_s/vendor/lib64/egl/libGLES_mali.so
/home/rootroot/android12-rk3568-new
/home/rootroot/android12-rk3568-new
[ 93% 12848/13700] depmod out/target/product/rk3568_s/obj/PACKAGING/depmod_VENDOR_intermediates
depmod: WARNING: could not open modules.order at /home/rootroot/android12-rk3568-new/out/target/product/rk3568_s/obj/PACKAGING/depmod_VENDOR_intermediates/lib/modules/0.0: No such file or directory
depmod: WARNING: could not open modules.builtin at /home/rootroot/android12-rk3568-new/out/target/product/rk3568_s/obj/PACKAGING/depmod_VENDOR_intermediates/lib/modules/0.0: No such file or directory
[ 94% 12904/13700] Building dtbo img file out/target/product/rk3568_s/obj/FAKE/rockchip_dtbo_intermediates/rebuild-dtbo.img.
create image file: out/target/product/rk3568_s/obj/FAKE/rockchip_dtbo_intermediates/rebuild-dtbo.img...
Total 1 entries.
[ 97% 13402/13700] Target empty super fs image: out/target/product/rk3568_s/super_empty.img
2023-01-23 12:36:55 - build_super_image.py - INFO    : Building super image from info dict...
2023-01-23 12:36:55 - build_super_image.py - INFO    : Done writing image out/target/product/rk3568_s/super_empty.img
[ 99% 13614/13634] //packages/apps/Settings:Settings r8 [common]
Warning: Missing class android.support.annotation.Nullable (referenced from: com.android.settings.intelligence.ContextualCardProto$ContextualCardList com.google.android.settings.intelligence.libs.contextualcards.ContextualCardProvider.getContextualCards())
Missing class androidx.palette.graphics.Palette$Builder (referenced from: android.graphics.Bitmap androidx.mediarouter.app.MediaRouteControllerDialog$FetchArtTask.doInBackground(java.lang.Void[]) and 1 other context)
Missing class androidx.palette.graphics.Palette$Swatch (referenced from: android.graphics.Bitmap androidx.mediarouter.app.MediaRouteControllerDialog$FetchArtTask.doInBackground(java.lang.Void[]) and 1 other context)
Missing class androidx.palette.graphics.Palette (referenced from: android.graphics.Bitmap androidx.mediarouter.app.MediaRouteControllerDialog$FetchArtTask.doInBackground(java.lang.Void[]) and 1 other context)
Missing class com.android.internal.telephony.MccTable (referenced from: java.lang.String com.android.settings.network.SubscriptionUtil.getFormattedPhoneNumber(android.content.Context, android.telephony.SubscriptionInfo))
Missing class com.google.errorprone.annotations.CanIgnoreReturnValue (referenced from: java.lang.Object com.google.common.base.AbstractIterator.endOfData() and 135 other contexts)
Missing class com.google.errorprone.annotations.CompatibleWith (referenced from: boolean com.google.common.collect.Multimap.containsEntry(java.lang.Object, java.lang.Object) and 1 other context)
Missing class com.google.errorprone.annotations.DoNotMock (referenced from: com.google.common.base.Optional and 9 other contexts)
Missing class com.google.errorprone.annotations.ForOverride (referenced from: boolean com.google.common.base.Equivalence.doEquivalent(java.lang.Object, java.lang.Object) and 2 other contexts)
Missing class com.google.errorprone.annotations.Immutable (referenced from: com.google.common.net.InternetDomainName)
Missing class com.google.errorprone.annotations.concurrent.GuardedBy (referenced from: void com.google.common.collect.MapMakerInternalMap$Segment.drainKeyReferenceQueue(java.lang.ref.ReferenceQueue) and 5 other contexts)
Missing class com.google.errorprone.annotations.concurrent.LazyInit (referenced from: com.google.common.collect.ImmutableSet com.google.common.collect.ImmutableMap.entrySet and 5 other contexts)
Missing class kotlinx.coroutines.channels.BufferOverflow (referenced from: java.lang.Object androidx.window.layout.WindowInfoTrackerImpl$windowLayoutInfo$1.invokeSuspend(java.lang.Object))
Missing class kotlinx.coroutines.channels.Channel (referenced from: java.lang.Object androidx.window.layout.WindowInfoTrackerImpl$windowLayoutInfo$1.invokeSuspend(java.lang.Object) and 1 other context)
Missing class kotlinx.coroutines.channels.ChannelIterator (referenced from: java.lang.Object androidx.window.layout.WindowInfoTrackerImpl$windowLayoutInfo$1.invokeSuspend(java.lang.Object))
Missing class kotlinx.coroutines.channels.ChannelKt (referenced from: java.lang.Object androidx.window.layout.WindowInfoTrackerImpl$windowLayoutInfo$1.invokeSuspend(java.lang.Object))
Missing class kotlinx.coroutines.flow.Flow (referenced from: kotlinx.coroutines.flow.Flow androidx.window.layout.WindowInfoTracker.windowLayoutInfo(android.app.Activity) and 1 other context)
Missing class kotlinx.coroutines.flow.FlowCollector (referenced from: java.lang.Object androidx.window.layout.WindowInfoTrackerImpl$windowLayoutInfo$1.invoke(java.lang.Object, java.lang.Object) and 2 other contexts)
Missing class kotlinx.coroutines.flow.FlowKt (referenced from: kotlinx.coroutines.flow.Flow androidx.window.layout.WindowInfoTrackerImpl.windowLayoutInfo(android.app.Activity))
Missing class org.jetbrains.annotations.NotNull (referenced from: androidx.window.core.Version androidx.window.core.Version.CURRENT and 636 other contexts)
Missing class org.jetbrains.annotations.Nullable (referenced from: java.lang.String androidx.window.embedding.ActivityFilter.intentAction and 119 other contexts)
[100% 13634/13634] Target super fs image for debug: out/target/product/rk3568_s/super.img
2023-01-23 12:38:40 - build_super_image.py - INFO    : Building super image from info dict...
2023-01-23 12:38:40 - sparse_img.py - INFO    : Total of 234413 4096-byte output blocks in 18 input chunks.
2023-01-23 12:38:40 - sparse_img.py - INFO    : Total of 37346 4096-byte output blocks in 6 input chunks.
2023-01-23 12:38:40 - sparse_img.py - INFO    : Total of 121295 4096-byte output blocks in 11 input chunks.
2023-01-23 12:38:40 - sparse_img.py - INFO    : Total of 4615 4096-byte output blocks in 2 input chunks.
2023-01-23 12:38:40 - sparse_img.py - INFO    : Total of 169 4096-byte output blocks in 2 input chunks.
2023-01-23 12:38:40 - sparse_img.py - INFO    : Total of 64 4096-byte output blocks in 4 input chunks.
2023-01-23 12:38:40 - sparse_img.py - INFO    : Total of 61123 4096-byte output blocks in 5 input chunks.
2023-01-23 12:38:47 - build_super_image.py - INFO    : Done writing image out/target/product/rk3568_s/super.img

#### build completed successfully (03:37 (mm:ss)) ####

rootroot@rootroot-adol-ADOLBOOK-I421UAY-ADOL14UA:~/android12-rk3568-new$ 
rootroot@rootroot-adol-ADOLBOOK-I421UAY-ADOL14UA:~/android12-rk3568-new$ 
rootroot@rootroot-adol-ADOLBOOK-I421UAY-ADOL14UA:~/android12-rk3568-new$ 
rootroot@rootroot-adol-ADOLBOOK-I421UAY-ADOL14UA:~/android12-rk3568-new$ ./build.sh -u
will build update.img
-------------------KERNEL_VERSION:4.19
-------------------KERNEL_DTS:rk3568-evb2-lp4x-v10

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=12
TARGET_PRODUCT=rk3568_s
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a55
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-2a
TARGET_2ND_CPU_VARIANT=cortex-a55
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.15.0-58-generic-x86_64-Ubuntu-22.04.1-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=SP2A.220305.012
OUT_DIR=out
============================================
package resoure.img with charger images

Pack ./tools/images/ & ../kernel-4.19/resource.img to resource.img ...
Unpacking old image(../kernel-4.19/resource.img):
rk-kernel.dtb battery_1.bmp battery_2.bmp battery_3.bmp battery_4.bmp battery_5.bmp battery_fail.bmp logo.bmp logo_kernel.bmp battery_0.bmp 10
Pack to resource.img successed!

Packed resources:
rk-kernel.dtb battery_1.bmp battery_2.bmp battery_3.bmp battery_4.bmp battery_5.bmp battery_fail.bmp logo.bmp logo_kernel.bmp battery_0.bmp 10

./resource.img with battery images is ready
/home/rootroot/android12-rk3568-new
Repacking header 2 boot...
make and copy android images
TARGET_PRODUCT=rk3568_s
TARGET_BASE_PARAMETER_IMAGE==device/rockchip/common/baseparameter/v2.0/baseparameter.img
HIGH_RELIABLE_RECOVERY_OTA=
BOARD_AVB_ENABLE=false
system filesysystem is ext4
create dtbo.img...
done.
create rockdev/Image-rk3568_s/resource.img...
done.
create rockdev/Image-rk3568_s/boot.img...
done.
create rockdev/Image-rk3568_s/boot-debug.img...
done.
skip copy images: /home/rootroot/android12-rk3568-new/out/target/product/rk3568_s/vendor_boot.img
skip copy images: /home/rootroot/android12-rk3568-new/out/target/product/rk3568_s/vendor_boot-debug.img
create rockdev/Image-rk3568_s/recovery.img...
done.
create rockdev/Image-rk3568_s/super.img...
done.
skip copy images: /home/rootroot/android12-rk3568-new/out/target/product/rk3568_s/userdata.img
create vbmeta.img...
BOARD_AVB_ENABLE is false, use default vbmeta.img
create misc.img.... done.
create uboot.img...
u-boot/trust.img not fount! Please make it from u-boot first!
create loader...
create config.cfg...
create baseparameter...done.
Make image ok!
Make update.img
packing update.img with Image -RK3568
regenernate package-file-tmp...
start to make update.img...
Android Firmware Package Tool v2.0
------ PACKAGE ------
Add file: ./package-file
package-file,Add file: ./package-file done,offset=0x800,size=0x29a,userspace=0x1
Add file: ./Image/MiniLoaderAll.bin
bootloader,Add file: ./Image/MiniLoaderAll.bin done,offset=0x1000,size=0x719c0,userspace=0xe4
Add file: ./Image/parameter.txt
parameter,Add file: ./Image/parameter.txt done,offset=0x73000,size=0x282,userspace=0x1
Add file: ./Image/uboot.img
uboot,Add file: ./Image/uboot.img done,offset=0x73800,size=0x400000,userspace=0x800
Add file: ./Image/misc.img
misc,Add file: ./Image/misc.img done,offset=0x473800,size=0xc000,userspace=0x18
Add file: ./Image/dtbo.img
dtbo,Add file: ./Image/dtbo.img done,offset=0x47f800,size=0x26f,userspace=0x1
Add file: ./Image/vbmeta.img
vbmeta,Add file: ./Image/vbmeta.img done,offset=0x480000,size=0x1000,userspace=0x2
Add file: ./Image/boot.img
boot,Add file: ./Image/boot.img done,offset=0x481000,size=0x203d000,userspace=0x407a
Add file: ./Image/recovery.img
recovery,Add file: ./Image/recovery.img done,offset=0x24be000,size=0x4512000,userspace=0x8a24
Add file: ./Image/baseparameter.img
baseparameter,Add file: ./Image/baseparameter.img done,offset=0x69d0000,size=0x100000,userspace=0x200
Add file: ./Image/super.img
super,Add file: ./Image/super.img done,offset=0x6ad0000,size=0x6e1d15f4,userspace=0xdc3a3
Add CRC...
Make firmware OK!
------ OK ------
********rkImageMaker ver 2.0********
Generating new image, please wait...
Writing head info...
Writing boot file...
Writing firmware...
Generating MD5 data...
MD5 data generated successfully!
New image generated successfully!
Making update.img OK.
Make update image ok!
/home/rootroot/android12-rk3568-new
rootroot@rootroot-adol-ADOLBOOK-I421UAY-ADOL14UA:~/android12-rk3568-new$ 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值