[One (M8) Android Development] enewman17:
The updater script to update the ROM wouldn't fail because of the partition size but it would not boot because hboot would get flashed with the firmware and the hboot and partition size seem to matter.

apply_patch_space(22366912) || abort("Not enough free space on /system to apply patches.");

That part of the script just checks to make sure that there is at least that many bytes available.

Funny it didn't fail. Now that I take a close look at the H10 updater script services.jar is one that is missing form the sha1 check. lol

but after the check I see services.jar gets deleted so no need to check the sha1 before applying a patch if your just going to replace the whole file.

apply_patch_check("/system/framework/am.jar", "d746058bff2a25cd13257011434eed5e0ff54462", "74bc49bba09986dd44f009b23f2dd25312bbeec9") || abort(""/system/framework/am.jar" has unexpected contents.");

apply_patch_check("/system/framework/android.test.runner.jar", "548e73537f1e95fe676a23fec84f6d1c4a221ec8", "9eec27a9bb27a853426f3099492b82e75b254177") || abort(""/system/framework/android.test.runner.jar" has unexpected contents.");

apply_patch_check("/system/framework/apache-xml.jar", "bd5ead2d247ac2dd6f520c6735e79f1b02d2ecc6", "7394c9a650fd5d600b48460f614880eb398b5b0a") || abort(""/system/framework/apache-xml.jar" has unexpected contents.");

apply_patch_check("/system/framework/appops.jar", "b075f9b9d53df9e1ffc1a46123458542c9dc3eb5", "7631959e93bb80cdcf6244a969876f46d9609a2e") || abort(""/system/framework/appops.jar" has unexpected contents.");

apply_patch_check("/system/framework/appwidget.jar", "5c575f9ad0a61be040b8071f87eb30a249a99842", "50b77afe8607e20f1e9f04dfa0c3950075faf40a") || abort(""/system/framework/appwidget.jar" has unexpected contents.");

apply_patch_check("/system/framework/bmgr.jar", "567e9542fd9f69ee8bdf4d71351d157db57ad5ed", "314758c1dc5f4b4f96cc951c79fe45db5f86049b") || abort(""/system/framework/bmgr.jar" has unexpected contents.");

apply_patch_check("/system/framework/bouncycastle.jar", "9e21e1196cfead5babea3891afbac88587de67b5", "096ed8ce0fd6e159b61ae282fe0f1593938ca781") || abort(""/system/framework/bouncycastle.jar" has unexpected contents.");

apply_patch_check("/system/framework/bu.jar", "aea5f0c52abbcab53694c3ea9467239567989acb", "711181c0f3169b936878d59331681f6de0a50cbf") || abort(""/system/framework/bu.jar" has unexpected contents.");

apply_patch_check("/system/framework/com.android.future.usb.accessory.jar", "f5b0a84c54bf139543d1c07cd86a10fbb988e93b", "18e2f306d9cc4a8c7908fccc7e9805f93c84465e") || abort(""/system/framework/com.android.future.usb.accessory.jar" has unexpected contents.");

apply_patch_check("/system/framework/com.android.location.provider.jar", "0d3cfb8903246be7ad1eb21c8a8fecd609b8a57b", "760b7f055793d1094e12daf14e2227b4a39cf4a4") || abort(""/system/framework/com.android.location.provider.jar" has unexpected contents.");

apply_patch_check("/system/framework/com.android.media.remotedisplay.jar", "4da8c3f97b4a5b120ad874865bf50c3d76244262", "ccce0ab671e081cb9a638362a12f88742c015af1") || abort(""/system/framework/com.android.media.remotedisplay.jar" has unexpected contents.");

apply_patch_check("/system/framework/com.android.mediadrm.signer.jar", "e8092582147e0df37109303a2211515c709fccae", "01289477f7fab8745187b7843d70242527529e7b") || abort(""/system/framework/com.android.mediadrm.signer.jar" has unexpected contents.");

apply_patch_check("/system/framework/com.android.nfc_extras.jar", "43b6117a5c41e28669d0a8f8c0beccb4cc2813d7", "180b15665c36e619742b36284936c63be0fbf1c7") || abort(""/system/framework/com.android.nfc_extras.jar" has unexpected contents.");

apply_patch_check("/system/framework/com.google.widevine.software.drm.jar", "ee65173ab5a6859f9d28136daf4722d5e8650670", "b906cc35094d737d57065ac9231f6e4879754d35") || abort(""/system/framework/com.google.widevine.software.drm.jar" has unexpected contents.");

apply_patch_check("/system/framework/conscrypt.jar", "17e91d217d6d7598a0821c8ae1446b910b062dba", "43ed7336d32546e241ddfb3d24228df8e55d6523") || abort(""/system/framework/conscrypt.jar" has unexpected contents.");

apply_patch_check("/system/framework/content.jar", "5e259420a893aa470b6f9eeb8fada65e3b6c3499", "c487e59461172b6d7573306a5cce64b5d836b03a") || abort(""/system/framework/content.jar" has unexpected contents.");

apply_patch_check("/system/framework/core-junit.jar", "5a61532bc3f28bee3b4408f1d9628f4e0271e3b4", "c800f6caf76c415bb67ef9a0f1bbe4be3ddb9318") || abort(""/system/framework/core-junit.jar" has unexpected contents.");

apply_patch_check("/system/framework/core-libart.jar", "f20b07c2f22ab6ef1db82968ad0d8b600c438218", "db57dab243b6295a0e1f76c1b641faadefb44254") || abort(""/system/framework/core-libart.jar" has unexpected contents.");

apply_patch_check("/system/framework/dpm.jar", "7e715092f2eb519f1411331144747a6e36fb6f1d", "92bef2b57552a2db316ead87ef3deafffafe2369") || abort(""/system/framework/dpm.jar" has unexpected contents.");

apply_patch_check("/system/framework/ethernet-service.jar", "a072ee1780d86a13847490fb183ea425a838d50a", "e8042bae0b9cce5c3e567ed561293c1df39223fb") || abort(""/system/framework/ethernet-service.jar" has unexpected contents.");

apply_patch_check("/system/framework/ext.jar", "7857482adf03be2165942edf4435e3697ecc79c1", "47e866e1e726f29e6d22691e6f84dd01c59bd706") || abort(""/system/framework/ext.jar" has unexpected contents.");

apply_patch_check("/system/framework/framework-res.apk", "47f677dfa0b3c171100690941256e0ecb92d0415", "c7cba48517cd9e228d16a9e044f7aa313be58541") || abort(""/system/framework/framework-res.apk" has unexpected contents.");

apply_patch_check("/system/framework/framework.jar", "8683cd55100927eedf7f2b4c7eef4916f0dcb67d", "5b1395cba52b894028f259addd8835e302e80de1") || abort(""/system/framework/framework.jar" has unexpected contents.");

apply_patch_check("/system/framework/hid.jar", "d9a9ee30a6394a11b0ebd23df59fde86ec79937f", "1a2003630486afe3b306f57c63f64f1b6e4c9035") || abort(""/system/framework/hid.jar" has unexpected contents.");

apply_patch_check("/system/framework/htcirlibs.jar", "c30b2b2596dfa3c1045a5c6767fc074e11ef54d5", "1c426a624243709577f8390ffce774be9216276f") || abort(""/system/framework/htcirlibs.jar" has unexpected contents.");

apply_patch_check("/system/framework/ime.jar", "6a5c49ce21d4ec30969f63be2dfb9b3abc865c48", "b61b7f8df1af4d008627a6c29fd3406dac172db3") || abort(""/system/framework/ime.jar" has unexpected contents.");

apply_patch_check("/system/framework/ims-common.jar", "9cea6558cc18d15fa3c8fe798b044d83f300db3a", "67f13c604cfb792d8b51be8b10fa2fe3755cd3af") || abort(""/system/framework/ims-common.jar" has unexpected contents.");

apply_patch_check("/system/framework/input.jar", "4638f7d910de5520a5f52ed9cd7013c0dfa1809c", "fc660feca1e7df6217958d10bb66d897836634cc") || abort(""/system/framework/input.jar" has unexpected contents.");

apply_patch_check("/system/framework/javax.obex.jar", "c4acca1e72309eba36167dc16ff39ab783af44c0", "12e9b109eca1eca34023671fbc316594b9ff0e2b") || abort(""/system/framework/javax.obex.jar" has unexpected contents.");

apply_patch_check("/system/framework/media_cmd.jar", "ebdfd78b50585a617d32823c2d4c0618f617cd59", "818e617f24b2f7d25bd94cee78b84ef980a62f9a") || abort(""/system/framework/media_cmd.jar" has unexpected contents.");

apply_patch_check("/system/framework/monkey.jar", "289b0b44ee56b0286bb8d7b32ba4b45af469321f", "ec5e98a615dfbaf5914d0c770352e348ce392581") || abort(""/system/framework/monkey.jar" has unexpected contents.");

apply_patch_check("/system/framework/okhttp.jar", "5401c6087ebeb53ab11cb7027da148a355af0450", "04587702a1437958d390926cb7b98b63c32136c8") || abort(""/system/framework/okhttp.jar" has unexpected contents.");

apply_patch_check("/system/framework/org.apache.http.legacy.boot.jar", "ef58b1c0f6328fd1e9f14bf595fb90c67c8bc639", "d78ae0823fbca2e51b3285e563e1ee38e99c8605") || abort(""/system/framework/org.apache.http.legacy.boot.jar" has unexpected contents.");

apply_patch_check("/system/framework/org.simalliance.openmobileapi.jar", "d9ed82948e6e873acb4410fcbb4401c810a27ff8", "8f4fe35ed8c7a48ce9610daa4de01f63581879ab") || abort(""/system/framework/org.simalliance.openmobileapi.jar" has unexpected contents.");

apply_patch_check("/system/framework/pm.jar", "e0ac3b4ba91c8e53ce3fa736e31d6033e6cdfac9", "93ea732c25a22b72b688e4e512245a15c19e757a") || abort(""/system/framework/pm.jar" has unexpected contents.");

apply_patch_check("/system/framework/qcom.fmradio.jar", "0d07c92178042be1d81be1ed294f9725dd294186", "1ea2267f5977737cc5031c37ac1a10f86f35c779") || abort(""/system/framework/qcom.fmradio.jar" has unexpected contents.");

apply_patch_check("/system/framework/requestsync.jar", "44dd4e4baeff6e22e1d29f5d907350d08057526c", "239235f075a133b8e19703c9a3759a762bc50547") || abort(""/system/framework/requestsync.jar" has unexpected contents.");

apply_patch_check("/system/framework/settings.jar", "5ca1b56381f4e4866f396921f0dc34b8134bb266", "4a9f6c277842ab828a86059ee44e1fe766f2c8eb") || abort(""/system/framework/settings.jar" has unexpected contents.");

apply_patch_check("/system/framework/sm.jar", "ae99e8683f9a88b7c8076f1dfa12f294ee52834f", "e3ad9b98a204c51bda071d1b561591568c417f24") || abort(""/system/framework/sm.jar" has unexpected contents.");

apply_patch_check("/system/framework/svc.jar", "0c64c07cc58ae2c307151e6354ac720ea484c6ce", "eaace83c9c0111df481c3e42b06f706690118960") || abort(""/system/framework/svc.jar" has unexpected contents.");

apply_patch_check("/system/framework/telecom.jar", "47eb2318d904ae081f9b26cdc6063c584d122e7d", "5936d4b4cc9850ea142c6561033213f3086fa6f5") || abort(""/system/framework/telecom.jar" has unexpected contents.");

apply_patch_check("/system/framework/telephony-common.jar", "a876de026d728a98e4609d13d2accb9089e634ef", "d091bc61ccb659081178f30725be1d4c1ca37e25") || abort(""/system/framework/telephony-common.jar" has unexpected contents.");

apply_patch_check("/system/framework/uiautomator.jar", "71396f0a1d6d4108aacf8f783288a02a30cc0aef", "3ab238c04de2344cd514faa08ee189b872be1ade") || abort(""/system/framework/uiautomator.jar" has unexpected contents.");

apply_patch_check("/system/framework/usbnet.jar", "c014b42e0c183eaac130152b5b5dd65da8e74995", "af8d9318d9c1bc88b13d21d3c7159a2dde9ef158") || abort(""/system/framework/usbnet.jar" has unexpected contents.");

apply_patch_check("/system/framework/voip-common.jar", "9a22a8c7eb3ff9349f45aa753bb8e26861e0f3b7", "49906f3faf15734b3dcf151d89ecdacb395aeeae") || abort(""/system/framework/voip-common.jar" has unexpected contents.");

apply_patch_check("/system/framework/wifi-service.jar", "320e7b769965f0cff97cd809cc92ae7516e1ef98", "24eae56f9de3c00d6eb15d176d9c6050323b2473") || abort(""/system/framework/wifi-service.jar" has unexpected contents.");

apply_patch_check("/system/framework/wm.jar", "2e1040b76ffee2d534dc5975bacecb443b1485c6", "29fd7d786ce0fd8e1cee380e5822980c2d4257d3") || abort(""/system/framework/wm.jar" has unexpected contents.");

.

.

.

.

.

.

.

ui_print("Removing unneeded files...");

delete("/system/customize/AAInfo.txt", "/system/framework/services.jar",

"/system/recovery.img");

These scripts change all the time so what worked today might not work tomorrow and is better to have the /system unaltered to ensure it doesn't fail.