OTA update fail: Jelly Bean to KitKat with selinux

4.2 ota升级4.4遇到如下错误,遂google之:

removexattr of /system/etc/install-recovery.sh to 0 failed: Operation not supported on transport endpoint

http://code.google.com/p/android/issues/detail?id=66331

Update Method:
Place OTA file in external micro SD card, and boot into recovery to update OTA file.

Version on device: Jelly bean without selinux
OTA file version: KitKat with selinux

Fail: Jelly bean update OTA to KitKat fail(fail message in following last_log, flash KitKat image on device then update KitKat OTA is OK.

Fail Last_log:
ApplyParsedPerms: removexattr of /system/etc/install-recovery.sh to 0 failed: Operation not supported on transport endpoint
script aborted: set_metadata_recursive: some changes failed
set_metadata_recursive: some changes failed

Is any setting I need to modify on KitKat for Jelly Bean OTA upgrade to KitKat?

Thanks,

The root cause of this problem is that the recovery kernel is not compiled with extended attributes (xattr) support.

If you're on a Nexus device, an upgrade from 4.2 to 4.4 directly isn't supported. Instead, you should upgrade from 4.2 to 4.3 to 4.4.

If you're building an Android distribution, you can use the "-2" option when generating your OTA file. Please see https://android.googlesource.com/platform/build/+/9b23f2cd786b46991b7c0198e69264b17875288d for more details

You should enable the following kernel config options.

* CONFIG_EXT4_FS_XATTR
* CONFIG_EXT4_FS_SECURITY

As an example, take a look at the patch which modified the Android emulator:

https://android-review.googlesource.com/53343

While you're at it, it's probably a good idea to enable SELinux support. See https://android-review.googlesource.com/61406 as an example.

Method1 and Method2 works.
We can upgrade 4.2 to 4.4 now.
Thanks a lot.
-----------------------------------
Method1.
After I enable 4.2.2's flags then build a new version.
CONFIG_EXT4_FS_XATTR=y
CONFIG_EXT4_FS_SECURITY=y

user's 4.2.2 can upgrade to new 4.2.2 then update to 4.4.2 version now.
Method2.
Modify recovery and OTA according to following patch:
https://android.googlesource.com/platform/build/+/9b23f2cd786b46991b7c0198e69264b17875288d

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值