imgextractor: file_contexts & fs_config errors
rahulkhatri137 opened this issue · comments
There are error in file_contexts & fs_config files when tool extract system image which later doesn't get configured to rebuild final sgsi image.
Same errors happen everytime. I repeated the process atleast 5 times & error in same single one line. Happens mostly with OEM firmwares
Example:
Following are the info in generated files about two different separate files in system/system/etc/device_features -
system_fs_config -
system/system/etc/device_features/peux.xml
veux.xml 0 0 0644
system_file_contexts -
/system/system/etc/device_features/peux.xml
veux.xml u:object_r:system_file:s0
Full system fs config and file contexts *fixed ones
Are you using legacy MIUI patch for final build?
This bug exists in branch 11 here
Yes, I think this creates the problem. I think that implementation needs some update.
This bug exists in branch 11 here
Yes, I think this creates the problem. I think that implementation needs some update.
Yes, but I don't have time to update it now. You just need to change the logic here to fix it
This bug exists in branch 11 here
Yes, I think this creates the problem. I think that implementation needs some update.
Yes, but I don't have time to update it now. You just need to change the logic here to fix it
Here you go. Just need for clause
for xml in $xml_name; do
echo "/system/system/etc/device_features/$xml u:object_r:system_file:s0" >> $target_contexts
echo "system/system/etc/device_features/$xml 0 0 0644" >> $target_fs
done
Push whenever free. If want PR then I can pull one 🙂
Push whenever free. If want PR then I can pull one 🙂
Can be provided the pr