perm-fs

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2025 License: MIT Imports: 11 Imported by: 0

README


GitHub go.mod Go version Go Report Card GitHub License

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

  1. Clone the repository:

    git clone https://github.com/Mrakorez/perm-fs
    
  2. Navigate to its directory:

     cd perm-fs
    
  3. 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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL