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

news2024/9/23 13:29:52

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$ 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/176752.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Hadoop基础之《(1)—大数据基本概念》

一、Hadoop 1、Hadoop大数据框架&#xff0c;处理分布式环境下数据存储和计算 2、Hadoop的HDFS处理存储 3、Hadoop的MapReduce处理计算 map让任务数据拆分到每一台去执行 reduce处理后的任务合并 4、Hive作用是在Hadoop上能够让用户来写SQL处理数据 Hive的执行引擎&#xff0c;…

深度学习TensorFlow—GPU2.4.0版环境配置,一文简单易懂详细大全,CUDA11.0、cuDNN8.0

深度学习TensorFlow—GPU2.4.0版环境配置&#xff0c;一文简单易懂详细大全&#xff0c;CUDA11.0、cuDNN8.0 前提&#xff1a;电脑拥有英伟达独立显卡!!!&#xff0c;并且安装了anaconda&#xff01;&#xff01;&#xff01; 前提&#xff1a;电脑拥有英伟达独立显卡!!!&…

vue事件车之兄弟组件之间传值

目录前言一&#xff0c;全局事件总线介绍1.1 原理介绍1.2 x需要满足的条件二&#xff0c;知识点的复习2.1 vc是什么2.2 vm管理vc如何体现2.3 原型2.4 上述知识的串联三&#xff0c;实现需求3.1 x的编写及讲解3.2 使用x四&#xff0c;标准写法4.1 写法改动4.2 销毁五 关键代码后…

兔年首文迎新春-Cesium橘子洲烟花礼赞

兔年新春今天是兔年大年初二&#xff0c;神州大地&#xff0c;在经历了疫情的三年后迎来开放的一个春节。大家都沉浸在欢乐幸福的春节气氛中。玉兔迎新春&#xff0c;祝福齐送到&#xff1a;白兔祝你身体安康&#xff0c;黑兔祝你薪水高涨&#xff0c;灰兔送你梦想如意&#xf…

Maven高级

Maven高级 1&#xff0c;分模块开发 1.1 分模块开发设计 (1)按照功能拆分 我们现在的项目都是在一个模块中&#xff0c;比如前面的SSM整合开发。虽然这样做功能也都实现了&#xff0c;但是也存在了一些问题&#xff0c;我们拿银行的项目为例来聊聊这个事。 网络没有那么发…

Java多线程03——等待唤醒机制(and阻塞队列实现)

目录1.等待唤醒机制1.ThreadDemo2.Desk3.Cook4.Foodie2.等待唤醒机制&#xff08;阻塞队列方式实现&#xff09;1.ThreadDemo022.Cook023.Foodie023.线程的状态1.等待唤醒机制 生产者和消费者 桌子上有食物&#xff0c;消费者吃&#xff0c;桌子上没有食物&#xff0c;消费者等…

ElasticSearch 索引模板 组件模板 组合模板详细使用介绍

索引模板_template 文章目录索引模板_templateTemplate 介绍索引模板Index Template参数说明创建一个索引模板 Index Template测试不存在的索引直接添加数据创建索引总结组合索引模板 Index Template 7.8版本之后引入创建基于组件模板的索引模板 Index Template创建组件模板模拟…

LeetCode103_ 103. 二叉树的锯齿形层序遍历

LeetCode103_ 103. 二叉树的锯齿形层序遍历 一、描述 给你二叉树的根节点 root &#xff0c;返回其节点值的 锯齿形层序遍历 。&#xff08;即先从左往右&#xff0c;再从右往左进行下一层遍历&#xff0c;以此类推&#xff0c;层与层之间交替进行&#xff09;。 示例 1&…

【头歌】顺序表的基本操作

第1关&#xff1a;顺序表的插入操作任务描述本关任务&#xff1a;编写顺序表的初始化、插入、遍历三个基本操作函数。相关知识顺序表的存储结构顺序表的存储结构可以借助于高级程序设计语言中的数组来表示&#xff0c;一维数组的下标与元素在线性表中的序号相对应。线性表的顺序…

YOLOv5/v7 引入 YOLOv8 的 C2f 模块

YOLOv8 项目地址&#xff1a;https://github.com/ultralytics/ultralytics YOLOv8 Ultralytics YOLOv8 是由 Ultralytics 开发的一个前沿的 SOTA 模型。它在以前成功的 YOLO 版本基础上&#xff0c;引入了新的功能和改进&#xff0c;进一步提升了其性能和灵活性。YOLOv8 基于快…

C 指针变量 取地址符的用法 *指针变量名的用法

文章目录IntroCode图示Intro C语言中有一类特殊的变量&#xff1a;指针变量(pointer variable)&#xff0c;用于存储某个变量的内存地址的值。 要打印指针变量一般用%p格式符&#xff0c;会打印出该指针变量的值&#xff0c;即一个内存值。 Code // Created by wuyujin1997 …

【Linux】进程概念一

进程概念一 冯诺依曼体系结构 我们常见的计算机&#xff0c;如笔记本。我们不常见的计算机&#xff0c;如服务器&#xff0c;大部分都遵守冯诺依曼体系。 截止目前为止&#xff0c; 我们所认识的计算机&#xff0c;都是一个个的硬件组成 输入设备&#xff1a;包括键盘&#x…

如何使用JDBC操作数据库?JDBC API的使用详细解读

文章目录1. DriverManager1.1 注册驱动1.2 获取连接2. Connection2.1 获取执行sql的对象2.2 事务管理3. Statement4. ResultSet5. PreparedStatement5.1 sql注入问题5.2 preparedStatement 原理6. 总结Java编程基础教程系列1. DriverManager DriverManager &#xff0c;驱动管…

C++模板不支持分离编译的问题

目录前言分离编译模式普通函数的分离编译(正常)模板函数的分离编译(出错)分析解决方式拓展--extern关键字extern"C"extern变量extern模板--控制实例化前言 分离编译模式 一个项目如果有多个源文件.c组成&#xff0c;每个源文件单独编译&#xff0c;形成目标文件。最…

Kubernetes:分享一个可以展示资源视图的 K8s开源 Web/桌面 客户端工具 Octant

写在前面 博文内容主要为 Octant 介绍以及 桌面/Web 端的安装教程涉及 Linux/Windows 的安装。理解不足小伙伴帮忙指正 其实当你什么都经历了&#xff0c;会发现&#xff0c;人生无论你怎么精心策划都抵不过一场命运的安排。 Octant 不是仪表板&#xff0c;Octant 是一个带有仪…

数据结构 最短路径课设(源码+实验报告+视频讲解)(不要钱、用了自取)

XIAN TECHNOLOGICAL UNIVERSITY 课程设计报告 实验课程名称 算法与数据结构 专 业&#xff1a; 班 级&#xff1a; 姓 名&#xff1a; 学 号&#xff1a; 实验学时&#xff1a; 指导…

Linux Debian11安装QT6开发环境

从Qt5.14开始&#xff0c;官方不提供离线安装包&#xff0c;只提供源码包和在线安装器。但是清华为我们提供了快速的在线安装方式。 一.下载清华提供的在线安装器 在线安装器下载链接 二、给在线安装器文件赋予执行权限 三、配置镜像地址运行安装器 清华源&#xff1a; ./…

7.Java判断和循环+面试相关力扣算法题详解

提示&#xff1a; 文章目录前言一、顺序结构二、分支语句(1)if语句(2)switch语句*default的位置和省略:*case穿透*switch新特性*switch和if的第三种格式各自的使用场景三、循环结构1.分类2.for循环3.while循环4.for和while的对比:5.for和while循环的区别:6.练习:四、面试时的两…

【安卓】zoo for zotero WebDAV 自动论文同步笔记

前言 前言是我写这篇博客的动机&#xff0c;可以跳过直接从“准备”开始看 之前使用mendeley管理文献&#xff0c;它不仅可以同步文件&#xff0c;还跨平台&#xff08;win、安卓等&#xff09;。但是后面&#xff0c;mendeley停止了移动平台的支持&#xff0c;导致我不能用我…

JQUERY案例

电梯导航 <!DOCTYPE html> <html lang"en"> <head><meta charset"UTF-8"><meta http-equiv"X-UA-Compatible" content"IEedge"><meta name"viewport" content"widthdevice-width, i…