1{ 2 "screenWidth": 720, 3 "screenHeight": 1280, 4 "dir":"/resources/pages", 5 "pages":[ 6 "menu.json", 7 "confirm.json", 8 "upd.json" 9 ], 10 "enableFoucs": true, 11 "entry":"menu:normal", 12 "strategy" : { 13 "default" : { 14 "confirmPageId" : "confirm", 15 "labelLogId" : { 16 "pageId" : "", 17 "comId" : "" 18 }, 19 "labelLogResId" : { 20 "pageId" : "", 21 "comId" : "" 22 }, 23 "labelUpdId" : { 24 "pageId" : "", 25 "comId" : "" 26 }, 27 "progressPage" : { 28 "progressPageId" : "upd:update", 29 "progressComId" : "ProgressUpdBoxDark_Progress", 30 "progressType" : "bar", 31 "logoComId" : "OHOSIconDark_Image", 32 "logoType" : "img", 33 "warningComId" : "PowerLongPressWarning_Image" 34 }, 35 "resPage" : { 36 "successPageId" : "upd:updateSuccess", 37 "failPageId" : "upd:normalUpdateFailed" 38 } 39 }, 40 "sdcard" : { 41 "progressPage" : { 42 "progressPageId" : "upd:sdUpdate", 43 "progressComId" : "UpdBox_Progress", 44 "progressType" : "bar", 45 "logoComId" : "OHOSIcon_Image", 46 "logoType" : "img" 47 }, 48 "labelLogResId" : { 49 "pageId" : "upd", 50 "comId" : "UpdateInfoDark_Label" 51 }, 52 "resPage" : { 53 "successPageId" : "upd:updateSuccess", 54 "failPageId" : "upd:updateFailedNoButton" 55 } 56 }, 57 "factoryRst" : { 58 "labelLogResId" : { 59 "pageId" : "upd", 60 "comId" : "UpdateInfoDark_Label" 61 }, 62 "labelUpdId" : { 63 "pageId" : "upd", 64 "comId" : "RstInfo_Label" 65 }, 66 "progressPage" : { 67 "progressPageId" : "upd:reset", 68 "progressComId" : "UpdBox_Progress", 69 "progressType" : "bar", 70 "logoComId" : "OHOSIcon_Image", 71 "logoType" : "img", 72 "warningComId" : "" 73 }, 74 "resPage" : { 75 "successPageId" : "menu:normal", 76 "failPageId" : "upd:FactoryRstFailed" 77 } 78 }, 79 "rebootFactoryRst" : { 80 "labelLogResId" : { 81 "pageId" : "upd", 82 "comId" : "RstInfo_Label" 83 }, 84 "progressPage" : { 85 "progressPageId" : "upd:reset", 86 "progressComId" : "UpdBox_Progress", 87 "progressType" : "bar", 88 "logoComId" : "OHOSIcon_Image", 89 "logoType" : "img", 90 "warningComId" : "" 91 }, 92 "resPage" : { 93 "successPageId" : "upd:reset", 94 "failPageId" : "upd:FactoryRstFailed" 95 } 96 } 97 }, 98 "locale" : { 99 "res" : [ 100 { 101 "path" : "/resources/string/string.json", 102 "level" : 0 103 } 104 ], 105 "localeFile" : "/data/updater/locale" 106 }, 107 "callbacks": [ 108 { 109 "pageId" : "menu", 110 "comId" : "FactoryRst_Button", 111 "type" : "CLICKEVENT", 112 "func" : "OnLabelResetEvt" 113 }, 114 { 115 "pageId" : "menu", 116 "comId" : "FactoryRstNormal_Button", 117 "type" : "CLICKEVENT", 118 "func" : "OnLabelResetEvt" 119 }, 120 { 121 "pageId" : "menu", 122 "comId" : "Reboot_Button", 123 "type" : "CLICKEVENT", 124 "func" : "OnRebootEvt" 125 }, 126 { 127 "pageId" : "menu", 128 "comId" : "RebootDevice_Button", 129 "type" : "CLICKEVENT", 130 "func" : "OnRebootEvt" 131 }, 132 { 133 "pageId" : "menu:normal", 134 "comId" : "Shutdown_Button", 135 "type" : "CLICKEVENT", 136 "func" : "OnMenuShutdownEvt" 137 }, 138 { 139 "pageId" : "confirm", 140 "comId" : "Cancel_Button", 141 "type" : "CLICKEVENT", 142 "func" : "OnLabelCancelEvt" 143 }, 144 { 145 "pageId" : "menu:normal", 146 "comId" : "SdUpdate_Button", 147 "type" : "CLICKEVENT", 148 "func" : "OnLabelSDCardNoDelayEvt" 149 }, 150 { 151 "pageId" : "confirm", 152 "comId" : "Reset_Button", 153 "type" : "CLICKEVENT", 154 "func" : "OnConfirmRstEvt" 155 }, 156 { 157 "pageId" : "upd", 158 "comId" : "FailReboot_Button", 159 "type" : "CLICKEVENT", 160 "func" : "OnRebootEvt" 161 } 162 ] 163}