Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[4.4 ROM Flash] bypass set_metadata_xxx fails

$
0
0


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 recovey 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 patch the script when building my 4.4 rom for GT-7.7. The include "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!

Attached Files
File Type: zip update-binary.zip - [Click for QR Code] (173.0 KB)

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>