
perm-fs
is a tool developed for UKA.
It is designed to replace a shell script previously used for tracking changes in unpacked firmware images
(e.g., system.img
) and updating the corresponding fs_config
for future builds.
Features
- Automatically assigns permissions to new files in the firmware image.
- Significantly faster than the original shell script due to its native implementation.
Build
-
Clone the repository:
git clone https://github.com/Mrakorez/perm-fs
-
Navigate to its directory:
cd perm-fs
-
Build for Android:
make
Usage
Run perm-fs
with the following syntax:
Usage: perm-fs <target> <fs-config>
Parameters
<target>
– Path to the unpacked firmware image.
<fs-config>
– Path to the fs_config
file of the image.
A log file and a cache containing computed permissions for new files will be stored alongside <fs-config>
.
Example
perm-fs /path/to/system_raw/ /path/to/config/system_raw/fs_config