RK 7.1 OTA升级提示Not enough free space on /cache to apply patches

OTA 升级时,概率性失败,提示Not enough free space on /cache to apply patches。
这是升级时会对cache 分区进行校验,可以跳过校验catche分区规避此问题。

+++ b/build/tools/releasetools/edify_generator.py
@@ -184,14 +184,14 @@ class EdifyGenerator(object):
                        "".join([', "%s"' % (i,) for i in sha1]) +
                        '));')
 
-  def CacheFreeSpaceCheck(self, amount):
-    """Check that there's at least 'amount' space that can be made
-    available on /cache."""
-    self._required_cache = max(self._required_cache, amount)
-    self.script.append(('apply_patch_space(%d) || abort("E%d: Not enough free '
-                        'space on /cache to apply patches.");') % (
-                            amount,
-                            common.ErrorCode.INSUFFICIENT_CACHE_SPACE))
+#  def CacheFreeSpaceCheck(self, amount):
+#    """Check that there's at least 'amount' space that can be made
+#    available on /cache."""
+#    self._required_cache = max(self._required_cache, amount)
+#    self.script.append(('apply_patch_space(%d) || abort("E%d: Not enough free '
+#                        'space on /cache to apply patches.");') % (
+#                            amount,
+#                            common.ErrorCode.INSUFFICIENT_CACHE_SPACE))
 
   def Mount(self, mount_point, mount_options_by_format=""):
     """Mount the partition with the given mount_point.
diff --git a/build/tools/releasetools/ota_from_target_files.py b/build/tools/releasetools/ota_from_target_files.py
index 6aa14d2..7590b8d 100755
--- a/build/tools/releasetools/ota_from_target_files.py
+++ b/build/tools/releasetools/ota_from_target_files.py
@@ -1059,10 +1059,10 @@ else if get_stage("%(bcb_dev)s") != "3/3" then
                          target_boot.size, target_boot.sha1))
       size.append(target_boot.size)
 
-  if size:
-    script.CacheFreeSpaceCheck(max(size))
+#  if size:
+#    script.CacheFreeSpaceCheck(max(size))
 
-  device_specific.IncrementalOTA_VerifyEnd()
+#  device_specific.IncrementalOTA_VerifyEnd()
 
   if OPTIONS.two_step:
     # Stage 1/3: (b) Write recovery image to /boot.
@@ -1727,10 +1727,10 @@ else if get_stage("%(bcb_dev)s") != "3/3" then
     so_far += source_boot.size
     size.append(target_boot.size)
 
-  if size:
-    script.CacheFreeSpaceCheck(max(size))
+#  if size:
+#    script.CacheFreeSpaceCheck(max(size))
 
-  device_specific.IncrementalOTA_VerifyEnd()
+#  device_specific.IncrementalOTA_VerifyEnd()


添加GMS包 OTA升级提示Not enough free space on /cache to apply patches
build\tools\releasetools\ota_from_target_files
OPTIONS = common.OPTIONS
OPTIONS.package_key = None
OPTIONS.incremental_source = None
OPTIONS.verify = False
OPTIONS.require_verbatim = set(("system/priv-app/GmsCore/oat/arm/GmsCore.odex",))  //modify
OPTIONS.prohibit_verbatim = set(("system/build.prop",))

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

心有纤纤结

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值