GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Marker file in user accessible directory · Issue #4 · Magisk-Modules-Alt-Repo/YetAnotherBootloopProtector

Marker file in user accessible directory #4

New issue
Copy link
New issue
Copy link
Open
Open
Marker file in user accessible directory#4
Copy link

Description

@ZingyAwesome
ZingyAwesome
opened on Oct 13, 2025
Issue body actions

Hi, I'd like to request that the module checks for a marker file in a user accessible location (i.e. a location that the user can write to without root, for example internal storage) and if this is detected then all modules and scripts are disabled as normal.

I think this feature would be useful for a good subset of users. I use avbroot for root which allows the bootloader to be re-locked after flashing the rooted image. If all goes wrong I cannot perform the method described in the README where you flash the zip from recovery as my recovery won't allow zips to be flashed while the bootloader is locked. I also don't know if that method works on encrypted devices.
However if this feature was implemented, I could use the recovery's adb sideload feature to install a rootless version of the system without erasing data, this sideloaded zip must be signed by the avb key of course. I could then boot into the system as normal since magisk modules can't load in rootless mode and create the marker file. Then after sideloading the rooted version again, the module would see the marker and disable all modules. That would let me get back to the Magisk app and remove whatever module caused the bootloop.

Activity

  1. KaluaBilla commented on Oct 17, 2025

    @KaluaBilla
    KaluaBilla
    on Oct 17, 2025
    More actions

    You could just change the value of service.sh and post-fs-data.sh to /storage/emulated/0 or any custom directory to make the script look for marker files there, but it may not work because internal storage is generally not mounted when the script starts, so it might not be able to read/write from there and may not work as expected.

  2. ZingyAwesome commented on Oct 18, 2025

    @ZingyAwesome
    ZingyAwesome
    on Oct 18, 2025
    ContributorAuthor
    More actions

    You could just change the value of service.sh and post-fs-data.sh to /storage/emulated/0 or any custom directory to make the script look for marker files there, but it may not work because internal storage is generally not mounted when the script starts, so it might not be able to read/write from there and may not work as expected.

    Do you know which directories are available to scripts but are still writable when unrooted? Of course /data/adb isn't as that's owned by root but maybe there are some other ones that are?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.