Android 9.0 修改recovery 升级显示字符串

本文介绍了如何在Android 9.0中修改recovery升级显示的字符串。涉及在/recovery_l10n目录下修改Android.mk,编译生成RecoveryLocalizer.apk,安装后生成text-out.png,使用pngcrush工具处理图片,并将修改后的图片替换到不同分辨率的资源目录下,最后重新编译并验证修改成功。
摘要由CSDN通过智能技术生成
塞尔维亚客户定制,需要修改Android Recovery 升级界面的字符显示,
要将正在升级中(塞尔维亚语)修改
Ажурирање система се инсталира
修改为
Ažuriranje sistema

我们查看了一下recovery 升级的Log
----------------------------------------------------------------
# cat /tmp/recovery.log                                                        

[    0.000196] __bionic_open_tzdata: couldn't find any tzdata when looking for Europe/Belgrade!
[    0.000253] Starting recovery (pid 3124) on Fri Jan 13 06:40:56 2023
[    0.001724] recovery filesystem table
[    0.001758] =========================
[    0.001766]   0 /odm ext4 /dev/block/odm 0
[    0.001780]   1 /product ext4 /dev/block/product 0
[    0.001788]   2 /vendor ext4 /dev/block/vendor 0
[    0.001794]   3 /bootloader emmc /dev/block/bootloader 0
[    0.001801]   4 /logo emmc /dev/block/logo 0
[    0.001807]   5 /vbmeta emmc /dev/block/vbmeta 0
[    0.001813]   6 /recovery emmc /dev/block/recovery 0
[    0.001819]   7 /boot emmc /dev/block/boot 0
[    0.001824]   8 /misc emmc /dev/block/misc 0
[    0.001830]   9 / ext4 /dev/block/system 0
[    0.001836]   10 /vendor ext4 /dev/block/vendor 0
[    0.001843]   11 /odm ext4 /dev/block/odm 0
[    0.001853]   12 /param ext4 /dev/block/param 0
[    0.001860]   13 /product ext4 /dev/block/product 0
[    0.001867]   14 /metadata ext4 /dev/block/metadata 0
[    0.001873]   15 /tee ext4 /dev/block/tee 0
[    0.001885]   16 /cache ext4 /dev/block/cache 0
[    0.001891]   17 /data ext4 /dev/block/data 0
[    0.001898]   18 /sdcard vfat /dev/block/mmcblk1p1 0
[    0.001904]   19 /sdcard vfat /dev/block/mmcblk1p2 0
[    0.001910]   20 /sdcard vfat /dev/block/mmcblk1p3 0
[    0.001916]   21 /sdcard vfat /dev/block/mmcblk1p4 0
[    0.001922]   22 /sdcard vfat /dev/block/mmcblk1p5 0
[    0.001928]   23 /sdcard vfat /dev/block/mmcblk1p6 0
[    0.001934]   24 /sdcard vfat /dev/block/mmcblk2p1 0
[    0.001940]   25 /sdcard vfat /dev/block/mmcblk2p2 0
[    0.001948]   26 /sdcard vfat /dev/block/mmcblk2p3 0
[    0.001954]   27 /sdcard vfat /dev/block/mmcblk2p4 0
[    0.001960]   28 /sdcard vfat /dev/block/mmcblk2p5 0
[    0.001969]   29 /sdcard vfat /dev/block/mmcblk2p6 0
[    0.001976]   30 /sdcard vfat /dev/block/mmcblk 0
[    0.001983]   31 /udisk auto /dev/block/sd## 0
[    0.001990]   32 /tmp ramdisk ramdisk 0
[    0.001997]
[    0.017308] I:Boot command: boot-recovery
[    0.017392] I:Got 3 arguments from boot message
[    0.076343] locale is [sr-Latn-RS]      #通过Log知道我们 recovery默认语言为塞尔维亚语
[    0.076380] stage is []
[    0.076389] reason is [(null)]
[    2.076692] loaded /etc/recovery.kl
[    2.076775] skipping malformed recovery.lk line: back_door
[    2.076826] recovery key map table:
[    2.076841]   0 type:select value:28 key:97 28 15 158 -1 -1
[    2.076848]   1 type:down value:108 key:108 114 109 -1 -1 -1
[    2.076859]   2 type:up value:103 key:103 104 115 -1 -1 -1
[    2.076865]
[    2.082657] loaded /etc/recovery.kl
[    2.082717] skipping malformed recovery.lk line: back_door
[    2.082755] recovery key map table:
[    2.082770]   0 type:select value:28 key:97 28 15 158 -1 -1
[    2.082777]   1 type:down value:108 key:108 114 109 -1 -1 -1
[    2.082788]   2 type:up value:103 key:103 104 115 -1 -1 -1
[    2.082794]
[    2.083378] W:Failed to read max brightness: No such file or directory
[    2.083415] I:Screensaver disabled
[    2.085707] cannot find/open a drm device: No such file or directory
[    2.088749] fb0 reports (possibly inaccurate):
[    2.088761]   vi.bits_per_pixel = 32
[    2.088768]   vi.red.offset   =  16   .length =   8
[    2.088776]   vi.green.offset =   8   .length =   8
[    2.088783]   vi.blue.offset  =   0   .length =   8
[    2.240452] framebuffer: 0 (1920 x 1080)
[    2.319426]           erasing_text: sr (91 x 29 @ 3330)
[    2.327008]        no_command_text: sr (144 x 29 @ 3330)
[    2.335237]             error_text: sr (77 x 29 @ 3330)
[    2.796276]        installing_text: sr (338 x 29 @ 3354)
[    2.828016] SELinux: Loaded file_contexts
[    2.828054] Command: "/sbin/recovery" "--update_package=@/cache/recovery/block.map" "--locale=sr-Latn-RS"
[    2.828062]
[    2.828396] ro.boottime.adbd=7448200002
[    2.828412] ro.boottime.init=6483
[    2.828421] ro.boottime.init.selinux=179
[    2.828427] ro.boottime.init.cold_boot_wait=404
[    2.828435] ro.boottime.charger=7429880210
[    2.828445] ro.boottime.console=7432372294
[    2.828452] ro.boottime.ueventd=6881389918
[    2.828458] ro.boottime.recovery=7431001169
[    2.828497] ro.boottime.remotecfg1=7434700669
[    2.828505] ro.boottime.remotecfg2=7435897335
[    2.828512] ro.boottime.remotecfg3=7433571919
[    2.828522] ro.config.media_vol_default=8
[    2.828528] config.disable_bluetooth=true
[    2.829470] dalvik.vm.dex2oat-minidebuginfo=true
[    2.829487] debug.sf.latch_unsignaled=1
[    2.829495] debug.sf.disable_backpressure=1
[    2.829502] debug.atrace.tags.enableflags=0
[    2.829558] ro.art.hiddenapi.warning=1
[    2.829567] ro.com.google.gmsversion=190329
[    2.829579] ro.has.vfd=true
[    2.829587] ro.ota.version=1.2.8
[    2.829594] ro.boot.mac=90:0e:b3:2c:9e:72
[    2.829600] ro.boot.oem.key1=ATV00104319
[    2.829611] ro.boot.build.expect.baseband=N/A
[    2.829618] ro.boot.selinux=permissive
[    2.829624] ro.boot.dtbo_idx=0
[    2.829630] ro.boot.firstboot=0
[    2.829637] ro.fota.oem=AstraTV
[    2.829643] ro.fota.type=box
[    2.829649] ro.fota.device=AstraTV
[    2.829654] ro.fota.version=AstraTV_20230112-0948
[    2.829665] ro.fota.platform=S905X2
[    2.829672] ro.hdmi.set_menu_language=true
[    2.829678] ro.wifi.channels=
[    2.829684] ro.allow.mock.location=0
[    2.829690] ro.build.expect.bootloader=01.01.180822.145544
[    2.829697] ro.build.flavor=franklin-userdebug
[    2.829703] ro.build.version.all_codenames=REL
[    2.829709] ro.build.version.min_supported_target_sdk=17
[    2.829715] ro.build.characteristics=mbx,nosdcard
[    2.829721] ro.bionic.ld.warning=1
[    2.829728] ro.treble.enabled=true
[    2.829734] ro.product.cpu.abi2=armeabi
[    2.829745] ro.product.build.date=Fri Jan 13 14:00:13 CST 2023
[    2.829753] ro.product.build.date.utc=1673589613
[    2.829760] ro.product.build.fingerprint=Droidlogic/franklin/franklin:9/PPR1.180610.011/
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Keep Coding...

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值