在新增关机界面重启问题时,出现了以下问题,网上找了一圈都没有答案
经过好久摸索,终于解决了。方法如下
原来是新加的字符串生成的resource id,占据了之前已经存在的id,造成error.
alps\frameworks\base\core\res\res\values\public.xml
<!--@hide zzzzz_global_action_power_reboot-->
<public type="string" name="zzzzz_global_action_power_reboot" id="0x10406b9"/>
<!--@hide zzzzz_reboot_to_reset_message-->
<public type="string" name="zzzzz_reboot_to_reset_message" id="0x10406b8"/>
说明:0x10406b9对应的十进制是17041081, 0x10406b8对应的十进制是17041080,即第二个图片上的最大数字,添加@hide的目的就是在framework_res_id_api.txt文件不会生成新加的资源。也就不需要进行make update-api操作。
framework_res_id_api.txt的路径 alps\out\target\common\obj\PACKAGING\framework_res_id_api.txt,至此完成啦