在新增關機界面重啓問題時,出現了以下問題,網上找了一圈都沒有答案
經過好久摸索,終於解決了。方法如下
原來是新加的字符串生成的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,至此完成啦