recovery升级界面文字修改方法

 

升级界面上默认的文字为install system update ,那么可以改吗,那当然可以

首先这部分文字的来源recovery/res-xhdpi/images/install_text.png,里面是所有翻译的列表,recovery会对图片进行解析 ,根据传入的locale 使用对应的语言翻译

 

修改方法:

bootable/recovery/tools/recovery_l10n使用该工具 可以修改字符串后重新生成图片

Main.java中说明的很详细,我也是按着做就完事儿了

 * To use this app to generate new translations:
 *
 *   - Update the string resources in res/values-*
 *
 *   - Build and run the app.  Select the string you want to
 *     translate, and press the "Go" button.
 *
 *   - Wait for it to finish cycling through all the strings, then
 *     pull /data/data/com.android.recovery_l10n/files/text-out.png
 *     from the device.
 *
 *   - "pngcrush -c 0 text-out.png output.png"
 *
 *   - Put output.png in bootable/recovery/res/images/ (renamed
 *     appropriately).

1.修改bootable/recovery/tools/recovery_l10n/res/values/string.xml 中的字符串,如果时其他语言,比如中文,修改values-zh-rCN

比如修改为  <string name="recovery_installing">Installing Lbb update...</string>

 

2.单独编译这个APK mmm ./bootable/recovery/tools/recovery_l10n/

生成位置在out/../../system/app/RecoveryLocalizer

 

3.单独安装这个APK adb install -r RecoveryLocalizer.apk

 

4.安装后可以看到APK只有一个选择项 和一个button

选择installing 点击button,

 

5.执行adb root adb remount 这里执行后导出就是当前修改的,如果改了多个,点击一次 导出一次

adb pull ./data/data/com.android.recovery_l10n/files/text-out.png

 

6.执行pngcrush -c 0 text-out.png output.png 获得压缩后的png

 

7.将output.png改成installing_text.png 替换到 res-xhdpi/images

 

8.编译验证即可

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值