File blocker FAQ

File blocker FAQ

Yaroslav Furman
  1. Why: kernel tweakers are a known headache for many kernel/ROM developers, they cause all sorts of issues like Wi-Fi turning off randomly, device not waking up when notification comes, device bootlooping randomly or just performing slower than usual. 9/10 regular users blame a custom ROM/kernel that they've installed because "a tweaker can do no harm", well, it can.
  2. What it does: it makes files that who's names start with entries from files_array, that are located in paths from paths_array - inaccessible. When a user (or app, or Android) tries to open a file in, for example, /data/adb/modules/fde, you will see a message like this in dmesg:
    [ 234.744915] check_file: blocking /data/adb/modules/fde/base.apk
    and like this in logcat:
    06-08 14:04:20.459 12058 12084 W InstallStaging: java.io.FileNotFoundException: open failed: ENOENT (No such file or directory)
  3. What it doesn't do: it doesn't delete files, doesn't forbid creating files in blocked folders, although they will only appear after reboot.
  4. How to: cherry-pick commits from file_blocker branch and enable CONFIG_BLOCK_UNWANTED_FILES in defconfig.




































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































Report Page