android recovery ui相关

recovery 动画
bootable/recovery/interlace-frames.py
python interlace-frames.py icon_installing_overlay01.png icon_installing_overlay02.png icon_installing_overlay03.png icon_installing_overlay04.png icon_installing_overlay05.png icon_installing_overlay06.png icon_installing_overlay07.png icon_installing.png

icon_installing_overlay01.png~icon_installing_overlay07.png是准备好的动画的每一帧,icon_installing.png生成的图片(图标),放入bootable编译make bootimage即可

recovery 文字

development/tools/recovery_l10n
"recovery_installing"--->"正在安装系统更新…"
"recovery_erasing"--->"正在清除…"
"recovery_no_command"--->"无命令。"
"recovery_error"--->"出错了!"
替换自己需要的字串,在源码下编译得到RecoveryLocalizer.apk点击go会得到对应的图片installing_text(文字),很长包含所有语言

recovery进度条
替换
bootable/recovery/res-hdpi/images/progress_fill.png
bootable/recovery/res-mdpi/images/progress_empty.png对应的图片.9图

调整动画以及文字显示的位置
bootable/recovery/screen_ui.cpp
ScreenRecoveryUI::draw_background_locked 图标与文字
int textY = ((gr_fb_height() - (iconHeight+textHeight+40+sh)) / 2) + iconHeight + 100;
图标太大可能会遮挡文字的显示

ScreenRecoveryUI::draw_progress_locked() 进度条
int dy = (gr_fb_height() - 8 * height)/4 + 450;

用命令进入recovery模式后,会不显示升级文字的原因
根据Locale判断所用的字体
adb shell
cd cache/recovery/
touch last_locale
echo "zh_CN" > /cache/recovery/last_locale
system/bin/uncrypt /data/update.zip /cache/recovery/block.map
echo "--update_package=@/cache/recovery/block.map" > /cache/recovery/command
reboot recovery


http://blog.csdn.net/jianggest/article/details/52873212
http://blog.csdn.net/jianggest/article/details/52911257
http://www.bkjia.com/Androidjc/900662.html
http://blog.csdn.net/u010223349/article/details/40392789
http://blog.chinaunix.net/uid-30230931-id-5762241.html

你可能感兴趣的:(android recovery ui相关)