
Before we can take a bite on the new KitKat, some of us may encounter the set_metadata.. error at flashing.
Problem:
The new updater-scritpt use set_metadata and set_metadata_recursive to assign the permissions to the newly copied files.
Most of the existing /system partition doesn't support the "capabilities" option. Script in android/build would assign 0x00 to "capabilities".
However, assigning a "capabilities" with 0x00 to the unsuported partition also cause error!
If you are lucky, you might find an updated custom recovery to solve that.
For those who don't have a workable recovey or don't want to update the recovery yet. Here is a solution
Solution:
I patched the script when building my 4.4 rom for GT-7.7. The included "update-binary" would solve that problem at flashing.
Open the zip of the ROM or gapps. Replace the file in /META-INF/com/google/android with this one.
Now you can flash the 4.4 rom and gapps without an recovery update..
It works for cm11 & aosp based ROMs and gapps.
Cheers!
Edit:
Silly me, how can it be hardware independent... This one is compiled for armv7. Different cpu surely need a recompile.
Here is the change in the source: http://forum.xda-developers.com/showpost.php?p=47692333&postcount=15
Attachments
Last edited: