set_metadata_recursive failing on Android install
Asked Answered
B

5

13

I'm trying to bring up a 4.4 android build for my droid razr HD. It compiles cleanly, but when I try to install it fails with the following error in the recovery log:

    ApplyParsedPerms: removexattr of /system/xbin/zipalign to 0 failed: Operation not supported on transport endpoint      
script aborted: set_metadata_recursive: some changes failed                                                            
set_metadata_recursive: some changes failed                                                                            
E:Error executing updater binary in zip '/external_sd/MSI/update-XenonHD-11-07-13-signed-xt926.zip'                    
Error flashing zip '/external_sd/MSI/update-XenonHD-11-07-13-signed-xt926.zip' 

So... I did a fair amount of research into the changes made by AOSP in build and bootable/recovery, including comments others have made on this issue, and I'm thinking it's a missing seandroid configuration for /system/xbin. It's definitely something about items in /system/xbin because when I remove zipalign from the build, it errors out on tcpdump, and so on.. Is this indeed a sepolicy configuration that's missing? Is there something else I need to check? Can anyone tell me how to include xbin without having to mess with the files residing there? Thanks, appreciate your time!

Borderland answered 8/11, 2013 at 13:41 Comment(1)
Belongs on Android.StackExchange.comWove
E
17

I fixed this issue on my Nexus 7 (2012) by upgrading to the latest ClockworkMod Recovery from http://www.clockworkmod.com/rommanager.

Evensong answered 20/11, 2013 at 17:5 Comment(2)
This worked for me even when updating my Nexus 4 to Android 4.4. The problem seems to come from an incomplete/bugged implementation of the set_metadata_recursive function in previous CWM versions, which is used in Google's new update scripts instead of the old set_perms_recursive function.Airlee
upgrade clockwork to 6.0.4.3 then go to install zip will be just fine.Boliviano
A
4

In short, if you want to flash KitKat Android 4.4, you'll have to upgrade to a version of CWM greater than v6.0.4.5. Or, use an alternate bootloader.

Azeria answered 10/5, 2014 at 16:59 Comment(1)
For HTC desire HD for example, I had to install the PhilZ_Touch_Recovery_6.40.7_ace.img and then CM11 install worked like a charm.Brahui
H
2

The correct command for flashing, in response to @Blue_On_It:

fastboot flash recovery clockworkmod.img
Hummel answered 18/3, 2014 at 18:55 Comment(0)
V
1

1.- Start the mobile in recovery mode

2.- You must open adb console (after download the newest version of ClockWorkMod) and write "fastboot recovery clockworkmod.img" (you have the fastboot executable in the platform-tools folder)

3.- While the console write: "Waiting the mobile" or similar you restart the mobile. The ClockWorkMod recovery new version will be installed.

Valedictory answered 26/11, 2013 at 23:2 Comment(0)
L
-1

Upgrade you ClockworkMod Recovery to 6.0.4.5, you can download the file here and read the tutorial how to upgrade here and if you stuck into boot and can not go to inside the device/ No OS please read here the tutorial and watch video tutorial here how to Copy Files Over to your Android with ADB

Hope that help you...:)

Lorusso answered 23/12, 2014 at 10:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.