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