升级界面上默认的文字为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.编译验证即可